* [PATCH] arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT
@ 2023-07-18 19:45 Mark Brown
2023-07-19 14:53 ` Zenghui Yu
2023-07-27 12:22 ` Will Deacon
0 siblings, 2 replies; 3+ messages in thread
From: Mark Brown @ 2023-07-18 19:45 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon; +Cc: linux-arm-kernel, linux-kernel, Mark Brown
The recently added Enhanced Virtualization Traps cpufeature does not use
the ARM64_CPUID_FIELDS() helper, convert it to do so. 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 f9d456fe132d..bcb006390e55 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -2708,12 +2708,8 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
.desc = "Enhanced Virtualization Traps",
.capability = ARM64_HAS_EVT,
.type = ARM64_CPUCAP_SYSTEM_FEATURE,
- .sys_reg = SYS_ID_AA64MMFR2_EL1,
- .sign = FTR_UNSIGNED,
- .field_pos = ID_AA64MMFR2_EL1_EVT_SHIFT,
- .field_width = 4,
- .min_field_value = ID_AA64MMFR2_EL1_EVT_IMP,
.matches = has_cpuid_feature,
+ ARM64_CPUID_FIELDS(ID_AA64MMFR2_EL1, EVT, IMP)
},
{},
};
---
base-commit: fdf0eaf11452d72945af31804e2a1048ee1b574c
change-id: 20230717-arm64-evt-cpuid-helper-5477a7c469f3
Best regards,
--
Mark Brown <broonie@kernel.org>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT
2023-07-18 19:45 [PATCH] arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT Mark Brown
@ 2023-07-19 14:53 ` Zenghui Yu
2023-07-27 12:22 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Zenghui Yu @ 2023-07-19 14:53 UTC (permalink / raw)
To: Mark Brown, Catalin Marinas, Will Deacon; +Cc: linux-arm-kernel, linux-kernel
On 2023/7/19 03:45, Mark Brown wrote:
> The recently added Enhanced Virtualization Traps cpufeature does not use
> the ARM64_CPUID_FIELDS() helper, convert it to do so. 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 f9d456fe132d..bcb006390e55 100644
> --- a/arch/arm64/kernel/cpufeature.c
> +++ b/arch/arm64/kernel/cpufeature.c
> @@ -2708,12 +2708,8 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
> .desc = "Enhanced Virtualization Traps",
> .capability = ARM64_HAS_EVT,
> .type = ARM64_CPUCAP_SYSTEM_FEATURE,
> - .sys_reg = SYS_ID_AA64MMFR2_EL1,
> - .sign = FTR_UNSIGNED,
> - .field_pos = ID_AA64MMFR2_EL1_EVT_SHIFT,
> - .field_width = 4,
> - .min_field_value = ID_AA64MMFR2_EL1_EVT_IMP,
> .matches = has_cpuid_feature,
> + ARM64_CPUID_FIELDS(ID_AA64MMFR2_EL1, EVT, IMP)
> },
> {},
> };
Reviewed-by: Zenghui Yu <zenghui.yu@linux.dev>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT
2023-07-18 19:45 [PATCH] arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT Mark Brown
2023-07-19 14:53 ` Zenghui Yu
@ 2023-07-27 12:22 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2023-07-27 12:22 UTC (permalink / raw)
To: Mark Brown, Catalin Marinas
Cc: kernel-team, Will Deacon, linux-arm-kernel, linux-kernel
On Tue, 18 Jul 2023 20:45:44 +0100, Mark Brown wrote:
> The recently added Enhanced Virtualization Traps cpufeature does not use
> the ARM64_CPUID_FIELDS() helper, convert it to do so. No functional
> change.
>
>
Applied to arm64 (for-next/cpufeature), thanks!
[1/1] arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT
https://git.kernel.org/arm64/c/ce33cea5d833
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-27 12:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-18 19:45 [PATCH] arm64/cpufeature: Use ARM64_CPUID_FIELD() to match EVT Mark Brown
2023-07-19 14:53 ` Zenghui Yu
2023-07-27 12:22 ` Will Deacon
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).