[RFC/PATCH] powerpc: Deal with 44x virtually tagged icache

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Oct 31 07:16:31 EST 2007


> > 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 ?

> 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 :-)

> >  	/* interrupts are hard-disabled at this point */
> >  restore:
> > +#ifdef CONFIG_44x
> > +	lis	r4,icache_44x_need_flush at ha
> > +	lwz	r5,icache_44x_need_flush at l(r4)
> > +	cmplwi	cr0,r5,0
> > +	beq+	1f
> > +	iccci	r0,r0
> > +	li	r6,0
> > +	iccci	r0,r0
> > +	stw	r6,icache_44x_need_flush at l(r4)
> > +1:
> 
> Why two iccci's here?

No idea... thinko/typo.

Ben.





More information about the Linuxppc-dev mailing list