drm/i915/guc: Fix request re-submission after reset
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 9 Mar 2017 13:20:04 +0000 (13:20 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 10 Mar 2017 07:47:12 +0000 (07:47 +0000)
commitcbf4b77af11ba93ea2ed7effa37da2a39e970851
tree30592ccf9c19cca8fd44a201ba7769e5cf6c6646
parent7342a72cc40b4cf50013f8230a6b879e2ba5a73e
drm/i915/guc: Fix request re-submission after reset

In order to ensure no missed interrupts we must first re-direct
the interrupts to GuC, and only then re-submit the requests to
be replayed after a GPU reset. Otherwise context switch can fire
before GuC has been set up to receive it triggering more hangs.

v2: Rebase.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Oscar Mateo <oscar.mateo@intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170309132005.1317-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_guc_loader.c