[PATCH 2/5] [POWERPC] QE: add support for QE USB clocks routing

Scott Wood scottwood at freescale.com
Fri Apr 18 06:26:23 EST 2008


Timur Tabi wrote:
> Scott Wood wrote:
> 
>> That's implementation dependent, and support for accesses to uncached 
>> memory is being phased out of book E according to the E500 manual.
> 
> What's wrong with uncached memory?

The typical implementation of lwarx/stwcx depends on holding the 
reserved cache line in exclusive state, and stwcx failing if it is no 
longer exclusive.

> I figured that if I could use lwarx/stwcx to make clrsetbits atomic, there would
> be no need to spinlocks protecting an individual register.

OK, so you're not trying to be atomic with respect to the device, just 
with respect to other cores?  Just use the spinlock.

-Scott



More information about the Linuxppc-dev mailing list