diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 38570041..40bd5413 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -8777,3 +8777,13 @@ u32 gk20a_gr_get_sm_no_lock_down_hww_global_esr_mask(struct gk20a *g) | |||
8777 | 8777 | ||
8778 | return global_esr_mask; | 8778 | return global_esr_mask; |
8779 | } | 8779 | } |
8780 | |||
8781 | /* invalidate channel lookup tlb */ | ||
8782 | void gk20a_gr_flush_channel_tlb(struct gr_gk20a *gr) | ||
8783 | { | ||
8784 | nvgpu_spinlock_acquire(&gr->ch_tlb_lock); | ||
8785 | memset(gr->chid_tlb, 0, | ||
8786 | sizeof(struct gr_channel_map_tlb_entry) * | ||
8787 | GR_CHANNEL_MAP_TLB_SIZE); | ||
8788 | nvgpu_spinlock_release(&gr->ch_tlb_lock); | ||
8789 | } | ||