From 651f970d1cfd82ef4112bef86357e3521b0d0588 Mon Sep 17 00:00:00 2001 From: David Nieto Date: Mon, 22 May 2017 16:39:28 -0700 Subject: 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 Reviewed-on: http://git-master/r/1489020 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/ecc_gk20a.h | 7 +++++++ drivers/gpu/nvgpu/gp10b/ecc_gp10b.h | 2 +- drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | 2 +- drivers/gpu/nvgpu/gp10b/ltc_gp10b.h | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu') 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 { struct ecc_gr_t19x t19x; #endif } gr; + + struct { +#ifdef CONFIG_TEGRA_19x_GPU + struct ecc_ltc_t19x t19x; +#endif + } ltc; + }; #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 @@ #ifndef _NVGPU_ECC_GP10B_H_ #define _NVGPU_ECC_GP10B_H_ -#include +struct gk20a_ecc_stat; struct ecc_gr_t18x { 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) return 0; } -static void gp10b_ltc_isr(struct gk20a *g) +void gp10b_ltc_isr(struct gk20a *g) { u32 mc_intr, ltc_intr; 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 @@ #define LTC_GP10B_H struct gpu_ops; +void gp10b_ltc_isr(struct gk20a *g); void gp10b_init_ltc(struct gpu_ops *gops); #endif -- cgit v1.2.2