]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid early GPU idling due to race with new request
authorImre Deak <imre.deak@intel.com>
Mon, 7 Nov 2016 09:20:03 +0000 (11:20 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 7 Nov 2016 12:48:04 +0000 (14:48 +0200)
commite24d008ceb53b274805276d9a4fc1e40116901db
tree03bf809e3a80fd4091f69c837eb4928127345d2c
parent223a1fe3520b9be5e75c1801781bb2f241b1eef3
drm/i915: Avoid early GPU idling due to race with new request

There is a small race where a new request can be submitted and retired
after the idle worker started to run which leads to idling the GPU too
early. Fix this by deferring the idling to the pending instance of the
worker.

This scenario was pointed out by Chris.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1478510405-11799-2-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_gem.c