gma500: mark framebuffer pages write combining
authorAlan Cox <alan@linux.intel.com>
Wed, 25 Apr 2012 13:37:00 +0000 (14:37 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 27 Apr 2012 08:23:32 +0000 (09:23 +0100)
We don't want them uncached, combining will do nicely and fixes the performance
problem with the generic modesetting X server.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/gtt.c

index c6465b40090f788c28153c686fd96656c67a7d2e..db2e823e895102e44b62e51cc5ff633edc8f578b 100644 (file)
@@ -93,7 +93,7 @@ static int psb_gtt_insert(struct drm_device *dev, struct gtt_range *r)
        pages = r->pages;
 
        /* Make sure changes are visible to the GPU */
-       set_pages_array_uc(pages, r->npage);
+       set_pages_array_wc(pages, r->npage);
 
        /* Write our page entries into the GTT itself */
        for (i = r->roll; i < r->npage; i++) {