Skip to content

Commit 54381ee

Browse files
Tomer Tayarogabbay
authored andcommitted
accel/habanalabs: use lower QM in QM errors handling
The QMAN GLBL_ERR_STS_4 register has indications for errors also in the lower CQ and the ARC CQ, and not just for errors in the lower CP. Modify the relevant define/struct and the related print to use "lower QM" instead of "lower CP". Signed-off-by: Tomer Tayar <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
1 parent dcc8fa8 commit 54381ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/accel/habanalabs/gaudi2/gaudi2.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
#define GAUDI2_NA_EVENT_CAUSE 0xFF
5959
#define GAUDI2_NUM_OF_QM_ERR_CAUSE 18
60-
#define GAUDI2_NUM_OF_QM_LCP_ERR_CAUSE 25
60+
#define GAUDI2_NUM_OF_LOWER_QM_ERR_CAUSE 25
6161
#define GAUDI2_NUM_OF_QM_ARB_ERR_CAUSE 3
6262
#define GAUDI2_NUM_OF_ARC_SEI_ERR_CAUSE 14
6363
#define GAUDI2_NUM_OF_CPU_SEI_ERR_CAUSE 3
@@ -801,7 +801,7 @@ static const char * const gaudi2_qman_error_cause[GAUDI2_NUM_OF_QM_ERR_CAUSE] =
801801
"PQC L2H error"
802802
};
803803

804-
static const char * const gaudi2_qman_lower_cp_error_cause[GAUDI2_NUM_OF_QM_LCP_ERR_CAUSE] = {
804+
static const char * const gaudi2_lower_qman_error_cause[GAUDI2_NUM_OF_LOWER_QM_ERR_CAUSE] = {
805805
"RSVD0",
806806
"CQ AXI HBW error",
807807
"CP AXI HBW error",
@@ -7895,8 +7895,8 @@ static int gaudi2_handle_qman_err_generic(struct hl_device *hdev, u16 event_type
78957895
continue;
78967896

78977897
if (i == QMAN_STREAMS) {
7898-
snprintf(reg_desc, ARRAY_SIZE(reg_desc), "LowerCP");
7899-
num_error_causes = GAUDI2_NUM_OF_QM_LCP_ERR_CAUSE;
7898+
snprintf(reg_desc, ARRAY_SIZE(reg_desc), "LowerQM");
7899+
num_error_causes = GAUDI2_NUM_OF_LOWER_QM_ERR_CAUSE;
79007900
} else {
79017901
snprintf(reg_desc, ARRAY_SIZE(reg_desc), "stream%u", i);
79027902
num_error_causes = GAUDI2_NUM_OF_QM_ERR_CAUSE;
@@ -7907,7 +7907,7 @@ static int gaudi2_handle_qman_err_generic(struct hl_device *hdev, u16 event_type
79077907
gaudi2_print_event(hdev, event_type, true,
79087908
"%s. err cause: %s", reg_desc,
79097909
i == QMAN_STREAMS ?
7910-
gaudi2_qman_lower_cp_error_cause[j] :
7910+
gaudi2_lower_qman_error_cause[j] :
79117911
gaudi2_qman_error_cause[j]);
79127912
error_count++;
79137913
}

0 commit comments

Comments
 (0)