Skip to content

Commit d0dcd4b

Browse files
ofirbittogabbay
authored andcommitted
accel/habanalabs: always fetch pci addr_dec error info
Due to missing indication of address decode source (LBW/HBW bus), we should always try and fetch extended information. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
1 parent 7d21296 commit d0dcd4b

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

drivers/accel/habanalabs/gaudi2/gaudi2.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8892,14 +8892,12 @@ static int gaudi2_print_pcie_addr_dec_info(struct hl_device *hdev, u16 event_typ
88928892
"err cause: %s", gaudi2_pcie_addr_dec_error_cause[i]);
88938893
error_count++;
88948894

8895-
switch (intr_cause_data & BIT_ULL(i)) {
8896-
case PCIE_WRAP_PCIE_IC_SEI_INTR_IND_AXI_LBW_ERR_INTR_MASK:
8897-
hl_check_for_glbl_errors(hdev);
8898-
break;
8899-
case PCIE_WRAP_PCIE_IC_SEI_INTR_IND_BAD_ACCESS_INTR_MASK:
8900-
gaudi2_print_pcie_mstr_rr_mstr_if_razwi_info(hdev, event_mask);
8901-
break;
8902-
}
8895+
/*
8896+
* Always check for LBW and HBW additional info as the indication itself is
8897+
* sometimes missing
8898+
*/
8899+
hl_check_for_glbl_errors(hdev);
8900+
gaudi2_print_pcie_mstr_rr_mstr_if_razwi_info(hdev, event_mask);
89038901
}
89048902

89058903
return error_count;

0 commit comments

Comments
 (0)