diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-05-08 10:28:18 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-05-08 10:28:18 +0000 |
commit | 983026ea8394b9696986f3450a19116e23a4f1a0 (patch) | |
tree | 1c49bf0e771c2323a10d4d71f0c10136519c638a /sys/dev/mlx5/device.h | |
parent | 7646dc2347c81b2bef85cb628d64e2c25f8c9c91 (diff) | |
download | src-983026ea8394b9696986f3450a19116e23a4f1a0.tar.gz src-983026ea8394b9696986f3450a19116e23a4f1a0.zip |
Add temperature warning event to log in mlx5core.
Temperature warning event is sent by FW to indicate high temperature
as detected by one of the sensors on the board.
Add handling of this event by writing the numbers of the alert sensors
to the kernel log.
Linux commit:
1865ea9adbfaf341c5cd5d8f7d384f19948b2fe9
Submitted by: slavash@
MFC after: 3 days
Sponsored by: Mellanox Technologies
Notes
Notes:
svn path=/head/; revision=347250
Diffstat (limited to 'sys/dev/mlx5/device.h')
-rw-r--r-- | sys/dev/mlx5/device.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/mlx5/device.h b/sys/dev/mlx5/device.h index 47e19bfb69d8..ba0708824e7b 100644 --- a/sys/dev/mlx5/device.h +++ b/sys/dev/mlx5/device.h @@ -566,6 +566,11 @@ struct mlx5_eqe_general_notification_event { u32 rsvd0[6]; }; +struct mlx5_eqe_temp_warning { + __be64 sensor_warning_msb; + __be64 sensor_warning_lsb; +} __packed; + union ev_data { __be32 raw[7]; struct mlx5_eqe_cmd cmd; @@ -580,6 +585,7 @@ union ev_data { struct mlx5_eqe_port_module_event port_module_event; struct mlx5_eqe_vport_change vport_change; struct mlx5_eqe_general_notification_event general_notifications; + struct mlx5_eqe_temp_warning temp_warning; } __packed; struct mlx5_eqe { |