Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7728759rwn; Wed, 14 Sep 2022 03:39:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR5HltBxlOUSUKzlwX1bgLudThc62Hz3/feoI0Xwe0jkfCEqASyz7qDIKRschAUDd1qOTlLK X-Received: by 2002:aa7:d3d3:0:b0:44e:baab:54d9 with SMTP id o19-20020aa7d3d3000000b0044ebaab54d9mr29785539edr.43.1663151974615; Wed, 14 Sep 2022 03:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663151974; cv=none; d=google.com; s=arc-20160816; b=Ln5AZJ8T/Zw1WAbjUNo3xyjpy+a7RHur6/T0sQiCqD7X7dz//fhWvjr7N1N2pW/g2Y KY8dhM9zsEIurhBNsb2/wvl7hoZhYEaRWoa1H8dTD3k456cUjjhhCWM2KL+YT8uA4Y+i FTj7RuZNIUhQrk6AIsS5ELm5K0Hwkfp7VoqzqoPcW3CHFSdh97JNS1MwtXMvOCDypaOv UmSHxPsi7Li9qEixz+0Cmnw3A/7Cp2bdFxYRNiuXVQCJ2DReEFShjh+H1CIpvq3VrNNG qcLpQxuHKdDAR9QJp8ZCGziJg9Dw43Mnk9BpSInVGI1clfA1Buw8kB9SyusnfAPu0Dy/ Awnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=nMKA0IeYCnijNLDCCrrWwYaka5FqI4PW0qFMb2bkwkg=; b=I0e+jnceUj9M7sKdTxbIo433WECJdpFvpETG11TJz1Uv+5ko0Lq/ubF66si0cDeMOG KgVqp82EgoJn3CbJ4pcGqmspYQrxk26U3fSVP+2+2z0Dz82UvvBlbfLl8rDsopLMd1Hz HdIMMG/M0PuhHrrWOy4PgvldCDKWHJpq2LGBkomKS64jpkdnQRfIXz8+b0EV8pIQtbtI mbRFmqe2rnUjyAYXccsu8QVYWJqcG4xxy95f3NM1qno2ZwCaUiz9H4KiHSAcm9THG0rw BqyTdsujCIqWD5onJbngFNv2MmTEg7BPYZ+6yFWIswSVU/djeI7A+zglp6ypyibY8ZJF u9Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=seMDWTaH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh38-20020a1709076ea600b007419b5feb98si11713763ejc.255.2022.09.14.03.39.06; Wed, 14 Sep 2022 03:39:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=seMDWTaH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbiINKSW (ORCPT + 99 others); Wed, 14 Sep 2022 06:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiINKSU (ORCPT ); Wed, 14 Sep 2022 06:18:20 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD5E577EB0 for ; Wed, 14 Sep 2022 03:18:18 -0700 (PDT) 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220914061424.1260-1-jiangkunkun@huawei.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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