mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: fix CONFIG_NVGPU_NVMAP_NEXT definition
CONFIG_NVGPU_NVMAP_NEXT was defined for all kernels except 4.9. However, Android builds nvgpu without NV_BUILD_KERNEL_OPTIONS set and it fails while looking for definitions of the functions nvmap_dma_alloc_attrs and nvmap_dma_free_attrs. Define it for kstable if CONFIG_TEGRA_NVMAP_NEXT is set and define it for kernel 5.10 (downstream) explicitly. Bug 3445216 Change-Id: If73ca56cfc5668d6e318f470b31d999d663a4483 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2654677 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Kevin Kuo (SW-GPU) <kevkuo@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: Ashish Mhetre <amhetre@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
6935867a5e
commit
8834d598e4
@@ -94,9 +94,11 @@ CONFIG_TEGRA_GK20A_NVHOST := y
|
||||
CONFIG_TEGRA_GK20A_NVHOST_HOST1X := y
|
||||
endif
|
||||
|
||||
ifneq ($(findstring 4.9,$(NV_BUILD_KERNEL_OPTIONS)),)
|
||||
CONFIG_NVGPU_NVMAP_NEXT := n
|
||||
else
|
||||
ifdef CONFIG_TEGRA_NVMAP_NEXT
|
||||
CONFIG_NVGPU_NVMAP_NEXT := y
|
||||
endif
|
||||
|
||||
ifneq ($(findstring 5.10,$(NV_BUILD_KERNEL_OPTIONS)),)
|
||||
CONFIG_NVGPU_NVMAP_NEXT := y
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user