summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Nieto <dmartineznie@nvidia.com>2017-05-22 19:39:28 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-04 23:34:57 -0400
commit651f970d1cfd82ef4112bef86357e3521b0d0588 (patch)
tree1ee00cfb32ae6282d692928e9e371570b1e1c907 /drivers
parent96cf9748a776e06ae9d9827b5e9adc58a6c25d80 (diff)
gpu: nvgpu: chip specific L2 ECC error support
Adding support for handling of chip specific ECC memory errors JIRA: GPUT19X-112 Change-Id: I1c04ac1d5233c332b300540eade1b73527c46ff7 Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1489020 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ecc_gk20a.h7
-rw-r--r--drivers/gpu/nvgpu/gp10b/ecc_gp10b.h2
-rw-r--r--drivers/gpu/nvgpu/gp10b/ltc_gp10b.c2
-rw-r--r--drivers/gpu/nvgpu/gp10b/ltc_gp10b.h1
4 files changed, 10 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
index 8ba01226..1628cf8c 100644
--- a/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/ecc_gk20a.h
@@ -43,6 +43,13 @@ struct ecc_gk20a {
43 struct ecc_gr_t19x t19x; 43 struct ecc_gr_t19x t19x;
44#endif 44#endif
45 } gr; 45 } gr;
46
47 struct {
48#ifdef CONFIG_TEGRA_19x_GPU
49 struct ecc_ltc_t19x t19x;
50#endif
51 } ltc;
52
46}; 53};
47 54
48#endif /*__ECC_GK20A_H__*/ 55#endif /*__ECC_GK20A_H__*/
diff --git a/drivers/gpu/nvgpu/gp10b/ecc_gp10b.h b/drivers/gpu/nvgpu/gp10b/ecc_gp10b.h
index 454dcb20..c4a6c08e 100644
--- a/drivers/gpu/nvgpu/gp10b/ecc_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/ecc_gp10b.h
@@ -16,7 +16,7 @@
16#ifndef _NVGPU_ECC_GP10B_H_ 16#ifndef _NVGPU_ECC_GP10B_H_
17#define _NVGPU_ECC_GP10B_H_ 17#define _NVGPU_ECC_GP10B_H_
18 18
19#include <linux/version.h> 19struct gk20a_ecc_stat;
20 20
21struct ecc_gr_t18x { 21struct ecc_gr_t18x {
22 struct gk20a_ecc_stat sm_lrf_single_err_count; 22 struct gk20a_ecc_stat sm_lrf_single_err_count;
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
index 5cf5a644..b3026059 100644
--- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
@@ -123,7 +123,7 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
123 return 0; 123 return 0;
124} 124}
125 125
126static void gp10b_ltc_isr(struct gk20a *g) 126void gp10b_ltc_isr(struct gk20a *g)
127{ 127{
128 u32 mc_intr, ltc_intr; 128 u32 mc_intr, ltc_intr;
129 unsigned int ltc, slice; 129 unsigned int ltc, slice;
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.h b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.h
index 7408348e..d7571c8d 100644
--- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.h
@@ -15,5 +15,6 @@
15#define LTC_GP10B_H 15#define LTC_GP10B_H
16struct gpu_ops; 16struct gpu_ops;
17 17
18void gp10b_ltc_isr(struct gk20a *g);
18void gp10b_init_ltc(struct gpu_ops *gops); 19void gp10b_init_ltc(struct gpu_ops *gops);
19#endif 20#endif