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>
This commit is contained in:
David Herrmann 2013-10-02 16:58:39 +02:00 коммит произвёл Tomi Valkeinen
Родитель 498f6d3660
Коммит 9e210be68a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -219,7 +219,7 @@ static int simplefb_probe(struct platform_device *pdev)
info->fbops = &simplefb_ops; info->fbops = &simplefb_ops;
info->flags = FBINFO_DEFAULT | FBINFO_MISC_FIRMWARE; info->flags = FBINFO_DEFAULT | FBINFO_MISC_FIRMWARE;
info->screen_base = ioremap(info->fix.smem_start, info->screen_base = ioremap_wc(info->fix.smem_start,
info->fix.smem_len); info->fix.smem_len);
if (!info->screen_base) { if (!info->screen_base) {
framebuffer_release(info); framebuffer_release(info);