Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <teg@jklm.no>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Tested-by: Tom Gundersen <teg@jklm.no>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

David Herrmann and committed by
Tomi Valkeinen
9e210be6 498f6d36

+2 -2
+2 -2
drivers/video/simplefb.c
··· 219 219 220 220 info->fbops = &simplefb_ops; 221 221 info->flags = FBINFO_DEFAULT | FBINFO_MISC_FIRMWARE; 222 - info->screen_base = ioremap(info->fix.smem_start, 223 - info->fix.smem_len); 222 + info->screen_base = ioremap_wc(info->fix.smem_start, 223 + info->fix.smem_len); 224 224 if (!info->screen_base) { 225 225 framebuffer_release(info); 226 226 return -ENODEV;