]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2dfbbfea3bafd2e00f46f2f95ef744b060e3f34
tree4a7902df2f6ef5e6a3850fbd050a177f12c266ea
parent676800fa34ef2c6ffabef53a0af85234334f8b59
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