From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 121ACC433FE for ; Mon, 28 Nov 2022 18:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2X2yXIh8lykgemMKHyJWM+uGaNbcexIqBXQRkaRTi3M=; b=1T8/T83sfk599t 69HgcseBmr+93e5Mk+mhxPiwOqruPVl10qXwB8f/DVfiCcer+mg0WJY/6ntHq6zuJzWLzPLEHMFBG iCYiPhxZAWmGSjHobR8YT2/PUrWVi5h/WpKT/QIWQpTeQronEZS4uLOZDXJYAsO2P9a7BexgXGu0i LLYRwk92RmNqBizxZbrJ9w88C6PoQJRegNgnzwxWVtyow7Cgn+abqX3G+0bomEFOYYxS+FKI4DBc7 sbO6Bh4BQYjNwmmy3Cc5LRctoYonSvb+0FBpJTSGrlFBaKql0sBkCnhs9QWixRpGNeO/TeThuRu6C U1u0uLwgbIam/P1/3gTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozigJ-003Tg7-OH; Mon, 28 Nov 2022 18:16:40 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozi9Z-003BBe-GQ; Mon, 28 Nov 2022 17:42:51 +0000 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 D660C612E4; Mon, 28 Nov 2022 17:42:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5956DC433B5; Mon, 28 Nov 2022 17:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669657368; bh=eVRo4bHlsQx6r8wW61Kgeyqm8gZl5vPhd/u+YKEWw0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CWnM9YQiF6Ya6rIFymFsQwEGkHHQKv0vpwXzw2hIGrsguLW6TvMOanlSTuRz9H1Ud yfLb80NmjzEJIbx9GKtjy0/8lZ8UsHXkMl1Q1IevvvoBJv34K3YyXJa6T1oNtxl4UL erCd3czY8sLe5C1c/ABD0bVFm9hi+BrU6aMPGqSOsZ1VE/MMe0tsOtHs5TsFLyvEyr ICTZBHbsC6Oay46ceoZkNOBOzeLbFuYzEmducdpXKZCGk6bvktP83Ip1UKl1hQSIbL xZScQ7zf7KkJSzT9YFgl6YIGG9OmIzJE3L+O3PNCx6XRH4aqR4rrznQFREQXQNX6mx jhir2Iref6MBw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Johan Jonker , Heiko Stuebner , Sasha Levin , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 05/12] ARM: dts: rockchip: disable arm_global_timer on rk3066 and rk3188 Date: Mon, 28 Nov 2022 12:42:28 -0500 Message-Id: <20221128174235.1442841-5-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221128174235.1442841-1-sashal@kernel.org> References: <20221128174235.1442841-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221128_094249_659911_A8B1619A X-CRM114-Status: GOOD ( 15.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Johan Jonker [ Upstream commit da74858a475782a3f16470907814c8cc5950ad68 ] The clock source and the sched_clock provided by the arm_global_timer on Rockchip rk3066a/rk3188 are quite unstable because their rates depend on the CPU frequency. Recent changes to the arm_global_timer driver makes it impossible to use. On the other side, the arm_global_timer has a higher rating than the ROCKCHIP_TIMER, it will be selected by default by the time framework while we want to use the stable Rockchip clock source. Keep the arm_global_timer disabled in order to have the DW_APB_TIMER (rk3066a) or ROCKCHIP_TIMER (rk3188) selected by default. Signed-off-by: Johan Jonker Link: https://lore.kernel.org/r/f275ca8d-fd0a-26e5-b978-b7f3df815e0a@gmail.com Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- arch/arm/boot/dts/rk3188.dtsi | 1 - arch/arm/boot/dts/rk3xxx.dtsi | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index 3b7cae6f4127..24efc9b31d89 100644 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi @@ -509,7 +509,6 @@ &emac { &global_timer { interrupts = ; - status = "disabled"; }; &local_timer { diff --git a/arch/arm/boot/dts/rk3xxx.dtsi b/arch/arm/boot/dts/rk3xxx.dtsi index 86a0d98d28ff..1b6429843bd4 100644 --- a/arch/arm/boot/dts/rk3xxx.dtsi +++ b/arch/arm/boot/dts/rk3xxx.dtsi @@ -108,6 +108,13 @@ global_timer: global-timer@1013c200 { reg = <0x1013c200 0x20>; interrupts = ; clocks = <&cru CORE_PERI>; + status = "disabled"; + /* The clock source and the sched_clock provided by the arm_global_timer + * on Rockchip rk3066a/rk3188 are quite unstable because their rates + * depend on the CPU frequency. + * Keep the arm_global_timer disabled in order to have the + * DW_APB_TIMER (rk3066a) or ROCKCHIP_TIMER (rk3188) selected by default. + */ }; local_timer: local-timer@1013c600 { -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel