mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: Define CONFIG_TEGRA_VIRTUALIZATION ccflag
When building NVGPU with virtualization enabled, we need to ensure that the ccflag CONFIG_TEGRA_VIRTUALIZATION is defined. The Tegra HV driver is only compiled when CONFIG_TEGRA_VIRTUALIZATION is defined. When NVGPU is compiled without defining CONFIG_TEGRA_VIRTUALIZATION, then function stubs in the header file "soc/tegra/virt/hv-ivc.h" will be used and these stubs will return an error when called causing virtualization to fail. Bug 4159372 Bug 4170085 Change-Id: Iab3cd47e25e086e31f8cc3337c0a732645ed4a7a Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2930315 (cherry picked from commit 6aa1600cb5b4b6ea783188c6d9e4cc56eedc17ea) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2931658 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
44827be1e4
commit
152d37e163
@@ -52,6 +52,7 @@ CONFIG_TEGRA_NVMAP_NEXT := m
|
|||||||
ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)
|
ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y)
|
||||||
CONFIG_TEGRA_GR_VIRTUALIZATION := y
|
CONFIG_TEGRA_GR_VIRTUALIZATION := y
|
||||||
ccflags-y += -DCONFIG_TEGRA_GR_VIRTUALIZATION
|
ccflags-y += -DCONFIG_TEGRA_GR_VIRTUALIZATION
|
||||||
|
ccflags-y += -DCONFIG_TEGRA_VIRTUALIZATION
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user