Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp888565iog; Fri, 24 Jun 2022 17:11:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vsmmn8UY1jYbshRvRpF+e0a4MK4RtsuglkxgQI9gA5IWRO8obaCQ6+6JevoDafI6MZb6Ao X-Received: by 2002:a17:902:f20a:b0:16a:22ef:b17f with SMTP id m10-20020a170902f20a00b0016a22efb17fmr1720991plc.168.1656115894258; Fri, 24 Jun 2022 17:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656115894; cv=none; d=google.com; s=arc-20160816; b=pNLoztL+cYbxoWyyLBE5Dc0ENlB+70awkF4XsfyEcse5pyBH71jaksBWkURXDAO0O6 wyd7ZA/GkQVECKh6K1i7FCEnX6PfeU5yMsG/XZTKLBO9mi5yHraJ8G5P2G4gtwvuREMB FI8KwxthVOiUn6lIqdrkhHVYjYzmY/aSTCCVfq9DJ3lDN+kj5TdruXaRkf99EkKkfQkP 6Riv1evI8rUP/mvzwEVIb3rsUD/KenOhHh2iO2g/HAG6I7Yetvtdtssq8qyvoAw0TGqS Ngf1k8VdUFCfK57phJD2WQOGdDr7M7WALCVgH1WltfjSs8xVBuEip0w+k7pQo/z6NZAs w5Gw== 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=j+1eIf5O9WMahlJkl8hYNSnk/bm8biDohg259LJoO/g=; b=HZ/E9FfrG2wPwzH2b2MrV6Mnx131JGynQscnirEApCVzsUoBXqMtHH38lSn7Au+tEU GnakiM4kyZkCg/S+zrJfro3A0kkWQLluG1JJ4u9GN99EwNXGRNzuBRg93Cr4pYhpzXPw Txk/Gj6EWV8+p/rzFi/y8QY6POLmn7sqwGpoxbC1u/KS868plxmlqaghP+A7C6P6gWv3 /aRp3uQRrxfwqw6/8hMr3u0ZCtJvc3CTT/w7vXL66grMvxg+PblOygm2aPpkE/lW5P6x sn095qmibRh4Rq10hSc3Hllm/QYAA42zCuSoCuEEMq6C5J3qcRKceCyNbjE+OyDJvxma BgSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WjPp2QhL; 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 iw3-20020a170903044300b0016a33d12363si4225822plb.193.2022.06.24.17.11.20; Fri, 24 Jun 2022 17:11:34 -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=WjPp2QhL; 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 S230008AbiFXXpq (ORCPT + 99 others); Fri, 24 Jun 2022 19:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230458AbiFXXpo (ORCPT ); Fri, 24 Jun 2022 19:45:44 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9CD88AC28 for ; Fri, 24 Jun 2022 16:45:42 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-101cdfddfacso5794420fac.7 for ; Fri, 24 Jun 2022 16:45:42 -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=j+1eIf5O9WMahlJkl8hYNSnk/bm8biDohg259LJoO/g=; b=WjPp2QhLMxAzMvmNH6Bdyvi7wrjsIG/6SVnjeCIx33ZdnrT0FzloaiGfU0lA3CDeJb D7xY66ytKYA57XIKpfe59/dnVK12xL/fRml9igY3so3l01YCoor2ZFtI37sGeL7idQg1 4VcAOUxad5AkwdS3gKl9l0rQuEiSBnIGTifw4= 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=j+1eIf5O9WMahlJkl8hYNSnk/bm8biDohg259LJoO/g=; b=upjr1t1M3Tgc2wKaqmQ3Eb2fEl/C+mFLup5UD5AvtanyKMAtCvufy8Zpkt6dQKq+1l D/GkkHearwWEAMCTNA6Sx0q+OrLEmvds1Yc+SyGzIb6SXC7zxXm2OOdaw9hAHt/0ibWz jjZWlYtH7HAzO5YR1E2Snzn6noMxiANtZ9ulygQIfnDwTA8r3S9r90wA+pORmR61AtSC q+djEH1Mf5aryM7i8FYPedjDT2YVjZySuN9Uam5OX8G80ihc9E97h9zgA7fv5TsN0JgV OAX7S7M243/djVw0sezZU5l1bsyqXqYXeDKkaqjfUa4YerUOtOfoGMmcI8PRmDuSb6Gk h3wA== X-Gm-Message-State: AJIora8s5YFAazKIh3rV+wj2mq4PtH9R1vlNHGdbocfVyv7SLSa42feM lEEXEGDkdWQsLQ1MTvldlWjmKfBrB9O34F1BZsyFUw== X-Received: by 2002:a05:6870:b381:b0:fe:2004:b3b5 with SMTP id w1-20020a056870b38100b000fe2004b3b5mr1007924oap.63.1656114342063; Fri, 24 Jun 2022 16:45:42 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 24 Jun 2022 16:45:41 -0700 MIME-Version: 1.0 In-Reply-To: <0ff3d6a3-dc5c-7c77-f8a1-6c4f6c1a3215@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> <0ff3d6a3-dc5c-7c77-f8a1-6c4f6c1a3215@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Fri, 24 Jun 2022 16:45:41 -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 16:30:59) > > On 6/24/2022 4:12 PM, Stephen Boyd wrote: > > 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 ind= ex > >> of MSM_DP_CONTROLLER_1. > >> > >> but .num_desc =3D 1=C2=A0 <=3D=3D this said only have one entry at sc7= 280_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[]. > > > at=C2=A0 _dpu_kms_initialize_displayport() > > > - info.h_tile_instance[0] =3D i; <=3D=3D assign i to become= dp controller id, "i" is index of scxxxx_dp_cfg[] > > This what I mean MSM_DP_CONTROLLER_1 need to match to index =3D 1 of > scxxxx_dp_cfg[]. > > it it is not match, then MSM_DP_CONTROLLER_1 with match to different INTF= . I thought we matched the INTF instance by searching through sc7280_intf[] for a matching MSM_DP_CONTROLLER_1 and then returning that INTF number. See dpu_encoder_get_intf() and the caller.