]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement reading PCI power status in mlx5core.
authorhselasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:58:06 +0000 (10:58 +0000)
committerhselasky <hselasky@FreeBSD.org>
Wed, 8 May 2019 10:58:06 +0000 (10:58 +0000)
commit6e21fa70ddc22d7480606d40e293a455dbf7c11a
treed643b6870c506862827f81767c47c0038f775151
parenta7cccbd14c2ce72f0ff4da08b6522c652f8d48ee
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.

MFC after: 3 days
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