mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: s/CONFIG_GK20A_PCI/CONFIG_NVGPU_DGPU
Replace the redundant config GK20A_PCI with NVGPU_DGPU. Bug 200658918 Change-Id: Ie1af1c97edf96ff4d16e51170a1200623da88e2e Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2419564 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
992b848ba6
commit
807fbd3654
@@ -81,6 +81,8 @@ obj-$(CONFIG_GK20A) := nvgpu.o
|
||||
|
||||
ifeq ($(CONFIG_NVGPU_DGPU),y)
|
||||
nvgpu-$(CONFIG_NVGPU_DGPU) += \
|
||||
os/linux/pci.o \
|
||||
os/linux/pci_power.o \
|
||||
os/linux/dmabuf_vidmem.o \
|
||||
os/linux/os_ops_gv100.o \
|
||||
os/linux/os_ops_tu104.o \
|
||||
@@ -180,10 +182,6 @@ nvgpu-y += \
|
||||
hal/nvlink/link_mode_transitions_gv100.o \
|
||||
hal/nvlink/link_mode_transitions_tu104.o
|
||||
|
||||
nvgpu-$(CONFIG_GK20A_PCI) += \
|
||||
os/linux/pci.o \
|
||||
os/linux/pci_power.o
|
||||
|
||||
nvgpu-y += \
|
||||
common/device.o \
|
||||
common/utils/enabled.o \
|
||||
|
||||
@@ -72,8 +72,6 @@ endif
|
||||
|
||||
# Enable support for GPUs on PCIe bus.
|
||||
ifeq ($(CONFIG_PCI),y)
|
||||
CONFIG_GK20A_PCI := y
|
||||
|
||||
# Support for NVGPU DGPU
|
||||
CONFIG_NVGPU_DGPU := y
|
||||
endif
|
||||
@@ -187,9 +185,6 @@ endif
|
||||
ifeq ($(CONFIG_TEGRA_GK20A_NVHOST),y)
|
||||
ccflags-y += -DCONFIG_TEGRA_GK20A_NVHOST
|
||||
endif
|
||||
ifeq ($(CONFIG_GK20A_PCI),y)
|
||||
ccflags-y += -DCONFIG_GK20A_PCI
|
||||
endif
|
||||
ifeq ($(CONFIG_NVGPU_DGPU),y)
|
||||
ccflags-y += -DCONFIG_NVGPU_DGPU
|
||||
endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -16,7 +16,7 @@
|
||||
#ifndef NVGPU_PCI_H
|
||||
#define NVGPU_PCI_H
|
||||
|
||||
#ifdef CONFIG_GK20A_PCI
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
int nvgpu_pci_init(void);
|
||||
void nvgpu_pci_exit(void);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user