diff options
author | Ofir Bitton <obitton@habana.ai> | 2020-12-31 12:00:55 +0200 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-01-27 21:03:49 +0200 |
commit | 6769cea8de590920c95603c4f3ce063e38033423 (patch) | |
tree | 7a97ce662c2b296836021b61df7aa9ede4461c3b /drivers/misc/habanalabs/include | |
parent | b19dc67aa8c008661b10b1c2372a29f403bf5dac (diff) | |
download | linux-6769cea8de590920c95603c4f3ce063e38033423.tar.bz2 |
habanalabs: report correct dram size in info ioctl
In case MMU is enabled, we must take MMU page size into
consideration when reporting dram size to the user.
This is because the MMU page size can be a value which is NOT
a power-of-2 value. As a result, the total DRAM size (which is always
a power-of-2 value) needed to be rounded-down.
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/include')
0 files changed, 0 insertions, 0 deletions