gpu: nvgpu: Avoid err_inj CB registration for dGPU

Error injection is not supported on dGPU and dGPU's probe should not
attempt any error injection callback function registration.
Disable NvGPU's error injection support on dGPU by checking
CONFIG_NVGPU_DGPU.

Bug 3703060

Change-Id: Ie6f5af2636396e51000e8c2553d4e58a61c902d6
Signed-off-by: Tejal Kudav <tkudav@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2739265
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Kasinadha Dendukuri <kdendukuri@nvidia.com>
Reviewed-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Reviewed-by: Chandra Meduri <msekhar@nvidia.com>
Tested-by: Kasinadha Dendukuri <kdendukuri@nvidia.com>
This commit is contained in:
Tejal Kudav
2022-07-04 19:03:50 +00:00
committed by Chandra Meduri
parent 494dc19ee8
commit 5828594de1

View File

@@ -199,9 +199,11 @@ endif
ifeq ($(CONFIG_TEGRA_HSIERRRPTINJ),y) ifeq ($(CONFIG_TEGRA_HSIERRRPTINJ),y)
ifeq ($(CONFIG_NVGPU_ENABLE_MISC_EC),y) ifeq ($(CONFIG_NVGPU_ENABLE_MISC_EC),y)
ifeq ($(CONFIG_NVGPU_DGPU),n)
CONFIG_NVGPU_FSI_ERR_INJECTION := y CONFIG_NVGPU_FSI_ERR_INJECTION := y
endif endif
endif endif
endif
ifeq ($(CONFIG_GK20A_PMU),y) ifeq ($(CONFIG_GK20A_PMU),y)
ccflags-y += -DCONFIG_GK20A_PMU ccflags-y += -DCONFIG_GK20A_PMU