Magellan Linux

Contents of /trunk/ati-drivers/patches/fglrx-2.6-get-page.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue May 8 20:06:05 2007 UTC (16 years, 11 months ago) by niro
File size: 1172 byte(s)
-import

1 diff -ruN lib.orig/modules/fglrx/build_mod/agpgart_be.c lib/modules/fglrx/build_mod/agpgart_be.c
2 --- lib.orig/modules/fglrx/build_mod/agpgart_be.c 2004-03-04 18:25:44.000000000 +0100
3 +++ lib/modules/fglrx/build_mod/agpgart_be.c 2004-05-27 16:10:56.874535000 +0200
4 @@ -1402,7 +1402,8 @@
5 }
6 #endif
7
8 - atomic_inc(&page->count);
9 + //atomic_inc(&page->count);
10 + get_page(page);
11 set_bit(PG_locked, &page->flags);
12 atomic_inc(&agp_bridge.current_memory_agp);
13
14 diff -ruN lib.orig/modules/fglrx/build_mod/firegl_public.c lib/modules/fglrx/build_mod/firegl_public.c
15 --- lib.orig/modules/fglrx/build_mod/firegl_public.c 2004-05-27 16:24:10.879828208 +0200
16 +++ lib/modules/fglrx/build_mod/firegl_public.c 2004-05-27 16:11:33.393983000 +0200
17 @@ -2059,8 +2059,8 @@
18 pMmPage = virt_to_page(kaddr);
19 #endif /* LINUX_VERSION_CODE < 0x020400 */
20
21 - atomic_inc(&(pMmPage->count)); /* inc usage count of page */
22 -
23 +// atomic_inc(&(pMmPage->count)); /* inc usage count of page */
24 + get_page(pMmPage);
25 #if LINUX_VERSION_CODE >= 0x020400
26 // __KE_DEBUG3("vm-address 0x%08lx => kernel-page-address 0x%p\n",
27 // address, page_address(pMmPage));
28

Properties

Name Value
svn:executable *