mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
a588f61b8e6bf7a3180685cffc1beb5f00dac4ce
NvMap is using bitmap_allocate_region while doing allocation from IVM carveout. It expects size to be always power of 2, this is resulting into memory shortage. Better way to handle this is to use the function bitmap_find_next_zero_area which expects bitmap size rather than order. Then use bitmap_set to set the allocated bits from the bitmap. Similarly, while freeing the buffer, use bitmap_clear instead of bitmap_release_region. Bug 3923812 Change-Id: I91005d16f678405f341c4fc620509f56af538e1c Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2839848 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Ashish Mhetre <amhetre@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Description
No description provided