From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 04/27] drm/i915/selftests: Skip making an object busy if the GPU is wedged
Date: Fri, 6 Jul 2018 07:53:09 +0100 [thread overview]
Message-ID: <20180706065332.15214-4-chris@chris-wilson.co.uk> (raw)
In-Reply-To: <20180706065332.15214-1-chris@chris-wilson.co.uk>
If the GPU is wedged, we cannot make the object busy as trying to
submit a request will generate -EIO. Skip to the end of the test.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
drivers/gpu/drm/i915/selftests/i915_gem_object.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_object.c b/drivers/gpu/drm/i915/selftests/i915_gem_object.c
index 232e5ccf1852..6fe71865b710 100644
--- a/drivers/gpu/drm/i915/selftests/i915_gem_object.c
+++ b/drivers/gpu/drm/i915/selftests/i915_gem_object.c
@@ -553,6 +553,9 @@ static int igt_mmap_offset_exhaustion(void *arg)
/* Now fill with busy dead objects that we expect to reap */
for (loop = 0; loop < 3; loop++) {
+ if (i915_terminally_wedged(&i915->gpu_error))
+ break;
+
obj = i915_gem_object_create_internal(i915, PAGE_SIZE);
if (IS_ERR(obj)) {
err = PTR_ERR(obj);
--
2.18.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-07-06 6:54 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-06 6:53 [PATCH 01/27] drm/i915: Squelch very verbose error logging Chris Wilson
2018-07-06 6:53 ` [PATCH 02/27] drm/i915/selftests: Destroy partial tiling vma after use Chris Wilson
2018-07-06 8:52 ` Matthew Auld
2018-07-06 6:53 ` [PATCH 03/27] drm/i915/selftests: Skip using the GPU if wedged Chris Wilson
2018-07-06 9:05 ` Matthew Auld
2018-07-06 6:53 ` Chris Wilson [this message]
2018-07-06 9:10 ` [PATCH 04/27] drm/i915/selftests: Skip making an object busy if the GPU is wedged Matthew Auld
2018-07-06 6:53 ` [PATCH 05/27] drm/i915/selftests: Skip all request selftests when wedged Chris Wilson
2018-07-06 9:11 ` Matthew Auld
2018-07-06 6:53 ` [PATCH 06/27] drm/i915/selftests: Skip workaround tests " Chris Wilson
2018-07-06 9:13 ` Matthew Auld
2018-07-06 6:53 ` [PATCH 07/27] drm/i915/selftests: Skip live eviction " Chris Wilson
2018-07-06 9:15 ` Matthew Auld
2018-07-06 6:53 ` [PATCH 08/27] drm/i915/selftests: Skip huge pages live tests if wedged Chris Wilson
2018-07-06 8:30 ` Matthew Auld
2018-07-06 6:53 ` [PATCH 09/27] drm/i915/selftests: Skip over live context testing when wedged Chris Wilson
2018-07-06 9:18 ` Matthew Auld
2018-07-06 6:53 ` [PATCH 10/27] drm/i915/selftests: Skip live context execution test without logical contexts Chris Wilson
2018-07-06 6:53 ` [PATCH 11/27] drm/i915: Refactor export_fence() after i915_vma_move_to_active() Chris Wilson
2018-07-06 6:53 ` [PATCH 12/27] drm/i915: Export i915_request_skip() Chris Wilson
2018-07-06 6:53 ` [PATCH 13/27] drm/i915: Start returning an error from i915_vma_move_to_active() Chris Wilson
2018-07-06 6:53 ` [PATCH 14/27] drm/i915: Move i915_vma_move_to_active() to i915_vma.c Chris Wilson
2018-07-06 6:53 ` [PATCH 15/27] drm/i915: Track vma activity per fence.context, not per engine Chris Wilson
2018-07-06 6:53 ` [PATCH 16/27] drm/i915: Track the last-active inside the i915_vma Chris Wilson
2018-07-06 6:53 ` [PATCH 17/27] drm/i915: Replace nested subclassing with explicit subclasses Chris Wilson
2018-07-06 13:17 ` Tvrtko Ursulin
2018-07-06 6:53 ` [PATCH 18/27] drm/i915: Only reset hangcheck at the start of an activity cycle Chris Wilson
2018-07-06 6:53 ` [PATCH 19/27] drm/i915: Stop tracking MRU activity on VMA Chris Wilson
2018-07-06 6:53 ` [PATCH 20/27] drm/i915: Introduce i915_address_space.mutex Chris Wilson
2018-07-06 6:53 ` [PATCH 21/27] drm/i915: Move fence register tracking to GGTT Chris Wilson
2018-07-06 6:53 ` [PATCH 22/27] drm/i915: Convert fences to use a GGTT lock rather than struct_mutex Chris Wilson
2018-07-06 6:53 ` [PATCH 23/27] drm/i915: Tidy i915_gem_suspend() Chris Wilson
2018-07-06 6:53 ` [PATCH 24/27] drm/i915: Move fence-reg interface to i915_gem_fence_reg.h Chris Wilson
2018-07-06 6:53 ` [PATCH 25/27] drm/i915: Dynamically allocate the array of drm_i915_gem_fence_reg Chris Wilson
2018-07-06 6:53 ` [PATCH 26/27] drm/i915: Pull all the reset functionality together into i915_reset.c Chris Wilson
2018-07-06 6:53 ` [PATCH 27/27] drm/i915: Remove GPU reset dependence on struct_mutex Chris Wilson
2018-07-06 7:33 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [01/27] drm/i915: Squelch very verbose error logging Patchwork
2018-07-06 7:43 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-07-06 7:50 ` ✓ Fi.CI.BAT: success " Patchwork
2018-07-06 9:00 ` [PATCH 01/27] " Matthew Auld
2018-07-06 21:31 ` ✗ Fi.CI.IGT: failure for series starting with [01/27] " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180706065332.15214-4-chris@chris-wilson.co.uk \
--to=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).