[Intel-gfx] [PATCH 4/6] drm/i915: Add an interface to dynamically change the cache level

Chris Wilson chris at chris-wilson.co.uk
Thu Mar 31 09:29:31 CEST 2011


On Wed, 30 Mar 2011 14:45:11 -0700, Eric Anholt <eric at anholt.net> wrote:
> On Wed, 30 Mar 2011 18:16:11 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> > On Wed, 30 Mar 2011 09:59:55 -0700, Eric Anholt <eric at anholt.net> wrote:
> > > And what about a CPU write through the GTT?
> > 
> > Even on SNB these are still UC. And we should try hard not to, as the
> > specs give dire warnings about writing to snooped PTEs through the GTT.
> > (Since we will bypass the caches with the write, aiui, and cause
> > confusion.)
> 
> Oh, wow.  That's really bad.  Reject this series if so.

I plucked that tidbit out of the specs for the BLT engine, which has not
been rigorously updated since gen2... Though don't we also encounter a few
subtleties with movnta (__copy_from_user_nocache_nozero from pwrite) and
data in cachelines?

But it is something that I worry about given my desire to start mapping
user pages and using the BLT engine for C to UC transfers.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list