mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
Reduce free memory reported by QueryHeapParams by 0.1% to avoid OOM issues for Iovmm_heap. For the overall free memory reported by the query heap params api, page align it to the previous page to avoid any failures in allocattr due to page align of requested size, when requested size is equal to reported free size. Update allocattr api as well so that it checks the available free memory before allocating. Bug 4719292 Change-Id: I7ecd69216d58c36ee5d0750107546601400e722d Signed-off-by: N V S Abhishek <nabhishek@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3165599 Reviewed-by: Ketan Patil <ketanp@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>