Patch "video: ARM CLCD: fix dma allocation size" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
video: ARM CLCD: fix dma allocation size
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
video-arm-clcd-fix-dma-allocation-size.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Sun Mar 18 16:55:33 CET 2018
From: Liam Beguin <[email protected]>
Date: Fri, 7 Apr 2017 17:03:24 +0200
Subject: video: ARM CLCD: fix dma allocation size
From: Liam Beguin <[email protected]>
[ Upstream commit 9a1c779e6b06855e41099caa6f15b3b584dfa88c ]
This patch forces the frambuffer size to be aligned on kernel pages.
During the board startup, the splash screed did appear; the "ts_test" program or our application were not able to start.
The following error message was reported:
error: failed to map framebuffer device to memory.
LinuxFB: driver cannot connect
The issue was discovered, on the LPC32xx platform, during the migration of the LCD definition from the board file to the device tree.
--- drivers/video/fbdev/amba-clcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/video/fbdev/amba-clcd.c +2 -2
@@ -892,8 +892,8 @@ static int clcdfb_of_dma_setup(struct clif (err)return err; - framesize = fb->panel->mode.xres * fb->panel->mode.yres * - fb->panel->bpp /8 ; + framesize =PAGE_ALIGN (fb->panel->mode.xres * fb->panel->mode.yres * + fb->panel->bpp /8 ); fb->fb.screen_base =dma_alloc_coherent (&fb->dev->dev, framesize, &dma,GFP_KERNEL );if (!fb->fb.screen_base)
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/video-arm-clcd-fix-dma-allocation-size.patch