Re: [PATCH v6 17/90] x86/cpuid: Parse CPUID(0x80000000)
From: Maciej Wieczor-Retman
Date: Wed Apr 15 2026 - 12:22:14 EST
On 2026-03-27 at 03:15:31 +0100, Ahmed S. Darwish wrote:
>diff --git a/arch/x86/kernel/cpu/cpuid_parser.c b/arch/x86/kernel/cpu/cpuid_parser.c
>index 898b0c441431..2cebe15f75d4 100644
>--- a/arch/x86/kernel/cpu/cpuid_parser.c
>+++ b/arch/x86/kernel/cpu/cpuid_parser.c
>@@ -53,9 +71,11 @@ static const struct cpuid_parse_entry cpuid_parse_entries[] = {
> static unsigned int cpuid_range_max_leaf(const struct cpuid_table *t, unsigned int range)
> {
> const struct leaf_0x0_0 *l0 = __cpuid_table_subleaf(t, 0x0, 0);
>+ const struct leaf_0x80000000_0 *el0 = __cpuid_table_subleaf(t, 0x80000000, 0);
>
> switch (range) {
> case CPUID_BASE_START: return l0 ? l0->max_std_leaf : 0;
>+ case CPUID_EXT_START: return el0 ? el0->max_ext_leaf : 0;
> default: return 0;
> }
> }
If you moved these returns to a new line in patch 09/90 then there is one more
here.
--
Kind regards
Maciej Wieczór-Retman