mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 01:52:32 -04:00
drm/amdgpu: add amd_sched_commit
This function is to update last_emitted_v_seq and wake up the waiters. It should be called by driver in the run_job backend function Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -62,9 +62,8 @@ static void amdgpu_sched_run_job(struct amd_gpu_scheduler *sched,
|
||||
if (r)
|
||||
goto err;
|
||||
}
|
||||
atomic64_set(&c_entity->last_emitted_v_seq,
|
||||
sched_job->ibs[sched_job->num_ibs - 1].sequence);
|
||||
wake_up_all(&c_entity->wait_emit);
|
||||
|
||||
amd_sched_emit(c_entity, sched_job->ibs[sched_job->num_ibs - 1].sequence);
|
||||
|
||||
mutex_unlock(&sched_job->job_lock);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user