Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3089237iog; Mon, 27 Jun 2022 08:55:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uR6d4PMUH2n1+66X8uV55JwEvK6EONy42zdJTw7U2Gx5Z23nuMnL+50Xy52r80L6/WiDCT X-Received: by 2002:a17:902:e54f:b0:16a:29de:9603 with SMTP id n15-20020a170902e54f00b0016a29de9603mr15619502plf.46.1656345346428; Mon, 27 Jun 2022 08:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656345346; cv=none; d=google.com; s=arc-20160816; b=nY9FEJ6AyIN5VcPnRetnNHTQOZ8bH4erW4wAEk1Xpqi6HLYMy9hPWXucpj+wm7tnqy zpQY7lzbxYWbck1FrTR6VPMuANjRwVZ136ijd13w5viSqxuKuiAGPfFCu5SRBXPJ7p34 1xgEQCGredSGA918gUNrYb5ITJF8q/DSXpUbIKY8f+1fklccSxeIAg06pQBLuEcTThRA TS4aDPEhDxjut/Vs8UXhSOdYFVxcVMOmrmv5DEMxrp3bT8K/y4t/YsUkcmcidD179iWJ UcZFFd1T/PGSDosLGez8MNjjYFbvAV4srzi4gP8Qy1wAB5j46QpvBAP9gCBoK+/MIFA7 5cQA== 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=MazB7iTKSPhXJzSAG36/MGOqvBF1QknHKgi3fk97f0U=; b=FNnRCsZ7brHzJe/nTsu5vPS1q0Ete9TyzU8PUWCFLL5CiW334Ql8WvHYuo/eFw+IhY ubxYKpQrZSbxq/Lv+wl9Ch+sl+SdH53yrkfdOy0Emj6hy+Ee0GCAlxbsmeiUE+V2OKhh UQtkaLMSA3LREZh8psIT8PwPGccV4mIfc/5NvMWZdaZ+j+iTFfcWUYpGt5Pq0m+bPFtC kfOLZXVN3uKSyj3Yo6aMFP6V5QC4XIfi1eK69TdrNtt80Ka5kWl03nSGAi5a8RrGioYV m4+zflaO1UAzNc0SXEohIvIADA+qSTz37NEth6lNfYNx0Cm9Sx5IjpAF8Jx59662aDUV XTPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=P0CzaFf4; 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 4-20020a630804000000b003fc7f1808e2si14971721pgi.332.2022.06.27.08.55.33; Mon, 27 Jun 2022 08:55:46 -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=P0CzaFf4; 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 S238514AbiF0Pt1 (ORCPT + 99 others); Mon, 27 Jun 2022 11:49:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238106AbiF0Pt0 (ORCPT ); Mon, 27 Jun 2022 11:49:26 -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 1786F193C0; Mon, 27 Jun 2022 08:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656344965; x=1687880965; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=MazB7iTKSPhXJzSAG36/MGOqvBF1QknHKgi3fk97f0U=; b=P0CzaFf4TWpJNEvLL0AKHfNnp4O9/2xR9f0dItTfgFX1fIvWJvqhHYGW eoAMkKAuDRpAl+JjCZHdeP9vWXZ4MOaDtKHQWJ7AI0WBB1JZuvc7+A2Pw ZQJ39nAi9nFw0EAAhHM/GH/9fA5dNAXLjswjvo4N7G8zckjSEdZ/Nrp76 A=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 27 Jun 2022 08:49:24 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2022 08:49:24 -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; Mon, 27 Jun 2022 08:49:24 -0700 Received: from [10.110.113.167] (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; Mon, 27 Jun 2022 08:49:22 -0700 Message-ID: Date: Mon, 27 Jun 2022 08:49:22 -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: Dmitry Baryshkov CC: Stephen Boyd , Abhinav Kumar , , , , , , , , , , , , , , References: <1656090912-18074-1-git-send-email-quic_khsieh@quicinc.com> <66ff4642-f268-f5b0-7e28-b196368c508a@quicinc.com> <5cf094cf-343a-82d7-91c4-1284683f9748@quicinc.com> <26263c16-8cbc-ccca-6081-7eba14635d73@quicinc.com> <8445f93a-00f0-64af-5650-07f2bc487742@quicinc.com> <1a2e7574-8f78-d48e-a189-020ffcd39f60@quicinc.com> <9b197183-5306-bf19-0195-2dc1bb72c33b@quicinc.com> From: Kuogee Hsieh In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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/27/2022 8:38 AM, Dmitry Baryshkov wrote: > On Mon, 27 Jun 2022 at 18:33, Kuogee Hsieh wrote: >> >> On 6/24/2022 6:15 PM, Stephen Boyd wrote: >>> Quoting Kuogee Hsieh (2022-06-24 18:02:50) >>>> On 6/24/2022 5:46 PM, Dmitry Baryshkov wrote: >>>>> On Sat, 25 Jun 2022 at 03:28, Dmitry Baryshkov >>>>> wrote: >>>>>> On Sat, 25 Jun 2022 at 03:23, Kuogee Hsieh wrote: >>>>>>> On 6/24/2022 5:21 PM, Dmitry Baryshkov wrote: >>>>>>>> On Sat, 25 Jun 2022 at 03:19, Kuogee Hsieh wrote: >>>>>>>>> How can I have eDP call dpu_encoder_init() before DP calls with >>>>>>>>> _dpu_kms_initialize_displayport()? >>>>>>>> Why do you want to do it? They are two different encoders. >>>>>>> eDP is primary display which in normal case should be bring up first if >>>>>>> DP is also presented. >>>>>> I do not like the concept of primary display. It is the user, who must >>>>>> decide which display is primary to him. I have seen people using just >>>>>> external monitors and ignoring built-in eDP completely.from >>>>>> Also, why does the bring up order matters here? What do you gain by >>>>>> bringing up eDP before the DP? >>>>> I should probably rephrase my question to be more clear. How does >>>>> changing the order of DP vs eDP bringup help you 'to fix screen >>>>> corruption'. >>>> it did fix the primary display correction issue if edp go first and i do >>>> not know the root cause yet. >>>> >>>> We are still investigating it. >>>> >>>> However I do think currently msm_dp_config sc7280_dp_cfg has issues need >>>> be addressed. >>>> >>> What issues exist with sc7280_dp_cfg? It looks correct to me. >> >> If we are going to bring up a new chipset with edp as primary only, i am >> not sure the below configuration will work? >> >>> static const struct msm_dp_config sc7280_dp_cfg = { >>> .descs = (const struct msm_dp_desc[]) { >>> [MSM_DP_CONTROLLER_1] = { .io_start = 0x0aea0000, .connector_type = DRM_MODE_CONNECTOR_eDP, .wide_bus_en = true }, >>> }, >>> .num_descs = 1, >>> }; > As I wrote in one of the comments, there is an issue with num_descs > being not obvious (in your example it should be 2, not 1). I thought > about dropping it and looping until the MSM_DP_CONTROLLER_COUNT, but > this would result in other kinds of hard-to-catch issues. Let me muse > about it. Thanks for consideration.