Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1471921pxb; Fri, 24 Sep 2021 05:26:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4HMQBYxJZmHbuBzzEu6WFVYCBjKRZL/jXNN6iwax/ap8YVTDI2hicSdNm0iufFpJ0osXp X-Received: by 2002:a05:6e02:154e:: with SMTP id j14mr8517114ilu.303.1632486386023; Fri, 24 Sep 2021 05:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632486386; cv=none; d=google.com; s=arc-20160816; b=KfxSSKkJ4gRXE7S6gdnO/mO4/AlYbgIAY/VwRPivkJ2cphbRpwzjNoP/Ipj8I//p92 D2V83ToY3lgY/Uh7OIHvCmeOwaqnkb4jq7UhK3UhmtiKydJGIfFFJGyM01eNOClSYIMe 1FpW6oOLR6ZKkYEO//c2IugotDxlxqt/TccN7/rVuryhKB5eFMwFIzes+8O28AvukBtW 3qLDXd0AWMiLNyJkw06RrqZ8pr9nDxKRJFcABTl0VeYlQxLLoTlII3hO05nmUzgMsEz3 yC3bnjGT0q00on30AmLyupw6CrDUwbcQJewXMxMoLpK0SY1gC/uLfvjd4d7Exatr+8zr Dedw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=x6aZQTYzEGnb3qjPGQGMoatLSWBGlhF56WQTTYF7HCM=; b=l2oQLTGTU7ks1jpvWJigF/pVLGuF/sUW8N7FD/Hy6jvhl1LaAKfqdloL3Ij3+IdwDb WRt1VMRii530o0PX26ZqruCJ4U+vXbeJ1PfMBO9hgtu2NUDVEBKS3tGHGTaBZEmuheGV zZvF6VgN82W76AB4qKoEYhExkrLlU2/e7AZyFC/KhgBeaPoA3N4FlF1BxjpO272vKJqr x7dazXFSndDZC2KF5xUEYio6XdF5MZhsWKuw1LBMDx+YinJC9BL9mu7bPRUzuzUZACaD RGRA9bPoK/U6ggdTcMNnKTEqgPXAmkaZkDjzDNzLku0vscpHZr1t2pcxKO7QA9gxSDnH tsyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=k5afyNNu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si11992346ios.88.2021.09.24.05.26.13; Fri, 24 Sep 2021 05:26:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=k5afyNNu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343534AbhIXLmL (ORCPT + 99 others); Fri, 24 Sep 2021 07:42:11 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.50]:17247 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244321AbhIXLmK (ORCPT ); Fri, 24 Sep 2021 07:42:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1632483617; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=x6aZQTYzEGnb3qjPGQGMoatLSWBGlhF56WQTTYF7HCM=; b=k5afyNNuKDgUkD15EZHJ43ApUTjytd1FGXOe2OCSgSjvvanVhIGwHsLIOjO1UFuYeO POAuPtu6uSyRiM4DqBFtl63h8ZhwGs22LFdCSbO3o9ow1nvRwArKLHHAUpXFH3dlNGpX P8w+bFccP1sG0/XQ5tPwWWPZQdlBrOGGiPTTOjBj/dZOo5QV9KIQyMMkXw87q4BvtxZ3 f/SLODpR5P60dJ9DV/VWnYogQna5I0H8dUWK9drsyxC2LrUSgL6MY14xBkZtNb7/jjdU C9P9SmDHXBJkgmXE+rBgOluu+xMPxgI7k11T9Ok++oedZ5oQC9ofS+MO6zNmjNx4zWlI Auww== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj4Qpw9iZeHWElw47uAyI=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 47.33.8 SBL|AUTH) with ESMTPSA id I01f74x8OBeGOsI (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Fri, 24 Sep 2021 13:40:16 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [PATCH v3 6/6] drm/ingenic: Attach bridge chain to encoders From: "H. Nikolaus Schaller" In-Reply-To: Date: Fri, 24 Sep 2021 13:40:16 +0200 Cc: Laurent Pinchart , David Airlie , Daniel Vetter , linux-mips , list@opendingux.net, dri-devel , linux-kernel , Paul Boddie Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210922205555.496871-1-paul@crapouillou.net> <20210922205555.496871-7-paul@crapouillou.net> <32234186-1802-4FDF-801A-B14E48FB86D8@goldelico.com> <896D04E4-4058-474B-8BD2-7F21B1C754E4@goldelico.com> <3764505C-7CA9-40C4-8CFA-8B0F2361E6D5@goldelico.com> <7U2WZQ.D8DTPCJ0ZPKO3@crapouillou.net> To: Paul Cercueil X-Mailer: Apple Mail (2.3445.104.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, > Am 23.09.2021 um 22:23 schrieb H. Nikolaus Schaller = : >=20 >=20 >> Because your "it doesn't work" arguments have zero weight otherwise. >=20 > I hope I still can find it. So I can't promise anything. > We have had it complete in DTS and added code to parse it. > It may have been wiped out by cleaning up patch series during rebase. I was able to locate it and place it on top of your ingenic-drm-drv v3 and our synopsys hdmi v3 [1] (+ unpublished work). This [2] should save you a lot of time making dw-hdmi work on jz4780 at = all, so you can focus on our mistakes instead of starting from scratch. Features: - based on v5.15-rc2 - (the first two patches are LetuxOS and build system related and can be = ignored for this discussion) - contains some significant patch from drm-next not yet upstream - contains your v3 series as is - (initially) disables your DRM_BRIDGE_ATTACH_NO_CONNECTOR (is reverted = in the last patch) - adds synopsys stuff and DT schema - adds jz4780.dtsi and ci20.dts - adds ci20_defconfig - (adds some (optional) jz4780 specific features we likely do not need = now) - adds something to dw-hdmi to properly notify HPD - adds a hdmi-regulator so that HPD power can be turned on/off - (attempt to configure the dw-hdmi unwedge feature) - then we add the hdmi-connector to replace the dw-hdmi connector to = device tree - and finally re-enable DRM_BRIDGE_ATTACH_NO_CONNECTOR The result is a) without the last patch I get a proper setup with framebuffer and = edid. Unfortunateley without any image on HDMI. b) if last patch is included (so that DRM_BRIDGE_ATTACH_NO_CONNECTOR is required as by your [patch v3 = 6/6] again) I get: [ 4.351200] [drm:drm_bridge_attach [drm]] *ERROR* failed to attach = bridge /hdmi@10180000 to encoder DPI-34: -22 [ 4.474346] [drm:drm_bridge_attach [drm]] *ERROR* failed to attach = bridge (null) to encoder DPI-34: -22 [ 4.562125] ingenic-drm 13050000.lcdc0: Unable to attach bridge [ 4.568103] ingenic-drm: probe of 13050000.lcdc0 failed with error = -22 Maybe you can spot the bug in the code much quicker than we can. I do not know what Paul Boddie did differently if this initialization with connector-hdmi works for him and does not fail likewise. BR and thanks, Nikolaus [1]: = https://lore.kernel.org/linux-mips/8e873f17fcc9aeb326d99b7c2c8cd25b61dca6f= 5.1628399442.git.hns@goldelico.com/T/ [2]: = https://git.goldelico.com/?p=3Dletux-kernel.git;a=3Dshortlog;h=3Drefs/head= s/upstream%2Bjz4780%2Bhdmi-connector