accel/habanalabs: upon DMA errors, use FW-extracted error cause
authorKoby Elbaz <kelbaz@habana.ai>
Tue, 2 May 2023 14:28:56 +0000 (17:28 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 8 Jun 2023 09:35:55 +0000 (12:35 +0300)
commitb2d61fecb443c10f116fa00a1b9b5677a5822e52
tree6f4ea8fa67c48f673290c9d461ee05b0d9419c10
parentadda800c049a4580aaec4d710a9972cdad5b14e3
accel/habanalabs: upon DMA errors, use FW-extracted error cause

Initially, the driver used to read the error cause data directly from
the ASIC. However, the FW now clears it before the driver could read
it. Therefore we should use the error cause data that is extracted by
the FW.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2.c