Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 921d07d7 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/selftests: Skip huge pages live tests if wedged



We test the GPU handling of huge pages by submitting requests that write
into a huge page, but if the GPU is irrecoverably wedged we cannot
submit any requests. As the test expectedly fails, skip over it.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706065332.15214-8-chris@chris-wilson.co.uk
parent 7783decf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1748,6 +1748,9 @@ int i915_gem_huge_page_live_selftests(struct drm_i915_private *dev_priv)
		return 0;
	}

	if (i915_terminally_wedged(&dev_priv->gpu_error))
		return 0;

	file = mock_file(dev_priv);
	if (IS_ERR(file))
		return PTR_ERR(file);