[PATCH 13/17] habanalabs: add critical indication in sram ecc

From: Oded Gabbay
Date: Mon Jun 20 2022 - 09:15:21 EST


From: ran shalit <rshalit@xxxxxxxxx>

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@xxxxxxxxx>
Reviewed-by: Oded Gabbay <ogabbay@xxxxxxxxxx>
Signed-off-by: Oded Gabbay <ogabbay@xxxxxxxxxx>
---
drivers/misc/habanalabs/include/common/cpucp_if.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

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 {
--
2.25.1