Skip to content

Commit

Permalink
drm/lima: update frame when task recover
Browse files Browse the repository at this point in the history
frame info will be dumped for debug usage, so also update it to
reflect real hardware settings for user.

Signend-off-by: Qiang Yu <yuq825@gmail.com>
  • Loading branch information
yuq committed Feb 15, 2020
1 parent 101b104 commit 9bfdb0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/gpu/drm/lima/lima_gp.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,11 @@ static int lima_gp_task_recover(struct lima_sched_pipe *pipe)
return ret;
}

f[LIMA_GP_PLBU_ALLOC_END_ADDR >> 2] =
f[LIMA_GP_PLBU_ALLOC_START_ADDR >> 2] + task->heap->heap_size;

gp_write(LIMA_GP_INT_MASK, LIMA_GP_IRQ_MASK_USED);
gp_write(LIMA_GP_PLBU_ALLOC_END_ADDR,
f[LIMA_GP_PLBU_ALLOC_START_ADDR >> 2] + task->heap->heap_size);
gp_write(LIMA_GP_PLBU_ALLOC_END_ADDR, f[LIMA_GP_PLBU_ALLOC_END_ADDR >> 2]);
gp_write(LIMA_GP_CMD, LIMA_GP_CMD_UPDATE_PLBU_ALLOC);
return 0;
}
Expand Down

0 comments on commit 9bfdb0d

Please sign in to comment.