[U-Boot] [PATCH] video: mxc_ipuv3: fix memory alignment of framebuffer

Eric Nelson eric.nelson at boundarydevices.com
Sat Jul 27 02:56:07 CEST 2013


On 07/26/2013 12:38 PM, Marek Vasut wrote:
> Dear Eric Nelson,
>
>>>> -	fbi->screen_base = (char *)malloc(fbi->fix.smem_len);
>>>> +	fbi->screen_base = (char *)memalign(ARCH_DMA_MINALIGN,
>>>> +					    fbi->fix.smem_len);
>>>
>>> You might want to round-up the length too, like I did in the MXS driver.
>>
>> Did you really run across a display whose size wasn't a multiple of
>> 32, or is this rounding just in muscle-memory for you?
>
> Palm devices with PXA27x (PalmT5, PalmLD, PalmTX) had 484x324 LCDs ;-)
>

With as much cache-enablement as you've done lately, I have a feeling
you round up at the grocery store or pub ;)



More information about the U-Boot mailing list