All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Drop the overzealous warning from i915_gem_set_cache_level
@ 2013-08-12 10:46 Chris Wilson
  2013-08-12 21:02 ` Ben Widawsky
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Chris Wilson @ 2013-08-12 10:46 UTC (permalink / raw)
  To: intel-gfx

By our earlier reckoning, move from a snooped/llc setting to an uncached
setting, leaves the CPU cache in a consistent state irrespective of our
domain tracking - so we can forgo the warning about the lack of
invalidation. Similarly for any writes posted to the snooped CPU domain,
we know will be safely clflushed to the uncached PTEs after forcing the
domain change.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_gem.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 925c77d..1d3e57e 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3520,7 +3520,6 @@ int i915_gem_object_set_cache_level(struct drm_i915_gem_object *obj,
 		 * Just set it to the CPU cache for now.
 		 */
 		WARN_ON(obj->base.write_domain & ~I915_GEM_DOMAIN_CPU);
-		WARN_ON(obj->base.read_domains & ~I915_GEM_DOMAIN_CPU);
 
 		old_read_domains = obj->base.read_domains;
 		old_write_domain = obj->base.write_domain;
-- 
1.8.4.rc2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Drop the overzealous warning from i915_gem_set_cache_level
@ 2013-08-13 10:08 Sedat Dilek
  0 siblings, 0 replies; 12+ messages in thread
From: Sedat Dilek @ 2013-08-13 10:08 UTC (permalink / raw)
  To: Chris Wilson; +Cc: Daniel Vetter, intel-gfx

Hi,

feel free to add...

Reported -by: Sedat Dilek <sedat.dilek@gmail.com> (against
next-20130813 see [1])
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>

Thanks.

Regards,
- Sedat -

[1] http://lists.freedesktop.org/archives/intel-gfx/2013-August/031725.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-08-14 10:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-12 10:46 [PATCH] drm/i915: Drop the overzealous warning from i915_gem_set_cache_level Chris Wilson
2013-08-12 21:02 ` Ben Widawsky
2013-08-12 21:29   ` Chris Wilson
2013-08-13  7:54 ` Daniel Vetter
2013-08-13 10:38   ` Daniel Vetter
2013-08-13 12:12 ` Ville Syrjälä
2013-08-13 12:20   ` Chris Wilson
2013-08-13 12:37     ` Ville Syrjälä
2013-08-14  8:49       ` Daniel Vetter
2013-08-14  8:54         ` Chris Wilson
2013-08-14 10:01           ` Daniel Vetter
2013-08-13 10:08 Sedat Dilek

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.