From: David Herrmann Date: Wed, 2 Oct 2013 14:58:39 +0000 (+0200) Subject: simplefb: use write-combined remapping X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=9e210be68a396da0f1d030289c323f1785f29d33;p=deliverable%2Flinux.git simplefb: use write-combined remapping Framebuffers shouldn't be cached and it is usually very uncommon to read them. Therefore, use ioremap_wc() to get significant speed improvements on systems which provide it. On all other systems it's aliased to ioremap_nocache() which is also fine. Reported-by: Tom Gundersen Signed-off-by: David Herrmann Tested-by: Tom Gundersen Tested-by: Alexandre Courbot Tested-by: Stephen Warren Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index 129ab19732c7..210f3a02121a 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -219,8 +219,8 @@ static int simplefb_probe(struct platform_device *pdev) info->fbops = &simplefb_ops; info->flags = FBINFO_DEFAULT | FBINFO_MISC_FIRMWARE; - info->screen_base = ioremap(info->fix.smem_start, - info->fix.smem_len); + info->screen_base = ioremap_wc(info->fix.smem_start, + info->fix.smem_len); if (!info->screen_base) { framebuffer_release(info); return -ENODEV;