habanalabs: fix mask to obtain page offset
authorOhad Sharabi <osharabi@habana.ai>
Wed, 2 Jun 2021 21:24:32 +0000 (00:24 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:41 +0000 (15:23 +0300)
commit0f37510ca34848718db1003479bb4671e8f3c112
tree7ab32ce2bf8d97ed6303baebdf02f187baed2d91
parent6a785e368a675008dc7a09938480a07ac1aa8956
habanalabs: fix mask to obtain page offset

When converting virtual address to physical we need to add correct
offset to the physical page.

For this we need to use mask that include ALL bits of page offset.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/mmu/mmu.c