Creating a bug report/issue
I have searched the existing open and closed issues
My Radxa Zero 3W will not display an image on the Waveshare Round 3.4" monitor with the mainline kernel. This is just HDMI, not SPI or anything. It works perfectly with the vendor kernel, just not the mainline kernel (current or edge). Notably, the backlight doesn’t even come on with the mainline kernel even with separate power.
And it’s not the kernel version (6.1.x vs 6.18.x), just vendor vs. mainline. I tested using kernel 5.10.160 (the only version I could find images with matching kernel versions to test) and the vendor kernel had display, mainline no display.
EDID info is fine and exactly the same regardless of kernel. It seems the monitor is not detected/configured with mainline as there is significant difference in logs and information under /sys.
Here is the info with the vendor kernel:
$ dmesg | grep -i HDMI
[ 8.586518] platform fe040000.vop: Fixed dependency cycle(s) with /hdmi@fe0a0000
[ 8.586691] platform fe0a0000.hdmi: Fixed dependency cycle(s) with /vop@fe040000
[ 10.109548] dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-0v9-supply from device tree
[ 10.109576] dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-0v9-supply property in node /hdmi@fe0a0000 failed
[ 10.109609] dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-1v8-supply from device tree
[ 10.109632] dwhdmi-rockchip fe0a0000.hdmi: Looking up avdd-1v8-supply property in node /hdmi@fe0a0000 failed
[ 10.109920] dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
[ 10.111165] dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI I2C bus driver
[ 10.111533] dwhdmi-rockchip fe0a0000.hdmi: error -ENXIO: IRQ index 1 not found
[ 10.112249] rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops 0xffffb452344dc898)
[ 10.229983] rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_enable] Update mode to 800x800p60, type: 11(if:HDMI0, flag:0x0) for vp0 dclk: 59400000
[ 10.230752] dwhdmi-rockchip fe0a0000.hdmi: Rate 59400000 missing; compute N dynamically
[ 10.388612] rc rc0: dw_hdmi as /devices/platform/fe0a0000.hdmi/rc/rc0
[ 10.388921] input: dw_hdmi as /devices/platform/fe0a0000.hdmi/rc/rc0/input0
[ 10.389479] input: hdmi_cec_key as /devices/platform/fe0a0000.hdmi/dw-hdmi-cec.1.auto/input/input1
[ 11.106693] #0: rockchip-hdmi0
[ 12.483821] rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_enable] Update mode to 800x800p60, type: 11(if:HDMI0, flag:0x0) for vp0 dclk: 59400000
[ 12.484360] dwhdmi-rockchip fe0a0000.hdmi: Rate 59400000 missing; compute N dynamically
[ 13.587199] dwhdmi-rockchip fe0a0000.hdmi: ddc read failed
[ 14.624016] dwhdmi-rockchip fe0a0000.hdmi: ddc read failed
[ 15.660580] dwhdmi-rockchip fe0a0000.hdmi: ddc read failed
[ 16.698270] dwhdmi-rockchip fe0a0000.hdmi: ddc read failed
[ 17.730542] dwhdmi-rockchip fe0a0000.hdmi: ddc read failed
$ ls /sys/class/drm
card0 card0-HDMI-A-1 card0-Writebak-1 card1 renderD128 renderD129 version
$ find /sys | grep -i edid
/sys/kernel/debug/dri/0/HDMI-A-1/edid_override
/sys/kernel/debug/dri/0/Writeback-1/edid_override
/sys/devices/platform/display-subsystem/drm/card0/card0-HDMI-A-1/edid
/sys/devices/platform/display-subsystem/drm/card0/card0-Writeback-1/edid
/sys/module/drm_kms_helper/parameters/edid_firmware
/sys/module/drm/parameters/edid_firmware
/sys/module/drm/parameters/edid_fixup
$ cat /sys/class/drm/card0-HDMI-A-1/modes
800x800
720x480
720x480
720x480
720x480
720x480i
720x480i
720x480i
720x480i
640x480
640x480
By contrast, here is the “current” kernel:
$ dmesg | grep -i HDMI
[ 0.088643] /vop@fe040000: Fixed dependency cycle(s) with /hdmi@fe0a0000
[ 0.088814] /hdmi@fe0a0000: Fixed dependency cycle(s) with /vop@fe040000
[ 0.126359] /hdmi@fe0a0000: Fixed dependency cycle(s) with /hdmi-con
[ 0.126505] /hdmi-con: Fixed dependency cycle(s) with /hdmi@fe0a0000
[ 2.429722] dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller v2.11a with HDCP (DWC HDMI 2.0 TX PHY)
[ 2.431037] dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI I2C bus driver
[ 2.431601] rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops 0xffffbc63ff951938)
$ ls /sys/class/drm
card0 card0-HDMI-A-1 card1 renderD128 version
$ find /sys | grep -i edid
/sys/kernel/debug/dri/display-subsystem/HDMI-A-1/edid_override
/sys/devices/platform/display-subsystem/drm/card0/card0-HDMI-A-1/edid
/sys/module/drm/parameters/edid_firmware
/sys/module/drm/parameters/edid_fixup
$ cat /sys/class/drm/card0-HDMI-A-1/modes
1280x720
1280x720
It shows a lot of logs/configuration is not done with the mainline kernel, including the resolutions. Manually setting an 800x800 resolution in dietpi-config or by adding display info to dietpiEnv.txt does not help.
I am suspecting it’s perhaps (hopefully) just a device tree difference given the vendor kernel uses a combined one and mainline uses individual ones. Also, there seems to be more hdmi in the vendor tree vs the running device tree under mainline. I tried to find an obvious difference in the dts, but nothing I could pinpoint within my capabilities. That being said, I did note a difference in the hdmi ports in the tree with reference to vp0 (which is a difference in the logs above, too). The vendor kernel has this under ports:
port@0 {
hdmi_in_vp0: endpoint@0 {
reg = <0x00>;
remote-endpoint = <0x16>;
status = "okay";
phandle = <0x8c>;
};
While the dietpi running tree seems to have this as its corresponding item:
port@0 {
reg = <0x00>;
phandle = <0xec>;
endpoint {
remote-endpoint = <0x54>;
phandle = <0x4c>;
};
};
So, perhaps an overlay is all that’s needed that maybe just provides a status = “okay” for the hdmi port. I don’t see any existing overlay for hdmi/display (though if I missed it, feel free to point me to it and I’ll take the shame). Unfortunately, writing an overlay for this hits beyond the limits of my abilities.
Any help is greatly appreciated. I’d really like to not be stuck with the vendor kernel – I’m having to pull it from armbian repositories and the last update already made wifi break, so I see long-term headaches trying that approach.
Thanks in advance.