From: Alan Cox Date: Wed, 25 Apr 2012 13:37:00 +0000 (+0100) Subject: gma500: mark framebuffer pages write combining X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d955e71b506fcef3e9407af7fdecf973a4ffbc72;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git gma500: mark framebuffer pages write combining 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 Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c index c6465b40090f..db2e823e8951 100644 --- a/drivers/gpu/drm/gma500/gtt.c +++ b/drivers/gpu/drm/gma500/gtt.c @@ -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++) {