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 7FACDC54EE9 for ; Tue, 13 Sep 2022 14:19:05 +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: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W9HbmbA50qFY44XStsjE5r/DG3OtnrRoEU9ESLmx9m0=; b=vfRKdouc34qGgm TnfCoy8gHmblI+IzjGsQ9+7k81v2s/rJ8ojP4AMYqWb81YDoYi3eqZAVPnEZEVZzpl4Aef7PngYiq d4H5mZmddYXWIF3qGyjjjBKG0++MNor5YhyoiXsDV2Fkrxxf7Mttfzlb64LaGrZ4RP1BTyLKlEdfu +TxmKMxDmo1kQWqUYopngyWrzA0VgtJk1PIO54yFQhMYNUVy4iMZx6Yg+BSCAFw8DgOdSNQtvKcE2 bac2qBS9SzO7C6uBD19zC5zDICPdZ/P4lM67rJTUGWVSFl7FFyFSdH5JJa7PH7ChU9z2vCbphoDIk KmhX29ER8aEM6cDAdhBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY6jL-00BRaa-3T; Tue, 13 Sep 2022 14:17:40 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY6eW-00BNOB-ME for linux-arm-kernel@lists.infradead.org; Tue, 13 Sep 2022 14:12:45 +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 3813561497; Tue, 13 Sep 2022 14:12:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E71EC433B5; Tue, 13 Sep 2022 14:12:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663078359; bh=r8wZQgEU+vYFVvB3qrIiAUKrIbQ4wzYX48wo3aj1TWQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=u7f1l0ljeHlbk+AuvmhAWZYSR4O/PDNy/x9v5Dyk+RXo+jSShkYR1CKxKBVxPtrYn Pxcmb9oNHyB9tGaoeqLmaox4wvqcSwVjvoiwYGp6Awg+4nPfOSJPJyq+yOM5J+teDD xJtoDkkDHqzTLbcayVpC5LDiDvhlMyE+7zlp+9c7JF+gPlzWXojvrVnEAg7lOXdUEZ /69I5hmeCAejVwBxeT6pEm8vJRxqhZCDH3FBFrfM8pYli494dJZI5pDGk0h1uuFrUh GgyzYWxkiIND2SG5NhgnCqssy9w5RPc9vwjoNWtHUVBbeEabWQzFO24hzaWt2a0ENz XOZOhuT/MViUQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oY6eT-009x4S-Cs; Tue, 13 Sep 2022 15:12:37 +0100 Date: Tue, 13 Sep 2022 15:12:36 +0100 Message-ID: <8735cvuzvv.wl-maz@kernel.org> From: Marc Zyngier To: Kunkun Jiang Cc: Mark Rutland , "Daniel Lezcano" , Thomas Gleixner , Oliver Upton , , , , Subject: Re: [PATCH] arm64: arch_timer: Fix the lack of set_next_event* for workaround of Cortex-A73 erratum 858921 In-Reply-To: <20220913104723.332-1-jiangkunkun@huawei.com> References: <20220913104723.332-1-jiangkunkun@huawei.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: jiangkunkun@huawei.com, mark.rutland@arm.com, daniel.lezcano@linaro.org, tglx@linutronix.de, oupton@google.com, wanghaibin.wang@huawei.com, yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_071240_886805_74592D7D X-CRM114-Status: GOOD ( 25.52 ) 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 On Tue, 13 Sep 2022 11:47:23 +0100, Kunkun Jiang wrote: > > The patch a38b71b0833e moves the programming of the timers from > the countdown timer (TVAL) over to the comparator (CVAL). This > makes it necessary to read the counter when setting next event. > However, the workaround of Cortex-A73 erratum 858921 does not > set the corresponding set_next_event_phys and set_next_event_virt. > This patch fixes it. > > Fixes: a38b71b0833e ("clocksource/drivers/arm_arch_timer: Move system register timer programming over to CVAL") > Signed-off-by: Kunkun Jiang > --- > drivers/clocksource/arm_arch_timer.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c > index 9ab8221ee3c6..ff935efb6a88 100644 > --- a/drivers/clocksource/arm_arch_timer.c > +++ b/drivers/clocksource/arm_arch_timer.c > @@ -473,6 +473,8 @@ static const struct arch_timer_erratum_workaround ool_workarounds[] = { > .desc = "ARM erratum 858921", > .read_cntpct_el0 = arm64_858921_read_cntpct_el0, > .read_cntvct_el0 = arm64_858921_read_cntvct_el0, > + .set_next_event_phys = erratum_set_next_event_phys, > + .set_next_event_virt = erratum_set_next_event_virt, > }, > #endif > #ifdef CONFIG_SUN50I_ERRATUM_UNKNOWN1 With the fixed commit message as suggested by Oliver, and a subject more conform to the style of previous commits (something like: "clocksource/drivers/arm_arch_timer: Fix handling of ARM erratum 85821"): Acked-by: Marc Zyngier Daniel, I assume you'll pick this? Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel