habanalabs: return dram virtual address in info ioctl
authorAlon Mizrahi <amizrahi@habana.ai>
Wed, 23 Dec 2020 15:53:17 +0000 (17:53 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 27 Jan 2021 19:03:49 +0000 (21:03 +0200)
commit9402a3362462d080b998e00ed33fc193c12adbbf
tree4a7902df2f6ef5e6a3850fbd050a177f12c266ea
parent3abe1040ba61a0a7148364ee4b4d969d7afd375b
habanalabs: return dram virtual address in info ioctl

When working with DRAM MMU, we should supply the userspace with the
virtual start address of the DRAM instead of the physical one. This
is because the physical one has no meaning for the user as he only
knows the virtual address range.

Signed-off-by: Alon Mizrahi <amizrahi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs_ioctl.c