drm/i915: Restore current RPS state after reset
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 21 Sep 2016 13:51:06 +0000 (14:51 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 21 Sep 2016 15:52:39 +0000 (16:52 +0100)
commitf2a91d1a6f5960c08f1ca60bd076f4dc020c50c6
treeddaba2fad89656d388ada8051759a76d93b306a6
parent6277c8d07b8f1b667f672628f88b18e831e67517
drm/i915: Restore current RPS state after reset

Following commit 821ed7df6e2a ("drm/i915: Update reset path to fix
incomplete requests") we no longer mark the context as lost on reset as
we keep the requests (and contexts) alive. However, RPS remains reset
and we need to restore the current state to match the in-flight
requests.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97824
Fixes: 821ed7df6e2a ("drm/i915: Update reset path to fix incomplete requests")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Arun Siluvery <arun.siluvery@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160921135108.29574-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_irq.c