Re: [PATCH v6 2/9] drm/omap: Add ability to check if requested plane modes can be supported

From: Tomi Valkeinen
Date: Wed Oct 27 2021 - 04:34:28 EST


On 18/10/2021 17:28, Neil Armstrong wrote:
From: Benoit Parrot <bparrot@xxxxxx>

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@xxxxxx>
Signed-off-by: Neil Armstrong <narmstrong@xxxxxxxxxxxx>
---
drivers/gpu/drm/omapdrm/dss/dispc.c | 22 ++++++++++++++++++++++
drivers/gpu/drm/omapdrm/dss/dss.h | 2 ++
drivers/gpu/drm/omapdrm/omap_plane.c | 14 ++++++++++++++
3 files changed, 38 insertions(+)

Reviewed-by: Tomi Valkeinen <tomi.valkeinen@xxxxxxxxxxxxxxxx>

Tomi