]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Schedule next retirement worker first
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Nov 2019 16:25:59 +0000 (16:25 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Nov 2019 16:46:58 +0000 (16:46 +0000)
commita3cf5b86cc1501e69b75ac655e45955f1cd44ecc
tree552d2aed5b357dc8136a0f9d88db69e52a0f40bc
parent8b8b864f70d03d84b9974dd593a8d7a6dd3b7a2f
drm/i915/gt: Schedule next retirement worker first

As we may park the gt during request retirement, we may cancel the
retirement worker only to then program the delayed worker once more.

If we schedule the next delayed retirement worker first, if we then park
the gt, the work will remain cancelled.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191119162559.3313003-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_gt_requests.c