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>
This commit is contained in:
David Nieto
2017-05-22 16:39:28 -07:00
committed by mobile promotions
parent 96cf9748a7
commit 651f970d1c
4 changed files with 10 additions and 2 deletions

View File

@@ -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__*/

View File

@@ -16,7 +16,7 @@
#ifndef _NVGPU_ECC_GP10B_H_
#define _NVGPU_ECC_GP10B_H_
#include <linux/version.h>
struct gk20a_ecc_stat;
struct ecc_gr_t18x {
struct gk20a_ecc_stat sm_lrf_single_err_count;

View File

@@ -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;

View File

@@ -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