diff options
author | David Nieto <dmartineznie@nvidia.com> | 2017-05-18 19:50:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-24 07:55:59 -0400 |
commit | 05388ad24a61c43a110e3d235622c23a356b5df7 (patch) | |
tree | 98e4eacd09571d8575a49977e268c3410a0e6834 /drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | |
parent | 94226c9c1ed67be2dd146648b0460ef7346a2900 (diff) |
gpu: nvgpu: re-arrange parity counters
(1) Re-arrange the structure for parity counters reporting so multiple
units can be managed
JIRA: GPUT19X-84
Change-Id: If59a883dfe22d5a1d91a6d0ed2f5a6254434ffcb
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: http://git-master/r/1485276
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/ltc_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c index e65e3d06..165e93fe 100644 --- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | |||
@@ -149,7 +149,7 @@ static void gp10b_ltc_isr(struct gk20a *g) | |||
149 | ecc_stats_reg_val = | 149 | ecc_stats_reg_val = |
150 | gk20a_readl(g, | 150 | gk20a_readl(g, |
151 | ltc_ltc0_lts0_dstg_ecc_report_r() + offset); | 151 | ltc_ltc0_lts0_dstg_ecc_report_r() + offset); |
152 | g->gr.t18x.ecc_stats.l2_sec_count.counters[ltc] += | 152 | g->ecc.gr.t18x.l2_sec_count.counters[ltc] += |
153 | ltc_ltc0_lts0_dstg_ecc_report_sec_count_v(ecc_stats_reg_val); | 153 | ltc_ltc0_lts0_dstg_ecc_report_sec_count_v(ecc_stats_reg_val); |
154 | ecc_stats_reg_val &= | 154 | ecc_stats_reg_val &= |
155 | ~(ltc_ltc0_lts0_dstg_ecc_report_sec_count_m()); | 155 | ~(ltc_ltc0_lts0_dstg_ecc_report_sec_count_m()); |
@@ -169,7 +169,7 @@ static void gp10b_ltc_isr(struct gk20a *g) | |||
169 | ecc_stats_reg_val = | 169 | ecc_stats_reg_val = |
170 | gk20a_readl(g, | 170 | gk20a_readl(g, |
171 | ltc_ltc0_lts0_dstg_ecc_report_r() + offset); | 171 | ltc_ltc0_lts0_dstg_ecc_report_r() + offset); |
172 | g->gr.t18x.ecc_stats.l2_ded_count.counters[ltc] += | 172 | g->ecc.gr.t18x.l2_ded_count.counters[ltc] += |
173 | ltc_ltc0_lts0_dstg_ecc_report_ded_count_v(ecc_stats_reg_val); | 173 | ltc_ltc0_lts0_dstg_ecc_report_ded_count_v(ecc_stats_reg_val); |
174 | ecc_stats_reg_val &= | 174 | ecc_stats_reg_val &= |
175 | ~(ltc_ltc0_lts0_dstg_ecc_report_ded_count_m()); | 175 | ~(ltc_ltc0_lts0_dstg_ecc_report_ded_count_m()); |