diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-03-06 08:50:49 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-03-12 19:24:59 -0400 |
commit | 5984be90046fa978d94a5ec08bbf8f760cff2b30 (patch) | |
tree | 428b0735fd2fdd696e7d1601b554179d225fe67c /include | |
parent | e10903b087e425298fb86c6ad4b1a88735480db7 (diff) |
mlx4_core: Report thermal error events
Print an error message when a thermal error async event is reported by the HW.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Dotan Barak <dotanb@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx4/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 263d2ae21ac1..4b3fbf122533 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -133,6 +133,7 @@ enum mlx4_event { | |||
133 | MLX4_EVENT_TYPE_CMD = 0x0a, | 133 | MLX4_EVENT_TYPE_CMD = 0x0a, |
134 | MLX4_EVENT_TYPE_VEP_UPDATE = 0x19, | 134 | MLX4_EVENT_TYPE_VEP_UPDATE = 0x19, |
135 | MLX4_EVENT_TYPE_COMM_CHANNEL = 0x18, | 135 | MLX4_EVENT_TYPE_COMM_CHANNEL = 0x18, |
136 | MLX4_EVENT_TYPE_FATAL_WARNING = 0x1b, | ||
136 | MLX4_EVENT_TYPE_FLR_EVENT = 0x1c, | 137 | MLX4_EVENT_TYPE_FLR_EVENT = 0x1c, |
137 | MLX4_EVENT_TYPE_NONE = 0xff, | 138 | MLX4_EVENT_TYPE_NONE = 0xff, |
138 | }; | 139 | }; |
@@ -143,6 +144,10 @@ enum { | |||
143 | }; | 144 | }; |
144 | 145 | ||
145 | enum { | 146 | enum { |
147 | MLX4_FATAL_WARNING_SUBTYPE_WARMING = 0, | ||
148 | }; | ||
149 | |||
150 | enum { | ||
146 | MLX4_PERM_LOCAL_READ = 1 << 10, | 151 | MLX4_PERM_LOCAL_READ = 1 << 10, |
147 | MLX4_PERM_LOCAL_WRITE = 1 << 11, | 152 | MLX4_PERM_LOCAL_WRITE = 1 << 11, |
148 | MLX4_PERM_REMOTE_READ = 1 << 12, | 153 | MLX4_PERM_REMOTE_READ = 1 << 12, |