Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232385 - x11-drivers/ati-drivers-8.501: allow compiling with realtime RCU preemption enabled in kernel >= 2.6.25
Summary: x11-drivers/ati-drivers-8.501: allow compiling with realtime RCU preemption e...
Status: RESOLVED DUPLICATE of bug 232381
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-19 23:39 UTC by Andrey Vul
Modified: 2008-07-20 13:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Vul 2008-07-19 23:39:31 UTC
This is a one-liner fix to the x11-drivers/ati-drivers-8.501 ebuild to allow the driver to be compiled against a kernel with realtime RCU preemption.
Diff follows:
--- /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.501.ebuild       2008-07-19 17:19:24.102859737 -0400
+++ /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.501-r1.ebuild    2008-07-19 16:46:01.345860800 -0400
@@ -75,7 +75,7 @@
        fi

        if kernel_is ge 2 6 25 && linux_chkconfig_present PREEMPT_RCU; then
-               die "${P} is not compatible RCU Preemption, please disable it"
+               sed '/EXPORT_SYMBOL/s/GPL//g' -i /usr/src/linux/kernel/rcupreempt.c
        fi

        if kernel_is ge 2 6 24 && ! linux_chkconfig_present PCI_LEGACY; then


Reproducible: Always

Steps to Reproduce:
Original bug:
1) Make sure /usr/src/linux is rt-patched and rt-enabled
2) run "emerge -1 x11-drivers/ati-drivers"

Actual Results:  
ati-drivers-8.501: die message:
"ati-drivers-8.501 is not compatible RCU Preemption, please disable it"
< ati-drivers-8.501: compile failure: __rcu_read_(un)lock is GPL-only, some incompatibility (I forgot the details after un-GPLONLY-ing __rcu_read_lock and __rcu_ead_unclock)



only required for -rt kernels >= 2.6.25
Comment 1 Andrey Vul 2008-07-19 23:40:41 UTC
tested on x86 and amd64
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-07-20 13:22:53 UTC

*** This bug has been marked as a duplicate of bug 232381 ***