From: Imre Deak <imre.deak@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 2/2] drm/i915/bxt: work around HW coherency issue for cached GEM mappings
Date: Mon, 8 Jun 2015 19:28:44 +0300 [thread overview]
Message-ID: <1433780924-7673-3-git-send-email-imre.deak@intel.com> (raw)
In-Reply-To: <1433780924-7673-1-git-send-email-imre.deak@intel.com>
Due to a coherency issue on BXT-A1 we can't guarantee a coherent view of
cached GPU mappings, so fall back to uncached mappings. Note that this
still won't fix cases where userspace expects a coherent view without
synchronizing (via a set domain call). It still makes sense to limit the
kernel's notion of the mapping to be uncached, for example for
relocations to work properly during execbuffer time. Also in case user
space does synchronize the buffer, this will still guarantee that we'll
do the proper clflushing for the buffer.
Testcast: igt/gem_store_dword_batches_loop/cached-mapping
Signed-off-by: Imre Deak <imre.deak@intel.com>
---
drivers/gpu/drm/i915/i915_gem.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index be35f04..212b51c 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4062,7 +4062,11 @@ int i915_gem_set_caching_ioctl(struct drm_device *dev, void *data,
level = I915_CACHE_NONE;
break;
case I915_CACHING_CACHED:
- level = I915_CACHE_LLC;
+ /*
+ * On BXT-A1 we can't guarantee a coherent view for cached
+ * mappings, so fall back to uncached mappings.
+ */
+ level = IS_BROXTON(dev) ? I915_CACHE_NONE : I915_CACHE_LLC;
break;
case I915_CACHING_DISPLAY:
level = HAS_WT(dev) ? I915_CACHE_WT : I915_CACHE_NONE;
--
2.1.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-06-08 16:49 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 16:28 [PATCH 0/2] drm/i915/bxt: work around HW coherency issue Imre Deak
2015-06-08 16:28 ` [PATCH 1/2] drm/i915/bxt: work around HW coherency issue when accessing GPU seqno Imre Deak
2015-06-08 17:08 ` Dave Gordon
2015-06-08 17:12 ` Chris Wilson
2015-06-08 17:34 ` Ville Syrjälä
2015-06-08 18:00 ` Chris Wilson
2015-06-08 18:40 ` Ville Syrjälä
2015-06-08 19:33 ` Dave Gordon
2015-06-10 10:59 ` Imre Deak
2015-06-10 15:10 ` Jesse Barnes
2015-06-10 15:26 ` Imre Deak
2015-06-10 15:33 ` Jesse Barnes
2015-06-10 15:55 ` Imre Deak
2015-06-10 15:52 ` Chris Wilson
2015-06-11 8:02 ` Dave Gordon
2015-06-11 8:20 ` Chris Wilson
2015-06-11 19:14 ` Imre Deak
2015-06-08 17:14 ` Imre Deak
2015-06-09 8:21 ` Jani Nikula
2015-06-10 14:07 ` Imre Deak
2015-06-10 14:21 ` Chris Wilson
2015-06-10 14:55 ` Imre Deak
2015-06-10 15:00 ` Ville Syrjälä
2015-06-10 15:16 ` Imre Deak
2015-06-10 15:35 ` Chris Wilson
2015-07-01 13:40 ` Mika Kuoppala
2015-07-01 13:53 ` Mika Kuoppala
2015-06-08 16:28 ` Imre Deak [this message]
2015-06-13 18:04 ` [PATCH 2/2] drm/i915/bxt: work around HW coherency issue for cached GEM mappings shuang.he
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=1433780924-7673-3-git-send-email-imre.deak@intel.com \
--to=imre.deak@intel.com \
--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