Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp839888pxb; Thu, 15 Apr 2021 07:49:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpEUpHPlOlSdtnOnpLPJqbVG8FnjrVXcGBRMV33CjI/Ml2fhWldd/uVCYC/ekGqpkZbWsp X-Received: by 2002:a05:6a00:22d6:b029:247:9c54:de70 with SMTP id f22-20020a056a0022d6b02902479c54de70mr3668221pfj.1.1618498194299; Thu, 15 Apr 2021 07:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618498194; cv=none; d=google.com; s=arc-20160816; b=E2ud3FBvYG+WJhe3q8NRHrcgRMSK20I+4mROkohMEcpRkClDZj390GOWqka58xX6PF C39eSpMhiyNsDitHsBUxGz4XhBl9ab0B/ud4dGdZF1aibVpHfPyxN7lu8CjcaSsLZKgG 0RX2Jdvh6U85grNV8DfEqUVAa1fZJUWHXPP7ygUMnCF8L2XXw27ELbdrFYRqL4Y0kTln TYGg+qx67HqQtIOg1TCE5NVFOmR4vcWz7TUncghvjv0kgvG4wrD1jyilEZjS8ki70KjO ixrl68vq4c8XnA2b+wLwbt/QKT7ZBcAeCm5dOZklJEv9SMb0Dczm/fsmCEsGuRer/tc1 pVcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eQFFIM7pSZ3rNVADx3v3MXfqo0UYnXyfAUTQM2K5W9I=; b=fJuWcb2YxdpkcmexWDSQtpl5II2qr/zJcoH6G6FM5eX5ekUur+XUDyBNuCIF7ZdXKr Ao0ksoqB8Nm60QR6AXwYGyv+O9/JOazAms78c5gQ+ly+dE4EtLQzjcap5hQRu4dX51aJ xGTVFFoNFi8HhYYuewg6QhVxCtQ64Yel+eRzH7xbwzwUo++8SLNs6U+twZalYlxJFNB8 2ZRFCrTO+hqdoNzsTqP8kuRRCt/5ULGPA4r+MwWXzEP8sWvMhxRCQ0r/oqkJ5TtrxiVf TDpoxCY4TDfiQiRKXPAJ7+Ig8RFrk1/jfX58EyN0tGKap6fmaw/L0O9tzujfg2xNHQa9 F6YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YqgXOwr2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 21si3430735pgq.205.2021.04.15.07.49.41; Thu, 15 Apr 2021 07:49:54 -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=@chromium.org header.s=google header.b=YqgXOwr2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233644AbhDOOtU (ORCPT + 99 others); Thu, 15 Apr 2021 10:49:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233613AbhDOOtN (ORCPT ); Thu, 15 Apr 2021 10:49:13 -0400 Received: from mail-vk1-xa31.google.com (mail-vk1-xa31.google.com [IPv6:2607:f8b0:4864:20::a31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82E63C061574 for ; Thu, 15 Apr 2021 07:48:50 -0700 (PDT) Received: by mail-vk1-xa31.google.com with SMTP id p206so2695150vkd.4 for ; Thu, 15 Apr 2021 07:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eQFFIM7pSZ3rNVADx3v3MXfqo0UYnXyfAUTQM2K5W9I=; b=YqgXOwr2Mt6Lvo/hqtmAeXPCGz6u5wu+SrcecmjKDQyC9GQaTDWQnPOyH2k0mtcoYP SASBrNZwIWRJ+0dEC/2PIl51tsk9Y5EvAh5TCAuBRYYfg+qfJ3ESXVTDrCbNGPaJAIXd G+E8vdMCY9dWUF8rh+b/jhgukZDc3iNNEg/+Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eQFFIM7pSZ3rNVADx3v3MXfqo0UYnXyfAUTQM2K5W9I=; b=EtpZWktOqBkESHNh5eW/b+mMPRSt2CJTnEeRztY5JzwZ4/u7K3Rcy1xGYIl1Wp0d1m 3mk0noixOy/l8i+nZcbQuYSXk2USXd/psWHsbwbaqZVwGV5OF67qlTwQ5TjptL5CUqBN QDNh1hjB37sBnWxDQ3lhQltXqlF1+eQ563KslUuATfZ5kjMz0WM9rtgYw/Fz2SDN2AlM YmnQ+f6hzRu6yDs3eLcHanxmd4X+KcQbEx4P1DNVHpHke/2n2EWxi2G+baOIaIP7LgQr KPnYQgdJ19yxARktQqPHZ3odFTIcEiN49aCeGEFingdHKf1fjbZz0Gc2PzgKmFjpjge4 n4ug== X-Gm-Message-State: AOAM533ySL0S6TmuGkHYzTW8VUCVwjz7Qe+hn1/ZW/hnHtxMwEE+K1Ul qo+uj+IW/7egAu8YeSG6pKhq0P6E17el2Q== X-Received: by 2002:a1f:b652:: with SMTP id g79mr2337342vkf.21.1618498129446; Thu, 15 Apr 2021 07:48:49 -0700 (PDT) Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com. [209.85.222.54]) by smtp.gmail.com with ESMTPSA id b11sm249554vsj.18.2021.04.15.07.48.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Apr 2021 07:48:49 -0700 (PDT) Received: by mail-ua1-f54.google.com with SMTP id z15so2102004uao.11 for ; Thu, 15 Apr 2021 07:48:49 -0700 (PDT) X-Received: by 2002:a25:d847:: with SMTP id p68mr4882363ybg.345.1618498117948; Thu, 15 Apr 2021 07:48:37 -0700 (PDT) MIME-Version: 1.0 References: <20210402222846.2461042-1-dianders@chromium.org> <20210402152701.v3.1.If62a003f76a2bc4ccc6c53565becc05d2aad4430@changeid> In-Reply-To: From: Doug Anderson Date: Thu, 15 Apr 2021 07:48:25 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 01/12] drm/bridge: Fix the stop condition of drm_bridge_chain_pre_enable() To: Laurent Pinchart Cc: Andrzej Hajda , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Sam Ravnborg , Linus W , Bjorn Andersson , Rob Clark , Stephen Boyd , Steev Klimaszewski , Maarten Lankhorst , linux-arm-msm , Stanislav Lisovskiy , Boris Brezillon , Daniel Vetter , David Airlie , Maxime Ripard , Thomas Zimmermann , dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Apr 14, 2021 at 6:56 PM Laurent Pinchart wrote: > > Hi Doug, > > On Wed, Apr 14, 2021 at 06:19:13PM -0700, Doug Anderson wrote: > > On Sun, Apr 4, 2021 at 5:50 PM Laurent Pinchart wrote: > > > On Fri, Apr 02, 2021 at 03:28:35PM -0700, Douglas Anderson wrote: > > > > The drm_bridge_chain_pre_enable() is not the proper opposite of > > > > drm_bridge_chain_post_disable(). It continues along the chain to > > > > _before_ the starting bridge. Let's fix that. > > > > > > > > Fixes: 05193dc38197 ("drm/bridge: Make the bridge chain a double-linked list") > > > > Signed-off-by: Douglas Anderson > > > > Reviewed-by: Andrzej Hajda > > > > --- > > > > > > > > (no changes since v1) > > > > > > > > drivers/gpu/drm/drm_bridge.c | 3 +++ > > > > 1 file changed, 3 insertions(+) > > > > > > > > diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c > > > > index 64f0effb52ac..044acd07c153 100644 > > > > --- a/drivers/gpu/drm/drm_bridge.c > > > > +++ b/drivers/gpu/drm/drm_bridge.c > > > > @@ -522,6 +522,9 @@ void drm_bridge_chain_pre_enable(struct drm_bridge *bridge) > > > > list_for_each_entry_reverse(iter, &encoder->bridge_chain, chain_node) { > > > > if (iter->funcs->pre_enable) > > > > iter->funcs->pre_enable(iter); > > > > + > > > > + if (iter == bridge) > > > > + break; > > > > > > This looks good as it matches drm_atomic_bridge_chain_disable(). > > > > > > Reviewed-by: Laurent Pinchart > > > > Thanks for your review here and several of the other patches. Can you > > suggest any plan for getting them landed? It would at least be nice to > > get the non-controversial ones landed. > > Do you have commit access to drm-misc ? If not, given your > contributions, I think you qualify for it. No, I don't have access. I searched for how to get it and read through the qualifications and, you're right, I think I do. I've hopefully followed the right flow and created an issue to give me ssh access: https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/348 Is that something you (or someone else on this CC list) approves? > > > I'm curious though, given that the bridge passed to the function should > > > be the one closest to the encoder, does this make a difference ? > > > > Yes, that's how I discovered it originally. Let's see. So if I don't > > have this patch but have the rest of the series then I get a splat at > > bootup. This shows that dsi_mgr_bridge_pre_enable() must be "earlier" > > in the chain than my bridge chip. Here's the splat: > > Right, I think it's caused by a later patch in the series calling this > function with a different bridge than the one closest to the encoder. Yup! I still wanted this patch to be first in the series, though, since it's a bugfix that we'd want to land even if the later patches changed in some way. -Doug