From 152d37e1632e55b137bbe6ee9785f4b2a02e5007 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Mon, 3 Jul 2023 21:36:57 +0100 Subject: [PATCH] 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 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 GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/Makefile.linux.configs | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/nvgpu/Makefile.linux.configs b/drivers/gpu/nvgpu/Makefile.linux.configs index dc2608621..97431350a 100644 --- a/drivers/gpu/nvgpu/Makefile.linux.configs +++ b/drivers/gpu/nvgpu/Makefile.linux.configs @@ -52,6 +52,7 @@ CONFIG_TEGRA_NVMAP_NEXT := m ifeq ($(CONFIG_TEGRA_VIRTUALIZATION),y) CONFIG_TEGRA_GR_VIRTUALIZATION := y ccflags-y += -DCONFIG_TEGRA_GR_VIRTUALIZATION +ccflags-y += -DCONFIG_TEGRA_VIRTUALIZATION endif endif