* [PATCH] drm/meson: use vclk_freq instead of pixel_freq in debug print
@ 2025-06-06 22:10 Martin Blumenstingl
2025-06-09 17:34 ` neil.armstrong
2025-06-10 12:17 ` Neil Armstrong
0 siblings, 2 replies; 3+ messages in thread
From: Martin Blumenstingl @ 2025-06-06 22:10 UTC (permalink / raw)
To: linux-amlogic, dri-devel
Cc: linux-arm-kernel, linux-kernel, Martin Blumenstingl
meson_vclk_vic_supported_freq() has a debug print which includes the
pixel freq. However, within the whole function the pixel freq is
irrelevant, other than checking the end of the params array. Switch to
printing the vclk_freq which is being compared / matched against the
inputs to the function to avoid confusion when analyzing error reports
from users.
Fixes: e5fab2ec9ca4 ("drm/meson: vclk: add support for YUV420 setup")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
drivers/gpu/drm/meson/meson_vclk.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/meson/meson_vclk.c b/drivers/gpu/drm/meson/meson_vclk.c
index 3325580d885d..c4123bb958e4 100644
--- a/drivers/gpu/drm/meson/meson_vclk.c
+++ b/drivers/gpu/drm/meson/meson_vclk.c
@@ -790,9 +790,9 @@ meson_vclk_vic_supported_freq(struct meson_drm *priv,
}
for (i = 0 ; params[i].pixel_freq ; ++i) {
- DRM_DEBUG_DRIVER("i = %d pixel_freq = %lluHz alt = %lluHz\n",
- i, params[i].pixel_freq,
- PIXEL_FREQ_1000_1001(params[i].pixel_freq));
+ DRM_DEBUG_DRIVER("i = %d vclk_freq = %lluHz alt = %lluHz\n",
+ i, params[i].vclk_freq,
+ PIXEL_FREQ_1000_1001(params[i].vclk_freq));
DRM_DEBUG_DRIVER("i = %d phy_freq = %lluHz alt = %lluHz\n",
i, params[i].phy_freq,
PHY_FREQ_1000_1001(params[i].phy_freq));
--
2.49.0
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/meson: use vclk_freq instead of pixel_freq in debug print
2025-06-06 22:10 [PATCH] drm/meson: use vclk_freq instead of pixel_freq in debug print Martin Blumenstingl
@ 2025-06-09 17:34 ` neil.armstrong
2025-06-10 12:17 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: neil.armstrong @ 2025-06-09 17:34 UTC (permalink / raw)
To: Martin Blumenstingl, linux-amlogic, dri-devel
Cc: linux-arm-kernel, linux-kernel
On 07/06/2025 00:10, Martin Blumenstingl wrote:
> meson_vclk_vic_supported_freq() has a debug print which includes the
> pixel freq. However, within the whole function the pixel freq is
> irrelevant, other than checking the end of the params array. Switch to
> printing the vclk_freq which is being compared / matched against the
> inputs to the function to avoid confusion when analyzing error reports
> from users.
>
> Fixes: e5fab2ec9ca4 ("drm/meson: vclk: add support for YUV420 setup")
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
> drivers/gpu/drm/meson/meson_vclk.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/meson/meson_vclk.c b/drivers/gpu/drm/meson/meson_vclk.c
> index 3325580d885d..c4123bb958e4 100644
> --- a/drivers/gpu/drm/meson/meson_vclk.c
> +++ b/drivers/gpu/drm/meson/meson_vclk.c
> @@ -790,9 +790,9 @@ meson_vclk_vic_supported_freq(struct meson_drm *priv,
> }
>
> for (i = 0 ; params[i].pixel_freq ; ++i) {
> - DRM_DEBUG_DRIVER("i = %d pixel_freq = %lluHz alt = %lluHz\n",
> - i, params[i].pixel_freq,
> - PIXEL_FREQ_1000_1001(params[i].pixel_freq));
> + DRM_DEBUG_DRIVER("i = %d vclk_freq = %lluHz alt = %lluHz\n",
> + i, params[i].vclk_freq,
> + PIXEL_FREQ_1000_1001(params[i].vclk_freq));
> DRM_DEBUG_DRIVER("i = %d phy_freq = %lluHz alt = %lluHz\n",
> i, params[i].phy_freq,
> PHY_FREQ_1000_1001(params[i].phy_freq));
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/meson: use vclk_freq instead of pixel_freq in debug print
2025-06-06 22:10 [PATCH] drm/meson: use vclk_freq instead of pixel_freq in debug print Martin Blumenstingl
2025-06-09 17:34 ` neil.armstrong
@ 2025-06-10 12:17 ` Neil Armstrong
1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2025-06-10 12:17 UTC (permalink / raw)
To: linux-amlogic, dri-devel, Martin Blumenstingl
Cc: linux-arm-kernel, linux-kernel
Hi,
On Sat, 07 Jun 2025 00:10:31 +0200, Martin Blumenstingl wrote:
> meson_vclk_vic_supported_freq() has a debug print which includes the
> pixel freq. However, within the whole function the pixel freq is
> irrelevant, other than checking the end of the params array. Switch to
> printing the vclk_freq which is being compared / matched against the
> inputs to the function to avoid confusion when analyzing error reports
> from users.
>
> [...]
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-fixes)
[1/1] drm/meson: use vclk_freq instead of pixel_freq in debug print
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/faf2f8382088e8c74bd6eeb236c8c9190e61615e
--
Neil
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-10 13:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-06 22:10 [PATCH] drm/meson: use vclk_freq instead of pixel_freq in debug print Martin Blumenstingl
2025-06-09 17:34 ` neil.armstrong
2025-06-10 12:17 ` Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®