diff options
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fb_gv11b.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.c b/drivers/gpu/nvgpu/gv11b/fb_gv11b.c index 6626344c..fd63e9ff 100644 --- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fb_gv11b.c | |||
@@ -1107,11 +1107,7 @@ static void gv11b_fb_handle_mmu_nonreplay_replay_fault(struct gk20a *g, | |||
1107 | 1107 | ||
1108 | gv11b_fb_copy_from_hw_fault_buf(g, mem, offset, mmfault); | 1108 | gv11b_fb_copy_from_hw_fault_buf(g, mem, offset, mmfault); |
1109 | 1109 | ||
1110 | /* Extra 1 in buffer size is to detect buffer full. | 1110 | get_indx = (get_indx + 1) % entries; |
1111 | * Actual number of entries for faults to be snapped are | ||
1112 | * one less than number in fault_buffer_size_val | ||
1113 | */ | ||
1114 | get_indx = (get_indx + 1) % (entries - 1); | ||
1115 | nvgpu_log(g, gpu_dbg_intr, "new get index = %d", get_indx); | 1111 | nvgpu_log(g, gpu_dbg_intr, "new get index = %d", get_indx); |
1116 | 1112 | ||
1117 | gv11b_fb_fault_buffer_get_ptr_update(g, index, get_indx); | 1113 | gv11b_fb_fault_buffer_get_ptr_update(g, index, get_indx); |