]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx: Add 8 pixel alignment fix
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 28 Apr 2021 22:29:50 +0000 (00:29 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 10 May 2021 14:39:54 +0000 (16:39 +0200)
commit94dfec48fca756cef90263a03e81f24dae24a5c6
tree5caa755bfb7e6323a8e86c4d3ac767d74bddf996
parentf4b34faa08428d813fc3629f882c503487f94a12
drm/imx: Add 8 pixel alignment fix

Some standard resolutions like 1366x768 do not work properly with
i.MX6 SoCs, since the horizontal resolution needs to be aligned
to 8 pixels (so 1360x768 or 1368x768 would work).

This patch allocates framebuffers allocated to 8 pixels. The extra
time required to send the extra pixels are removed from the blank
time. In order to expose the correct display size to userspace,
the stride is increased without increasing the width.

Without this patch systems with this display resolution hang
indefinitely during boot up.

Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20210428222953.235280-3-sebastian.reichel@collabora.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-drm-core.c
drivers/gpu/drm/imx/imx-ldb.c
drivers/gpu/drm/imx/ipuv3-crtc.c
drivers/gpu/drm/imx/ipuv3-plane.c
drivers/gpu/ipu-v3/ipu-dc.c
drivers/gpu/ipu-v3/ipu-di.c