Skip to contentSkip to conversation

rockchip-devel 7.4-rc4: no HDMI signal on an LG TV, fbdev client involved

DISCUSSION Francesco Saverio Pavone 2 participants 2 messages Nov 29 – Dec 2 Arm Rockchip

lore
Share & tools
lore
#0 lore raw

Hi Cristian,

On a ROCK 5B+ with v7.4-rc4 plus a squash of rockchip-devel at 98ed5f9da2de and my board patches, HDMI0 to an LG TV stays black at 2560x1440@120 (RGB 8 bpc, 497.75 MHz TMDS). The HDMI files are the ones from your branch; the HDPTX PHY differs only by removed dev_dbg lines. Same board, cable and TV work with the July branch (21fb387f5888, on 7.2-rc5). Plain v7.4-rc4 with the same config and command line also locks at this mode.

Most boots log:

rockchip-hdptx-phy fed60000.phy: invalid hdmi params for phy configure dwhdmiqp-rockchip fde80000.hdmi: Failed to set PHY FRL rate: -22 dwhdmiqp-rockchip fde80000.hdmi: Failed to set PHY FRL rate: -22 rockchip-drm display-subsystem: [drm] *ERROR* FRL LTS:2 configure failed: -22 phy phy-fed60000.phy.6: Runtime PM usage count underflow!

One boot had an FRL LTS:3 timeout instead. Later modesets look fine from the kernel side (TMDS, scrambler enabled, frl=0x0), but the picture does not come back, and 1080p60 on the same boot gave no signal either. Reading SCDC from the TV in that state, status flags (0x40) are 0x40 and scrambler status (0x21) is 0x00: no clock detected, no channel lock. On the July branch the same registers read 0x4f and 0x01.

Booting with drm_client_lib.active= and nothing else changed, there is no FRL attempt, SCDC reads 0x4f and 0x01, and the picture is there. After a switch to 1080p60 and back SCDC still reads 0x4f and 0x01; I did not look at the screen for that step.

I do not know which modeset starts the FRL attempt, nor why the link does not recover afterwards.

With the changes up to the current head (18db57aaeb6c) applied on top, the log and the SCDC values are the same. I can run patches or collect more state if you tell me what you need.

LLM agents (OpenAI Codex and Hermes) scripted the SCDC reads and ran the boots on my board, and Claude helped write this mail. I checked the logs quoted here and looked at the screen myself.

Francesco

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

#1 lore raw

Hi Francesco,

Quoted 30 lines · Francesco Saverio Pavone

Hi Cristian,

On a ROCK 5B+ with v7.4-rc4 plus a squash of rockchip-devel at 98ed5f9da2de and my board patches, HDMI0 to an LG TV stays black at 2560x1440@120 (RGB 8 bpc, 497.75 MHz TMDS). The HDMI files are the ones from your branch; the HDPTX PHY differs only by removed dev_dbg lines. Same board, cable and TV work with the July branch (21fb387f5888, on 7.2-rc5). Plain v7.4-rc4 with the same config and command line also locks at this mode.

Most boots log:

rockchip-hdptx-phy fed60000.phy: invalid hdmi params for phy configure dwhdmiqp-rockchip fde80000.hdmi: Failed to set PHY FRL rate: -22 dwhdmiqp-rockchip fde80000.hdmi: Failed to set PHY FRL rate: -22 rockchip-drm display-subsystem: [drm] *ERROR* FRL LTS:2 configure failed: -22 phy phy-fed60000.phy.6: Runtime PM usage count underflow!

One boot had an FRL LTS:3 timeout instead. Later modesets look fine from the kernel side (TMDS, scrambler enabled, frl=0x0), but the picture does not come back, and 1080p60 on the same boot gave no signal either. Reading SCDC from the TV in that state, status flags (0x40) are 0x40 and scrambler status (0x21) is 0x00: no clock detected, no channel lock. On the July branch the same registers read 0x4f and 0x01.

Booting with drm_client_lib.active= and nothing else changed, there is no FRL attempt, SCDC reads 0x4f and 0x01, and the picture is there. After a switch to 1080p60 and back SCDC still reads 0x4f and 0x01; I did not look at the screen for that step.

Quoted 6 lines

I do not know which modeset starts the FRL attempt, nor why the link does not recover afterwards.

With the changes up to the current head (18db57aaeb6c) applied on top, the log and the SCDC values are the same. I can run patches or collect more state if you tell me what you need.

Because of some external infrastructure issues, I'm currently unable to access any of the CI build artifacts. It's entirely possible that a regression slipped in during the rebase. I plan to reintegrate all the HDMI patches, since some newer versions have been applied upstream, and I also have some FRL updates in my personal development branch.

Until that's done, I've pushed my latest work here:

https://gitlab.collabora.com/hardware-enablement/rockchip-3588/linux/-/commits/cristicc/hdmi-frl

The branch contains only the HDMI patches applied on top of a recent drm-misc-next tree (not the very latest, but it should apply cleanly if an update is needed later). Since this is still WIP, it's not well tested, though I haven't found any obvious issues so far.

It would help if you could give it a quick try and see whether the issue is still reproducible. If it is, I'll likely need your help investigating further (e.g. enabling some debug options, collecting logs, etc.).

Cristian

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip