Re: [RFC/PATCH] powerpc: Deal with 44x virtually tagged icache
From: Josh Boyer <hidden>
Date: 2007-10-30 21:07:42
On Wed, 31 Oct 2007 07:16:31 +1100 Benjamin Herrenschmidt [off-list ref] wrote:
quoted
quoted
Fortunately, we don't support SMP on these or this solution wouldn't work.We should mark 44x BROKEN on SMP in Kconfig.Can we enable SMP on 44x at all currently ?
Not without editing the Kconfig.cputypes file. I was thinking of being a bit proactive so people didn't just add || 44x to it and think it would work. But it's minor.
quoted
No arch/ppc fix? I know we all want it to die as soon as possible, but still... :)Yeah, I didn't do it yet, which is one reason this patch is marked RFC :-)
Fair enough.
quoted
quoted
/* interrupts are hard-disabled at this point */ restore: +#ifdef CONFIG_44x + lis r4,icache_44x_need_flush@ha + lwz r5,icache_44x_need_flush@l(r4) + cmplwi cr0,r5,0 + beq+ 1f + iccci r0,r0 + li r6,0 + iccci r0,r0 + stw r6,icache_44x_need_flush@l(r4) +1:Why two iccci's here?No idea... thinko/typo.
And here I thought you were being extra careful ;) josh