Skip to content

Commit 3bf6ef9

Browse files
ofirbittogabbay
authored andcommitted
accel/habanalabs/gaudi2: drain event lacks rd/wr indication
Due to a H/W issue, AXI drain event does not include a read/write indication, hence we remove this print. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
1 parent fd8d2fa commit 3bf6ef9

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

drivers/accel/habanalabs/gaudi2/gaudi2.c

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9589,25 +9589,17 @@ static int gaudi2_handle_pcie_p2p_msix(struct hl_device *hdev, u16 event_type)
95899589
static int gaudi2_handle_pcie_drain(struct hl_device *hdev,
95909590
struct hl_eq_pcie_drain_ind_data *drain_data)
95919591
{
9592-
u64 lbw_rd, lbw_wr, hbw_rd, hbw_wr, cause, error_count = 0;
9592+
u64 cause, error_count = 0;
95939593

95949594
cause = le64_to_cpu(drain_data->intr_cause.intr_cause_data);
9595-
lbw_rd = le64_to_cpu(drain_data->drain_rd_addr_lbw);
9596-
lbw_wr = le64_to_cpu(drain_data->drain_wr_addr_lbw);
9597-
hbw_rd = le64_to_cpu(drain_data->drain_rd_addr_hbw);
9598-
hbw_wr = le64_to_cpu(drain_data->drain_wr_addr_hbw);
95999595

96009596
if (cause & BIT_ULL(0)) {
9601-
dev_err_ratelimited(hdev->dev,
9602-
"PCIE AXI drain LBW completed, read_err %u, write_err %u\n",
9603-
!!lbw_rd, !!lbw_wr);
9597+
dev_err_ratelimited(hdev->dev, "PCIE AXI drain LBW completed\n");
96049598
error_count++;
96059599
}
96069600

96079601
if (cause & BIT_ULL(1)) {
9608-
dev_err_ratelimited(hdev->dev,
9609-
"PCIE AXI drain HBW completed, raddr %#llx, waddr %#llx\n",
9610-
hbw_rd, hbw_wr);
9602+
dev_err_ratelimited(hdev->dev, "PCIE AXI drain HBW completed\n");
96119603
error_count++;
96129604
}
96139605

0 commit comments

Comments
 (0)