]> asedeno.scripts.mit.edu Git - linux.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)
commitbfb1ce1259ca201b50aa4ab5ec7e19266ef46896
treebb03af46b6b31604314a5666ea314794eb08db38
parent8c2ffd9174779014c3fe1f96d9dc3641d9175f00
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