diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-10-02 10:58:39 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-10-30 06:49:02 -0400 |
commit | 9e210be68a396da0f1d030289c323f1785f29d33 (patch) | |
tree | aadf07dfd2814fabd010f1d39a2e85084ef20ca4 /drivers/video/simplefb.c | |
parent | 498f6d3660e8c3343b26a5f8e2707b642bcf3fc8 (diff) |
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>
Diffstat (limited to 'drivers/video/simplefb.c')
-rw-r--r-- | drivers/video/simplefb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
219 | 219 | ||
220 | info->fbops = &simplefb_ops; | 220 | info->fbops = &simplefb_ops; |
221 | info->flags = FBINFO_DEFAULT | FBINFO_MISC_FIRMWARE; | 221 | info->flags = FBINFO_DEFAULT | FBINFO_MISC_FIRMWARE; |
222 | info->screen_base = ioremap(info->fix.smem_start, | 222 | info->screen_base = ioremap_wc(info->fix.smem_start, |
223 | info->fix.smem_len); | 223 | info->fix.smem_len); |
224 | if (!info->screen_base) { | 224 | if (!info->screen_base) { |
225 | framebuffer_release(info); | 225 | framebuffer_release(info); |
226 | return -ENODEV; | 226 | return -ENODEV; |