PS3 early lock-up

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Tue Aug 5 19:43:22 EST 2008


On Tue, 5 Aug 2008, Benjamin Herrenschmidt wrote:
> > > Can you find out where that stupid value comes from ?
> > 
> > I didn't have time to look at in detail, but it fails from the
> > ioremap call in ps3_map_htab (arch/powerpc/platfroms/ps3/htab.c):
> > 
> >  htab = (__force struct hash_pte *)ioremap_flags(htab_addr, htab_size,
> >      pgprot_val(PAGE_READONLY_X));
> > 
> > IIRC, lv1 doesn't allow a read/write mapping of the htab, and that is
> > why I used pgprot_val(PAGE_READONLY_X) here.
> 
> Why are you mapping it in the first place btw ? Do you actually use that
> mapping ?

arch/powerpc/platfroms/ps3/htab.c:ps3_hpte_updatepp() uses `htab[slot].v'.

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven at sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis 293-0376800-10 GEBA-BE-BB


More information about the Linuxppc-dev mailing list