Re: [PATCH v2] drm: mxsfb: check framebuffer pitch

From: Fabio Estevam
Date: Tue Sep 08 2020 - 13:53:21 EST


Hi Stefan,

On Tue, Sep 8, 2020 at 9:56 AM Stefan Agner <stefan@xxxxxxxx> wrote:
>
> The lcdif IP does not support a framebuffer pitch (stride) other than
> framebuffer width. Check for equality and reject the framebuffer
> otherwise.
>
> This prevents a distorted picture when using 640x800 and running the
> Mesa graphics stack. Mesa tires to use a cache aligned stride, which
> leads at that particular resolution to width != stride. Currently
> Mesa has no fallback behavior, but rejecting this configuration allows
> userspace to handle the issue correctly.

What about adding a Fixes tag so that it can be backported to old
stable kernels?

Thanks