mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
vidmem buffers are using fd as buffer handles and we need to allocate more than 1024 fds. tegra_alloc_fd was exported by TEGRA_MC driver that allowed allocating more than 1024 fds, however that function is to be removed from that driver. Hence use now kernel exported function __alloc_fd directly from nvgpu. This is currently to be used only for dgpu on downstream kernel 5.10. Bug 3535321 Change-Id: I10cfc41a6439f07309cda9eb2f22746f3fbac996 Signed-off-by: Dinesh T <dt@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2702794 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Sagar Kamble <skamble@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Tested-by: Sagar Kamble <skamble@nvidia.com> GVS: Gerrit_Virtual_Submit