drm/lima: recover task by enlarging heap buffer
Increase heap buffer backup memory when GP receive PLBU out of memory interrupt, then resume the task. Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Tested-by: Andreas Baierl <ichgeh@imkreisrum.de> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200116131157.13346-5-yuq825@gmail.com
This commit is contained in:
@ -20,6 +20,9 @@ struct lima_sched_task {
|
||||
struct lima_bo **bos;
|
||||
int num_bos;
|
||||
|
||||
bool recoverable;
|
||||
struct lima_bo *heap;
|
||||
|
||||
/* pipe fence */
|
||||
struct dma_fence *fence;
|
||||
};
|
||||
@ -68,6 +71,9 @@ struct lima_sched_pipe {
|
||||
void (*task_fini)(struct lima_sched_pipe *pipe);
|
||||
void (*task_error)(struct lima_sched_pipe *pipe);
|
||||
void (*task_mmu_error)(struct lima_sched_pipe *pipe);
|
||||
int (*task_recover)(struct lima_sched_pipe *pipe);
|
||||
|
||||
struct work_struct recover_work;
|
||||
};
|
||||
|
||||
int lima_sched_task_init(struct lima_sched_task *task,
|
||||
|
Reference in New Issue
Block a user