drm/i915: Restore sane defaults for KMS on GEM error load
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Jul 2018 08:50:32 +0000 (09:50 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Jul 2018 11:53:28 +0000 (12:53 +0100)
commit7ed43df720c007d60bee6d81da07bcdc7e4a55ae
tree92ce837ab140871738ced19f220df0440ba5dada
parent52dda80d62dff39979fb407d67b7c9fc02381589
drm/i915: Restore sane defaults for KMS on GEM error load

If we fail during GEM initialisation, we scrub the HW state by
performing a device level GPU resuet. However, we want to leave the
system in a usable state (with functioning KMS but no GEM) so after
scrubbing the HW state, we need to restore some sane defaults and
re-enable the low-level common parts of the GPU (such as the GMCH).

v2: Restore GTT entries.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180726085033.4044-2-chris@chris-wilson.co.uk
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
drivers/gpu/drm/i915/i915_gem.c