Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp863882rwe; Wed, 24 Aug 2022 10:12:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR5/SPU1zDKzVV8WeNxJKOfUsBcTW7VefkanVuA5wYbz1QWZlQnYeX04n8f7kho9aQ2cZCd+ X-Received: by 2002:a17:906:85da:b0:73d:c94b:8996 with SMTP id i26-20020a17090685da00b0073dc94b8996mr443460ejy.225.1661361123844; Wed, 24 Aug 2022 10:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661361123; cv=none; d=google.com; s=arc-20160816; b=UZ2kYiKumqigPQXTxIWKOYSds7fO5L7/H1dcIxsy9YyKCnLITiUG6Bzqfcr/S0dbSe Krqd8xkK63AzzB9qo/ymUcYr2JhQ8HMU8EMZYMZkGjfnFJs6b7AHdwuYtbf1Rxf4Skyx i302ASNdcwfCOeIX3/mkSWZhCLKG53NfG2uK38DTE2vZZaNHtEA1T8Zb+qZH0FLXY+sK q9dBCKp22CVT5vpjnCAAoE03yG/fOtOpQFv/l248nvNZunJNisGOOe+f4Py30dOSZ0KJ EqeGM5/MKThl1dtW9tqi++eTrnaBoSUBD+nfTJYMbDiwqfHaJbfti5/19XVH+fiWYOIC jgew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=/t5RQop/phOFBe9ulIx9iVn7qs9x7+8q6SRazKH2JD8=; b=chk0MfkkFr9tAZ59K3f2imwaE/e8Hi6r/EpWh8jTOGbW72/AnAZWQN6d26iwWQSAaG ay4/D9RFza+KUpFBgtH5njLgzNYDFAhA1f+HDQRmp6hVPCdtH1m97qIYleIalWxHC6Vt eV4Uzn9ZzoddOhf0TnRhEZFtCrGn3xk2ZasWDP6RuzQQF9ovH+x64Yet4VFbUfyRyEIW Cmd4bo2vE2v6BAtNws/UQp4/ErB6DjtBfnkaHLsR40fMHYlKesFshQt8knR3XF3IXXQ4 rGKqJTegyJCUQ3fvp9pkLPdRJTbuUTb4BNkIIlmqPNT2vsE5fcgLfFZI/6/WUerQQhS3 NjHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=jAOIdaNw; 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 sd42-20020a1709076e2a00b007309e910729si2750363ejc.580.2022.08.24.10.11.29; Wed, 24 Aug 2022 10:12:03 -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=jAOIdaNw; 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 S239691AbiHXQ7j (ORCPT + 99 others); Wed, 24 Aug 2022 12:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239686AbiHXQ7h (ORCPT ); Wed, 24 Aug 2022 12:59:37 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD8136E89B; Wed, 24 Aug 2022 09:59:33 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27OEoShA026506; Wed, 24 Aug 2022 16:59:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=/t5RQop/phOFBe9ulIx9iVn7qs9x7+8q6SRazKH2JD8=; b=jAOIdaNwvCoGEcQDQvahjkYfSCxz9E/IZ5n4R/I07pu9OLoIMgtVttFXILNnG+ZG1Cow DZelo/RBaOOuzHEB4ipChtXwqSgDpk6gMXPDsMN3Oo6ZPAHuPeZf3iIgDgi1uMgL7WWW M4XrTi48208Y2P7iyFK3bSvwDRLfizOZT26KVqfRz/Is3XwnDtnPvXPHHnlN78y9eY2d mV1uo0/HbGW7k2AHNRRYZegcn+4S9SkU43az9UGstqQGT2bQ3By4TOFbBBW0uw0DugLL TWCKSCA1qy6Hqnb8JoXycehEZMkvN+2Oize/nj1feGj1/BGWGZ8tiBtGINx10zW3NTz4 3g== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3j52pnm17a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Aug 2022 16:59:26 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 27OGxPXt017342 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Aug 2022 16:59:25 GMT Received: from khsieh-linux1.qualcomm.com (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 09:59:24 -0700 From: Kuogee Hsieh To: , , , , , , , , , CC: , , , , , , Subject: [PATCH] drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa() Date: Wed, 24 Aug 2022 09:59:16 -0700 Message-ID: <1661360356-21948-1-git-send-email-quic_khsieh@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain 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-ORIG-GUID: ejxF6MI92RkW-q2NFlLHs_B7qV5P1jIR X-Proofpoint-GUID: ejxF6MI92RkW-q2NFlLHs_B7qV5P1jIR 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_09,2022-08-22_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 mlxscore=0 mlxlogscore=977 clxscore=1015 bulkscore=0 phishscore=0 impostorscore=0 malwarescore=0 spamscore=0 lowpriorityscore=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,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 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 --- 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; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project