Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp705170rwb; Tue, 27 Sep 2022 03:37:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gcnAv438RC8v84Zt+3V79T944V+hekH8Z0USAMsz1j5q5VgEIBH7xi6dfz3IA7inJ7g1n X-Received: by 2002:a17:90b:3a87:b0:202:d8b7:2c03 with SMTP id om7-20020a17090b3a8700b00202d8b72c03mr3836536pjb.199.1664275075358; Tue, 27 Sep 2022 03:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664275075; cv=none; d=google.com; s=arc-20160816; b=QuXZLq3drKvIrGBQpV3aYFDTVrPBfThikwgnwmeAr0HHZwDY6XG8Zsr+XvHYN+ca7E FKGy7MM5Rc6j8axmeRBDT96o64byDbs7Md450/HekIdDWzM+CqFJwnPygms/hRjeQ1M5 vb87LIvzRBGvOq32LSS6qp+8QqjOCjdZjtyassso1WHQEeCyyeb5OOfwtFpGd5e/ma3e XPlhuXPBqZuooHdcyXFx21xcpiqjgjx2ABvO+OiRhIwFgI9q43gi/K9WPGBEWMVv/XiX tHDXiuLnlDDzqPBEGRqDBFsuvJrCel9B9YEFh4nvrFwE8eBp+TqwJS1yIHiEAEejFOGZ ZfFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=c1lTYvs/G0HbGldaQkXL4iF+w5hjI0Lt6tEy56lMY1U=; b=Sj58awEGOrNxKqtKTKTQMMXrutKw+VsIzIXwE5ku4FRaKQ6Smx861YZ6y5DbRzd1N3 NhzX9GWKQ3VT93OqMXtCtUWjpvUo+2I//XNYyCH4we9Z6BpYTZuZ9Z+avsVwfbApEHkl qt16mN7HM9x1BaoUcHMIQ+9c0r7ZDhATsRmPcTI/DVen72nMuhqKRZxdeCMycgdFPb0n 3OZf6sNE+xRzMX9wGCQbDGQEIQVpF077vAK0VCTQ1rne7yto3dFsohgJaCuT8VAd4eeF WSfeh6Ph1DV4SdtPTU9+iHG7uAsW0uyoFLgkR027qRG7JWyftJE115eOz/DeHKXJWScO ee4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IIG8Bui+; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g20-20020a170902c99400b00172cde9be63si1263555plc.127.2022.09.27.03.37.43; Tue, 27 Sep 2022 03:37: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; dkim=pass header.i=@linaro.org header.s=google header.b=IIG8Bui+; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbiI0JcX (ORCPT + 99 others); Tue, 27 Sep 2022 05:32:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbiI0JcV (ORCPT ); Tue, 27 Sep 2022 05:32:21 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E804D5899 for ; Tue, 27 Sep 2022 02:32:20 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id r10-20020a1c440a000000b003b494ffc00bso924568wma.0 for ; Tue, 27 Sep 2022 02:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=c1lTYvs/G0HbGldaQkXL4iF+w5hjI0Lt6tEy56lMY1U=; b=IIG8Bui+zHL7IWfR8G2NjDQAY580zeTo35G1wuYkB90CgyhrECnuu83P5MnZHyU+Z9 o40JqMrbCNFzCh8Rm1b2EUMajcyX720UytdUliqsF1ZPJiBeiqurHYLE4aKKxOUAqF3U 7XPoC8XwwMsBrLo5b7M3f0F1viQgrnNsgv/Ie683OlLUSoj/2d7SSaH/pq+HJnRxOO3x niWNwcXveTTLcqLUHDhKCzbOBnonFaUfnpfgS5xEoGBjvANKx/n4KqyBiN+DOsTgzLdX YYxaHZTN3WzqOL0J6nGgIVc1hY4q8u6IkgImMFuIXZ3yhsZrmzc2PLIU+CsVY3PSlzoM 3w2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=c1lTYvs/G0HbGldaQkXL4iF+w5hjI0Lt6tEy56lMY1U=; b=3tplWy7gGnh2yw/BOpSaM/t5/FERCHAz9HHn3zfKrAK3Pn1s6DpuifUTkatwyp8GcQ SnkFcz3DSon/MykSzlogN1bkHKj5Vg9vZxQZWISRVZx3ZsKdb3/vCkXi2lej4R+BQEOw cHsvId0ih7SkXCTvZUekhcGzIoLRUyH12U20ALjvn32391pVYx/l1TRobVCySoqeEUnv RJwlawPfSre7XVmk+eojxRdr+SSwdTs+uLoGlhkm4bo3JrsEHlBNAxdSjU33CqcNUnVx b4gsEjsmX2ReW+p0SmEaqf0FpCKikFdcM24e3w6OuKaIfNFt/B5L+u+xf0LLjBK0W2fh FwvQ== X-Gm-Message-State: ACrzQf3LFknXwcLPfxiKoK/AA2/TMv1uIf0otAfGCP9bWuX0hHOselys pYquqkBlyiBz9l/xz/Lkrhe2bA== X-Received: by 2002:a05:600c:284:b0:3b5:3360:3f8c with SMTP id 4-20020a05600c028400b003b533603f8cmr1931059wmk.83.1664271138724; Tue, 27 Sep 2022 02:32:18 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id r9-20020adfda49000000b002258235bda3sm1337746wrl.61.2022.09.27.02.32.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Sep 2022 02:32:18 -0700 (PDT) Message-ID: <68389021-ffcc-9554-f874-98cc8379df5b@linaro.org> Date: Tue, 27 Sep 2022 11:32:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2] clocksource/drivers/arm_arch_timer: Fix CNTPCT_LO and CNTVCT_LO value Content-Language: en-US To: Shaokun Zhang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Yang Guo , stable@vger.kernel.org, Thomas Gleixner , Marc Zyngier , Mark Rutland References: <20220927033221.49589-1-zhangshaokun@hisilicon.com> From: Daniel Lezcano In-Reply-To: <20220927033221.49589-1-zhangshaokun@hisilicon.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 27/09/2022 05:32, Shaokun Zhang wrote: > From: Yang Guo > > CNTPCT_LO and CNTVCT_LO are defined by mistake in commit '8b82c4f883a7', > so fix them according to the Arm ARM DDI 0487I.a, Table I2-4 > "CNTBaseN memory map" as follows: > > Offset Register Type Description > 0x000 CNTPCT[31:0] RO Physical Count register. > 0x004 CNTPCT[63:32] RO > 0x008 CNTVCT[31:0] RO Virtual Count register. > 0x00C CNTVCT[63:32] RO > > Fixes: 8b82c4f883a7 ("clocksource/drivers/arm_arch_timer: Move MMIO timer programming over to CVAL") > Cc: stable@vger.kernel.org > Cc: Daniel Lezcano > Cc: Thomas Gleixner > Cc: Marc Zyngier > Cc: Mark Rutland > Acked-by: Marc Zyngier > Signed-off-by: Yang Guo > Signed-off-by: Shaokun Zhang > --- Applied, thanks > drivers/clocksource/arm_arch_timer.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c > index 9ab8221ee3c6..8122a1646925 100644 > --- a/drivers/clocksource/arm_arch_timer.c > +++ b/drivers/clocksource/arm_arch_timer.c > @@ -44,8 +44,8 @@ > #define CNTACR_RWVT BIT(4) > #define CNTACR_RWPT BIT(5) > > -#define CNTVCT_LO 0x00 > -#define CNTPCT_LO 0x08 > +#define CNTPCT_LO 0x00 > +#define CNTVCT_LO 0x08 > #define CNTFRQ 0x10 > #define CNTP_CVAL_LO 0x20 > #define CNTP_CTL 0x2c -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog