Skip to content

Commit 8a20b38

Browse files
ofirbittogabbay
authored andcommitted
accel/habanalabs: fix bug of not fetching addr_dec info
addr_dec info should always be fetched, regardless of cause value. Signed-off-by: Ofir Bitton <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
1 parent 92a3a9b commit 8a20b38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/accel/habanalabs/gaudi2/gaudi2.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8769,6 +8769,9 @@ static int gaudi2_print_pcie_addr_dec_info(struct hl_device *hdev, u16 event_typ
87698769
u32 error_count = 0;
87708770
int i;
87718771

8772+
gaudi2_print_event(hdev, event_type, true,
8773+
"intr_cause_data: %#llx", intr_cause_data);
8774+
87728775
for (i = 0 ; i < GAUDI2_NUM_OF_PCIE_ADDR_DEC_ERR_CAUSE ; i++) {
87738776
if (!(intr_cause_data & BIT_ULL(i)))
87748777
continue;
@@ -8781,10 +8784,11 @@ static int gaudi2_print_pcie_addr_dec_info(struct hl_device *hdev, u16 event_typ
87818784
* Always check for LBW and HBW additional info as the indication itself is
87828785
* sometimes missing
87838786
*/
8784-
hl_check_for_glbl_errors(hdev);
8785-
gaudi2_print_pcie_mstr_rr_mstr_if_razwi_info(hdev, event_mask);
87868787
}
87878788

8789+
hl_check_for_glbl_errors(hdev);
8790+
gaudi2_print_pcie_mstr_rr_mstr_if_razwi_info(hdev, event_mask);
8791+
87888792
return error_count;
87898793
}
87908794

0 commit comments

Comments
 (0)