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 <rizhao@nvidia.com>
Change-Id: Ic0e749608cf4426f0fb1210b21a6d4a4c6a6068d
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2663781
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Richard Zhao
2022-02-03 16:33:10 -08:00
committed by mobile promotions
parent 3e4fb49270
commit d07b0be8af

View File

@@ -691,7 +691,6 @@ srcs += common/sec2/sec2.c \
hal/init/hal_tu104.c \ hal/init/hal_tu104.c \
hal/init/hal_tu104_litter.c \ hal/init/hal_tu104_litter.c \
hal/power_features/cg/tu104_gating_reglist.c \ hal/power_features/cg/tu104_gating_reglist.c \
hal/ltc/ltc_tu104.c \
hal/fb/fb_gv100.c \ hal/fb/fb_gv100.c \
hal/fb/fb_tu104.c \ hal/fb/fb_tu104.c \
hal/fb/fb_mmu_fault_tu104.c \ hal/fb/fb_mmu_fault_tu104.c \
@@ -723,17 +722,18 @@ srcs += common/sec2/sec2.c \
hal/top/top_gv100.c \ hal/top/top_gv100.c \
hal/xve/xve_gp106.c \ hal/xve/xve_gp106.c \
hal/xve/xve_tu104.c hal/xve/xve_tu104.c
endif
ifeq ($(CONFIG_NVGPU_COMPRESSION),1) ifeq ($(CONFIG_NVGPU_COMPRESSION),1)
srcs += hal/cbc/cbc_tu104.c srcs += hal/cbc/cbc_tu104.c
endif endif
endif
srcs += hal/gr/init/gr_init_tu104.c \ srcs += hal/gr/init/gr_init_tu104.c \
hal/class/class_tu104.c \ hal/class/class_tu104.c \
hal/mc/mc_tu104.c \ hal/mc/mc_tu104.c \
hal/fifo/usermode_tu104.c \ hal/fifo/usermode_tu104.c \
hal/gr/falcon/gr_falcon_tu104.c \ hal/gr/falcon/gr_falcon_tu104.c \
hal/ltc/ltc_tu104.c \
ifeq ($(CONFIG_NVGPU_SIM),1) ifeq ($(CONFIG_NVGPU_SIM),1)
srcs += common/sim/sim.c \ srcs += common/sim/sim.c \