Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp862824iog; Fri, 24 Jun 2022 16:27:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sbm8XyduZG1aiBuUWRpTxZc2CfjDlfOEgYs56usoxgZrkccOUIRsufrordgx5XpLFKvREK X-Received: by 2002:a17:907:cc14:b0:726:3555:ac63 with SMTP id uo20-20020a170907cc1400b007263555ac63mr1255136ejc.697.1656113238648; Fri, 24 Jun 2022 16:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656113238; cv=none; d=google.com; s=arc-20160816; b=k8PXCBd4N0sHhlOW1oV77hiXV8EpulkkSYbOZNfUKhYz65UD6McAKqd2YM6uqoy1aB lKGhtTD7IXBc36a1kSGY3HqolISYF4SwoHfu2uSQz6n8xFYO4ZSK9tSYfuz4MBmj0lP4 z0jk1g09tPwk8FHjojoXiSOfXtIYYA9vvmhgms+Q+37G6CEcq19MkorQL9HsQAunWf4b xWjC6DN6JkCnNsXZd6bICQK7zzxxHXeEO20Ug1jn/+P235QEQZYkVVSX/dYYdla2NQN4 yDbdUXgB5HCogPJVtVcEg8Qm4nK9MPE/99Ler17yIWd+20BX7u0BT+8fwA8MT/mXV5lV iCfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:user-agent:from:references:in-reply-to:mime-version :dkim-signature; bh=yUaUlIMPAe3wvXnfRM5gi/o9kg0TXggL9B/IQ5XoR14=; b=oB37K3HAAhlX0xyhTgBCyqDcLKee0Tvj3phz6A7VmG57WshWOQUp89JyAlmzxuMVAZ o2UTxYoxFvCdZBRti0FEW+SH5JwWnuvimuM4VduyDLe2y5xNANH3wcOlENKBB2kHLVg+ 7puwejsE1fP7ELpzaKurZAiaV51PivnF1rGkJYnFh9z66rBdeyLlqCn88i/fFtn2VhE4 QKNN6L+f21Dg6jv9s8aMihqnoI6gqTdS4nW739m3HuFzQSP3TgOBz4gDIzlIVH+zalnJ pPeLJkqmcXNiNvqr51pW16fuRXCyBxb8191pAXtwV5Qr7hRq0wyTni564sxe/Oab0IU3 xEBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="KmbtAF/H"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd3-20020a1709076e0300b0070ec2ee783esi3681451ejc.841.2022.06.24.16.26.53; Fri, 24 Jun 2022 16:27:18 -0700 (PDT) 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=@chromium.org header.s=google header.b="KmbtAF/H"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbiFXXMv (ORCPT + 99 others); Fri, 24 Jun 2022 19:12:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232002AbiFXXMu (ORCPT ); Fri, 24 Jun 2022 19:12:50 -0400 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A797C88B1C for ; Fri, 24 Jun 2022 16:12:49 -0700 (PDT) Received: by mail-oo1-xc2f.google.com with SMTP id v33-20020a4a9764000000b0035f814bb06eso749536ooi.11 for ; Fri, 24 Jun 2022 16:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc:content-transfer-encoding; bh=yUaUlIMPAe3wvXnfRM5gi/o9kg0TXggL9B/IQ5XoR14=; b=KmbtAF/HUwJQPL9R+/SHHlpK6bf5UsbrnR8kNiAgyPnzFI/NFDn2EEmjfpO3ZaRR3h qbt49v0otRmZ6AbsFxHqo1zKUYVlJmKKByrLpQMbjyGDUlT/qdZKAqe2x8EawZN5IpYz CuOXJGVE0gUAfSJWMAdJHk8IwzujuKLd2ejTo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc:content-transfer-encoding; bh=yUaUlIMPAe3wvXnfRM5gi/o9kg0TXggL9B/IQ5XoR14=; b=DP6itGeB06snzEqN/3h105kkdxLTctOSWN7574vz4oy0quY9eRyHmOsWHFvO1OUQMw m1/akcRuXiS1i0akMnJs99XUdolQG8hpj4dpJgI8/o6B7XN8eQylrkm/jAIbXQDBOsVg rilp53+FsXbJiP2OQn3tLTAIqMPRar6jBj4mzA6/5vc1ZWOzbNgi5YQm52PdRQ0FUrUK 5DBjL+eMzFAdSg8UWr3VvR9yrOBAcyIF15U435LaKbxaSmrf+4kh4JlaONTIwZNHXd4o vZDzRu5QdcDXfiSDOaT103ptDEfvMbdXKzeINGJA/w7unn0p4OfTG1s3nbcrHWetSCDj qT+A== X-Gm-Message-State: AJIora8NZ8R90U3nKvX2JuaUrKcglNIX1V2zkn7Zw480mAQq1fcoxnxW Er22dJBiXiSFYSEVmGzr6dwZCONJPxoBva2Wd9fb1Q== X-Received: by 2002:a4a:98a6:0:b0:41b:e04e:70ce with SMTP id a35-20020a4a98a6000000b0041be04e70cemr683244ooj.25.1656112369023; Fri, 24 Jun 2022 16:12:49 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 24 Jun 2022 16:12:48 -0700 MIME-Version: 1.0 In-Reply-To: <326912ff-9771-0711-366d-79acd436908b@quicinc.com> References: <1656090912-18074-1-git-send-email-quic_khsieh@quicinc.com> <1656090912-18074-3-git-send-email-quic_khsieh@quicinc.com> <007ea4c9-9701-f4ab-3278-5d36bf2018c4@quicinc.com> <326912ff-9771-0711-366d-79acd436908b@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Fri, 24 Jun 2022 16:12:48 -0700 Message-ID: Subject: Re: [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table To: Kuogee Hsieh , agross@kernel.org, airlied@linux.ie, bjorn.andersson@linaro.org, daniel@ffwll.ch, dianders@chromium.org, dmitry.baryshkov@linaro.org, dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, vkoul@kernel.org Cc: quic_abhinavk@quicinc.com, quic_aravindh@quicinc.com, quic_sbillaka@quicinc.com, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Kuogee Hsieh (2022-06-24 15:53:45) > > MSM_DP_CONTROLLER_1 need to match to the index =3D 1 of sc7280_dp_cfg[] <= =3D=3D This is correct > > The problem is sc7280_dp_cfg[] have two entries since eDP place at index > of MSM_DP_CONTROLLER_1. > > but .num_desc =3D 1=C2=A0 <=3D=3D this said only have one entry at sc7280= _dp_cfg[] > table. Therefore eDP will never be found at for loop=C2=A0 at > _dpu_kms_initialize_displayport(). > Yes, but what else does the MSM_DP_CONTROLLER_1 need to match? Because the intention of the previous commit was to make it so the order of sc7280_dp_cfg couldn't be messed up and not match the MSM_DP_CONTROLLER_1 value that lives in sc7280_intf[]. > > Sorry, my mistake. it is not in drm_bridge_add. > > It should be in dpu_encoder_init() of _dpu_kms_initialize_displayport(). > > can you make below changes (patch) to _dpu_kms_initialize_displayport(). > Yes, I've made that change to try to understand the problem. I still don't understand, sadly. Does flipping the order of iteration through 'priv->dp' somehow mean that the crtc that is assigned to the eDP connector is left unchanged? Whereas without registering the eDP encoder first means we have to change the crtc for the eDP encoder and that can't be done atomically?