* [PATCH] arm64/cpufeature: Use helper for ECV CNTPOFF cpufeature
@ 2023-05-23 21:49 Mark Brown
2023-05-25 8:48 ` Anshuman Khandual
2023-05-26 9:37 ` Catalin Marinas
0 siblings, 2 replies; 3+ messages in thread
From: Mark Brown @ 2023-05-23 21:49 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon; +Cc: linux-arm-kernel, linux-kernel, Mark Brown
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 <broonie@kernel.org>
---
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,
--
Mark Brown <broonie@kernel.org>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64/cpufeature: Use helper for ECV CNTPOFF cpufeature
2023-05-23 21:49 [PATCH] arm64/cpufeature: Use helper for ECV CNTPOFF cpufeature Mark Brown
@ 2023-05-25 8:48 ` Anshuman Khandual
2023-05-26 9:37 ` Catalin Marinas
1 sibling, 0 replies; 3+ messages in thread
From: Anshuman Khandual @ 2023-05-25 8:48 UTC (permalink / raw)
To: Mark Brown, Catalin Marinas, Will Deacon; +Cc: linux-arm-kernel, linux-kernel
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 <broonie@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
> ---
> 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,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64/cpufeature: Use helper for ECV CNTPOFF cpufeature
2023-05-23 21:49 [PATCH] arm64/cpufeature: Use helper for ECV CNTPOFF cpufeature Mark Brown
2023-05-25 8:48 ` Anshuman Khandual
@ 2023-05-26 9:37 ` Catalin Marinas
1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2023-05-26 9:37 UTC (permalink / raw)
To: Will Deacon, Mark Brown; +Cc: linux-arm-kernel, linux-kernel
On Tue, 23 May 2023 22:49:00 +0100, 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.
>
>
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64/cpufeature: Use helper for ECV CNTPOFF cpufeature
https://git.kernel.org/arm64/c/e34f78b970ea
--
Catalin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-26 9:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23 21:49 [PATCH] arm64/cpufeature: Use helper for ECV CNTPOFF cpufeature Mark Brown
2023-05-25 8:48 ` Anshuman Khandual
2023-05-26 9:37 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).