Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp8156772pxb; Fri, 19 Feb 2021 08:43:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPWVMMJfP9zlCZMSccjWRo3y2btHMMz5xXpR1Dd9delPq08Z3WDa4ExxKszExCN0b7gVoY X-Received: by 2002:a17:906:4c85:: with SMTP id q5mr9324963eju.375.1613753037232; Fri, 19 Feb 2021 08:43:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613753037; cv=none; d=google.com; s=arc-20160816; b=T2G35F8ZC6T2kMyedHxe088gyB9a5tnp9maWyb8X+bLcVNNO8v3k0IjxtkQ1lQT274 WUgnS00WBaOU+3eEP3ttYMMm4gff5eD89Oy3MU6hNGBHneE8sgn0LX+Bg7gLimyPGR/c fe6mSO28lUR5PbIXj6WsWzQQdkfa5+qdqjw+WEpdTKKciArN9xezVBM1m969QP73LJwc MRXvV/IW0BDeLdCPEv+rBBbvJp6UbS4qHdkYr4kODwxCpLe2mZG9NtP70YqMpdTtIcrr 2J2DCsYPnRipnA04QGQPQJIJ/AHRcBhd61PgHZc+fJ+tvudjTKd75HeYBYrp8wGX9Ogk /uRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=bGYuBowdCAf1ux6PDCOPxHG/ip7+T+wrGkBIdOPIiaM=; b=AIV8JOQAPhto/mBrCGtxaZM0oKmKJVdIpw8Ui8WLS1IR/pFmKM4iKBzoDuCD8k7QnX LA+Ksu3KSLETbikrQalYR0xzzC+6ldrBMUk1ZU+9WPpSs8SeqS40mbrig4M/jkRlng9/ o8IozGEwdGejG18lszZ7kaKVP4RnSymJOz+jvVAzPxbjvZHzd0OC9tt0L2ctsnuJNV9z Cufbzzd4Lw/DrKlb+8WLeV5u0CBtjA3lPaoxbMQZqLLvZc/+Y5Y1xyzOoSWH2fGFHwpf pcoSszZbKTzk+cDO5r+8oh87/0QhAhJH12P4MG+alnQbCAnQiuR7Ix9jaqD9T2yOv86T BTHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=i7GGJHoJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t14si6829953edd.161.2021.02.19.08.43.33; Fri, 19 Feb 2021 08:43:57 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=i7GGJHoJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230180AbhBSQkg (ORCPT + 99 others); Fri, 19 Feb 2021 11:40:36 -0500 Received: from z11.mailgun.us ([104.130.96.11]:38666 "EHLO z11.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbhBSQke (ORCPT ); Fri, 19 Feb 2021 11:40:34 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1613752808; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=bGYuBowdCAf1ux6PDCOPxHG/ip7+T+wrGkBIdOPIiaM=; b=i7GGJHoJLmzxmUFpF19Ac8rEm1Z0VkHoZJhJo1kca+JDC15B7zGeOWObJORhjyS32YOLFTQg weK0Uy3iU+eeeU1ag9VhiHfbjatG9waYo/to4dFXBrYVyiHqo3ORIiAwXguKI5+jMzhZUKDW HEmWymsS3q0L/ju/zcFZZEVozkc= X-Mailgun-Sending-Ip: 104.130.96.11 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 602fe9cb37f02eb71496c18c (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 19 Feb 2021 16:39:39 GMT Sender: khsieh=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 27A01C433C6; Fri, 19 Feb 2021 16:39:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: khsieh) by smtp.codeaurora.org (Postfix) with ESMTPSA id 89D79C433CA; Fri, 19 Feb 2021 16:39:38 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 19 Feb 2021 08:39:38 -0800 From: khsieh@codeaurora.org To: Stephen Boyd Cc: robdclark@gmail.com, sean@poorly.run, tanmay@codeaurora.org, abhinavk@codeaurora.org, aravindh@codeaurora.org, airlied@linux.ie, daniel@ffwll.ch, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] drm/msm/dp: add supported max link rate specified from dtsi In-Reply-To: <161368935031.1254594.14384765673800900954@swboyd.mtv.corp.google.com> References: <1613681704-12539-1-git-send-email-khsieh@codeaurora.org> <161368935031.1254594.14384765673800900954@swboyd.mtv.corp.google.com> Message-ID: <7af07dcacd5b68087cc61e467e9c57ea@codeaurora.org> X-Sender: khsieh@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-02-18 15:02, Stephen Boyd wrote: > Quoting Kuogee Hsieh (2021-02-18 12:55:04) >> Allow supported link rate to be limited to the value specified at >> dtsi. If it is not specified, then link rate is derived from dpcd >> directly. Below are examples, >> link-rate = <162000> for max link rate limited at 1.62G >> link-rate = <270000> for max link rate limited at 2.7G >> link-rate = <540000> for max link rate limited at 5.4G >> link-rate = <810000> for max link rate limited at 8.1G >> >> Changes in V2: >> -- allow supported max link rate specified from dtsi > > Please don't roll this into the patch that removes the limit. The > previous version of this patch was fine. The part that lowers the limit > back down should be another patch. > > We rejected link-rate in DT before and we should reject it upstream > again. As far as I can tell, the maximum link rate should be determined > based on the panel or the type-c port on the board. The dp controller > can always achieve HBR3, so limiting it at the dp controller is > incorrect. The driver should query the endpoints to figure out if they > want to limit the link rate. Is that done automatically sometimes by > intercepting the DPCD? ok, i will roll back to original patch and add the second patch for max link rate limited purpose. panel dpcd specified max link rate it supported. At driver, link rate is derived from dpcd directly since driver will try to use the maximum supported link rate and less lane to save power. Therefore it is not possible that limit link rate base on dpcd. AS i understand we are going to do max link rate limitation is due to old redriver chip can not support HBR3. How can I acquire which type-c port on the board so that I can trigger max link rate limitation?