drm/amdgpu: signal scheduler fence when hw submission fails v3
Otherwise the resource blocked by it will never be reclaimed. v2: add DRM_ERROR. v3: fix typo in commit message Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Chunming Zhou<david1.zhou@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
This commit is contained in:
Родитель
353da3c520
Коммит
27439fcac0
|
@ -362,6 +362,9 @@ static int amd_sched_main(void *param)
|
|||
else if (r)
|
||||
DRM_ERROR("fence add callback failed (%d)\n", r);
|
||||
fence_put(fence);
|
||||
} else {
|
||||
DRM_ERROR("Failed to run job!\n");
|
||||
amd_sched_process_job(NULL, &job->cb);
|
||||
}
|
||||
|
||||
count = kfifo_out(&entity->job_queue, &job, sizeof(job));
|
||||
|
|
Загрузка…
Ссылка в новой задаче