]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Sleep and retry a GPU reset if at first we don't succeed
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Dec 2017 12:20:11 +0000 (12:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Dec 2017 15:20:02 +0000 (15:20 +0000)
commit15702f60fb2500c973ebfbcc563be6ea688b7883
treef737555452f2387e04205cb363cf447d05ad01c4
parent076ab3a84c426881a0ef62459f7b8b2140d5fa79
drm/i915: Sleep and retry a GPU reset if at first we don't succeed

As we declare the GPU wedged if the reset fails, such a failure is quite
terminal. Before taking that drastic action, let's sleep first and try
active, in the hope that the hardware has quietened down and is then
able to reset. After a few such attempts, it is fair to say that the HW
is truly wedged.

v2: Always print the failure message now, we precheck whether resets are
disabled.

References: https://bugs.freedesktop.org/show_bug.cgi?id=104007
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171201122011.16841-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
drivers/gpu/drm/i915/i915_drv.c