accel/habanalabs: unmap mapped memory when TLB inv fails
authorKoby Elbaz <kelbaz@habana.ai>
Wed, 8 Mar 2023 15:53:39 +0000 (17:53 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Sat, 8 Apr 2023 07:39:33 +0000 (10:39 +0300)
commit6c31c13759272818108a329f166d86846d0e3f7a
tree321a0bcb946bcb5e2945f37efeb6e21bff41d0be
parent248ed9e227e6cf59acb1aaf3aa30d530a0232c1a
accel/habanalabs: unmap mapped memory when TLB inv fails

Once a memory mapping is added to the page tables, it's followed by
a TLB invalidation request which could potentially fail (HW failure).
Removing the mapping is simply a part of this failure handling routine.
TLB invalidation failure prints were updated to be more accurate.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
drivers/accel/habanalabs/common/command_buffer.c
drivers/accel/habanalabs/common/mmu/mmu.c