Subject: Re: cache coherence problem

From: Benjamin Herrenschmidt <[email-masked]>
Date: Tue, 18 Nov 2003 16:24:10 +1100

On Tue, 2003-11-18 at 16:22, Benjamin Herrenschmidt wrote:
> On Tue, 2003-11-18 at 16:00, Juergen Kienhoefer wrote:
> > Guys,
> > Thank you very much for the ideas.
> > Basically, what I need to do is:
> > dcbst
> > sync
> > iccci
> ^^^^^^^
> No: icbi
>
> > sync
> > isync
> > for every 32 bytes of the memory block I put code in.

Actually, to be precise, you need:

 1) A loop of dcbst's over every cache line crossed by your code
 2) one sync
 3) A loop of icbi's over every cache line crossed by your code
 4) one sync, one isync

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/