From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387386; b=rAMDT4/AYCdHvFaXenlLKp3sa+F5ffIbUYiqx7NvqZuDmTCpFNe8Ob4A+R5x8BVEi3FR 7Ae3HmCz3YOFuB7SBWvIVTh4uZsBAkoprEZ9o3F+IRfXS0zMRiaAfvcx3+d87Gcgd3VtK nHqWI2ri6m2/zdqWjq6d7M3uzD3G/FmhC9V3SWnL+D0HitgB7jV6yKwqWsB9pqazzlDkg d3eKE6YR2ROYYTVkcFOgGpwykj5ZF1sSyhcHdt1mU9ArTzGZn8oIoCmASusSCXW6gHC9z 0AQWBIWJ/Dsxn9nmrO0O8ZRLvMIbVttxHPjX5dIx4x8wGzAoVXKrBAyFzMVI4KZYV6g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387386; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=MI0Qrx8+CmS7wKgh++86kqPiosp9HmbchyuuyDJLqUY=; b=EHFPAWIvIapwzYElQb1XQyu7yLf14uVxHcJDe0gvmTgm67sp8u3KxsA3906z3j2kMMwS iLLMK4vO03o+UwSqhj9oeMdVzPpiWuWOdjfa3+VloBql9yhxHcbNxSR4TEPs166v6QK+r FHeKx/w05E4336veVqDYUFMkkKne6P9dbte8lLvRKHjQyoXTrSPtlBzxTTiTskl3jzL7/ UCtWz5kHXu2MPMr7Q5VQRhJMUQnchSz2Xfg/zPCUQ1BZHbcCIMIKaZhrqQ6Z8qHCVn6y8 A6L42T3CRqfv0xCIrAG3a1BSlwfu8dAFdsNV2jZGCMCpy55F+GcBAaMvPSkDyt03/SA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=aSpU26w0; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE4FB606A322; Fri, 4 Dec 2026 12:29:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=aSpU26w0 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE7941F000C2; Fri, 4 Dec 2026 12:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387386; bh=MI0Qrx8+CmS7wKgh++86kqPiosp9HmbchyuuyDJLqUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=aSpU26w0QUXzOt6M2NxNxTavvpxg1rMKH+Y3YAzkO8QPNUm0nV3NgVahQUp2lbu7P 5Ra2ErzOw2azoVrB7D+76+2Ez6/cjF7ClyEPESFwkDby99+fwPw3joDBPJffswKe6Q gVk126xp0blcK+/dbWjtIP5ReIMi9yPsVU014LUM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rick Edgecombe , Sean Christopherson , "Borislav Petkov (AMD)" , Sasha Levin Subject: [PATCH 6.1 0222/1059] x86/cpuid: Mark CPUID function 0x23 as being indexed Date: Fri, 4 Dec 2026 18:55:53 +0900 Message-ID: <20261204100650.025386674@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sean Christopherson [ Upstream commit 108775fa28fe04a16f19a828a779689f3d0ea9f0 ] 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 Signed-off-by: Sean Christopherson Signed-off-by: Borislav Petkov (AMD) Tested-by: Rick Edgecombe Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20261022210134.612848-2-seanjc@google.com [ sashal: Applied the one-line case 0x23: addition to cpuid_function_is_indexed() in arch/x86/include/asm/cpuid.h because the cpuid/api.h header split is absent, with no case 0x24: context. ] Signed-off-by: Sasha Levin --- arch/x86/include/asm/cpuid.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpuid.h b/arch/x86/include/asm/cpuid.h index 70b2db18165eb..b8309b8aeb3cd 100644 --- a/arch/x86/include/asm/cpuid.h +++ b/arch/x86/include/asm/cpuid.h @@ -24,6 +24,7 @@ static __always_inline bool cpuid_function_is_indexed(u32 function) case 0x1d: case 0x1e: case 0x1f: + case 0x23: case 0x8000001d: return true; } -- 2.53.0