]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid early GPU idling due to already pending idle work
authorImre Deak <imre.deak@intel.com>
Mon, 7 Nov 2016 09:20:02 +0000 (11:20 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 7 Nov 2016 12:48:04 +0000 (14:48 +0200)
commit223a1fe3520b9be5e75c1801781bb2f241b1eef3
tree540f2ab7d664d0d50613c5c25982113273b5dabe
parent52c4bcb513227ad8f9fcdd79767caf7b9e0a6668
drm/i915: Avoid early GPU idling due to already pending idle work

Atm, in case an idle work handler is already pending but haven't yet
started to run, retiring a new request will not extend the active period
as required, rather simply leaves the pending idle work to be scheduled
at the original expiration time. This may lead to idling the GPU too
early. Fix this by using the delayed-work scheduler alternative which
makes sure the handler's expiration time is extended in this case.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Requested-by: 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-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_gem_request.c