mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Add support for numa aware nvmap heaps: - Add carveout node for gpu1 which is gpu carveout on numa node 1. - Add numa_node_id property in nvmap_heap and nvmap platform carveout structures to hold numa id info i.e. numa node on which this heap is created. - gpu0 and gpu1 would have same heap bit but different numa node ids. - Update buffer allocation function: If user specify the allocate from a particular numa node instance of the heap, then allocate from that particular instance. By default input to numa node id is NUMA_NO_NODE, so in this case, iterate over heaps on all numa nodes to satisfy the allocation request e.g. if user specify to allocate from gpu carveout without specifying any particular numa node, then iterate over all gpu carveouts on all numa nodes, whichever has sufficient free memory, allocate from thatheap instance. - Update debugfs functions to pass heap type and numa id, so that debugfs info is fetched from correct heap instance. Bug 4231517 Change-Id: I77ba4b626546003ea3c40d09351d832100596d9a Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3003219 Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>