habanalabs: always try to use the hint address
authorfarah kassabri <fkassabri@habana.ai>
Mon, 11 Jan 2021 08:10:00 +0000 (10:10 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 27 Jan 2021 19:03:50 +0000 (21:03 +0200)
commit8d79ce162e2b9bc57d8dca814f784654efe179da
tree6ffd8e2bdee371898016c432cdf6a550133a01d2
parenta24ab89001aa4d7a0e6db7078b3870cae8de6681
habanalabs: always try to use the hint address

Currently hint address is ignored in case va block page size
is not power of 2. We need to support th user hint address also in this
case, but only if the hint address is aligned to page size.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/memory.c