Skip to content

drm/vc4: hdmi: Remove CPU hangs, take 2

Maxime Ripard linux-arm-kernel linux-clk 1 version Applied

Status from this message: Applied to drm/drm-misc (drm-misc-fixes).

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 18 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5clk: bcm-2835: Pick the closest clock ratedrivers/clk/bcm/clk-bcm2835.c+1 -13 replies
2/5clk: bcm-2835: Remove rounding up the dividersdrivers/clk/bcm/clk-bcm2835.c+3 -84 replies
3/5drm/vc4: hdmi: Set a default HSM ratedrivers/gpu/drm/vc4/vc4_hdmi.c+14 -02 replies
4/5drm/vc4: hdmi: Move the HSM clock enable to runtime_pmdrivers/gpu/drm/vc4/vc4_hdmi.c+46 -262 replies
5/5drm/vc4: hdmi: Make sure the controller is powered in detectdrivers/gpu/drm/vc4/vc4_hdmi.c+4 -02 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchDave StevensonNicolas Saenz JulienneStephen Boyd
1/5R-b T-b A-b
2/5R-b T-b A-b
3/5R-b T-b
4/5R-b R-b T-b
5/5R-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] drm/vc4: hdmi: Remove CPU hangs, take 2

Hi,

Here's another attempt at fixing the complete CPU stall while retrieving the HDMI connector status when the connector is disabled.

This was fixed already, but eventually got reverted by Linus due to the same symptom happening in another situation. This was likely (but not confirmed by the reporter) due to the kernel being booted without an HDMI display connected, in which case the firmware won't initialise the HDMI State Machine clock.

This is fixed by patch 3. However, further changes in the clock drivers were needed for clk_set_min_rate to be used, which are patches 1 and 2.

Finally, patches 4 and 5 are the original patches that were reverted. Patch 4 got a small modification to move the clk_set_min_rate() call before the HSM clock is enabled.

Let me know what you think,
Maxime

Maxime Ripard (5):
clk: bcm-2835: Pick the closest clock rate
clk: bcm-2835: Remove rounding up the dividers drm/vc4: hdmi: Set a default HSM rate
drm/vc4: hdmi: Move the HSM clock enable to runtime_pm drm/vc4: hdmi: Make sure the controller is powered in detect

 drivers/clk/bcm/clk-bcm2835.c  | 13 ++---
 drivers/gpu/drm/vc4/vc4_hdmi.c | 90 ++++++++++++++++++++++++----------
 2 files changed, 68 insertions(+), 35 deletions(-)
Signature · 1 line
2.31.1