Linux 3.5.7 vs Radeon HD 6570

AmigaOne X1000 platform specific issues related to Linux only.
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Linux 3.5.7 vs Radeon HD 6570

Post by marcus »

When running certain GL applications (such as the Android system emulator), I get system lockups related to the RadeonHD drm driver:

Code: Select all

[1821887.366661] radeon 0000:01:00.0: couldn't schedule ib
[1821887.366667] [drm:radeon_cs_ib_chunk] *ERROR* Failed to schedule IB !
[1821904.616133] radeon 0000:01:00.0: couldn't schedule ib
[1821904.616139] [drm:radeon_cs_ib_chunk] *ERROR* Failed to schedule IB !
When this happens, basically all X output is blocked (at most the mouse pointer can move), and I have to reboot the system.

Upgrading mesa from 9.0.3 to 9.1.1 made no difference at all, but this looks like a problem in the kernel driver anyway.

So, since the 3.5 kernel series is EOL:ed (so is 3.6 and 3.7), is someone working on a 3.8 kernel, which might fix this problem? It would be nice to be able to run any GL program without having to fear for a mandatory reboot...
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Linux 3.5.7 vs Radeon HD 6570

Post by xeno74 »

I have the same problem :(
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
zappa2009
Posts: 230
Joined: Tue Jun 21, 2011 12:17 pm

Re: Linux 3.5.7 vs Radeon HD 6570

Post by zappa2009 »

I think this Problem is the KMS and DRM driver for the RadeonHD cards.
Or missing Kernel-Modules ? I dont know.

I have the same Problem with Supertuxkart on some Maps/Overworld.
X1000 RadeonHD5450 4GB (2x2GB) DDR2-PC2-8500 Kingston HyperX 5-5-5-5-15 OS4.1.6 & Lubuntu13.04/mintppc11 with Kernel 3.8.7/3.9
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Linux 3.5.7 vs Radeon HD 6570

Post by xeno74 »

zappa2009 wrote:I think this Problem is the KMS and DRM driver for the RadeonHD cards.
Or missing Kernel-Modules ? I dont know.

I have the same Problem with Supertuxkart on some Maps/Overworld.
What do you think about to build a new kernel like 3.8?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Linux 3.5.7 vs Radeon HD 6570

Post by marcus »

What do you think about to build a new kernel like 3.8?
That's my plan. Hence the question in the OP if somebody is already working on it, to avoid duplicate efforts...
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Linux 3.5.7 vs Radeon HD 6570

Post by xeno74 »

marcus wrote:
What do you think about to build a new kernel like 3.8?
That's my plan. Hence the question in the OP if somebody is already working on it, to avoid duplicate efforts...
That's very kind of you :)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Linux 3.5.7 vs Radeon HD 6570

Post by marcus »

Well, my kindness only allowed me to wait for so long before going ahead regardless... :-)

I've now made a 3.8.7 build. Darren's 3.5.7 patch could be applied with only one small modification.

So far, it's looking promising. I've seen no kernel lockups yet. At one point (where I was expecting a kernel lockup), the mouse pointer froze for a few seconds, but after that things were able to proceed. Then the user process crashed, but that's still preferable to a kernel lockup, and probably not related anyway. 8-)

If someone else want's to give it a try and see if it fixes their lockups too, I've put the updated kernel patch up as http://mc.pp.se/nemo_3.8.7.patch.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Linux 3.5.7 vs Radeon HD 6570

Post by xeno74 »

marcus wrote:Well, my kindness only allowed me to wait for so long before going ahead regardless... :-)

I've now made a 3.8.7 build. Darren's 3.5.7 patch could be applied with only one small modification.

So far, it's looking promising. I've seen no kernel lockups yet. At one point (where I was expecting a kernel lockup), the mouse pointer froze for a few seconds, but after that things were able to proceed. Then the user process crashed, but that's still preferable to a kernel lockup, and probably not related anyway. 8-)

If someone else want's to give it a try and see if it fixes their lockups too, I've put the updated kernel patch up as http://mc.pp.se/nemo_3.8.7.patch.
Thank you! Could you post your kernel config, please?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Linux 3.5.7 vs Radeon HD 6570

Post by xeno74 »

OK, I have found it :)

Code: Select all

zcat /proc/config.gz > ./.config
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
daz
Beta Tester
Beta Tester
Posts: 329
Joined: Tue Dec 21, 2010 7:32 pm

Re: Linux 3.5.7 vs Radeon HD 6570

Post by daz »

marcus wrote:Well, my kindness only allowed me to wait for so long before going ahead regardless... :-)

I've now made a 3.8.7 build. Darren's 3.5.7 patch could be applied with only one small modification.
Hmm, hand't thought of trying my patch directly against a newer kernel version, they have a tendency to change whole functions...

The modification you refer to will be the pci device secondary bus i assume (caused me a bit of trouble)

I have an experimental 3.8.6 running here, but is still under test.I'm trying (without much success) to add UVD.

Perhaps you can point me towards what doesn't work for you as I haven't seen problems, and am not sure it isn't a problem with the programs themselves, not the kernel driver (as many other things work fine).
So far, it's looking promising. I've seen no kernel lockups yet. At one point (where I was expecting a kernel lockup), the mouse pointer froze for a few seconds, but after that things were able to proceed. Then the user process crashed, but that's still preferable to a kernel lockup, and probably not related anyway. 8-)

If someone else want's to give it a try and see if it fixes their lockups too, I've put the updated kernel patch up as http://mc.pp.se/nemo_3.8.7.patch.
3.8.7..hmm kernels been updated again I see (more work)

If I workout UVD I'll see about getting a patch for that here too.

Regards
Darren
Post Reply