aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorfarah kassabri <[email protected]>2021-02-28 11:06:14 +0200
committerGreg Kroah-Hartman <[email protected]>2021-03-10 09:16:09 +0100
commit15097e9338ed3de2f5c5904d3dc776ef1b650edc (patch)
treeb066cf89150040287d3c8330c4ef97cf8f8b76f2 /lib/mpi/mpiutil.c
parentffd123fe839700366ea79b19ac3683bf56817372 (diff)
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 <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions