ppc_4xx: POST_SPR reports an error with DVLIM
Hi
I added POST (including POST_SPR) to my PPC440EPx based hcu5 board.
After running I did see by executin "log show"
<..>
<4>POST spr The value of DVLIM special register is incorrect: 0x00000000 <4>FAILED
I close inspection revealed that DVLIM is set to the correct value in _start_440, but afterwards reset to 0 in dflush.
Are there any special reasons, why dflush should manipulate DVLIM? Or would it be okay to submit a patch like:
cpu/ppc4xx/start.S +0 -2
@@ -1700,8 +1700,6 @@ trap_reloc: rlwinm r8,r9,0,15,13 rlwinm r8,r8,0,17,15 mtmsr r8 - addi r3,r0,0x0000 - mtspr dvlim,r3 mfspr r3,ivpr addi r4,r0,1024 mtctr r4
---
Best regards
Signature · 3 lines
Niklaus Giger Netstal Maschinen AG CH-8752 Naefels
Hi Niklaus,
Quoted 9 lines · Niklaus Giger
I added POST (including
POST_SPR) to my PPC440EPx based hcu5 board.After running I did see by executin "log show"
<..>
<4>POST spr The value of DVLIM special register is incorrect:0x00000000<4>FAILEDI close inspection revealed that DVLIM is set to the correct value in
_start_440, but afterwards reset to 0 in dflush.
I'm pretty sure you are not using the latest version here. I recently committed a patch from Larry to fix this problem by saving and restoring the DVLIM register in this routine. Please give the current version in the official U-Boot repo a try and let me know if the problem still exists.
Quoted 1 line
Are there any special reasons, why dflush should manipulate DVLIM?
DVLIM can be modified for a locked d-cache for example.
cpu/ppc4xx/start.S trap_reloc: · line 1704
Quoted 11 lines
Or would it be okay to submit a patch like:
cpu/ppc4xx/start.S +0
-2@@ -1700,8 +1700,6 @@ trap_reloc: rlwinm r8,r9,0,15,13 rlwinm r8,r8,0,17,15 mtmsr r8 - addi r3,r0,0x0000 - mtspr dvlim,r3
I'm wondering right now, if setting DVLIM to 0 is correct here. Shouldn't it be set to the default value 0x0001f800?
Any comments?
Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
Am Montag 14 Januar 2008 13:20:24 schrieb Stefan Roese:
Quoted 10 lines
Hi Niklaus,
Quoted 7 lines · Niklaus Giger
I added POST (including
POST_SPR) to my PPC440EPx based hcu5 board.After running I did see by executin "log show"
<..>
<4>POST spr The value of DVLIM special register is incorrect:0x00000000<4>FAILED
Quoted 7 lines
Quoted 2 lines
I close inspection revealed that DVLIM is set to the correct value in
_start_440, but afterwards reset to 0 in dflush.I'm pretty sure you are not using the latest version here. I recently committed a patch from Larry to fix this problem by saving and restoring the DVLIM register in this routine. Please give the current version in the official U-Boot repo a try and let me know if the problem still exists.
Sorry for the noise, I forgot to do git pull again and missed therefore Larrys fix from last friday.
<..>
Signature · 3 lines
Niklaus Giger Netstal Maschinen AG CH-8752 Naefels