linux/drivers/misc/habanalabs
farah kassabri 15097e9338 habanalabs: fix debugfs address translation
when user uses virtual addresses to access dram through debugfs,
driver translate this address to physical and use it
for the access through the pcie bar.
in case dram page size is different than the dmmu
page size, we need to have special treatment
for adding the page offset to the actual address, which
is to use the dram page size mask to fetch the page offset
from the virtual address, instead of the dmmu last hop shift.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2021-03-10 09:16:09 +01:00
..
common habanalabs: fix debugfs address translation 2021-03-10 09:16:09 +01:00
gaudi habanalabs/gaudi: don't enable clock gating on DMA5 2021-02-08 18:20:08 +02:00
goya habanalabs: return block size + block ID 2021-02-08 18:20:08 +02:00
include habanalabs: improve communication protocol with cpucp 2021-02-08 18:20:08 +02:00
Kconfig misc/habana: Stop using frame_vector helpers 2021-01-12 14:14:53 +01:00
Makefile habanalabs: create common folder 2020-07-24 20:31:37 +03:00