OpenCloudOS-Kernel/drivers/gpu/drm/mxsfb
Stefan Agner d5a0c81690 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: 45d59d7040 ("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
2020-09-16 11:13:27 +02:00
..
Kconfig drm: mxsfb: Add i.MX7 and i.MX8M to the list of supported SoCs in Kconfig 2020-07-28 17:21:33 +02:00
Makefile drm: mxsfb: Rename mxsfb_crtc.c to mxsfb_kms.c 2020-07-28 17:21:01 +02:00
mxsfb_drv.c drm: mxsfb: check framebuffer pitch 2020-09-16 11:13:27 +02:00
mxsfb_drv.h drm: mxsfb: Support the alpha plane 2020-07-28 17:21:58 +02:00
mxsfb_kms.c drm: mxsfb: Support the alpha plane 2020-07-28 17:21:58 +02:00
mxsfb_regs.h drm: mxsfb: Support the alpha plane 2020-07-28 17:21:58 +02:00