Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1909972pxu; Sun, 13 Dec 2020 07:17:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJywXmZMF6QPNbbK7CGzjDxEPGDsPUcSHrMR4KmuRLsPjKVjber+HCEV41g6gVwgMZZq9jrw X-Received: by 2002:a50:e18c:: with SMTP id k12mr5509288edl.58.1607872649662; Sun, 13 Dec 2020 07:17:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607872649; cv=none; d=google.com; s=arc-20160816; b=xTNUC4jJ1KvHycOHnIorG0tTcR3MfolSSeYd5/3GBK+eOtXq3026bz8Z50Rn0giQNA +36YeM0Q6YLjW2baQmyCue/lqTcYhkGg0QPV5jORTJsmD74hej7wUSyQGnR3FtrIxopO iwLyee278dU7KIIt1JRGUJEAkxtrnWX166+NY0dqRyxNS0+eaCX4cdFB95VN+VmtmCsg uYnGzhMvfA8L3XnHZJvc40/H0nVa3BR05H4Nwq5HrBNI2SS++lphMKWnxoXiQ0Rfg+Db nI/4DixrK8jrG0KI6SQrY+TWUbEw6NhkvGhf7vbpgHUO9BnAvagNsQYn5XXSYhqG/tAb CFFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=gEOJdrYVbzVycYA21QkrmlZ6K0PQvNLxYTfenwRVnmk=; b=vdG40f06wyE8n1uyh+yMtkdLhk7oBg6e918GKia54PixIh+VEd9o5VcI+Q5DxTsJHY gAZ2uR9acsE+koUbrQ/HhzLF0uqr+TcgFh5ECth8gL4T7PJqprYT6cBMChYSj4Zwh91a EN9OaCZSj8IWtNUfLq6EYH0WXWX5TfePurioHvoyGNw5j2SqapJAlvZ8yEWBuhPcVPab H5qCJW20wAGX8hkbCBPXXFbsNVdiI68xqODd2MZhsCbolziiKZaYJuaf9xH2QHnArtjv v4Z0/qfCr6PzT7ptCHCcBnmsHlbIB44aVVMgYvJ6/nnFRRgJI78uW6s3+AhGh3fWjNvk JpUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yfMewR8F; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si8423621edp.95.2020.12.13.07.17.06; Sun, 13 Dec 2020 07:17:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yfMewR8F; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407421AbgLLNEu (ORCPT + 99 others); Sat, 12 Dec 2020 08:04:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438961AbgLLNAa (ORCPT ); Sat, 12 Dec 2020 08:00:30 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53520C0611CE; Sat, 12 Dec 2020 04:58:52 -0800 (PST) Date: Sat, 12 Dec 2020 12:58:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607777931; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gEOJdrYVbzVycYA21QkrmlZ6K0PQvNLxYTfenwRVnmk=; b=yfMewR8FSnIJBRs+KJnaQJw/lNLqtkdMpkTZYJh7QzBrfc/Li/Wg3t6za+wU4/7q2p+p1K 5eV7eJWxWVzUOurOwA3BeWh/gDjspscl7l/pxo4tM9L9B8Qgk5Kr/ERjRIMyKZQW0aQON7 dDf/KeIvWe50j6mPfG/nxrwI7c4sw4Ky6qXcbNY8R3FUYYXJqWuGdMf2oxpEk4bqhUR9ST VzPN9aOeUpD4P4mgb7UpX78cuaeYtSZY3oXBI9UYDCANJknjIHvgNbGqOAl2S2Y7ggr94D CojxLB0m9p14Bw9Ww4mHOxzSejssfnuVhZTNlMWBuxlTIcz7mI80bS1gNvpAHA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607777931; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gEOJdrYVbzVycYA21QkrmlZ6K0PQvNLxYTfenwRVnmk=; b=+reaGRqrzgy4lE8mFNFJmkmN8vXmDzD4AUYeT8ztqTWKuFAw02epGTEl+dI7j05gcpsClT 5ZAlET8vFgHXYgCA== From: "tip-bot2 for Keqian Zhu" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/arm_arch_timer: Use stable count reader in erratum sne Cc: Marc Zyngier , Keqian Zhu , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20201204073126.6920-2-zhukeqian1@huawei.com> References: <20201204073126.6920-2-zhukeqian1@huawei.com> MIME-Version: 1.0 Message-ID: <160777793055.3364.11955080846892702144.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: d8cc3905b8073c7cfbff94af889fa8dc71f21dd5 Gitweb: https://git.kernel.org/tip/d8cc3905b8073c7cfbff94af889fa8dc71f21dd5 Author: Keqian Zhu AuthorDate: Fri, 04 Dec 2020 15:31:25 +08:00 Committer: Daniel Lezcano CommitterDate: Sat, 05 Dec 2020 19:33:55 +01:00 clocksource/drivers/arm_arch_timer: Use stable count reader in erratum sne In commit 0ea415390cd3 ("clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters"), we separate stable and normal count reader to omit unnecessary overhead on systems that have no timer erratum. However, in erratum_set_next_event_tval_generic(), count reader becomes normal reader. This converts it to stable reader. Fixes: 0ea415390cd3 ("clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters") Acked-by: Marc Zyngier Signed-off-by: Keqian Zhu Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20201204073126.6920-2-zhukeqian1@huawei.com --- drivers/clocksource/arm_arch_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 6c3e841..777d38c 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -396,10 +396,10 @@ static void erratum_set_next_event_tval_generic(const int access, unsigned long ctrl &= ~ARCH_TIMER_CTRL_IT_MASK; if (access == ARCH_TIMER_PHYS_ACCESS) { - cval = evt + arch_counter_get_cntpct(); + cval = evt + arch_counter_get_cntpct_stable(); write_sysreg(cval, cntp_cval_el0); } else { - cval = evt + arch_counter_get_cntvct(); + cval = evt + arch_counter_get_cntvct_stable(); write_sysreg(cval, cntv_cval_el0); }