]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: Add ability to check if requested plane modes can be supported
authorBenoit Parrot <bparrot@ti.com>
Wed, 17 Nov 2021 14:19:21 +0000 (15:19 +0100)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 8 Dec 2021 08:04:37 +0000 (10:04 +0200)
commit8a549117d61b4728e9c5d2ab2058110fee6eff93
treeeadd00b961ad50ae3c31437550e3a3cc70618f08
parent9fda11adffa9dae9f08b4fe0e4b8da9ad44d58e0
drm/omap: Add ability to check if requested plane modes can be supported

We currently assume that an overlay has the same maximum width and
maximum height as the overlay manager. This assumption is incorrect. On
some variants the overlay manager maximum width is twice the maximum
width that the overlay can handle. We need to add the appropriate data
per variant as well as export a helper function to retrieve the data so
check can be made dynamically in omap_plane_atomic_check().

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211117141928.771082-3-narmstrong@baylibre.com
drivers/gpu/drm/omapdrm/dss/dispc.c
drivers/gpu/drm/omapdrm/dss/dss.h
drivers/gpu/drm/omapdrm/omap_plane.c