summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/include/goya
diff options
context:
space:
mode:
authorTomer Tayar2019-06-16 15:48:29 +0200
committerOded Gabbay2019-06-16 15:48:29 +0200
commit4a0ce7764b09044fdb5f92dcf03ec5d8657296f4 (patch)
tree009d171c57d8625736a2709c9fe30c45a02666a8 /drivers/misc/habanalabs/include/goya
parenthabanalabs: add WARN in case of bad MMU mapping (diff)
downloadkernel-qcow2-linux-4a0ce7764b09044fdb5f92dcf03ec5d8657296f4.tar.gz
kernel-qcow2-linux-4a0ce7764b09044fdb5f92dcf03ec5d8657296f4.tar.xz
kernel-qcow2-linux-4a0ce7764b09044fdb5f92dcf03ec5d8657296f4.zip
habanalabs: Allow accessing host mapped addresses via debugfs
Allows using the addr/data32 debugfs nodes to access a device VA of a host mapped memory when the IOMMU is disabled. Due to the possible large amount of a user host mapped memory, the driver doesn't maintain a database with the host addresses per device VA. When the IOMMU is disabled, this missing info is being overcome by simply using phys_to_virt(). However, this is not useful when the IOMMU is enabled, and thus the enforced limitation. Signed-off-by: Tomer Tayar <ttayar@habana.ai> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/include/goya')
0 files changed, 0 insertions, 0 deletions