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 78F8DECAAD8 for ; Wed, 14 Sep 2022 10:19:44 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rUfCK3gYokQUDGTPE7czi8Z2YOFfKaAsPuAsaLSBfhc=; b=hE462wa0NLvOBT iv0/pYfFVDBApUcK7ere8wCkzJvluMFWykI2xF3uhbUs24g86OO1fYDXwc/j/q83BoSWtFjFlb52V 6X8+KzpyASU8arBjEDQJMVDZ1gIXqx4LLsXL4ys2BQ+zCwcD4LLY8klMylb/umtlVrWnGftfyxPGP W6XGzOICMbaXHuaVn3XYNbJc4BXyivi/qPB9i5lj44MAen9I9bR0NX+DqTiJzHbZ6VS8mY/mn/p0L dkNFymhUKXol/+WkBA2bCwsdlB5khGOnOOm3naYB0Mz9FPIcIVQZta8e08Od9m+jEjQoxhGHFY4z2 fw+HjY+Y3PSv51/m3D5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYPTV-00ExM9-6W; Wed, 14 Sep 2022 10:18:33 +0000 Received: from out0.migadu.com ([2001:41d0:2:267::]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYPTR-00Ewu9-MV for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2022 10:18:31 +0000 Date: Wed, 14 Sep 2022 11:18:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1663150696; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nMKA0IeYCnijNLDCCrrWwYaka5FqI4PW0qFMb2bkwkg=; b=seMDWTaHhuJbmBcNRlevf6TUx1KEhYjBVkFUP9tYpVAw6j10WSJOu8ERQgG70mMOP2m8sT 2NhGVmGnAR1NxkuGr/q/4era68gl8t5mbw8Fq9x1xPbye2aKVXX7DEWyEGdoe76e+zroZm 3uiSfe12XACZnXJzUm76u+K3U31ajo0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Kunkun Jiang Cc: Mark Rutland , Marc Zyngier , Daniel Lezcano , Thomas Gleixner , wanghaibin.wang@huawei.com, yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] clocksource/drivers/arm_arch_timer: Fix handling of ARM erratum 858921 Message-ID: References: <20220914061424.1260-1-jiangkunkun@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220914061424.1260-1-jiangkunkun@huawei.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220914_031829_900890_156FF1FE X-CRM114-Status: GOOD ( 11.22 ) 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 Wed, Sep 14, 2022 at 02:14:24PM +0800, Kunkun Jiang wrote: > The commit a38b71b0833e ("clocksource/drivers/arm_arch_timer: > Move system register timer programming over to CVAL") 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 programming next event. However, the workaround of > Cortex-A73 erratum 858921 does not set the corresponding > set_next_event_phys and set_next_event_virt. > > Add the appropriate hooks to apply the erratum mitigation when > programming the next timer event. > > Fixes: a38b71b0833e ("clocksource/drivers/arm_arch_timer: Move system register timer programming over to CVAL") > Signed-off-by: Kunkun Jiang > Acked-by: Marc Zyngier Reviewed-by: Oliver Upton -- Thanks, Oliver _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel