Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368081 - x11-drivers/ati-drivers-11.5 fail with kernel 2.6.39 (CONFIG_BKL)
Summary: x11-drivers/ati-drivers-11.5 fail with kernel 2.6.39 (CONFIG_BKL)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2011-05-19 18:29 UTC by Helmut Jarausch
Modified: 2011-05-26 20:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch1 (05-fix-global-kernel-lock.diff,877 bytes, patch)
2011-05-20 04:45 UTC, Sergey Dulko
Details | Diff
patch2 (06-no-smp-lock.diff,1.69 KB, patch)
2011-05-20 04:46 UTC, Sergey Dulko
Details | Diff
patch3 (07-2.6.39-support.diff,1.28 KB, patch)
2011-05-20 04:47 UTC, Sergey Dulko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2011-05-19 18:29:05 UTC
The 2.6.39 (gentoo-sources) kernel doesn't have a Big Kernel Lock anymore.
But exactly that is required by the current ati-drivers.

So ati-drivers cannot coexist with the recent Linux kernel.


Reproducible: Always
Comment 1 Enrico Tagliavini 2011-05-19 20:03:20 UTC
I'm sorry this is not a gentoo bug. The AMD propietary driver simply doesn't support 2.6.39 kernels. I'm looking for some custom patch to enable .39 kernel support, if i will find a working one i will surely package it, and you will find it in the gentoo X11 overlay.

If you know such a patch exist, please share, your suggestions are welcome :)
Comment 2 Sergey Dulko 2011-05-20 04:45:59 UTC
Created attachment 274055 [details, diff]
patch1

For me helped patches from Debian.
Comment 3 Sergey Dulko 2011-05-20 04:46:33 UTC
Created attachment 274057 [details, diff]
patch2
Comment 4 Sergey Dulko 2011-05-20 04:47:11 UTC
Created attachment 274059 [details, diff]
patch3
Comment 5 Enrico Tagliavini 2011-05-20 07:02:02 UTC
Thank you. I hit those patches too in the ubuntu repo. I have to say i'm a bit scared to simply remove the lock, but i guess canonical is in touch with AMD and this can really be a solution. I will test this during the weekend (can't do today sorry), if it works without stability issue i will upload an updated package.

Cheers
Comment 6 Enrico Tagliavini 2011-05-21 10:19:31 UTC
Seems to work, i uploaded ati-drivers-11.5-r1 with the debian/ubuntu patch for .39 kernels.

Cheers
Comment 7 Helmut Jarausch 2011-05-24 07:49:44 UTC
(In reply to comment #6)
> Seems to work, i uploaded ati-drivers-11.5-r1 with the debian/ubuntu patch for
> .39 kernels.
> 
> Cheers

Does anyone see this in his/her tree?

Thanks,
Helmut.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-05-26 12:33:32 UTC
Reopening as a patch is available.

The ebuild in the x11 overlay has the problem that it won't check for CONFIG_BKL in kernel 2.6.37 and 2.6.38 but applies the patch only for 2.6.39.
Comment 10 Enrico Tagliavini 2011-05-26 12:37:38 UTC
Oh my...... i'm so absent-minded sometimes..... i'm sorry i will correct it this evening i hope, thank you
Comment 11 Enrico Tagliavini 2011-05-26 17:25:13 UTC
Fixed :)
Comment 12 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-05-26 20:17:38 UTC
Fixed in CVS.