summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests/i915_gem.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-01-03 11:21:04 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2019-01-03 12:40:42 +0000
commit55277e1f3107c0b7f18aaa1572ab97081ccde57a (patch)
tree6246d6803b348bd700db03281a9239f24ca94fae /drivers/gpu/drm/i915/selftests/i915_gem.c
parent57428bccdb139dadcfdfa49e335d01d111fc40ac (diff)
downloadlinux-stable-55277e1f3107c0b7f18aaa1572ab97081ccde57a.tar.gz
linux-stable-55277e1f3107c0b7f18aaa1572ab97081ccde57a.tar.bz2
linux-stable-55277e1f3107c0b7f18aaa1572ab97081ccde57a.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/selftests/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem.c b/drivers/gpu/drm/i915/selftests/i915_gem.c
index d0aa19d17653..bdcc53e15e75 100644
--- a/drivers/gpu/drm/i915/selftests/i915_gem.c
+++ b/drivers/gpu/drm/i915/selftests/i915_gem.c
@@ -121,7 +121,7 @@ static void pm_resume(struct drm_i915_private *i915)
*/
intel_runtime_pm_get(i915);
- intel_engines_sanitize(i915);
+ intel_engines_sanitize(i915, false);
i915_gem_sanitize(i915);
i915_gem_resume(i915);