TencentOS-kernel/drivers/gpu
Stefan Agner 6e4e3cc46a drm: mxsfb: check framebuffer pitch
[ Upstream commit d5a0c816900419105a12e7471bf074319dfa34be ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-16 16:38:39 +08:00
..
drm drm: mxsfb: check framebuffer pitch 2021-03-16 16:38:39 +08:00
host1x gpu: host1x: debug: Fix multiple channels emitting messages simultaneously 2021-03-16 16:33:25 +08:00
ipu-v3 gpu: ipu-v3: image-convert: Wait for all EOFs before completing a tile 2021-03-16 16:34:14 +08:00
vga Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00