mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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
(cherry picked from commit 152b4a0379)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2725979
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Jonathan Hunter <jonathanh@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
09da6eb397
commit
2f3c1adad4
@@ -44,6 +44,12 @@ CONFIG_NVGPU_MIG := y
|
||||
# Enable gv11b support
|
||||
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.
|
||||
ifeq ($(CONFIG_NVGPU_COMPRESSION),y)
|
||||
CONFIG_NVGPU_SUPPORT_CDE := y
|
||||
@@ -117,9 +123,17 @@ ifneq ($(findstring stable,$(NV_BUILD_KERNEL_OPTIONS)),)
|
||||
CONFIG_NVGPU_NVMEM_FUSE := y
|
||||
endif
|
||||
|
||||
# Set CONFIG_NVGPU_IVM_BUILD for non-stable and non-oot build
|
||||
ifeq ($(findstring stable,$(NV_BUILD_KERNEL_OPTIONS)),)
|
||||
ifneq ($(CONFIG_TEGRA_OOT_MODULE),m)
|
||||
CONFIG_NVGPU_IVM_BUILD := y
|
||||
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.
|
||||
ifeq ($(CONFIG_PCI),y)
|
||||
@@ -186,6 +200,12 @@ 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)
|
||||
ccflags-y += -DCONFIG_GK20A_PMU
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user