summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/ecc_gk20a.h6
-rw-r--r--drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
index 1628cf8c..ec8ee19b 100644
--- a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
@@ -50,6 +50,12 @@ struct ecc_gk20a {
50#endif 50#endif
51 } ltc; 51 } ltc;
52 52
53 struct {
54#ifdef CONFIG_TEGRA_19x_GPU
55 struct ecc_eng_t19x t19x;
56#endif
57 } eng;
58
53}; 59};
54 60
55#endif /*__ECC_GK20A_H__*/ 61#endif /*__ECC_GK20A_H__*/
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
index 971ef66a..a2878c8b 100644
--- a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
@@ -494,6 +494,8 @@ static ssize_t ecc_stat_show(struct device *dev,
494 ecc_stat_base_name = &(ecc_stat_full_name[strlen("gpc0_tpc0_")]); 494 ecc_stat_base_name = &(ecc_stat_full_name[strlen("gpc0_tpc0_")]);
495 } else if (sscanf(ecc_stat_full_name, "gpc%u", &hw_unit) == 1) { 495 } else if (sscanf(ecc_stat_full_name, "gpc%u", &hw_unit) == 1) {
496 ecc_stat_base_name = &(ecc_stat_full_name[strlen("gpc0_")]); 496 ecc_stat_base_name = &(ecc_stat_full_name[strlen("gpc0_")]);
497 } else if (sscanf(ecc_stat_full_name, "eng%u", &hw_unit) == 1) {
498 ecc_stat_base_name = &(ecc_stat_full_name[strlen("eng0_")]);
497 } else { 499 } else {
498 return snprintf(buf, 500 return snprintf(buf,
499 PAGE_SIZE, 501 PAGE_SIZE,