OSDN Git Service

drm/i915: Always try to reset the GPU on takeover
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 Jan 2019 11:21:04 +0000 (11:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 Jan 2019 12:40:42 +0000 (12:40 +0000)
commit55277e1f3107c0b7f18aaa1572ab97081ccde57a
tree6246d6803b348bd700db03281a9239f24ca94fae
parent57428bccdb139dadcfdfa49e335d01d111fc40ac
drm/i915: Always try to reset the GPU on takeover

When we first introduced the reset to sanitize the GPU on taking over
from the BIOS and before returning control to third parties (the BIOS!),
we restricted it to only systems utilizing HW contexts as we were
uncertain of how stable our reset mechanism truly was. We now have
reasonable coverage across all machines that expose a GPU reset method,
and so we should be safe to sanitize the GPU state everywhere.

v2: We _have_ to skip the reset if it would clobber the display.

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/20190103112104.19561-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_device_info.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/selftests/i915_gem.c