]> git.hungrycats.org Git - linux/commitdiff
x86/cpuid: Mark CPUID function 0x23 as being indexed
authorSean Christopherson <seanjc@google.com>
Thu, 22 Oct 2026 21:01:32 +0000 (14:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2026 17:06:08 +0000 (12:06 -0500)
commit 108775fa28fe04a16f19a828a779689f3d0ea9f0 upstream.

Add function 0x23 to the set of CPUID functions that are indexed, as per
the SDM and the many sub-leafs defined in leaf_types.h.

Closes: https://lore.kernel.org/all/213d614fe73e183a230c8f4e0c8fa1cc3d45df39.camel@intel.com
Reported-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20261022210134.612848-2-seanjc@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/cpuid/api.h

index 44fa82e1267ce98c7f5f92f69b58f79e235f7261..ea1d9fe438a4fc34747b342238642b358de968c3 100644 (file)
@@ -180,6 +180,7 @@ static __always_inline bool cpuid_function_is_indexed(u32 function)
        case 0x1d:
        case 0x1e:
        case 0x1f:
+       case 0x23:
        case 0x24:
        case 0x8000001d:
                return true;