diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c index 9bfefa9e..9f6d176e 100644 --- a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | |||
@@ -96,9 +96,9 @@ void gv11b_ltc_isr(struct gk20a *g) | |||
96 | 96 | ||
97 | mc_intr = gk20a_readl(g, mc_intr_ltc_r()); | 97 | mc_intr = gk20a_readl(g, mc_intr_ltc_r()); |
98 | for (ltc = 0; ltc < g->ltc_count; ltc++) { | 98 | for (ltc = 0; ltc < g->ltc_count; ltc++) { |
99 | if ((mc_intr & 1 << ltc) == 0) | 99 | if ((mc_intr & 1U << ltc) == 0) |
100 | continue; | 100 | continue; |
101 | ltc_corrected = ltc_uncorrected = 0; | 101 | ltc_corrected = ltc_uncorrected = 0U; |
102 | 102 | ||
103 | for (slice = 0; slice < g->gr.slices_per_ltc; slice++) { | 103 | for (slice = 0; slice < g->gr.slices_per_ltc; slice++) { |
104 | u32 offset = ltc_stride * ltc + lts_stride * slice; | 104 | u32 offset = ltc_stride * ltc + lts_stride * slice; |
@@ -133,10 +133,10 @@ void gv11b_ltc_isr(struct gk20a *g) | |||
133 | ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_total_counter_overflow_m(); | 133 | ltc_ltc0_lts0_l2_cache_ecc_status_uncorrected_err_total_counter_overflow_m(); |
134 | 134 | ||
135 | /* clear the interrupt */ | 135 | /* clear the interrupt */ |
136 | if ((corrected_delta > 0) || corrected_overflow) { | 136 | if ((corrected_delta > 0U) || corrected_overflow) { |
137 | gk20a_writel(g, ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_r() + offset, 0); | 137 | gk20a_writel(g, ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_r() + offset, 0); |
138 | } | 138 | } |
139 | if ((uncorrected_delta > 0) || uncorrected_overflow) { | 139 | if ((uncorrected_delta > 0U) || uncorrected_overflow) { |
140 | gk20a_writel(g, | 140 | gk20a_writel(g, |
141 | ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_r() + offset, 0); | 141 | ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_r() + offset, 0); |
142 | } | 142 | } |
@@ -146,9 +146,9 @@ void gv11b_ltc_isr(struct gk20a *g) | |||
146 | 146 | ||
147 | /* update counters per slice */ | 147 | /* update counters per slice */ |
148 | if (corrected_overflow) | 148 | if (corrected_overflow) |
149 | corrected_delta += (0x1UL << ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_total_s()); | 149 | corrected_delta += (0x1U << ltc_ltc0_lts0_l2_cache_ecc_corrected_err_count_total_s()); |
150 | if (uncorrected_overflow) | 150 | if (uncorrected_overflow) |
151 | uncorrected_delta += (0x1UL << ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_total_s()); | 151 | uncorrected_delta += (0x1U << ltc_ltc0_lts0_l2_cache_ecc_uncorrected_err_count_total_s()); |
152 | 152 | ||
153 | ltc_corrected += corrected_delta; | 153 | ltc_corrected += corrected_delta; |
154 | ltc_uncorrected += uncorrected_delta; | 154 | ltc_uncorrected += uncorrected_delta; |