Hi,

When I compiled Drm module against kernel 2.6.25-rc3, I found there was
a typo and flush_agp_mappings() had been removed in the latest kernel.
Below is the patch:

diff --git a/linux-core/drm_agpsupport.c b/linux-core/drm_agpsupport.c
index 0218701..59f14ec 100644
--- a/linux-core/drm_agpsupport.c
+++ b/linux-core/drm_agpsupport.c
@@ -662,7 +662,7 @@ struct drm_ttm_backend *drm_agp_init_ttm(struct
drm_device *
 EXPORT_SYMBOL(drm_agp_init_ttm);

 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
-void drm_agp_chipset_flush(struct drm_device *dev)
+void drm_agp_flush_chipset(struct drm_device *dev)
 {
        agp_flush_chipset(dev->agp->bridge);
 }
diff --git a/linux-core/drm_ttm.c b/linux-core/drm_ttm.c
index a9d8733..6863073 100644
--- a/linux-core/drm_ttm.c
+++ b/linux-core/drm_ttm.c
@@ -128,8 +128,6 @@ static int drm_ttm_set_caching(struct drm_ttm *ttm,
int nonc
                        }
                }
        }
-       if (do_tlbflush)
-               flush_agp_mappings();

        DRM_FLAG_MASKED(ttm->page_flags, noncached,
DRM_TTM_PAGE_UNCACHED);


Best Regards,
Nian Wu

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to