From patchwork Sat Oct 22 07:23:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7411 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1097452wrr; Sat, 22 Oct 2022 01:07:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64usg40wwWR/u0/iCa0d4Iqq6lq66LLS/z0bWTrvo8gKqQSELvSt67/YgGcc0vZv6XFNRS X-Received: by 2002:a17:903:32c9:b0:186:883f:ffdb with SMTP id i9-20020a17090332c900b00186883fffdbmr3306335plr.135.1666426069437; Sat, 22 Oct 2022 01:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666426069; cv=none; d=google.com; s=arc-20160816; b=v7GZBE+fNVhv5TNhWZet1cUhk8joO9HurFDy9jgWG/idGJrGjoKMl+eDS9gVSH+oRh gpon57Wjf2J2+BEWLFISiDffOoVswgQ8MxJ91S8I9xQXFgf4+lavXVgb6RwDNjs4+qjY Eg3SYxpBxJEcNRhKtxOj+6H781im5j3ztxhE0gLWK8mAdr0WH/rDos1mjvPP1UrQ8bgS jDd1pYuyn55UAQ+XNAjXdnrM238bpO6H10BWskFaX4ndGVGxtM9VtySHbQKW1EOSw92+ 6oB6irQ06WYr5izeAg/oNLgNsNYieCV9m/gOfTjVyzt8x6kAE5pfLamZOnPJUBXy0ApA BGfA== 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=fM0FVpQuZrBDu9a2iRTZRTCMebAGXTHC3H5gOPUHqJA=; b=iUyIgmVfi4un+qG5qHBOzpzJtzYwsQk/dcDD2Du+ALb3lJjqgLPpTbClWfGS/1GLQw pTnHCAfTktlqLgKXNW8nGRP8twu0wB2M8+c/Lxgq2hn5fYV31BFPaGxvwID2se4Kwhw3 i4ACiwm1eES382w1v0WakwLFjrKnZHGnz3Rc+TCww+tx7KHC4L45bRkbzPzGRNIWW57H N6FFkbjHesknldt87lzWhUJALkF8n1tQZgV2NuMPhx6Hc+t7iaScG3uxYESryrP5COXZ +u7vvJOsj8F1B1XqpwjQpF0dhVCeGWLGrrRD4ryVSEH+w9R7RV1Cis0F/foNw+J1yyOZ C9IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gWfHPER+; 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 c2-20020a17090a558200b0020af39f326fsi2133570pji.133.2022.10.22.01.07.37; Sat, 22 Oct 2022 01:07:49 -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=gWfHPER+; 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 S232917AbiJVIHP (ORCPT + 99 others); Sat, 22 Oct 2022 04:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232330AbiJVIBB (ORCPT ); Sat, 22 Oct 2022 04:01:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6ACC290681; Sat, 22 Oct 2022 00:50:48 -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 ams.source.kernel.org (Postfix) with ESMTPS id 10F22B82E28; Sat, 22 Oct 2022 07:50:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D313C433D6; Sat, 22 Oct 2022 07:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425020; bh=iHwbAIKGTFm2iePSccsgJpuXwAdrLKOvAqCJRJ1QZhE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gWfHPER+swwzta6BPhIQ8QD4RYTKmGeYQl/Mpe9dUHk1lRENvtH/3rBwj/dsp504E 8NKQcQy9gXegJj0BYXrMSu2UhGpUEz31M5yZAg4eolf0wI2tC/QxoD7J+QH/vJiaGJ 0WzirN9IHjHCbRrZn9Uh7xzx3kEeMMkUFaj4BhpI= 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.19 332/717] drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa() Date: Sat, 22 Oct 2022 09:23:31 +0200 Message-Id: <20221022072509.689881431@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747374381995390545?= X-GMAIL-MSGID: =?utf-8?q?1747374381995390545?= 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 7257515871a9..676279d0ca8d 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;