[PATCH v7 096/120] x86/cpuid: Parse CPUID(0x80000022)
"Ahmed S. Darwish" <[email protected]> Thu, 28 May 2026 17:38:58 +0200
| Newsgroups | dev.linux.lists.x86-cpuid,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Parse CPUID(0x80000022). Add AMD and Hygon vendor tags as it is only supported on these CPUs. Signed-off-by: Ahmed S. Darwish <[email protected]> --- arch/x86/include/asm/cpuid/types.h | 1 + arch/x86/kernel/cpu/cpuid_parser.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/include/asm/cpuid/types.h b/arch/x86/include/asm/cpuid/types.h index 08c338909506..a49b3df2bdf8 100644 --- a/arch/x86/include/asm/cpuid/types.h +++ b/arch/x86/include/asm/cpuid/types.h @@ -236,6 +236,7 @@ struct cpuid_leaves { CPUID_LEAF ( 0x80000006, 0 ); CPUID_LEAF ( 0x80000008, 0 ); CPUID_LEAF_N ( 0x8000001d, 8 ); + CPUID_LEAF ( 0x80000022, 0 ); CPUID_LEAF ( 0x80860000, 0 ); CPUID_LEAF ( 0x80860001, 0 ); CPUID_LEAF ( 0x80860002, 0 ); diff --git a/arch/x86/kernel/cpu/cpuid_parser.h b/arch/x86/kernel/cpu/cpuid_parser.h index 6767923f86d9..2de27a86861d 100644 --- a/arch/x86/kernel/cpu/cpuid_parser.h +++ b/arch/x86/kernel/cpu/cpuid_parser.h @@ -170,6 +170,7 @@ struct cpuid_parse_entry { CPUID_PARSE_ENTRY ( 0x80000006, 0, generic ), \ CPUID_PARSE_ENTRY ( 0x80000008, 0, generic ), \ CPUID_PARSE_ENTRY_N ( 0x8000001d, deterministic_cache ), \ + CPUID_PARSE_ENTRY ( 0x80000022, 0, generic ), \ CPUID_PARSE_ENTRY ( 0x80860000, 0, 0x80860000 ), \ CPUID_PARSE_ENTRY ( 0x80860001, 0, generic ), \ CPUID_PARSE_ENTRY ( 0x80860002, 0, generic ), \ @@ -220,6 +221,7 @@ struct cpuid_vendor_entry { CPUID_VENDOR_ENTRY(0x1c, X86_VENDOR_INTEL), \ CPUID_VENDOR_ENTRY(0x23, X86_VENDOR_INTEL), \ CPUID_VENDOR_ENTRY(0x8000001d, X86_VENDOR_AMD, X86_VENDOR_HYGON), \ + CPUID_VENDOR_ENTRY(0x80000022, X86_VENDOR_AMD, X86_VENDOR_HYGON), \ CPUID_VENDOR_ENTRY(0x80860000, X86_VENDOR_TRANSMETA), \ CPUID_VENDOR_ENTRY(0x80860001, X86_VENDOR_TRANSMETA), \ CPUID_VENDOR_ENTRY(0x80860002, X86_VENDOR_TRANSMETA), \ -- 2.54.0