diff options
author | ran shalit <rshalit@habana.ai> | 2022-06-15 21:24:38 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-07-12 09:09:23 +0300 |
commit | e41c6418565d01df9b5d2005cabc0c2f71033c69 (patch) | |
tree | 71172123c53260a28509c97612547c41f9a687e7 /drivers/misc/habanalabs/include/common | |
parent | 67a54d5de2c348562b745c5029daa9e5207514c9 (diff) | |
download | lwn-e41c6418565d01df9b5d2005cabc0c2f71033c69.tar.gz lwn-e41c6418565d01df9b5d2005cabc0c2f71033c69.zip |
habanalabs: add critical indication in sram ecc
Multiple SRAM SERR events are treated as critical events,
and host should be notified about it. Thus, adding is_critical
indication as part of SRAM ECC failure packet.
Signed-off-by: ran shalit <rshalit@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/include/common')
-rw-r--r-- | drivers/misc/habanalabs/include/common/cpucp_if.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/include/common/cpucp_if.h b/drivers/misc/habanalabs/include/common/cpucp_if.h index 38e44b6cf581..b190a44ef2e2 100644 --- a/drivers/misc/habanalabs/include/common/cpucp_if.h +++ b/drivers/misc/habanalabs/include/common/cpucp_if.h @@ -68,7 +68,8 @@ struct hl_eq_ecc_data { __le64 ecc_address; __le64 ecc_syndrom; __u8 memory_wrapper_idx; - __u8 pad[7]; + __u8 is_critical; + __u8 pad[6]; }; enum hl_sm_sei_cause { |