Re: HDMI isn't probed on v5.15-rc1 on ULCB+KF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Morimoto-san,

Until I can get my ULCB to boot to test this here, I'll try to help you
debug the problem.

On Mon, Nov 01, 2021 at 03:49:24PM +0900, Kuninori Morimoto wrote:
> 
> Hi Laurent, again
> 
> About this topic, v5.15 was released, but it still
> has "No soundcards" issue.
> There is no dw-hdmi, thus no soundcards
> 
> 	...
> 	[    1.431196] printk: console [ttySC0] enabled
> =>	[    1.442432] rcar-du feb00000.display: failed to initialize DRM/KMS (-6)
> 	[    1.481179] loop: module loaded
> 	...
> 	[    9.568307] ALSA device list:
> =>	[    9.571446]   No soundcards found.
> 	...

Do you get any error message from the dw-hdmi driver ? In particular,
I'd like to know if the dw_hdmi_parse_dt() function fails. There are
error messages in all error paths but the last one, the following patch
may help debugging the problem.

diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
index 54d8fdad395f..8be3a1042ede 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
@@ -3209,10 +3209,14 @@ static int dw_hdmi_parse_dt(struct dw_hdmi *hdmi)
 	}

 	hdmi->next_bridge = of_drm_find_bridge(remote);
-	of_node_put(remote);
-	if (!hdmi->next_bridge)
+	if (!hdmi->next_bridge) {
+		dev_err(hdmi->dev, "no bridge found for port@%u (%pOF)\n",
+			hdmi->plat_data->output_port, remote);
+		of_node_put(remote);
 		return -EPROBE_DEFER;
+	}

+	of_node_put(remote);
 	return 0;
 }

Is the CONFIG_DRM_DISPLAY_CONNECTOR option enabled in your kernel ?

> I re-start works for me if I reverted this patch
> 
> 	--------------------------------
> 	commit d0f44e0dac29aca3f85d238dfbcd2e52450b38dc
> 	Author: Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx>
> 	Date:   Mon May 25 07:05:26 2020 +0300
> 
> 	    drm: rcar-du: dw-hdmi: Set output port number
> 
> 	    Report the DT output port number in dw_hdmi_plat_data to connect to the
> 	    next bridge in the dw-hdmi driver.
> 
> 	    Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx>
> 	    Tested-by: Kieran Bingham <kieran.bingham@xxxxxxxxxxxxxxxx> # On V3U
> 	    Reviewed-by: Kieran Bingham <kieran.bingham+renesas@xxxxxxxxxxxxxxxx>
> 	--------------------------------
> 
> 	...
> 	[    1.431130] printk: console [ttySC0] enabled
> =>	[    1.442219] rcar-du feb00000.display: failed to initialize DRM/KMS (-6)
> =>	[    1.451050] rcar-dw-hdmi fead0000.hdmi: Detected HDMI TX controller v2.01a with HDCP (DWC HDMI 2.0 TX PHY)
> =>	[    1.461560] rcar-dw-hdmi fead0000.hdmi: registered DesignWare HDMI I2C bus driver
> 	[    1.501043] loop: module loaded
> 	...
> 	[    9.180464] ALSA device list:
> =>	[    9.183519]   #0: rcar-sound
> 	...

-- 
Regards,

Laurent Pinchart



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux