From: Tvrtko Ursulin <tursulin@ursulin.net>
To: Intel-gfx@lists.freedesktop.org
Subject: [PATCH 3/3] drm/i915: Stop ignoring failure to set up workaround batch buffers
Date: Fri, 19 Jan 2018 10:00:05 +0000 [thread overview]
Message-ID: <20180119100005.9072-3-tvrtko.ursulin@linux.intel.com> (raw)
In-Reply-To: <20180119100005.9072-1-tvrtko.ursulin@linux.intel.com>
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Setting up the workaround batch buffers can fail either due programming
errors which will be caught in development, or by the inability to
allocate a 4k object and pin it in GGTT at runtime.
Since this is highly unlikely, and it is not deterministic to allow driver
operation to continue with unknown status of workarounds, it is better to
fail engine initialization explicitly under those circumstances.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
drivers/gpu/drm/i915/intel_lrc.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 74d7989389e1..6067c5fe6889 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -2054,13 +2054,8 @@ int logical_render_ring_init(struct intel_engine_cs *engine)
ret = intel_init_workaround_bb(engine);
if (ret) {
- /*
- * We continue even if we fail to initialize WA batch
- * because we only expect rare glitches but nothing
- * critical to prevent us from using GPU
- */
- DRM_ERROR("WA batch buffer initialization failed: %d\n",
- ret);
+ DRM_ERROR("WA batch buffer initialization failed: %d\n", ret);
+ return ret;
}
return logical_ring_init(engine);
--
2.14.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-01-19 10:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 10:00 [PATCH 1/3] drm/i915: Downgrade incorrect engine constructor usage warnings to development Tvrtko Ursulin
2018-01-19 10:00 ` [PATCH 2/3] drm/i915: Per-engine scratch VMA is mandatory Tvrtko Ursulin
2018-01-19 10:04 ` Chris Wilson
2018-01-19 10:00 ` Tvrtko Ursulin [this message]
2018-01-19 10:09 ` [PATCH 3/3] drm/i915: Stop ignoring failure to set up workaround batch buffers Chris Wilson
2018-01-19 10:29 ` Tvrtko Ursulin
2018-01-19 10:31 ` Chris Wilson
2018-01-19 10:43 ` ✓ Fi.CI.BAT: success for series starting with [1/3] drm/i915: Downgrade incorrect engine constructor usage warnings to development Patchwork
2018-01-22 17:17 ` Tvrtko Ursulin
2018-01-19 14:32 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-01-19 17:20 ` [PATCH 1/3] " Michel Thierry
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=20180119100005.9072-3-tvrtko.ursulin@linux.intel.com \
--to=tursulin@ursulin.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.