drm/scheduler: bind job earlier to scheduler
authorChristian König <christian.koenig@amd.com>
Mon, 6 Aug 2018 10:46:41 +0000 (12:46 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:01 +0000 (11:10 -0500)
commite854b61acf775a082d01d828fe3430bab0c4769f
tree5fe694f81bf9bcb9882a5d03cff0508907816aeb
parent7febe4bfd5d477eba17f70d4879cb81e9787118e
drm/scheduler: bind job earlier to scheduler

Update job earlier with the scheduler it is supposed to be scheduled on.

Otherwise we could incorrectly optimize dependencies when moving an
entity from one scheduler to another.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/gpu_scheduler.c
drivers/gpu/drm/scheduler/sched_fence.c