OSDN Git Service

accel/habanalabs: mask part of hmmu page fault captured address
authorDani Liberman <dliberman@habana.ai>
Mon, 8 May 2023 08:06:17 +0000 (11:06 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 8 Jun 2023 09:35:56 +0000 (12:35 +0300)
commit5d658d0c5137f709e9888f2f3687afbde38b5ac0
tree761486e157d12d5961e244f0f328e1dd672399af
parent7e63f317c0c3eb72e745ce3509299800ef54d6de
accel/habanalabs: mask part of hmmu page fault captured address

When receiving page fault from hmmu, the captured address is scrambled
both by HW and by driver. The driver part is unscrambled but the HW
part isn't getting unscrambled.
To avoid declaring wrong address, the HW scrambled part will be
masked.

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