Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp876390iog; Fri, 24 Jun 2022 16:51:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1veZe88scHBqBHPJlF58HkIEqzD/CPYcnB4/EnmiwpxW6hNrMM1Fr8tWV+A2R91UdBFStkC X-Received: by 2002:a17:907:2da9:b0:722:ce54:2cd1 with SMTP id gt41-20020a1709072da900b00722ce542cd1mr1411521ejc.517.1656114682743; Fri, 24 Jun 2022 16:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656114682; cv=none; d=google.com; s=arc-20160816; b=qhG+zlY4h0sWuR+wnLLvcZL50g+cgPOnZqj6rvPeFOD/kjsVpJmPE0Rxv6q+9nPHvL BMRMoKDFOT9RjK08K5NurNSYlgPlj08XGB6VVG2GocIYq6Qrzs2URJzhY0rKMXYi3Uql HpRE1Vle9f3tVJZbraj9tfdDyVkLD8e6RPQJdQP4znPHvUYYMyFZmxYkEuvbkWhL1Ufu gAqTp4EdyRRDvdnMzRW78gsD8mo0FXcKtj5iYjAg8JinFw9SK7f2YMtoVD8OEJPBNqzo PklPCmbhafl0N9TZTs0mIs9Flzs+HAbiVeE0uNfK0x9wI/3IwhHLGB5n+jqhpzhbz2lc WU4Q== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=t6N1OFmumKaMBQGcfxIzZ6KTThBwsauO4zIl/cRMsMs=; b=iYTScEyYEGSaJjnh5M/itClYtpgMDHqJsKr1wmYJyz6H0WeylgCebIEkNC4LLTFTpJ Seew9ka3SEbOrtczFsUQE6/hqP+hzkSoC7UOZTwOPPnccpF7sQqZad4wVb5VHtybJ0Jf xONAsAetIhmyl+UEm4BMopAY/4oxD61CgCP6tfp2Kj0fZL8xO75zm9Xf0uPavSlE2gdW p6N6ctdRdzSMQWygr138gQ5MpDdYfxh0GWQNqd0c4xY+n3P0DHDUAwQvoDtaYrsKanC4 IH0koTTOA+P3UTktukAET8eYC6B1xsSMiz9ynx9umZ1PT5LBughOLLfh5jG6bI4h1lYk YHkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=fFBqglsB; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a056402191200b0043590d1c8b6si5519366edz.223.2022.06.24.16.50.53; Fri, 24 Jun 2022 16:51:22 -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=@quicinc.com header.s=qcdkim header.b=fFBqglsB; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231652AbiFXXbF (ORCPT + 99 others); Fri, 24 Jun 2022 19:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231300AbiFXXbE (ORCPT ); Fri, 24 Jun 2022 19:31:04 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB55089D31; Fri, 24 Jun 2022 16:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656113462; x=1687649462; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=t6N1OFmumKaMBQGcfxIzZ6KTThBwsauO4zIl/cRMsMs=; b=fFBqglsBheKoXOmlRMKiRFpkiwmGpvI/OTrjfzkws11uG2mWXc1qTDnT q9rD8vuyJy+/Bi33FyYl304GqpLESQMOWhvujR+hdyMt3H6BcdXxH6Rb7 88zoEkE4lgxKTVCgyauH6b+H/1zVuBRDZ73c55gwuk+KyFXj1zkKr6Zqv k=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 24 Jun 2022 16:31:02 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 16:31:01 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 24 Jun 2022 16:31:01 -0700 Received: from [10.110.58.84] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 24 Jun 2022 16:30:59 -0700 Message-ID: <0ff3d6a3-dc5c-7c77-f8a1-6c4f6c1a3215@quicinc.com> Date: Fri, 24 Jun 2022 16:30:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table Content-Language: en-US To: Stephen Boyd , , , , , , , , , , CC: , , , , , 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: Kuogee Hsieh In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 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 = 1 of sc7280_dp_cfg[] <== 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 = 1  <== this said only have one entry at sc7280_dp_cfg[] >> table. Therefore eDP will never be found at for loop  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  _dpu_kms_initialize_displayport() > - info.h_tile_instance[0] = i; <== 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 = 1 of scxxxx_dp_cfg[]. it it is not match, then MSM_DP_CONTROLLER_1 with match to different 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?