Re: CPA patchset

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Thursday, January 10, 2008 - 4:12 am

On Thu, Jan 10, 2008 at 11:57:26AM +0100, Ingo Molnar wrote:

Cached requires the cache line to be read first before you can write it.

WC on the other hand does not allocate a cache line and just dumps
the data into a special write combining buffer.  It was invented originally 
because reads from AGP were incredibly slow.

And it's race less regarding the caching protocol (assuming you flush
the caches and TLBs correctly). 

Another typical problem is that if something
is uncached then you can't have it in any other caches because if that
cache eventually flushes it will corrupt the data.
That can happen with remapping apertures for example which remap data
behind the CPUs back.

CLFLUSH is really only a hint but it cannot be used if UC is needed
for correctness.


The typical case would be lots of user space DRI clients supplying
their own buffers on the fly. There's not really a fixed pool 
in this case, but it all varies dynamically. In some scenarios
that could happen quite often.

-Andi

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH CPA] [4/28] Add pte_clrhuge on i386, Andi Kleen, (Thu Jan 3, 8:24 am)
[PATCH CPA] [5/28] Add pte_pgprot on i386, Andi Kleen, (Thu Jan 3, 8:24 am)
[PATCH CPA] [6/28] CPA: Undo white space changes, Andi Kleen, (Thu Jan 3, 8:24 am)
Re: [PATCH CPA] [4/28] Add pte_clrhuge on i386, Jeremy Fitzhardinge, (Fri Jan 4, 11:48 pm)
Re: CPA patchset, Ingo Molnar, (Thu Jan 10, 2:31 am)
Re: CPA patchset, Dave Airlie, (Thu Jan 10, 2:44 am)
Re: CPA patchset, Andi Kleen, (Thu Jan 10, 2:53 am)
Re: CPA patchset, Andi Kleen, (Thu Jan 10, 2:55 am)
Re: CPA patchset, Ingo Molnar, (Thu Jan 10, 3:02 am)
Re: CPA patchset, Ingo Molnar, (Thu Jan 10, 3:04 am)
Re: CPA patchset, Andi Kleen, (Thu Jan 10, 3:07 am)
Re: CPA patchset, Dave Airlie, (Thu Jan 10, 3:20 am)
Re: CPA patchset, Ingo Molnar, (Thu Jan 10, 3:43 am)
Re: CPA patchset, Andi Kleen, (Thu Jan 10, 3:50 am)
Re: CPA patchset, Ingo Molnar, (Thu Jan 10, 3:57 am)
Re: CPA patchset, Andi Kleen, (Thu Jan 10, 4:12 am)
Re: CPA patchset, Ingo Molnar, (Thu Jan 10, 5:22 am)
Re: CPA patchset, Andi Kleen, (Thu Jan 10, 5:39 am)
Re: CPA patchset, Ingo Molnar, (Fri Jan 11, 12:19 am)
Re: CPA patchset, Andi Kleen, (Fri Jan 11, 4:26 am)
Re: CPA patchset, Andi Kleen, (Fri Jan 11, 4:28 am)
Re: CPA patchset, dean gaudet, (Fri Jan 11, 10:02 am)
Re: CPA patchset, Arjan van de Ven, (Fri Jan 11, 10:18 am)
Re: CPA patchset, dean gaudet, (Fri Jan 11, 10:56 am)