
12 Oct
2016
12 Oct
'16
5:09 a.m.
On Wed, Oct 12, 2016 at 8:06 AM, Simon Glass sjg@chromium.org wrote:
On 9 October 2016 at 05:14, Bin Meng bmeng.cn@gmail.com wrote:
With DM VESA driver on x86 boards, plat->base/size/align are all zeroes and starting address passed to alloc_fb() happens to be 1MB aligned, so this routine does not trigger any issue. On QEMU with U-Boot as coreboot payload, the starting address is within 1MB range (eg: 0x7fb0000), thus causes failure in video_post_bind().
Actually if plat->size is zero, it makes no sense to do anything in this routine. Add such check there.
Signed-off-by: Bin Meng bmeng.cn@gmail.com
drivers/video/video-uclass.c | 3 +++ 1 file changed, 3 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
applied to u-boot-x86, thanks!