]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r347306:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 16 May 2019 16:31:39 +0000 (16:31 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Thu, 16 May 2019 16:31:39 +0000 (16:31 +0000)
commitd1bed300306f297725cd17bd8ce8a4f6797dc492
tree65125e1e613fca2d89ce53441e27b71ce4e5424a
parenta46eef620f941f29e28a1e5d23f15f8f47d2c0bd
MFC r347306:
Implement reading PCI power status in mlx5core.

Implement a watchdog as part of the healtcare subsystem which
reads the PCI power status during startup and upon the PCI
power status change event and store it into the core device
structure. This value is then exported to user-space via a
read-only SYSCTL. A dmesg print has been added to inform
the admin about the PCI power status.

Sponsored by: Mellanox Technologies
sys/dev/mlx5/device.h
sys/dev/mlx5/driver.h
sys/dev/mlx5/mlx5_core/mlx5_eq.c
sys/dev/mlx5/mlx5_core/mlx5_health.c
sys/dev/mlx5/mlx5_core/mlx5_main.c
sys/dev/mlx5/mlx5_ifc.h