Re: [Fwd: Re: connector is missing in 2.6.12-rc2-mm1]
From: Evgeniy Polyakov
Date: Thu Apr 07 2005 - 23:51:27 EST
On Fri, 2005-04-08 at 14:17 +1000, Herbert Xu wrote:
> On Fri, Apr 08, 2005 at 08:21:28AM +0400, Evgeniy Polyakov wrote:
> > > > On UP do not.
> > >
> > > Shouldn't we should be fixing the MIPS implementation of
> > > atomic_sub_return to not do the sync on UP then?
> > Unfortunately not, that sync is required exactly for return value store.
> On UP?
Yes, some quotes:
The memory access type of a location affects the behavior of I-fetch,
and prefetch operations to the location. In addition, memory access
some instruction descriptions. Load linked (LL, LLD) and store
SCD) have defined operation only for locations with cached memory access
SYNC affects only load and stores made to locations with uncached or
coherent memory access types.
3. The SC [comment: store conditional]
stores a new value into the memory word, unless the new value has
been modified. If the word has not been modified, the store succeeds and
is stored in the destination register. Otherwise the Store Conditional
memory is not modified, and a 0 is loaded into the destination register.
the instruction format has only a single field to select a data register
destination register is the same as the register which was stored.
Load Linked and Store Conditional instructions (LL, LLD, SC, and SCD) do
implicitly perform SYNC operations in the R10000 processor.
Crash is better than data corruption -- Arthur Grabowski
Description: This is a digitally signed message part