Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp895906rwe; Wed, 24 Aug 2022 10:48:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR5dgxCUKsgOLvUJ4aKUjzZbqKc+9FuwPhwAdqU+V1pYwJA6zmaTOie28Hb6U046iBARxT4V X-Received: by 2002:a17:906:770d:b0:73c:a08f:593c with SMTP id q13-20020a170906770d00b0073ca08f593cmr76796ejm.182.1661363301095; Wed, 24 Aug 2022 10:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661363301; cv=none; d=google.com; s=arc-20160816; b=TiK6Nkq0USFpU5ipc6NfihgBue9zttdP9/+FgXP5L1cVsdwraJVjNGrA+NAZI9ZdiH LhKWW6K04kX5VKtyn2eak8jtVJrldIIOxZZYZEfC3is5wGiWmUxkUPC9E6D9ieE6dsbS gGLm8YAGgKfJYxkQ23eTVwrftjQfudU2KcazQvIaAmuxNHJNummxs327ns99KmMOwlxa GiFddEmDwnUYs/VeJAk+4cJvDrkr7bx9l3v5y/Tdfa6mUh4BD7MDd31S1ZRcgcwhKYbx M8FIIuXJKaXs0iMQ0QGMa6j+NBmLtYtEKZa+yayA7RU4Q1GrgJ8mkEvwpOUwHbPeCXWr Afcg== 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=/1oeoHt41EynB8BHQokkhb1v7el98LAR1YxIKNlCPwU=; b=tq/pAFzcnzQngoC/O83WU6jTM/5Zj5Id+TViOyUFN1c+7TkuDPEXVfcMF9D2s8Adyk 0dhTIpJSmiZfB6LlL6Nluv6KpG3gVdjePyqaSIU5LVpX7LRL8q0ZfYYV+VQMTCOK0Pj3 MYq1dkqc0BEbJwk+kXrvEwDqbi9ZIm3+7iskt+zEZHSFQlYxo3S/SgP8k2SBi64HRViC /pszdxjfxha1c+TZ5V6V1NaIjGEuKFx0zyORPhiRATeCGZwpJYKxVi/KV9IYg523kAdO FZmZw6NvrKvglk5Zsl1cW09LZJKpGWNcEhe+HuH0pvnRqTNofShMXvEqRsk77h1vj42X PoGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="cTR/URJS"; 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 mp8-20020a1709071b0800b0073d5f9f2dd2si668107ejc.455.2022.08.24.10.47.54; Wed, 24 Aug 2022 10:48:21 -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=qcppdkim1 header.b="cTR/URJS"; 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 S239947AbiHXROR (ORCPT + 99 others); Wed, 24 Aug 2022 13:14:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239940AbiHXROP (ORCPT ); Wed, 24 Aug 2022 13:14:15 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66AD07B799; Wed, 24 Aug 2022 10:14:14 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27OC4xEN020367; Wed, 24 Aug 2022 17:14:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=/1oeoHt41EynB8BHQokkhb1v7el98LAR1YxIKNlCPwU=; b=cTR/URJSAZXhzzVauu2vcLDUFjzeLMTvuw+KT1RZdUkREyMj+9yY26js4lm5/E2VvZnp wObjynhvHmQW5g+ClpYILwvY3WfcCuAYMdxRyCQgq3nQIKKq2K6P1UQ7cJ/TqAJIN2lA 7v1/CKZJI0XKEzpsN3ItpCiBeXoA9C6WMIc1at0ktdzFJGN4COxkbL3SaT9PaSUTVPp2 24KypCZb8FZGLsLUUFEpfDyBn/OwPGbbePKn9H5Fgi1U5iemG/oZ1q9OgsRDKliPElpq rLwuL83YGEpsJc4Q3cVlm1l1fnRbZhm3k9DdzaaC1M9P93CbSZ8gs5qNg5FNlFg3Z7VF kg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3j52pj426u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Aug 2022 17:14:06 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 27OHE5w9027749 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Aug 2022 17:14:05 GMT Received: from [10.111.161.24] (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.29; Wed, 24 Aug 2022 10:14:01 -0700 Message-ID: Date: Wed, 24 Aug 2022 10:13:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH] drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa() Content-Language: en-US To: Kuogee Hsieh , , , , , , , , , , CC: , , , , References: <1661360356-21948-1-git-send-email-quic_khsieh@quicinc.com> From: Abhinav Kumar In-Reply-To: <1661360356-21948-1-git-send-email-quic_khsieh@quicinc.com> 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-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Be4xJA0nqawVM2Cn8c6dTYcV5rF8rM2S X-Proofpoint-ORIG-GUID: Be4xJA0nqawVM2Cn8c6dTYcV5rF8rM2S X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-24_10,2022-08-22_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 spamscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208240064 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 8/24/2022 9:59 AM, Kuogee Hsieh wrote: > At current implementation there is an extra 0 at 1.62G link rate which cause > no correct pixel_div selected for 1.62G link rate to calculate mvid and nvid. > This patch delete the extra 0 to have mvid and nvid be calculated correctly. > > Fixes: 937f941ca06f "drm/msm/dp: Use qmp phy for DP PLL and PHY" > Signed-off-by: Kuogee Hsieh Reviewed-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/dp/dp_catalog.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/dp/dp_catalog.c b/drivers/gpu/drm/msm/dp/dp_catalog.c > index 7257515..676279d 100644 > --- a/drivers/gpu/drm/msm/dp/dp_catalog.c > +++ b/drivers/gpu/drm/msm/dp/dp_catalog.c > @@ -431,7 +431,7 @@ void dp_catalog_ctrl_config_msa(struct dp_catalog *dp_catalog, > > if (rate == link_rate_hbr3) > pixel_div = 6; > - else if (rate == 1620000 || rate == 270000) > + else if (rate == 162000 || rate == 270000) > pixel_div = 2; > else if (rate == link_rate_hbr2) > pixel_div = 4;