diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c index b2d6230d..5d7ee84d 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | |||
@@ -796,6 +796,9 @@ static void gr_gp10b_remove_sysfs(struct device *dev) | |||
796 | { | 796 | { |
797 | struct gk20a *g = get_gk20a(dev); | 797 | struct gk20a *g = get_gk20a(dev); |
798 | 798 | ||
799 | if (!g->ecc.gr.sm_lrf_single_err_count.counters) | ||
800 | return; | ||
801 | |||
799 | gr_gp10b_ecc_stat_remove(dev, | 802 | gr_gp10b_ecc_stat_remove(dev, |
800 | 0, | 803 | 0, |
801 | &g->ecc.gr.sm_lrf_single_err_count, | 804 | &g->ecc.gr.sm_lrf_single_err_count, |
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c index 9f9d5ee1..df760478 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c | |||
@@ -502,6 +502,9 @@ static void gr_gv11b_remove_sysfs(struct device *dev) | |||
502 | { | 502 | { |
503 | struct gk20a *g = get_gk20a(dev); | 503 | struct gk20a *g = get_gk20a(dev); |
504 | 504 | ||
505 | if (!g->ecc.gr.sm_l1_tag_corrected_err_count.counters) | ||
506 | return; | ||
507 | |||
505 | gr_gp10b_ecc_stat_remove(dev, | 508 | gr_gp10b_ecc_stat_remove(dev, |
506 | 0, | 509 | 0, |
507 | &g->ecc.gr.sm_l1_tag_corrected_err_count, | 510 | &g->ecc.gr.sm_l1_tag_corrected_err_count, |