Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e210be6 authored by David Herrmann's avatar David Herrmann Committed by Tomi Valkeinen
Browse files

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: default avatarTom Gundersen <teg@jklm.no>
Signed-off-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Tested-by: default avatarTom Gundersen <teg@jklm.no>
Tested-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Tested-by: default avatarStephen Warren <swarren@wwwdotorg.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 498f6d36
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ 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->screen_base = ioremap_wc(info->fix.smem_start,
				       info->fix.smem_len);
	if (!info->screen_base) {
		framebuffer_release(info);