diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c index dfeba9c4..e1a96e4c 100644 --- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | |||
@@ -524,6 +524,13 @@ void gr_gp10b_create_sysfs(struct platform_device *dev) | |||
524 | int error = 0; | 524 | int error = 0; |
525 | struct gk20a *g = get_gk20a(dev); | 525 | struct gk20a *g = get_gk20a(dev); |
526 | 526 | ||
527 | /* This stat creation function is called on GR init. GR can get | ||
528 | initialized multiple times but we only need to create the ECC | ||
529 | stats once. Therefore, add the following check to avoid | ||
530 | creating duplicate stat sysfs nodes. */ | ||
531 | if (g->gr.t18x.ecc_stats.sm_lrf_single_err_count.counters != NULL) | ||
532 | return; | ||
533 | |||
527 | error |= ecc_stat_create(dev, | 534 | error |= ecc_stat_create(dev, |
528 | 0, | 535 | 0, |
529 | "sm_lrf_ecc_single_err_count", | 536 | "sm_lrf_ecc_single_err_count", |