Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6462655rwn; Tue, 13 Sep 2022 04:49:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR59MR470Ubpeh/VRIYqru+LL75UwJb2wEcpmmBvg7WUpnjGQBKfcz7uErmgglkL+9tbZE3p X-Received: by 2002:a17:902:f612:b0:172:cbb0:9b4f with SMTP id n18-20020a170902f61200b00172cbb09b4fmr30570599plg.142.1663069752594; Tue, 13 Sep 2022 04:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663069752; cv=none; d=google.com; s=arc-20160816; b=e1WykzCnUrukzxHxIDIrMWPLbFoHchAr8UnGe9mvPvYyWKq4s2pvdlL1lrFATyGChi OH7kt2kZkctk/9Ktd+4e6JW3FMxDQYgSULMw4DOM+gJjKF0evKhcob0cUaCIbkVSTm4L a27va1ymBmAhhpEI7gQc5eWjCw7J9pwMzIqSgNGNfw7wGkuo0BiEr2Qw7x1JYaSrvOfN RRPqStTqIQ+K4GvkjHfYnp3FIjSd83G9GoV1n15gZmZPKDQjJurT9xcZptG/sxXcyi3L vXRFsDt+GosJ5TyI30mY4EJdEIdnDt7RB9kPm+0+N0QWWd6O6ZtUhSY9CkAEZYMpQ0SP DMNA== 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=WnJ7iBg3M95g4UxL74wu6Oc05BoA+yNNygAHJybcFs8=; b=UeelOcgNWwK1WN8sIffOcTPMOBThFs0bx+21BU6XQaPb4z1u6jJ94+9VH0BJGvMTF3 A5XpmHjJ7KgrXzydhW6bjffkRMNOXwOokHRrmvgBzXEbRITPCkCGicFnFbhiumJygXAs 1kKWyq6du3WnpoTKGnpFlwSL5dAnv22C/1NiIfmlxKrysrKx5grZ43jF2bidTbSZ5dCD JNVsopwxBpzhvF9GRyLQThuuVzm+gz27zovUOgAT5um9nRT8GfO9AwxJgV8lGestRvql h3MuH03Utk+whKwRRX1BqBq5SEKQy0+KZr4zL+GHRgeM7rtFLHARtchnBV+LKgNcxECd EXDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Fm3VFtCC; 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 j7-20020a056a00234700b0052daa005a8asi12372518pfj.374.2022.09.13.04.48.59; Tue, 13 Sep 2022 04:49:12 -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=Fm3VFtCC; 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 S231896AbiIML0T (ORCPT + 99 others); Tue, 13 Sep 2022 07:26:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231875AbiIML0R (ORCPT ); Tue, 13 Sep 2022 07:26:17 -0400 Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0573D140D5 for ; Tue, 13 Sep 2022 04:26:13 -0700 (PDT) Date: Tue, 13 Sep 2022 12:26:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1663068372; 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=WnJ7iBg3M95g4UxL74wu6Oc05BoA+yNNygAHJybcFs8=; b=Fm3VFtCCfQqW9sjPYoscFhTrIGnCxUXDH/ciu+YRcKAXP7uW5OtpmLVRqTb/DsL4JnzQu2 FR+O/PFlZnJzNslXx0gRpwgtDE2nlnGZKtlh2CZYyCjrepwroB1AvKZM7y2O5TgGxIJJdY Jmi7h0az1ofKpcVpjFCFraMCyBYnJOQ= 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] arm64: arch_timer: Fix the lack of set_next_event* for workaround of Cortex-A73 erratum 858921 Message-ID: References: <20220913104723.332-1-jiangkunkun@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220913104723.332-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 Tue, Sep 13, 2022 at 06:47:23PM +0800, Kunkun Jiang wrote: > The patch a38b71b0833e moves the programming of the timers from Please check your patch with scripts/checkpatch.pl next time. Use this pattern when referring to a commit in the changelog: commit a38b71b0833e ("clocksource/drivers/arm_arch_timer: Move system register timer programming over to CVAL") moved the programming... > 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. Avoid referring to 'this patch', and just state imperatively what the change does, perhaps: Add the appropriate hooks to apply the erratum mitigation when programming the next timer event. Thanks for catching this! -- Best, Oliver