accel/habanalabs: fix access error clear event
authorDani Liberman <dliberman@habana.ai>
Thu, 23 Mar 2023 17:40:22 +0000 (19:40 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sat, 8 Apr 2023 07:39:33 +0000 (10:39 +0300)
The register which needs to be cleared is the valid register instead
of the address.

Signed-off-by: Dani Liberman <dliberman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2.c

index edcbda3d9b408c912cec7282fa3ed7c160e0e1ec..bace4ac998e0b47c2bf305ac809f13ccc2cb5524 100644 (file)
@@ -8884,7 +8884,7 @@ static void gaudi2_handle_access_error(struct hl_device *hdev, u64 mmu_base, boo
 
        dev_err_ratelimited(hdev->dev, "%s access error on va 0x%llx\n",
                                is_pmmu ? "PMMU" : "HMMU", addr);
-       WREG32(mmu_base + MMU_OFFSET(mmDCORE0_HMMU0_MMU_ACCESS_ERROR_CAPTURE), 0);
+       WREG32(mmu_base + MMU_OFFSET(mmDCORE0_HMMU0_MMU_ACCESS_PAGE_ERROR_VALID), 0);
 }
 
 static int gaudi2_handle_mmu_spi_sei_generic(struct hl_device *hdev, u16 event_type,