diff options
author | Stefan Agner <stefan@agner.ch> | 2020-09-08 16:16:54 +0200 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2020-09-16 11:13:27 +0200 |
commit | d5a0c816900419105a12e7471bf074319dfa34be (patch) | |
tree | 2c3638d623d4395cffed35eb7f1d45331ba1dfea /drivers/acpi | |
parent | dd425545a8cc57ae99515e771e87a4465e2f43dc (diff) | |
download | linux-stable-d5a0c816900419105a12e7471bf074319dfa34be.tar.gz linux-stable-d5a0c816900419105a12e7471bf074319dfa34be.tar.bz2 linux-stable-d5a0c816900419105a12e7471bf074319dfa34be.zip |
drm: mxsfb: check framebuffer pitch
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 tries 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.
Fixes: 45d59d704080 ("drm: Add new driver for MXSFB controller")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200908141654.266836-1-stefan@agner.ch
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions