mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
93fde3b573c6988b24d8cca189ecb5a4fd17a50f
Android builds don't have CONFIG_NUMA enabled hence /sys/devices/system/node/node0/meminfo is not present on android. While nvscibuf calls the QueryHeapParams to check presence of the hugetlbfs based carveout, the error prints will be seen due to absence of the above sysfs file. Hence first check whethere there are multiple numa nodes are not. If not, then use /proc/meminfo file to retrieve the hugetlbfs size otherwise use the meminfo sysfs node from the corresponding numa node. Bug 5200644 Change-Id: I5495de91726d323210807e86f22757b798226fca Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3338255 Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Jian-Min Liu <jianminl@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Description
No description provided