diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ltc_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_common.c b/drivers/gpu/nvgpu/gk20a/ltc_common.c index bc45ac41..8af8c687 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_common.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_common.c | |||
@@ -182,6 +182,9 @@ static int gk20a_ltc_init_zbc(struct gk20a *g, struct gr_gk20a *gr) | |||
182 | 182 | ||
183 | static void gk20a_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr) | 183 | static void gk20a_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr) |
184 | { | 184 | { |
185 | u32 max_size = gr->max_comptag_mem; | ||
186 | u32 max_comptag_lines = max_size << 3; | ||
187 | |||
185 | u32 compbit_base_post_divide; | 188 | u32 compbit_base_post_divide; |
186 | u64 compbit_base_post_multiply64; | 189 | u64 compbit_base_post_multiply64; |
187 | u64 compbit_store_base_iova = | 190 | u64 compbit_store_base_iova = |
@@ -206,6 +209,10 @@ static void gk20a_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr) | |||
206 | (u32)(compbit_store_base_iova >> 32), | 209 | (u32)(compbit_store_base_iova >> 32), |
207 | (u32)(compbit_store_base_iova & 0xffffffff), | 210 | (u32)(compbit_store_base_iova & 0xffffffff), |
208 | compbit_base_post_divide); | 211 | compbit_base_post_divide); |
212 | |||
213 | g->ops.ltc.cbc_ctrl(g, gk20a_cbc_op_invalidate, | ||
214 | 0, max_comptag_lines - 1); | ||
215 | |||
209 | } | 216 | } |
210 | 217 | ||
211 | /* Flushes the compression bit cache as well as "data". | 218 | /* Flushes the compression bit cache as well as "data". |