]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Restore inhibiting the load of the default context
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Nov 2015 13:28:55 +0000 (13:28 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 6 Jan 2016 10:04:53 +0000 (11:04 +0100)
commit404a4ddb93e14fb1a3297d96046a8d5b587b65ac
tree940786538557c9ba786acd2039352026189c8ddf
parent82f955850dc77079242d890c82a5439eec0b67cc
drm/i915: Restore inhibiting the load of the default context

Following a GPU reset, we may leave the context in a poorly defined
state, and reloading from that context will leave the GPU flummoxed. For
secondary contexts, this will lead to that context being banned - but
currently it is also causing the default context to become banned,
leading to turmoil in the shared state.

This is a regression from

commit 2f5fc8c3ee5b5dc9190c7633ef8ee0a757073ad7 [v4.1]
Author: Ben Widawsky <benjamin.widawsky@intel.com>
Date:   Mon Mar 16 16:00:58 2015 +0000

    drm/i915: Initialize all contexts

which quietly introduced the removal of the MI_RESTORE_INHIBIT on the
default context.

v2: Mark the global default context as uninitialized on GPU reset so
that the context-local workarounds are reloaded upon re-enabling.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1448630935-27377-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: stable@vger.kernel.org
[danvet: This seems to fix a gpu hand on after the first resume,
resulting in any future suspend operation failing with -EIO because
the gpu seems to be in a funky state. Somehow this patch fixes that.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c