accel/habanalabs: in {e/p}dma_core events read the err cause reg
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Thu, 9 Mar 2023 09:27:26 +0000 (11:27 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 20 Mar 2023 15:35:30 +0000 (17:35 +0200)
commit5d8a5f29658716348c625836a6bfdad6929db224
tree9b2f38a1ad9ad7deeb9dcd71ed295828a0220a6a
parentf8d139a71b430938f0cc9c0ed026830ca7706446
accel/habanalabs: in {e/p}dma_core events read the err cause reg

Since the err_cause register is unprivileged, we should read it from
the driver instead of using the param that came from the FW.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2.c