]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: fix MMU number of pages calculation
authorOmer Shpigelman <oshpigelman@habana.ai>
Tue, 5 Mar 2019 08:59:16 +0000 (10:59 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 5 Mar 2019 08:59:16 +0000 (10:59 +0200)
commit27a5226cac655d37def83d066a1beacb8e23728d
treebb03af46b6b31604314a5666ea314794eb08db38
parent525165e49b28a4616473e397876dd5320cbeb3e0
habanalabs: fix MMU number of pages calculation

The requested allocation size is 64bit, hence the number of requested
pages and the total requested size should 64bit as well.
This patch fixes all places where these are treated as 32bit.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/debugfs.c
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/memory.c