accel/ivpu: Extend address range for MMU mmap
authorWludzik, Jozef <jozef.wludzik@intel.com>
Wed, 18 Oct 2023 11:01:13 +0000 (13:01 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Thu, 19 Oct 2023 06:01:20 +0000 (08:01 +0200)
commit8f5ad367e8b884772945c6c9fb622ac94b7d3e32
tree510c637f3afb76bac2790d27261a9828dc27173a
parent610b5d219d1ccac8064556310cc0e62e3c202389
accel/ivpu: Extend address range for MMU mmap

Allow to use whole address range in MMU context mmap which is up to 48
bits. Return invalid argument from MMU context mmap in case address is
not aligned to MMU page size, address is below MMU page size or address
is greater then 47 bits.

This fixes problem disallowing to run large models on VPU4

Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231018110113.547208-1-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_mmu_context.c