]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/habanalabs: fix glbl error cause handling
authorTomer Tayar <ttayar@habana.ai>
Thu, 25 Jan 2024 20:59:02 +0000 (22:59 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 26 Feb 2024 07:47:00 +0000 (09:47 +0200)
commite855869bec3fea9f11521a21f419d5a10f4b0c12
treee644f145ff1b3e7fe7a1699e8023b3bed8b01421
parentc1e89ae455282baf69e45b81f04e095716b13cb2
accel/habanalabs: fix glbl error cause handling

The glbl error cause handling has a wrong assumption that all error
bits are consecutive.
Fix the handling to check all relevant error bits per ASIC.

Signed-off-by: Tomer Tayar <ttayar@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>
drivers/accel/habanalabs/common/habanalabs.h
drivers/accel/habanalabs/common/security.c
drivers/accel/habanalabs/common/security.h
drivers/accel/habanalabs/gaudi2/gaudi2.c
drivers/accel/habanalabs/gaudi2/gaudi2P.h