[PATCH v7 014/120] x86/cpuid: Parse CPUID(0x80000002) to CPUID(0x80000004)
"Ahmed S. Darwish" <[email protected]> Thu, 28 May 2026 17:37:36 +0200
| Newsgroups | dev.linux.lists.x86-cpuid,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Add CPUID(0x80000002) => CPUID(0x80000004) support to the CPUID parser. This allows converting their call sites to the CPUID API next. Signed-off-by: Ahmed S. Darwish <[email protected]> --- arch/x86/include/asm/cpuid/types.h | 3 +++ arch/x86/kernel/cpu/cpuid_parser.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/x86/include/asm/cpuid/types.h b/arch/x86/include/asm/cpuid/types.h index c020fb8fed59..8be2c2ba874a 100644 --- a/arch/x86/include/asm/cpuid/types.h +++ b/arch/x86/include/asm/cpuid/types.h @@ -207,6 +207,9 @@ struct cpuid_leaves { CPUID_LEAF ( 0x0, 0 ); CPUID_LEAF ( 0x1, 0 ); CPUID_LEAF ( 0x80000000, 0 ); + CPUID_LEAF ( 0x80000002, 0 ); + CPUID_LEAF ( 0x80000003, 0 ); + CPUID_LEAF ( 0x80000004, 0 ); }; /* diff --git a/arch/x86/kernel/cpu/cpuid_parser.h b/arch/x86/kernel/cpu/cpuid_parser.h index 7d41bde0c0ec..3e11e13fa76c 100644 --- a/arch/x86/kernel/cpu/cpuid_parser.h +++ b/arch/x86/kernel/cpu/cpuid_parser.h @@ -117,5 +117,8 @@ struct cpuid_parse_entry { CPUID_PARSE_ENTRY ( 0x0, 0, generic ), \ CPUID_PARSE_ENTRY ( 0x1, 0, generic ), \ CPUID_PARSE_ENTRY ( 0x80000000, 0, 0x80000000 ), \ + CPUID_PARSE_ENTRY ( 0x80000002, 0, generic ), \ + CPUID_PARSE_ENTRY ( 0x80000003, 0, generic ), \ + CPUID_PARSE_ENTRY ( 0x80000004, 0, generic ), \ #endif /* _ARCH_X86_CPUID_PARSER_H */ -- 2.54.0