From patchwork Mon Oct 24 11:29:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9132 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp456582wru; Mon, 24 Oct 2022 06:34:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5s+AfSqqSFsOychZ1qvqljUZqA/r27sN87BHUPSdLX0UZ2AxAiGfzMVAx7CyNAVnNg9Gdd X-Received: by 2002:a05:6402:f18:b0:460:cf08:2b41 with SMTP id i24-20020a0564020f1800b00460cf082b41mr20120222eda.400.1666618466886; Mon, 24 Oct 2022 06:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618466; cv=none; d=google.com; s=arc-20160816; b=GEDOho5ZMPsu/nOpYir1n+r6H/KIHqL3BjlghdsJsMy5IdBxfKypvOwXCnw696PLlr aYtZ9P5EVE+Qs2HXPwq+3UShu5ry/6usPVIUmU2OkFAWve13IBPqhlpEhmuAJdx8DncK ZznF2CN2PFaj7BeW4JUEPnGLVgHpm6EFhbVRhhcpzVz/478/XzUdjlmIpFvZ8bdY0Ez4 gk1zEtK4czxyXUuF4VY7mnN3zaqJPue4RXQPLKyFz8FbOhTvxvuwIAOFC3auWL4i6kOF qwdCWYeOXPlQ4jpno2i/Uu7aMH9w/zLKcYNyl4XdPG+D+ESf848T4a+QPHp0hDbPvvQy qPpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z1mLXnvpmRKPzGwcHflP9UVOomIZ9iKHwziXqTOMtH8=; b=YcZh98zRWOnQ1WSlUtU0/c8/bOFhAYi6qDiz8nEKbnIO944SpmqB/imQ3CAKWWm8ml NzuZHxy0W7WoMcCWlwtufaOZOvLGFYkheRKq+gXrEK/vECGomhaWIGs5KZYpEyUk4klQ bxesn2Sjunw7IFzxtm7QREp58EC69ErFf7wrhbHPomBuVCutke5IGKaGllwbZq5WmlHx rIsnmfzBaH8u2E4kNg0U+xf0iW8NnE2ojBwTX/qiO7gTif4H3Ab5o82DqZIWnue1tHoa AE5p2DZiNTGMZ67Mb9+eXspqpm3I0VlwG7xW5JTB8Uw7jsUPECWzmzJMOJWTMwLtGtiO J2qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P0eKcMRt; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf24-20020a1709077f1800b0078a4aad3141si29200946ejc.211.2022.10.24.06.33.59; Mon, 24 Oct 2022 06:34:26 -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=@linuxfoundation.org header.s=korg header.b=P0eKcMRt; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231751AbiJXNSn (ORCPT + 99 others); Mon, 24 Oct 2022 09:18:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234325AbiJXNRb (ORCPT ); Mon, 24 Oct 2022 09:17:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8166050F8B; Mon, 24 Oct 2022 05:26:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 60E9A61281; Mon, 24 Oct 2022 12:22:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77A0FC433D7; Mon, 24 Oct 2022 12:22:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614176; bh=Ro8YsoiH1vaVl94vaZKoWoomP6ZZtJl0riym3dzXH/0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P0eKcMRtlc2ZgU+YGFcFyQbau6gIASEl6Ka6d2OzWrMw0RmjxVvJcBU8kcTRuLOiL qm0yPXt9O8GVl7OSh0zuNZpggOuuNTJ0G+TI3CWUcqW06s9Sx2/VFE8aGQ76L6Gu/Z uhRdO0GgxbO6qd2qTx4ySR4HYirgc+iQjbLmZgOM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuogee Hsieh , Stephen Boyd , Abhinav Kumar , Dmitry Baryshkov , Rob Clark , Sasha Levin Subject: [PATCH 5.10 162/390] drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa() Date: Mon, 24 Oct 2022 13:29:19 +0200 Message-Id: <20221024113029.610820560@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747576125944976658?= X-GMAIL-MSGID: =?utf-8?q?1747576125944976658?= From: Kuogee Hsieh [ Upstream commit aa0bff10af1c4b92e6b56e3e1b7f81c660d3ba78 ] 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. Changes in v2: -- fix Fixes tag's text Changes in v3: -- fix misspelling of "Reviewed-by" Fixes: 937f941ca06f ("drm/msm/dp: Use qmp phy for DP PLL and PHY") Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Abhinav Kumar Patchwork: https://patchwork.freedesktop.org/patch/499328/ Link: https://lore.kernel.org/r/1661372150-3764-1-git-send-email-quic_khsieh@quicinc.com [DB: rewrapped commit message] Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- 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 2da6982efdbf..613348b022fe 100644 --- a/drivers/gpu/drm/msm/dp/dp_catalog.c +++ b/drivers/gpu/drm/msm/dp/dp_catalog.c @@ -416,7 +416,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;