Wakeup broken on iBook G3
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue Mar 22 10:23:01 EST 2005
On Mon, 2005-03-21 at 21:56 +0100, Andreas Schwab wrote:
> Benjamin Herrenschmidt <benh at kernel.crashing.org> writes:
>
> > Can you try playing with pmac_sleep.S and pmac_cache.S, basically
> > reverting those including the calls to set_L2CR in via-pmu.c ?
>
> That makes it even worse (it apparently crashes almost immediately after
> wakeup).
Hrm... Ok...
At this point, I don't know for sure what's up, there have been several
reports but nobody physically close to me has any of these machines for
me to test with.
Have you tried with very latest bk which contains by workarounds for
radeon erratas ? The M7 has smore bugs that might have been triggered by
the moving of code around that I did in the latest readeonfb.
Also, in pmac_cache.S, try locating that bit:
/* disp-flush L1 */
li r4,0x4000
mtctr r4
lis r4,0xfff0
1: lwzx r0,r0,r4
addi r4,r4,32
bdnz 1b
sync
isync
And turn the li r4,0x4000 into lis r4,2 and let me know if that makes
any difference... Same a little bit later, there is:
lis r4,2
mtctr r4
lis r4,0xfff0
1: lwzx r0,r0,r4
addi r4,r4,32
bdnz 1b
sync
isync
Here, try turning the lis r4,2 into lis r4,0x20
And let me know if any of these help.
Finally, what happens if you boot without any framebuffer in the kernel
(no fbdev at all, no fbcon, just no console), ssh into the box, and put
it to sleep ? Does it wake up ?
Ben.
More information about the Linuxppc-dev
mailing list