Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7373045rwn; Tue, 13 Sep 2022 19:46:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR5I/O5pktz7+t2kc8Hf672u5HkcXBbtR1HNCu+BaiOjK6B4+GMj5ITa2i6K1puOg4EWdZIx X-Received: by 2002:a17:907:1b22:b0:741:8809:b4e6 with SMTP id mp34-20020a1709071b2200b007418809b4e6mr24133944ejc.84.1663123615424; Tue, 13 Sep 2022 19:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663123615; cv=none; d=google.com; s=arc-20160816; b=sMfdQYJSkPJ/Oz+bf40KGHGY5j47bXrfhzVedeSBlD3rRokTzLm5bd7W8ZBwwVGuks Cpsv/qx5z4Bcp9jXyZhbc3jQDWyoeULBHpwU5HI+G3fffG4+e2gNMc8zG3/IhDdFylF1 MmcoWFt4ep6b21DK1Rj1mSxwft9PscQOS+ASRK/UfjrOnqFXxbK2coX9lZQZGQAG/x/L gGLFslNUsvi4fyF7kEr3YWrcEEbe46cIGuGNaqhMLWe09AkM7E73Czi7LZek5w2hs2OQ 7F61xBPZLMyYGdyPpDLSxvYxV3MG+sYyHTSuURx4EmXA2wfgk9LXLzSluYo6kL3NXklk INAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=NHvfu2ikadcw2UjI6ZtM0vIxcIS3xZLDfkVZE3AOylA=; b=ftTKoMvpcysfkTm7E0nPSyDpH3r6XJEmGGH//k6+6MSeJpsark5pIaLUh7k5WTsdTC 3TbMtmzeoj8tCo/q1sGn8cZZBIhdYvPy0WpZGfkel44HVKefD9U8QrJvfiou8g3lt0yB br30qvwQzQDKejDugRrN757f7ktw1rwEHq3J53gpTU3/t0tiImPxkJxIdU7kUjoWwPSc zEUeGTNV4YpStg5WwVmWQiGVxX1yLcMxtJv3kGWymH1/0fFKBHV3OOZG53ZLRCM/AkjV X+upqqwvCPmZ1G8CAbhxXiVEk+SuZIEQdBcnkz3QGRgj6YKlvWEHodJ75k3K2w6m7uNy /5pw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a056402519000b00447a7af56b2si12638710edd.326.2022.09.13.19.46.30; Tue, 13 Sep 2022 19:46:55 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbiINCY3 (ORCPT + 99 others); Tue, 13 Sep 2022 22:24:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230160AbiINCYT (ORCPT ); Tue, 13 Sep 2022 22:24:19 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87E466CF47 for ; Tue, 13 Sep 2022 19:24:08 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MS3tq02w7zNmCN; Wed, 14 Sep 2022 10:19:31 +0800 (CST) Received: from kwepemm600007.china.huawei.com (7.193.23.208) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 14 Sep 2022 10:24:06 +0800 Received: from [10.174.185.210] (10.174.185.210) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 14 Sep 2022 10:24:05 +0800 Subject: Re: [PATCH] arm64: arch_timer: Fix the lack of set_next_event* for workaround of Cortex-A73 erratum 858921 To: Oliver Upton CC: Mark Rutland , Marc Zyngier , "Daniel Lezcano" , Thomas Gleixner , , , , References: <20220913104723.332-1-jiangkunkun@huawei.com> From: Kunkun Jiang Message-ID: Date: Wed, 14 Sep 2022 10:24:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.185.210] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600007.china.huawei.com (7.193.23.208) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,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 Hi Oliver, Thank you for your suggestion. I've modified it in v2. Thanks, Kunkun Jiang On 2022/9/13 19:26, Oliver Upton wrote: > 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 > .