From d07b0be8affb2f883064e4ef3138cf095a83c1ec Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Thu, 3 Feb 2022 16:33:10 -0800 Subject: [PATCH] gpu: nvgpu: move tu104 cbc/ltc files of CONFIG_NVGPU_DGPU hal/cbc/cbc_tu104.c hal/ltc/ltc_tu104.c The patch moves the above files out of CONFIG_NVGPU_DGPU, since the below symbols are also used by iGPU (ga10b for example). tu104_cbc_ctrl tu104_ltc_pri_is_lts_tstg_addr tu104_set_l2_sector_promotion Jira GVSCI-9976 Signed-off-by: Richard Zhao Change-Id: Ic0e749608cf4426f0fb1210b21a6d4a4c6a6068d Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2663781 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/Makefile.sources | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/Makefile.sources b/drivers/gpu/nvgpu/Makefile.sources index 4701c615c..57953ba68 100644 --- a/drivers/gpu/nvgpu/Makefile.sources +++ b/drivers/gpu/nvgpu/Makefile.sources @@ -691,7 +691,6 @@ srcs += common/sec2/sec2.c \ hal/init/hal_tu104.c \ hal/init/hal_tu104_litter.c \ hal/power_features/cg/tu104_gating_reglist.c \ - hal/ltc/ltc_tu104.c \ hal/fb/fb_gv100.c \ hal/fb/fb_tu104.c \ hal/fb/fb_mmu_fault_tu104.c \ @@ -723,17 +722,18 @@ srcs += common/sec2/sec2.c \ hal/top/top_gv100.c \ hal/xve/xve_gp106.c \ hal/xve/xve_tu104.c +endif ifeq ($(CONFIG_NVGPU_COMPRESSION),1) srcs += hal/cbc/cbc_tu104.c endif -endif srcs += hal/gr/init/gr_init_tu104.c \ hal/class/class_tu104.c \ hal/mc/mc_tu104.c \ hal/fifo/usermode_tu104.c \ hal/gr/falcon/gr_falcon_tu104.c \ + hal/ltc/ltc_tu104.c \ ifeq ($(CONFIG_NVGPU_SIM),1) srcs += common/sim/sim.c \