[PATCH 2/2] drm/scheduler: remove timeout work_struct from drm_sched_job

Michel Dänzer michel at daenzer.net
Wed Sep 19 15:39:06 UTC 2018


On 2018-09-19 2:30 p.m., Christian König wrote:
> Am 18.09.2018 um 18:17 schrieb Nayan Deshmukh:
>> having a delayed work item per job is redundant as we only need one
>> per scheduler to track the time out the currently executing job.
> 
> Well that looks simpler than I thought it would be.
> 
> But it shows the next problem that the timeout and the completion could
> race.
> 
> As far as I can see that can be fixed by moving the
> dma_fence_remove_callback()/dma_fence_add_callback() dance from
> drm_sched_hw_job_reset() to drm_sched_job_timedout().

BTW, while you guys are looking into this code, please keep an eye open
for things that could explain https://bugs.freedesktop.org/107762 .


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the dri-devel mailing list