]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Flush GT idle status upon reset
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 13 Jul 2016 08:10:31 +0000 (09:10 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Jul 2016 14:21:17 +0000 (15:21 +0100)
commitd4db3882b959c2da462caf31ed277281cd6f2f8c
tree59bde69ee8475b4a644ea058f318e73dcf5f01a7
parent4c2bc71a46f5bce2c80f002ea6eb59edcd6a8d6f
drm/i915: Flush GT idle status upon reset

Upon resetting the GPU, we force the engines to be idle by clearing
their request lists. However, I neglected to clear the GT active status
and so the next request following the reset was not marking the device
as busy again. (We had to wait until any outstanding retire worker
finally ran and cleared the active status.)

Fixes: 9b6fd824cce5 ("drm/i915: Only start retire worker when idle")
Testcase: igt/pm_rps/reset
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1468397438-21226-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem.c