]> 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)
commit56c2a51fe2ed48429c87522b7a277fbe48eb19b8
treebb03af46b6b31604314a5666ea314794eb08db38
parentb85d83bae525031a6bd85f15b7d05f521f7900d2
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