Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp659276rwd; Thu, 25 May 2023 01:57:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6SPuOyILZ32EYVFzX0h8FkX1WWj/sAwhNlCy5PzAwc2BoYMtQsaeWXZ4F67P/KFl7IwUlZ X-Received: by 2002:a05:6a20:394d:b0:10d:76b8:f442 with SMTP id r13-20020a056a20394d00b0010d76b8f442mr5677008pzg.37.1685005037029; Thu, 25 May 2023 01:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685005037; cv=none; d=google.com; s=arc-20160816; b=BDYOIs7H/bC5Khx1uk2DxpdYetGMpSmgFYDl6aM0rR7cj3YuoXw7hZRLSuhaN/0tW4 9lRaYgXmxnk6aNQ8LD2WFPg88uQyGls4JI5TGr/TA3HF6WWemE2RhoBcf2Oqbe5BKDJ0 IlUHtTe3xXtYGMbaVzbo45yhYrGrt976eQGR+ow6+j1TIKSeSxeUziMokhzkIFBTd+5u nBwx8FcZii17vPIS3TVSgDWDTlv/tqUqJk83Rtt/6G+F71Tupr8mx3fHeVTFIStGi1wI DWrSZOAgJlkCyyZseAprtNYgWoSCQQOX1UhgNazWN4LEKv6IS1pwhMRLPT3obq9zxAtY GW9A== 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; bh=7DcqQ0nWS38cS/b+Vy1Yky7kIBpkmApcaHIVxvU3/GQ=; b=yAKeQUMisPUP42zSaaHetNjqEXbO+XfuIV/0DK4XFDl7/4EQ9z551dPKVUHAP8TygF hn65daHV5leKWbI17LBrcbkisp6/UI9teuSgymuu0o7cC9Ccf8oNKRAAhZ4e8mtq3j3G ODSu4dJN4OCdkhLgDLUxqR1jVjwpz5vYESVKqEJS5FEyZJaZINBJKFC9tlOGuizQAvcz pfNgmtx5oGZ0bvYmTEQZCwo+fZ0DJYNjBTJdz+S2updc0Gvr4oQUhosBPdEFWWTyOzBs NhrUZWJ778K/UJ/Rd66AcQbOfUY+vs5Vl19jueFQewM7zrb6P9O8AYBJut+xQyzmT/AQ +nxQ== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020aa79843000000b0064ad90e94easi996107pfq.194.2023.05.25.01.57.04; Thu, 25 May 2023 01:57:17 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240420AbjEYIs7 (ORCPT + 99 others); Thu, 25 May 2023 04:48:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235393AbjEYIs6 (ORCPT ); Thu, 25 May 2023 04:48:58 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 301BC9E for ; Thu, 25 May 2023 01:48:57 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EE7A61FB; Thu, 25 May 2023 01:49:41 -0700 (PDT) Received: from [10.162.43.6] (unknown [10.162.43.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 60BAD3F67D; Thu, 25 May 2023 01:48:55 -0700 (PDT) Message-ID: <2898744e-1a67-5a8f-6adc-462d7f362b93@arm.com> Date: Thu, 25 May 2023 14:18:52 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] arm64/cpufeature: Use helper for ECV CNTPOFF cpufeature Content-Language: en-US To: Mark Brown , Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230523-arm64-ecv-helper-v1-1-506dfb5fb199@kernel.org> From: Anshuman Khandual In-Reply-To: <20230523-arm64-ecv-helper-v1-1-506dfb5fb199@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 5/24/23 03:19, Mark Brown wrote: > The newly added support for ECV CNTPOFF open codes the recently added > helper ARM64_CPUID_FIELDS(), make use of the helper. No functional > change. > > Signed-off-by: Mark Brown Reviewed-by: Anshuman Khandual > --- > arch/arm64/kernel/cpufeature.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > index 7d7128c65161..27326f35b646 100644 > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -2235,11 +2235,7 @@ static const struct arm64_cpu_capabilities arm64_features[] = { > .capability = ARM64_HAS_ECV_CNTPOFF, > .type = ARM64_CPUCAP_SYSTEM_FEATURE, > .matches = has_cpuid_feature, > - .sys_reg = SYS_ID_AA64MMFR0_EL1, > - .field_pos = ID_AA64MMFR0_EL1_ECV_SHIFT, > - .field_width = 4, > - .sign = FTR_UNSIGNED, > - .min_field_value = ID_AA64MMFR0_EL1_ECV_CNTPOFF, > + ARM64_CPUID_FIELDS(ID_AA64MMFR0_EL1, ECV, CNTPOFF) > }, > #ifdef CONFIG_ARM64_PAN > { > > --- > base-commit: 44c026a73be8038f03dbdeef028b642880cf1511 > change-id: 20230523-arm64-ecv-helper-c1665690b8b0 > > Best regards,