habanalabs: fix user mappings calculation in case of page fault
authorDani Liberman <dliberman@habana.ai>
Wed, 19 Oct 2022 17:24:55 +0000 (20:24 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 23 Nov 2022 14:13:43 +0000 (16:13 +0200)
commit6bcb2d05a59b3534821a194f8642808ae56f2d10
tree64762b94dd3697286e40d5951145b128b4324edc
parent5ad06bb1d2c073c8b071016226fb9ebe2163e660
habanalabs: fix user mappings calculation in case of page fault

As there are 2 types of user mappings, pmmu and hmmu, calculate
only the relevant mappings for the requested type.

Signed-off-by: Dani Liberman <dliberman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c