Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp295810pxb; Mon, 7 Feb 2022 11:31:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdYXUuB+ay3abR1tEBJPvb1kD0oGARBLQtsA1Rfiz4CSjPbOfysA9/Ao20sPSpAXZ6wD8N X-Received: by 2002:a17:906:2744:: with SMTP id a4mr937449ejd.510.1644262295468; Mon, 07 Feb 2022 11:31:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644262295; cv=none; d=google.com; s=arc-20160816; b=IVO/6PtyD1Z6sYe5YwgtPjftudcSPkrV1Gd5MItktET0AXqblJvixjSIqIYIF6JYJ9 qZ4Ki6Pg09qsLBg3ZM/FCdmOuOWYYy/kIsrFlRg0vIOOMyGGJZpiIkbRwp6IokG9JJgd bZiTnA6PU4l+CCCbnz05bRhVWFU9fMo6neB7gmzbvJRlG+km4MyxlREobRC2i+q2mhcH rHv1EmZxKycjDse9mCxxbX5R77eiZkCupg8gTyq2Ke0KtdMF5D2/bgnwY3uyZl9qN0ig SrbUajEg0PdGnA6q0wITNodrwQzD58ggcObInxl0S+V7KmbV4OpRUkJuDr7g6ja47btP F0bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=+Lp/u9TyqWGi8tCfXYQsoeJPT8Udd/ptviv++KOZSUU=; b=ajseZ16Vv/98hgCeXMBCgxsUsQhZcp5ESs5lyOShYA3x2mnIxM/PIxsEOk7B1Ad/FR aJlH+fZSOFLUbN2UtJ++g92p408yZhUYqEX0Y9IHFHQDcQrz0Ea1ZmGWEB95ubDqVaNM KEfuxXcGZNGTQpbdIJNgf3Cc64U04fb53XYg58xhRKILukqZvlnT04o0AYQXwnuS0eOQ nNZRnkiSU60pG4DAps4+BJt7xLGtOrRvEUL53er3WrWJdjIutSq9Hia3QwSzmmQ5qm0c cPdzPt2vLhnbpBnUrUmex3k5XeTWy+aGksde/hXsKCDDOtqPRJN6QvHhcE9MfnQCanEm Z7fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=LsUGi2nQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 22si7350223eja.767.2022.02.07.11.31.10; Mon, 07 Feb 2022 11:31:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=LsUGi2nQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359276AbiBDO2M (ORCPT + 99 others); Fri, 4 Feb 2022 09:28:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351482AbiBDO2L (ORCPT ); Fri, 4 Feb 2022 09:28:11 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE18DC061714 for ; Fri, 4 Feb 2022 06:28:10 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id f17so11726886wrx.1 for ; Fri, 04 Feb 2022 06:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=+Lp/u9TyqWGi8tCfXYQsoeJPT8Udd/ptviv++KOZSUU=; b=LsUGi2nQVyaZowh+9qGjI90V+JaTfSH7TlMvyQdkd79C3DnYZ8eFgm5y9GVhgcwhXj N5zvIWvdV1iH5oAdjMxrfwzgkVdq+hxWEiCyUblvJw4Fqj0bZ5suNaT/wjPzpwyP1swM akSDRwdfiFkK0egXRe6WLWYYuMnvOSyfKh3giu5qg20tZOCGZdYIhK70Ke11VmOqQU25 NkpEl39PW92FOPW9ezbjXE1k297b0IRF2Od6ddBQagZXgVVA8K3Cm6mpeab2XautNFOs 2s68eIC0XKN8z7dHZqG7Zoia/w/nOnFEMfMU9A9wfzdceOSZ/qYfCVWg7kGv9bGmppO3 QkXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=+Lp/u9TyqWGi8tCfXYQsoeJPT8Udd/ptviv++KOZSUU=; b=iG9oqfAf+441hHRH9fIbnuuA7NVtbgyUK+yY2Pvzq44ltKeKa1rLu6u9lkYrOtHxJO FpwdZ8b7iSg8EGEkm0ofPZTk2bXeOVelNqEtcxnFglNIFCoYf3xW4i86xEhujzkixua0 liojHq7y16JQ7r4ieRpAP+Fnb8hUdKSlbi9PuCYkXt/g4jK1ECmXY/7os57YK9+LbRjU /+zu+YV1Obf2mgovYkVY8Jqnu9zPd0MBYosCBRCEQkzbhr/W9/HVrPfpVE3PU0vv+BwC RSVnnoWpztzdhz5N7tdh4Rskl/6Y58CBYhr3F6TlkFSizzvtCi2wdVveFVX+5AMR+BhA xD5w== X-Gm-Message-State: AOAM531tQS6ft60tRP/8+3DXDNsptMNRMCeJljb+4HiH4KYS0Uz8rw7I hcfTgrMHPwk3XBXqHWbtyVOPTvjWv30UtXo6 X-Received: by 2002:a05:6000:1292:: with SMTP id f18mr2682399wrx.133.1643984889385; Fri, 04 Feb 2022 06:28:09 -0800 (PST) Received: from ?IPV6:2001:861:44c0:66c0:3fbe:ff10:110:739? ([2001:861:44c0:66c0:3fbe:ff10:110:739]) by smtp.gmail.com with ESMTPSA id y3sm2324801wry.109.2022.02.04.06.28.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Feb 2022 06:28:08 -0800 (PST) Message-ID: <71bd653b-0703-d34d-7da3-84a7088d02b7@baylibre.com> Date: Fri, 4 Feb 2022 15:28:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2] drm/bridge: dw-hdmi: use safe format when first in bridge chain Content-Language: en-US To: Robert Foss Cc: laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kieran.bingham@ideasonboard.com, biju.das.jz@bp.renesas.com, Kieran Bingham References: <20220119122843.1455611-1-narmstrong@baylibre.com> From: Neil Armstrong Organization: Baylibre In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 04/02/2022 15:05, Robert Foss wrote: > On Wed, 19 Jan 2022 at 13:28, Neil Armstrong wrote: >> >> When the dw-hdmi bridge is in first place of the bridge chain, this >> means there is no way to select an input format of the dw-hdmi HW >> component. >> >> Since introduction of display-connector, negotiation was broken since >> the dw-hdmi negotiation code only worked when the dw-hdmi bridge was >> in last position of the bridge chain or behind another bridge also >> supporting input & output format negotiation. >> >> Commit 0656d1285b79 ("drm/bridge: display-connector: implement bus fmts callbacks") > > I think this is the wrong hash. Is 7cd70656d128 the actual hash? Wow indeed, thanks for checking... > >> was introduced to make negotiation work again by making display-connector >> act as a pass-through concerning input & output format negotiation. >> >> But in the case where the dw-hdmi is single in the bridge chain, for >> example on Renesas SoCs, with the display-connector bridge the dw-hdmi >> is no more single, breaking output format. >> >> Reported-by: Biju Das >> Bisected-by: Kieran Bingham >> Tested-by: Kieran Bingham >> Fixes: 0656d1285b79 ("drm/bridge: display-connector: implement bus fmts callbacks"). > > This hash too. > >> Signed-off-by: Neil Armstrong >> --- >> Changes since v1: >> - Remove bad fix in dw_hdmi_bridge_atomic_get_input_bus_fmts >> - Fix typos in commit message >> >> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 5 +++-- >> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c >> index 54d8fdad395f..97cdc61b57f6 100644 >> --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c >> +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c >> @@ -2551,8 +2551,9 @@ static u32 *dw_hdmi_bridge_atomic_get_output_bus_fmts(struct drm_bridge *bridge, >> if (!output_fmts) >> return NULL; >> >> - /* If dw-hdmi is the only bridge, avoid negociating with ourselves */ >> - if (list_is_singular(&bridge->encoder->bridge_chain)) { >> + /* If dw-hdmi is the first or only bridge, avoid negociating with ourselves */ >> + if (list_is_singular(&bridge->encoder->bridge_chain) || >> + list_is_first(&bridge->chain_node, &bridge->encoder->bridge_chain)) { >> *num_output_fmts = 1; >> output_fmts[0] = MEDIA_BUS_FMT_FIXED; >> >> -- >> 2.25.1 >> > > There are two checkstyle issues apart from the above mentioned hash > issues, and I think we can ignore those. With the above mentioned > issue fixed, feel free to add my r-b. > > Reviewed-by: Robert Foss Thanks, I'll fix & resend with your r-b. Neil