]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/misc/habanalabs/command_submission.c
habanalabs: fix host memory polling in BE architecture
authorBen Segal <bpsegal20@gmail.com>
Thu, 18 Jul 2019 12:27:00 +0000 (12:27 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 29 Jul 2019 08:40:25 +0000 (11:40 +0300)
commit2aa4e410795cb94b6577fe0e251b5f5226499310
tree57656c4a0dae4087174511eb9108b461bb2f0a3d
parent75035fe22b808a520e1d712ebe913684ba406e01
habanalabs: fix host memory polling in BE architecture

This patch fix a bug in the host memory polling macro. The bug is that the
memory being polled can be written by the device, which always writes it
in LE. However, if the host is running Linux in BE mode, we need to
convert the value that was written by the device before matching it to the
required value that the caller has given to the macro.

Signed-off-by: Ben Segal <bpsegal20@gmail.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/command_submission.c
drivers/misc/habanalabs/firmware_if.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/habanalabs.h