1
0
Fork 0

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>
hifive-unleashed-5.1
Christian König 2015-09-02 12:03:06 +02:00 committed by Alex Deucher
parent 353da3c520
commit 27439fcac0
1 changed files with 3 additions and 0 deletions

View File

@ -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));