Commit 8a20b381 authored by Ofir Bitton's avatar Ofir Bitton Committed by Oded Gabbay
Browse files

accel/habanalabs: fix bug of not fetching addr_dec info



addr_dec info should always be fetched, regardless of cause value.

Signed-off-by: default avatarOfir Bitton <obitton@habana.ai>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 92a3a9b1
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -8769,6 +8769,9 @@ static int gaudi2_print_pcie_addr_dec_info(struct hl_device *hdev, u16 event_typ
	u32 error_count = 0;
	int i;

	gaudi2_print_event(hdev, event_type, true,
		"intr_cause_data: %#llx", intr_cause_data);

	for (i = 0 ; i < GAUDI2_NUM_OF_PCIE_ADDR_DEC_ERR_CAUSE ; i++) {
		if (!(intr_cause_data & BIT_ULL(i)))
			continue;
@@ -8781,9 +8784,10 @@ static int gaudi2_print_pcie_addr_dec_info(struct hl_device *hdev, u16 event_typ
		 * Always check for LBW and HBW additional info as the indication itself is
		 * sometimes missing
		 */
	}

	hl_check_for_glbl_errors(hdev);
	gaudi2_print_pcie_mstr_rr_mstr_if_razwi_info(hdev, event_mask);
	}

	return error_count;
}