]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4bd8bcf0131d9030a9f816307a522175451b02e7
tree6246d6803b348bd700db03281a9239f24ca94fae
parent98748168da4d1bcc52e3aa1a57e91a01539ecd2e
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