1 |
scarabeus 09/06/26 11:19:43 |
2 |
|
3 |
Added: 2.6.30-enable_msi.patch 2.6.30-irqreturn_t.patch |
4 |
2.6.30-tlb_flush.patch 2.6.29.patch |
5 |
2.6.30-rt_compat.patch |
6 |
Log: |
7 |
Add the missing patches :(. Per bug #275427. I seriously hate cvs, only thing i run now to fix it is echangelog and repoman commit so why it was not picked before. |
8 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 x11-drivers/ati-drivers/files/kernel/2.6.30-enable_msi.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.30-enable_msi.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.30-enable_msi.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: 2.6.30-enable_msi.patch |
17 |
=================================================================== |
18 |
diff -Naur a/common/lib/modules/fglrx/build_mod/kcl_pci.c b/common/lib/modules/fglrx/build_mod/kcl_pci.c |
19 |
--- a/common/lib/modules/fglrx/build_mod/kcl_pci.c 2009-05-31 12:05:01.115508741 -0500 |
20 |
+++ b/common/lib/modules/fglrx/build_mod/kcl_pci.c 2009-05-31 12:06:15.871506492 -0500 |
21 |
@@ -310,3 +310,8 @@ |
22 |
} |
23 |
#endif //__x86_64__ |
24 |
|
25 |
+#undef pci_enable_msi |
26 |
+int pci_enable_msi(struct pci_dev *pdev) |
27 |
+{ |
28 |
+return pci_enable_msi_block(pdev, 1); |
29 |
+} |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
1.1 x11-drivers/ati-drivers/files/kernel/2.6.30-irqreturn_t.patch |
35 |
|
36 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.30-irqreturn_t.patch?rev=1.1&view=markup |
37 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.30-irqreturn_t.patch?rev=1.1&content-type=text/plain |
38 |
|
39 |
Index: 2.6.30-irqreturn_t.patch |
40 |
=================================================================== |
41 |
diff -Naur a/common/lib/modules/fglrx/build_mod/drm_os_linux.h b/common/lib/modules/fglrx/build_mod/drm_os_linux.h |
42 |
--- a/common/lib/modules/fglrx/build_mod/drm_os_linux.h 2009-05-27 19:24:11.944421623 -0500 |
43 |
+++ b/common/lib/modules/fglrx/build_mod/drm_os_linux.h 2009-05-27 19:28:12.424780164 -0500 |
44 |
@@ -42,10 +42,12 @@ |
45 |
#define DRM_IRQ_ARGS int irq, void *arg, struct pt_regs *regs |
46 |
/** backwards compatibility with old irq return values */ |
47 |
#ifndef IRQ_HANDLED |
48 |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) |
49 |
typedef void irqreturn_t; |
50 |
#define IRQ_HANDLED /* nothing */ |
51 |
#define IRQ_NONE /* nothing */ |
52 |
#endif |
53 |
+#endif |
54 |
|
55 |
/** AGP types */ |
56 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,70) |
57 |
|
58 |
|
59 |
|
60 |
|
61 |
1.1 x11-drivers/ati-drivers/files/kernel/2.6.30-tlb_flush.patch |
62 |
|
63 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.30-tlb_flush.patch?rev=1.1&view=markup |
64 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.30-tlb_flush.patch?rev=1.1&content-type=text/plain |
65 |
|
66 |
Index: 2.6.30-tlb_flush.patch |
67 |
=================================================================== |
68 |
--- common/lib/modules/fglrx/build_mod/firegl_public.c |
69 |
+++ common/lib/modules/fglrx/build_mod/firegl_public.c |
70 |
@@ -2308,7 +2308,7 @@ |
71 |
* kernel < 2.6.27, on_each_cpu has 4 parameters. |
72 |
* kernel >= 2.6.27, on_each_cpu has 3 parameters (removed the "retry" parameter) |
73 |
*/ |
74 |
-#if defined(__x86_64__) && (defined(__SMP__) || defined(CONFIG_SMP)) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) |
75 |
+#if defined(CONFIG_SMP) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) |
76 |
# if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) |
77 |
on_each_cpu(KCL_flush_tlb_one, &va, 1, 1); |
78 |
# else |
79 |
|
80 |
|
81 |
|
82 |
1.1 x11-drivers/ati-drivers/files/kernel/2.6.29.patch |
83 |
|
84 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.29.patch?rev=1.1&view=markup |
85 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.29.patch?rev=1.1&content-type=text/plain |
86 |
|
87 |
Index: 2.6.29.patch |
88 |
=================================================================== |
89 |
Quick-and-dirty fixes to build on 2.6.29-rcX kernels. |
90 |
|
91 |
diff -Nparu build_mod/firegl_public.c fglrx-8.573-new/common/lib/modules/fglrx/build_mod/firegl_public.c |
92 |
--- build_mod/firegl_public.c 2009-01-23 20:00:26.000000000 -0200 |
93 |
+++ fglrx-8.573-new/common/lib/modules/fglrx/build_mod/firegl_public.c 2009-02-13 15:25:00.000000000 -0200 |
94 |
@@ -1460,7 +1460,11 @@ KCL_TYPE_Pid ATI_API_CALL KCL_GetTgid(vo |
95 |
*/ |
96 |
KCL_TYPE_Uid ATI_API_CALL KCL_GetEffectiveUid(void) |
97 |
{ |
98 |
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28) |
99 |
+ return current->cred->euid; |
100 |
+#else |
101 |
return current->euid; |
102 |
+#endif |
103 |
} |
104 |
|
105 |
/** /brief Delay execution for the specified number of microseconds |
106 |
@@ -1832,15 +1836,30 @@ int ATI_API_CALL KCL_PosixSecurityCapChe |
107 |
*/ |
108 |
void ATI_API_CALL KCL_PosixSecurityCapSetIPCLock(unsigned int lock) |
109 |
{ |
110 |
+ |
111 |
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28) |
112 |
+ struct cred *new = prepare_creds(); |
113 |
+ if (!new) { |
114 |
+ printk(KERN_ERR "fglrx: could not allocate memory\n"); |
115 |
+ return; |
116 |
+ } |
117 |
+#else |
118 |
+#define new current |
119 |
+#endif |
120 |
if (lock == 0 ) |
121 |
{ |
122 |
- cap_lower(current->cap_effective, CAP_IPC_LOCK); |
123 |
+ cap_lower(new->cap_effective, CAP_IPC_LOCK); |
124 |
} |
125 |
else |
126 |
{ |
127 |
- cap_raise(current->cap_effective, CAP_IPC_LOCK); |
128 |
+ cap_raise(new->cap_effective, CAP_IPC_LOCK); |
129 |
} |
130 |
- return; |
131 |
+ |
132 |
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28) |
133 |
+ commit_creds(new); |
134 |
+#else |
135 |
+#undef new |
136 |
+#endif |
137 |
} |
138 |
|
139 |
/** \brief Get number of available RAM pages |
140 |
diff -Nparu build_mod/firegl_public.h fglrx-8.573-new/common/lib/modules/fglrx/build_mod/firegl_public.h |
141 |
--- build_mod/firegl_public.h 2009-01-23 20:00:26.000000000 -0200 |
142 |
+++ fglrx-8.573-new/common/lib/modules/fglrx/build_mod/firegl_public.h 2009-02-16 14:02:50.000000000 -0300 |
143 |
@@ -18,6 +18,7 @@ |
144 |
#define _FIREGL_PUBLIC_H_ |
145 |
|
146 |
#include <stdarg.h> |
147 |
+#include <asm/pgtable.h> |
148 |
#include "kcl_pci.h" |
149 |
#include "kcl_io.h" |
150 |
|
151 |
@@ -590,6 +591,11 @@ extern unsigned long KCL_SYSINFO_ |
152 |
#define cpu_has_pge test_bit(X86_FEATURE_PGE, &boot_cpu_data.x86_capability) |
153 |
#endif |
154 |
|
155 |
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28) |
156 |
+#undef pgprot_writecombine |
157 |
+#undef pgprot_noncached |
158 |
+#endif |
159 |
+ |
160 |
#ifndef pgprot_writecombine |
161 |
#define pgprot_writecombine(prot) __pgprot((pgprot_val(prot) & ~(_PAGE_PCD)) | _PAGE_PWT) |
162 |
#endif |
163 |
@@ -598,6 +604,7 @@ extern unsigned long KCL_SYSINFO_ |
164 |
#define pgprot_noncached(prot) __pgprot(pgprot_val(prot) | _PAGE_PCD | _PAGE_PWT) |
165 |
#endif |
166 |
|
167 |
+ |
168 |
#endif //FIREGL_USWC_SUPPORT |
169 |
|
170 |
|
171 |
diff -Nparu build_mod/kcl_acpi.c fglrx-8.573-new/common/lib/modules/fglrx/build_mod/kcl_acpi.c |
172 |
--- build_mod/kcl_acpi.c 2009-01-23 20:00:26.000000000 -0200 |
173 |
+++ fglrx-8.573-new/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2009-02-13 15:25:00.000000000 -0200 |
174 |
@@ -18,6 +18,12 @@ |
175 |
#include <linux/autoconf.h> |
176 |
#include <linux/acpi.h> |
177 |
|
178 |
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28) |
179 |
+#include <../drivers/acpi/acpica/acconfig.h> |
180 |
+#include <../drivers/acpi/acpica/aclocal.h> |
181 |
+#include <../drivers/acpi/acpica/acobject.h> |
182 |
+#endif |
183 |
+ |
184 |
#include "kcl_config.h" |
185 |
#include "kcl_type.h" |
186 |
#include "kcl_acpi.h" |
187 |
#include "kcl_acpi.h" |
188 |
|
189 |
|
190 |
|
191 |
|
192 |
1.1 x11-drivers/ati-drivers/files/kernel/2.6.30-rt_compat.patch |
193 |
|
194 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.30-rt_compat.patch?rev=1.1&view=markup |
195 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/kernel/2.6.30-rt_compat.patch?rev=1.1&content-type=text/plain |
196 |
|
197 |
Index: 2.6.30-rt_compat.patch |
198 |
=================================================================== |
199 |
--- a/common/lib/modules/fglrx/build_mod/firegl_public.c |
200 |
+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c |
201 |
@@ -1352,7 +1352,11 @@ |
202 |
int process_terminated = 1; |
203 |
|
204 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) |
205 |
+#if !defined(CONFIG_PREEMPT_RT) |
206 |
rcu_read_lock(); |
207 |
+#else |
208 |
+ preempt_disable(); |
209 |
+#endif |
210 |
#else |
211 |
read_lock(&tasklist_lock); |
212 |
#endif |
213 |
@@ -1373,7 +1377,11 @@ |
214 |
} |
215 |
} |
216 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) |
217 |
+#if !defined(CONFIG_PREEMPT_RT) |
218 |
rcu_read_unlock(); |
219 |
+#else |
220 |
+ preempt_disable(); |
221 |
+#endif |
222 |
#else |
223 |
read_unlock(&tasklist_lock); |
224 |
#endif |