Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 32168 Details for
Bug 52216
Patch for ati-drivers-3.9.0 to solve memory allocation bug
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to ati-drivers 3.9.0
fglrx-3.9.0-agpmem-2.patch (text/plain), 1.56 KB, created by
Gustavo Ribeiro Alves
on 2004-05-27 15:05:11 UTC
(
hide
)
Description:
Patch to ati-drivers 3.9.0
Filename:
MIME Type:
Creator:
Gustavo Ribeiro Alves
Created:
2004-05-27 15:05:11 UTC
Size:
1.56 KB
patch
obsolete
>diff -ur fglrx-orig/lib/modules/fglrx/build_mod/firegl_public.c fglrx-patched/lib/modules/fglrx/build_mod/firegl_public.c >--- fglrx-orig/lib/modules/fglrx/build_mod/firegl_public.c 2004-03-18 07:00:29.000000000 +0900 >+++ fglrx-patched/lib/modules/fglrx/build_mod/firegl_public.c 2004-05-28 02:10:48.258677968 +0900 >@@ -2816,10 +2816,21 @@ > #ifdef FGL > struct _agp_memory* __ke_agp_allocate_memory_phys_list(__ke_size_t pages, unsigned long type, unsigned long * phys_addr) > { >-#if 0 >+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,0) > #ifdef __AGP__ >- if (AGP_AVAILABLE(allocate_memory_phys_list)) >- return AGP_FUNC(allocate_memory_phys_list)(pages, type, phys_addr); >+ if (AGP_AVAILABLE(allocate_memory)) { >+ int i; >+ struct _agp_memory* newmem = AGP_FUNC(allocate_memory)(pages, type); >+ >+ if (newmem) { >+ /* convert/copy the pysical adresses into the "new" agp_memory table */ >+ for (i = 0; i < pages; i++) { >+ phys_addr[i] = newmem->memory[i]; >+ } >+ } >+ >+ return newmem; >+ } > #endif /* __AGP__ */ > #endif > if (firegl_agp) >diff -ur fglrx-orig/lib/modules/fglrx/build_mod/make.sh fglrx-patched/lib/modules/fglrx/build_mod/make.sh >--- fglrx-orig/lib/modules/fglrx/build_mod/make.sh 2004-03-18 07:00:29.000000000 +0900 >+++ fglrx-patched/lib/modules/fglrx/build_mod/make.sh 2004-05-27 13:11:56.000000000 +0900 >@@ -468,7 +468,7 @@ > src_file=/proc/kallsyms > if [ -e $src_file ] > then >- if [ `fgrep smp $src_file -c` -gt 10 ] >+ if [ `fgrep smp $src_file -c` -gt 16 ] > then > SMP=1 > echo "file $src_file says: SMP=$SMP" >> $logfile
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52216
: 32168