]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Report an earlier wedged event when suspending the engines
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 May 2019 11:32:45 +0000 (12:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 6 Jun 2019 14:21:51 +0000 (15:21 +0100)
commited2859936d3fb8080c651df514996295a173a763
treec4b87337e14fca69a9acb429edbdb4e2bd9054e8
parentf101344efa21609caf924801396ac414eb4daa16
drm/i915: Report an earlier wedged event when suspending the engines

On i915_gem_load_power_context() we do care whether or not we succeed in
completing the switch back to the kernel context (via idling the
engines). Currently, we detect if an error occurs while we wait, but we
do not report one if it occurred beforehand (and the status of the
switch is undefined). Check the current terminally wedged status on
entering the wait, and report it after flushing the requests, as if it
had occurred during our own wait.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110824
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190531113245.30042-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_pm.c