gpu: nvgpu: Add OOT kernel build support

Add OOT kernel support same as kstable for building nvgpu
as module.

Bug 3642168

Change-Id: I7353275a6c5e487773b716e23610b22e2dc5780d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2710918
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Laxman Dewangan
2022-05-11 08:57:25 +00:00
committed by mobile promotions
parent 7d50efb6bc
commit 152b4a0379

View File

@@ -44,6 +44,12 @@ CONFIG_NVGPU_MIG := y
# Enable gv11b support # Enable gv11b support
CONFIG_NVGPU_SUPPORT_GV11B := y CONFIG_NVGPU_SUPPORT_GV11B := y
# Set config for OOT module build
ifeq ($(CONFIG_TEGRA_OOT_MODULE),m)
CONFIG_TEGRA_HOST1X_NEXT := m
CONFIG_TEGRA_NVMAP_NEXT := m
endif
# Enable support for extraction of comptags for CDE. # Enable support for extraction of comptags for CDE.
ifeq ($(CONFIG_NVGPU_COMPRESSION),y) ifeq ($(CONFIG_NVGPU_COMPRESSION),y)
CONFIG_NVGPU_SUPPORT_CDE := y CONFIG_NVGPU_SUPPORT_CDE := y
@@ -117,9 +123,17 @@ ifneq ($(findstring stable,$(NV_BUILD_KERNEL_OPTIONS)),)
CONFIG_NVGPU_NVMEM_FUSE := y CONFIG_NVGPU_NVMEM_FUSE := y
endif endif
# Set CONFIG_NVGPU_IVM_BUILD for non-stable and non-oot build
ifeq ($(findstring stable,$(NV_BUILD_KERNEL_OPTIONS)),) ifeq ($(findstring stable,$(NV_BUILD_KERNEL_OPTIONS)),)
ifneq ($(CONFIG_TEGRA_OOT_MODULE),m)
CONFIG_NVGPU_IVM_BUILD := y CONFIG_NVGPU_IVM_BUILD := y
endif endif
endif
# Set config for OOT module build
ifeq ($(CONFIG_TEGRA_OOT_MODULE),m)
CONFIG_NVGPU_NVMEM_FUSE := y
endif
# Enable support for GPUs on PCIe bus. # Enable support for GPUs on PCIe bus.
ifeq ($(CONFIG_PCI),y) ifeq ($(CONFIG_PCI),y)
@@ -186,6 +200,12 @@ endif
endif endif
# Set config for OOT module build
ifeq ($(CONFIG_TEGRA_OOT_MODULE),m)
CONFIG_GK20A_DEVFREQ := n
CONFIG_GK20A_PM_QOS := n
endif
ifeq ($(CONFIG_GK20A_PMU),y) ifeq ($(CONFIG_GK20A_PMU),y)
ccflags-y += -DCONFIG_GK20A_PMU ccflags-y += -DCONFIG_GK20A_PMU
endif endif