From 0c3a9632751423a7602861b5caa77f17630f4cb7 Mon Sep 17 00:00:00 2001 From: vinodg Date: Fri, 6 Dec 2019 11:11:07 -0800 Subject: [PATCH] gpu: nvgpu: update on gr.ecc subunit code Change a check from CONFIG_NVGPU_NON_FUSA to CONFIG_NVGPU_DGPU as the gpccount is more than 1 for DGPU and this code need to be executed for DGPU. Jira NVGPU-4460 Change-Id: I806c926cd787c787ac8a04f998602edcae5419b8 Signed-off-by: vinodg Reviewed-on: https://git-master.nvidia.com/r/2257036 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: svc-mobile-cert Reviewed-by: Seshendra Gadagottu Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/gr/gr_ecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/common/gr/gr_ecc.c b/drivers/gpu/nvgpu/common/gr/gr_ecc.c index bdad8a6c2..de47b9e00 100644 --- a/drivers/gpu/nvgpu/common/gr/gr_ecc.c +++ b/drivers/gpu/nvgpu/common/gr/gr_ecc.c @@ -91,7 +91,7 @@ int nvgpu_ecc_counter_init_per_tpc(struct gk20a *g, fail: if (err != 0) { -#ifdef CONFIG_NVGPU_NON_FUSA +#ifdef CONFIG_NVGPU_DGPU while (gpc-- != 0u) { nvgpu_kfree(g, stats[gpc]); }