sb-100 bootup hangs...
Sam, just FYI, I think I know what this bug is, I've been helping Fabio hunt down a similar bug on his machine, and he generated enough debug info for me to work on a fix.
The issue is that the atyfb_setup_sparc() code in the ATY driver is doing direct PROM calls to fetch information from the device tree, and it's doing it in such a way that we will violate the PROM restrictions that we can only pass <4GB virtual addresses down into prom calls.
That code should be using the in-kernel copy of the device tree, via the of_*() interfaces, to do it's probing. And I'm going to write such a patch to fix this bug.
So sit tight :-)
Quoted 10 lines · David Miller
Sam, just FYI, I think I know what this bug is, I've been helping Fabio hunt down a similar bug on his machine, and he generated enough debug info for me to work on a fix.
The issue is that the
atyfb_setup_sparc()code in the ATY driver is doing direct PROM calls to fetch information from the device tree, and it's doing it in such a way that we will violate the PROM restrictions that we can only pass <4GB virtual addresses down into prom calls.
Quoted 6 lines
That code should be using the in-kernel copy of the device tree, via the of_*() interfaces, to do it's probing. And I'm going to write such a patch to fix this bug.
So sit tight :-)
I don't have a kernel source handy, but I think I have seen other calls to prom_* around the kernel. Might be worth doing a quick grep to make sure we don't miss others.
Send me the patch over for testing once you are done :)
Cheers
Fabio
From: "Fabio M. Di NItto" <[email protected]>
Date: Wed, 05 Jan 2011 20:38:17 +0100
Quoted 3 lines
I don't have a kernel source handy, but I think I have seen other calls to prom_* around the kernel. Might be worth doing a quick grep to make sure we don't miss others.
Indeed I will be doing an audit :-)
Quoted 10 lines · David Miller
Sam, just FYI, I think I know what this bug is, I've been helping Fabio hunt down a similar bug on his machine, and he generated enough debug info for me to work on a fix.
The issue is that the
atyfb_setup_sparc()code in the ATY driver is doing direct PROM calls to fetch information from the device tree, and it's doing it in such a way that we will violate the PROM restrictions that we can only pass <4GB virtual addresses down into prom calls.
Quoted 5 lines
That code should be using the in-kernel copy of the device tree, via the of_*() interfaces, to do it's probing. And I'm going to write such a patch to fix this bug.
So sit tight :-)
Great - I was anyway postponing debugging this until the weekend. I will test whatever you come up with.
Sam