This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: clk_set_rate failing on TIDSS driver, SYSFW bug?

Part Number: AM625

We are experiencing a bug, in which setting the clock rate from the TIDSS driver is failing from time to time.

This is happening with latest TI 5.10 kernel (however I guess this is irrelevant), and SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.1--v09.00.01 (Kool Koala)')

At the moment to workaround the issue we have the following patch:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Date: Thu, 1 Jun 2023 13:45:05 +0300
Subject: [PATCH] HACK: drm: tidss: clk_set_rate issue workaround
Sometimes when changing the VP clock rate, the result is getting a clock
rate of 0, which obviously then breaks the display. As a quick
workaround, setting the rate a second time seems to fix the problem.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
---
drivers/gpu/drm/tidss/tidss_dispc.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c
index 5571ddfe3c44..4c95f563a530 100644
--- a/drivers/gpu/drm/tidss/tidss_dispc.c
+++ b/drivers/gpu/drm/tidss/tidss_dispc.c
@@ -1346,6 +1346,25 @@ int dispc_vp_set_clk_rate(struct dispc_device *dispc, u32 hw_videoport,
new_rate = clk_get_rate(dispc->vp_clk[hw_videoport]);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Can you confirm the issue? What's the plan to fix it?