Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3413793pxp; Tue, 8 Mar 2022 13:57:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWvL5w+PBlbqZIJDU6z9YZsU9QAeZYP6ujI9Hs/g0cORXSdLdSqdwsMuZXdTJwDcp9YbkU X-Received: by 2002:a17:902:f643:b0:14d:7b8f:14b3 with SMTP id m3-20020a170902f64300b0014d7b8f14b3mr19449520plg.19.1646776674901; Tue, 08 Mar 2022 13:57:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646776674; cv=none; d=google.com; s=arc-20160816; b=ZeyjtVksjqt2TMrU2aubhZ8NJOiOpM+xFw+oEffhS3iys/XYNglTPbpbjc/NtOOI5Q 05Ah9+pq7MauoPudNAgiD3yk/5D/Y3rhnOVdE39bhkXxNSXNfXeXA+5bopCUTZnxXsG1 Hy3on9NWncOgAKhhu+7b/F4qWfboI/VpLe+jIljZruJfRRtRfZQfGVuK3FVOBqqF+VmJ 5ns0ehKCtxEFbQsJi3DTqcu+fRfDGGTann3TwrUCHQy+BDD42h2Ibe234VhCdP38urz9 2JZAbB7j/cY+zNDTrWTxYpxPbaUZ0BnluWLQjrs7Cgum0fVlaYjrRqQa55Lcb0pJNkS2 WXLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=JzsN1gZGCNsmcGFNARwea06PZ/1S3yn3clrvXCXfFb8=; b=TzuCiquXtk3Jszv09TJR3PrBDAAd08/hTEXgcEsx1kAQ+vqRVn384P/libAXV5Qeus FYPiAhcyON01eNuE+3mpE3+NiWcLjzzOAazrLw+GvJbpDcujLMLxs5lFYORgSU/8Kr95 hRvEIPeKqVPrTWmAZ55JtkdSIXt4VGLCkqRQPRdu0+BR61oo88r51VRHZ8lxCwmLXmyI kIefYP4IoPypxwOwrU9/IwE0P5oEDHkYWGfdrHxxo8uMLADyRTAKmJ1/MvADy4KnWU85 pYw6kOIsPFuAw6qmImukt0Bae0eBbPDrxmoqbtjDsXUSom+wUe59db5Nwz5+0zSIqk3W 6P0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=tz2bmvjz; 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 p13-20020a17090a2c4d00b001bd41c084c0si199103pjm.18.2022.03.08.13.57.37; Tue, 08 Mar 2022 13:57:54 -0800 (PST) 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=qcdkim header.b=tz2bmvjz; 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 S1348436AbiCHQ4T (ORCPT + 99 others); Tue, 8 Mar 2022 11:56:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348277AbiCHQ4P (ORCPT ); Tue, 8 Mar 2022 11:56:15 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 738BB4EF51; Tue, 8 Mar 2022 08:55:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1646758519; x=1678294519; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=JzsN1gZGCNsmcGFNARwea06PZ/1S3yn3clrvXCXfFb8=; b=tz2bmvjzgz2EfnTrlFZznGiVDx1rJK7y0Y2r8nQIeRYhNJRE4PjijdDz WyztWxQRCTUmR5J83DidqbORrcjbJW8lbmfM1wMhwBHEsii5T0mk+Jjw+ e5CLj1q2DhfPjraX+Wjk1ochTgAprRofpIDvDgoMa9QwoSkOCvxOb3iiy o=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 08 Mar 2022 08:55:19 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 08 Mar 2022 08:55:17 -0800 X-QCInternal: smtphost Received: from vpolimer-linux.qualcomm.com ([10.204.67.235]) by ironmsg02-blr.qualcomm.com with ESMTP; 08 Mar 2022 22:25:03 +0530 Received: by vpolimer-linux.qualcomm.com (Postfix, from userid 463814) id 8036C53F5; Tue, 8 Mar 2022 22:25:02 +0530 (IST) From: Vinod Polimera To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Vinod Polimera , linux-kernel@vger.kernel.org, robdclark@gmail.com, dianders@chromium.org, swboyd@chromium.org, quic_kalyant@quicinc.com Subject: [PATCH v5 3/5] arm64/dts/qcom/sdm845: remove assigned-clock-rate property for mdp clk Date: Tue, 8 Mar 2022 22:24:58 +0530 Message-Id: <1646758500-3776-4-git-send-email-quic_vpolimer@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1646758500-3776-1-git-send-email-quic_vpolimer@quicinc.com> References: <1646758500-3776-1-git-send-email-quic_vpolimer@quicinc.com> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Kernel clock driver assumes that initial rate is the max rate for that clock and was not allowing it to scale beyond the assigned clock value. Drop the assigned clock rate property and vote on the mdp clock as per calculated value during the usecase. Fixes: 08c2a076d1("arm64: dts: qcom: sdm845: Add dpu to sdm845 dts file") Signed-off-by: Vinod Polimera Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 0d6286d..80dc486 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -4181,9 +4181,6 @@ <&dispcc DISP_CC_MDSS_MDP_CLK>; clock-names = "iface", "core"; - assigned-clocks = <&dispcc DISP_CC_MDSS_MDP_CLK>; - assigned-clock-rates = <300000000>; - interrupts = ; interrupt-controller; #interrupt-cells = <1>; @@ -4214,10 +4211,8 @@ <&dispcc DISP_CC_MDSS_VSYNC_CLK>; clock-names = "gcc-bus", "iface", "bus", "core", "vsync"; - assigned-clocks = <&dispcc DISP_CC_MDSS_MDP_CLK>, - <&dispcc DISP_CC_MDSS_VSYNC_CLK>; - assigned-clock-rates = <300000000>, - <19200000>; + assigned-clocks = <&dispcc DISP_CC_MDSS_VSYNC_CLK>; + assigned-clock-rates = <19200000>; operating-points-v2 = <&mdp_opp_table>; power-domains = <&rpmhpd SDM845_CX>; -- 2.7.4