]> git.baikalelectronics.ru Git - kernel.git/commitdiff
habanalabs: add critical indication in sram ecc
authorran shalit <rshalit@habana.ai>
Wed, 15 Jun 2022 18:24:38 +0000 (21:24 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:23 +0000 (09:09 +0300)
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>
drivers/misc/habanalabs/include/common/cpucp_if.h

index 38e44b6cf581a1717c00456feb08e1dbc83cc54c..b190a44ef2e2f90856b878e5c32dd2a74c329ab5 100644 (file)
@@ -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 {