habanalabs: fix debugfs device memory MMU VA translation
authorYuri Nudelman <ynudelman@habana.ai>
Thu, 30 Sep 2021 08:18:01 +0000 (11:18 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 18 Oct 2021 09:05:46 +0000 (12:05 +0300)
commitdd08335fb909e62bd290117f34490ef4e577b554
treea561a18091b8870bfa6baa62a0d182d83826913d
parentd62b9a6976cdac30a3af745de1f935ffe246fcdd
habanalabs: fix debugfs device memory MMU VA translation

The translation in debugfs of device memory MMU virtual addresses was
wrong as it did not take into consideration the fact that the page
sizes there can be not power of 2.

Signed-off-by: Yuri Nudelman <ynudelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/mmu/mmu.c