[PATCH][WIP][RFC] powerpc: fixup lwsync at runtime

Kumar Gala galak at kernel.crashing.org
Tue Jun 24 01:02:27 EST 2008


On Jun 21, 2008, at 7:20 PM, Benjamin Herrenschmidt wrote:

> On Sat, 2008-06-21 at 11:07 -0500, Kumar Gala wrote:
>>
>>> Remind me why we want to do that ? ie. can't we just use lwsync
>>> unconditionally ? It's supposed to degrade to sync on CPUs that
>> don't
>>> support it, or is that broken on some parts ?
>>
>> I believe its broken on e500v1/v2.  However I'll double check.

e500v1/v2 treat lwsync as a illop.

> An option is that if you get a program check instead, you can "fixup"
> the sync from the exception too...


We could.  However it just feels a bit dirty to illop in the kernel  
and fix it up.

Plus, I think David Woodhouse had some ideas about being able to  
generate a single SMP/no-SMP kernel image like x86 apparently does  
with some form of run time fixup.  It would seem that was be in the  
same realm as the lwsync fixup I'm looking at.

- k




More information about the Linuxppc-dev mailing list