* [PATCH RFC v1] drm/meson: venc: add support for HDMI DMT modes up to 3840x2160
@ 2025-11-08 13:42 Martin Blumenstingl
2025-12-29 11:15 ` Christian Hewitt
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Martin Blumenstingl @ 2025-11-08 13:42 UTC (permalink / raw)
To: linux-amlogic, dri-devel
Cc: neil.armstrong, Martin Blumenstingl, maarten.lankhorst,
linux-kernel, mripard, tzimmermann, tobetter, linux-arm-kernel
Commit 5d0bfe448481 ("drm/meson: Add HDMI 1.4 4k modes") added support
for HDMI 1.4 4k modes, which is what TVs need. For computer monitors
the code is using the DMT code-path, which ends up in
meson_venc_hdmi_supported_mode(), which does not allow the 4k modes yet.
The datasheet for all supported SoCs mentions "4Kx2K@60". It's not
clear whether "4K" here means 3840 or 4096 pixels.
Allow resolutions up to 3840x2160 pixels (including middle steps, such
as WQHD at 2560x1440 pixels) so they can be used with computer monitors
(using the DMT code-path in the driver).
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
I'm sending this as RFC as I'm hoping to get some comments on the
"4Kx2K@60" note from the datasheets.
I have tested it myself on a GXL Le Potato board using a computer
monitor at 2560x1440 pixels.
This is the spiritual successor of a patch titled "drm/meson: add
support for 2560x1440 resolution output" from [0]
[0] https://lore.kernel.org/linux-amlogic/20250927130239.825060-1-christianshewitt@gmail.com/
drivers/gpu/drm/meson/meson_venc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/meson/meson_venc.c b/drivers/gpu/drm/meson/meson_venc.c
index 3bf0d6e4fc30..4abd0c09b442 100644
--- a/drivers/gpu/drm/meson/meson_venc.c
+++ b/drivers/gpu/drm/meson/meson_venc.c
@@ -868,10 +868,10 @@ meson_venc_hdmi_supported_mode(const struct drm_display_mode *mode)
DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_NVSYNC))
return MODE_BAD;
- if (mode->hdisplay < 400 || mode->hdisplay > 1920)
+ if (mode->hdisplay < 400 || mode->hdisplay > 3840)
return MODE_BAD_HVALUE;
- if (mode->vdisplay < 480 || mode->vdisplay > 1920)
+ if (mode->vdisplay < 480 || mode->vdisplay > 2160)
return MODE_BAD_VVALUE;
return MODE_OK;
--
2.51.2
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RFC v1] drm/meson: venc: add support for HDMI DMT modes up to 3840x2160
2025-11-08 13:42 [PATCH RFC v1] drm/meson: venc: add support for HDMI DMT modes up to 3840x2160 Martin Blumenstingl
@ 2025-12-29 11:15 ` Christian Hewitt
2026-01-05 14:52 ` neil.armstrong
2026-01-05 15:28 ` Neil Armstrong
2 siblings, 0 replies; 4+ messages in thread
From: Christian Hewitt @ 2025-12-29 11:15 UTC (permalink / raw)
To: Martin Blumenstingl
Cc: linux-amlogic, dri-devel, linux-arm-kernel, linux-kernel,
neil.armstrong, maarten.lankhorst, mripard, tzimmermann,
tobetter
> On 8 Nov 2025, at 5:42 pm, Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote:
>
> Commit 5d0bfe448481 ("drm/meson: Add HDMI 1.4 4k modes") added support
> for HDMI 1.4 4k modes, which is what TVs need. For computer monitors
> the code is using the DMT code-path, which ends up in
> meson_venc_hdmi_supported_mode(), which does not allow the 4k modes yet.
>
> The datasheet for all supported SoCs mentions "4Kx2K@60". It's not
> clear whether "4K" here means 3840 or 4096 pixels.
>
> Allow resolutions up to 3840x2160 pixels (including middle steps, such
> as WQHD at 2560x1440 pixels) so they can be used with computer monitors
> (using the DMT code-path in the driver).
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
This is not a TB to kernel standards, but it seems not many folk
have ultra-wide monitors so this is as good as it gets:
Tested-by: Khadas forum user with a VIM3 running patched 6.18 :)
https://forum.khadas.com/t/can-not-set-display-resolution-to-3440x1440-for-dell-monitor/26271/8
Christian
> ---
> I'm sending this as RFC as I'm hoping to get some comments on the
> "4Kx2K@60" note from the datasheets.
>
> I have tested it myself on a GXL Le Potato board using a computer
> monitor at 2560x1440 pixels.
>
> This is the spiritual successor of a patch titled "drm/meson: add
> support for 2560x1440 resolution output" from [0]
>
> [0] https://lore.kernel.org/linux-amlogic/20250927130239.825060-1-christianshewitt@gmail.com/
>
>
> drivers/gpu/drm/meson/meson_venc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/meson/meson_venc.c b/drivers/gpu/drm/meson/meson_venc.c
> index 3bf0d6e4fc30..4abd0c09b442 100644
> --- a/drivers/gpu/drm/meson/meson_venc.c
> +++ b/drivers/gpu/drm/meson/meson_venc.c
> @@ -868,10 +868,10 @@ meson_venc_hdmi_supported_mode(const struct drm_display_mode *mode)
> DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_NVSYNC))
> return MODE_BAD;
>
> - if (mode->hdisplay < 400 || mode->hdisplay > 1920)
> + if (mode->hdisplay < 400 || mode->hdisplay > 3840)
> return MODE_BAD_HVALUE;
>
> - if (mode->vdisplay < 480 || mode->vdisplay > 1920)
> + if (mode->vdisplay < 480 || mode->vdisplay > 2160)
> return MODE_BAD_VVALUE;
>
> return MODE_OK;
> --
> 2.51.2
>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RFC v1] drm/meson: venc: add support for HDMI DMT modes up to 3840x2160
2025-11-08 13:42 [PATCH RFC v1] drm/meson: venc: add support for HDMI DMT modes up to 3840x2160 Martin Blumenstingl
2025-12-29 11:15 ` Christian Hewitt
@ 2026-01-05 14:52 ` neil.armstrong
2026-01-05 15:28 ` Neil Armstrong
2 siblings, 0 replies; 4+ messages in thread
From: neil.armstrong @ 2026-01-05 14:52 UTC (permalink / raw)
To: Martin Blumenstingl, linux-amlogic, dri-devel
Cc: maarten.lankhorst, linux-kernel, mripard, tzimmermann, tobetter,
linux-arm-kernel
On 11/8/25 14:42, Martin Blumenstingl wrote:
> Commit 5d0bfe448481 ("drm/meson: Add HDMI 1.4 4k modes") added support
> for HDMI 1.4 4k modes, which is what TVs need. For computer monitors
> the code is using the DMT code-path, which ends up in
> meson_venc_hdmi_supported_mode(), which does not allow the 4k modes yet.
>
> The datasheet for all supported SoCs mentions "4Kx2K@60". It's not
> clear whether "4K" here means 3840 or 4096 pixels.
>
> Allow resolutions up to 3840x2160 pixels (including middle steps, such
> as WQHD at 2560x1440 pixels) so they can be used with computer monitors
> (using the DMT code-path in the driver).
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
> I'm sending this as RFC as I'm hoping to get some comments on the
> "4Kx2K@60" note from the datasheets.
>
> I have tested it myself on a GXL Le Potato board using a computer
> monitor at 2560x1440 pixels.
>
> This is the spiritual successor of a patch titled "drm/meson: add
> support for 2560x1440 resolution output" from [0]
>
> [0] https://lore.kernel.org/linux-amlogic/20250927130239.825060-1-christianshewitt@gmail.com/
>
>
> drivers/gpu/drm/meson/meson_venc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/meson/meson_venc.c b/drivers/gpu/drm/meson/meson_venc.c
> index 3bf0d6e4fc30..4abd0c09b442 100644
> --- a/drivers/gpu/drm/meson/meson_venc.c
> +++ b/drivers/gpu/drm/meson/meson_venc.c
> @@ -868,10 +868,10 @@ meson_venc_hdmi_supported_mode(const struct drm_display_mode *mode)
> DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_NVSYNC))
> return MODE_BAD;
>
> - if (mode->hdisplay < 400 || mode->hdisplay > 1920)
> + if (mode->hdisplay < 400 || mode->hdisplay > 3840)
> return MODE_BAD_HVALUE;
>
> - if (mode->vdisplay < 480 || mode->vdisplay > 1920)
> + if (mode->vdisplay < 480 || mode->vdisplay > 2160)
> return MODE_BAD_VVALUE;
>
> return MODE_OK;
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Thanks,
Neil
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RFC v1] drm/meson: venc: add support for HDMI DMT modes up to 3840x2160
2025-11-08 13:42 [PATCH RFC v1] drm/meson: venc: add support for HDMI DMT modes up to 3840x2160 Martin Blumenstingl
2025-12-29 11:15 ` Christian Hewitt
2026-01-05 14:52 ` neil.armstrong
@ 2026-01-05 15:28 ` Neil Armstrong
2 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2026-01-05 15:28 UTC (permalink / raw)
To: linux-amlogic, dri-devel, Martin Blumenstingl
Cc: maarten.lankhorst, linux-kernel, mripard, tzimmermann, tobetter,
linux-arm-kernel
Hi,
On Sat, 08 Nov 2025 14:42:36 +0100, Martin Blumenstingl wrote:
> Commit 5d0bfe448481 ("drm/meson: Add HDMI 1.4 4k modes") added support
> for HDMI 1.4 4k modes, which is what TVs need. For computer monitors
> the code is using the DMT code-path, which ends up in
> meson_venc_hdmi_supported_mode(), which does not allow the 4k modes yet.
>
> The datasheet for all supported SoCs mentions "4Kx2K@60". It's not
> clear whether "4K" here means 3840 or 4096 pixels.
>
> [...]
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/1] drm/meson: venc: add support for HDMI DMT modes up to 3840x2160
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/26ce0b87a815c71d24fd193a81c06daefb60959f
--
Neil
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-05 15:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-08 13:42 [PATCH RFC v1] drm/meson: venc: add support for HDMI DMT modes up to 3840x2160 Martin Blumenstingl
2025-12-29 11:15 ` Christian Hewitt
2026-01-05 14:52 ` neil.armstrong
2026-01-05 15:28 ` Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox