Created
February 15, 2020 03:36
-
-
Save anarsoul/f0297cc39317e94626b5b23c4fc02776 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/gpu/drm/lima/lima_gp.c b/drivers/gpu/drm/lima/lima_gp.c | |
index d1e7826c2d74..5efbf3407972 100644 | |
--- a/drivers/gpu/drm/lima/lima_gp.c | |
+++ b/drivers/gpu/drm/lima/lima_gp.c | |
@@ -224,8 +224,10 @@ static int lima_gp_task_recover(struct lima_sched_pipe *pipe) | |
} | |
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_START_ADDR, f[LIMA_GP_PLBU_ALLOC_END_ADDR >> 2]); | |
+ f[LIMA_GP_PLBU_ALLOC_END_ADDR >> 2] = 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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment