Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3552512pxp; Tue, 8 Mar 2022 17:16:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVoX3U8W9kowXRCprToB2uDkUCQaLkVDdcRb7JAQu5+FaYAHH9hv1CMFvtyqzE2ZXBFirX X-Received: by 2002:a63:4f43:0:b0:378:8ec6:7936 with SMTP id p3-20020a634f43000000b003788ec67936mr15997462pgl.329.1646788597253; Tue, 08 Mar 2022 17:16:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646788597; cv=none; d=google.com; s=arc-20160816; b=NEn8tei4r3D9wSo+iPUBZg3V1WW64MePi/T8lRR/8JJaXQFyj4BoBUSMAqcX+pPv7U nFXdASpN0eoIWD5UVawbKxkIgo0Lwn3AjGGX9sFZNBSXu+bW/iDzVbZTn1lQMX3oGUy2 NpvqQcgJhPO1ZEN2a35tYcv/3jdPoeZKxYm2/GpBg71Q0Uta6pvYjyp5KgVF0rZ+2qUV Hp9+uVvg+ZT+vlcV1EVYu5X7Qo5jTRKY7eF4fNLZvZvg2rUmUmnnr/q50wLh58oEr/5U 1P6i9hpJHNj5bAqWdx3Gtx5JZNHBWrym6ZMfqYGYCgniwimBM93SSzgfTXm3PVxPeCab xCkQ== 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=rTBEAgwA4HmIh3yyeGv2nP7Asa9LmaW8oZi5maJATWA=; b=TNQKFRgQqqaItgBkmdwkUwxhe5s34GoVQmMAqqvDJkQmVzV9veZFNju3QCWhrrWHk+ epPpLFfVuJw2BDfMc6MI0BogW6vCAqgQhBYB2GRCsPW8gZSeH8ocjjOq5k9NIoQHmxiH NsVFF0UUGm85KzcTDyiXpRDDRdXPfZfDgwi/ZAAa7CGMF46RtxUQnQRtrO1JsQI6FvfB ThzS++1CDo74ZujKx1aly3lhbE/9TWc5EuoTo50CbtlforBCE+Qw+N+E+aBZN20ND/UP 3odN5lpUmxok9+xnxPFpFuKGNnSfD0Z1V8Jy20LALkD+ETTVOP0G3TgXNn1ZaQp7JWhv 2X2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Be02cRdL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q12-20020a170902dacc00b00151bff99231si542138plx.226.2022.03.08.17.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 17:16:37 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Be02cRdL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 66DB390CC4; Tue, 8 Mar 2022 16:11:43 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348284AbiCHQ4Q (ORCPT + 99 others); Tue, 8 Mar 2022 11:56:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243037AbiCHQ4O (ORCPT ); Tue, 8 Mar 2022 11:56:14 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1D534ECF9; Tue, 8 Mar 2022 08:55:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1646758518; x=1678294518; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=rTBEAgwA4HmIh3yyeGv2nP7Asa9LmaW8oZi5maJATWA=; b=Be02cRdL1YmR+FaxoJqZpoA+PbkIptFH7ovnReoWIuR8P2vmk4RUk0E5 YBK2tfPZu/IpidumtAy7arNkT3pQUwMp2fjncvj22nHQikQqFwDVHGVr/ 9d/wrFOodKwQHxs1KIJvMjs3IDFv166MXHEoDmoMu/XHZBGMqlSS9zK5V 8=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 08 Mar 2022 08:55:18 -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:16 -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 40A382CF5; 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 1/5] arm64/dts/qcom/sc7280: remove assigned-clock-rate property for mdp clk Date: Tue, 8 Mar 2022 22:24:56 +0530 Message-Id: <1646758500-3776-2-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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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. Changes in v2: - Remove assigned-clock-rate property and set mdp clk during resume sequence. - Add fixes tag. Changes in v3: - Remove extra line after fixes tag.(Stephen Boyd) Fixes: 62fbdce91("arm64: dts: qcom: sc7280: add display dt nodes") Signed-off-by: Vinod Polimera Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index baf1653..408cf6c 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2856,9 +2856,6 @@ "ahb", "core"; - assigned-clocks = <&dispcc DISP_CC_MDSS_MDP_CLK>; - assigned-clock-rates = <300000000>; - interrupts = ; interrupt-controller; #interrupt-cells = <1>; @@ -2892,11 +2889,9 @@ "lut", "core", "vsync"; - assigned-clocks = <&dispcc DISP_CC_MDSS_MDP_CLK>, - <&dispcc DISP_CC_MDSS_VSYNC_CLK>, + assigned-clocks = <&dispcc DISP_CC_MDSS_VSYNC_CLK>, <&dispcc DISP_CC_MDSS_AHB_CLK>; - assigned-clock-rates = <300000000>, - <19200000>, + assigned-clock-rates = <19200000>, <19200000>; operating-points-v2 = <&mdp_opp_table>; power-domains = <&rpmhpd SC7280_CX>; -- 2.7.4