mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/cpu: Add INVLPGB CPU feature flag to /proc/cpuinfo
@ 2026-03-18 17:52 Yongting Lin
  2026-03-18 17:58 ` Dave Hansen
  0 siblings, 1 reply; 5+ messages in thread
From: Yongting Lin @ 2026-03-18 17:52 UTC (permalink / raw)
  To: linyongting, tglx, mingo, bp, dave.hansen, x86, hpa, seanjc,
	pawan.kumar.gupta, xin, babu.moger, riel
  Cc: linux-kernel

commit 767ae437a32d ("x86/mm: Add INVLPGB feature and Kconfig entry")
introduced support for the INVLPGB instruction as a fast TLB
invalidation mechanism. However, no corresponding CPU feature flag is
exposed via /proc/cpuinfo.

Add the "invlpgb" feature flag in arch/x86/include/asm/cpufeatures.h.
The flag is picked up by arch/x86/kernel/cpu/mkcapflags.sh and exported
through the x86_cap_flags array, making it visible in /proc/cpuinfo.

Signed-off-by: Yongting Lin <linyongting@bytedance.com>
---
 arch/x86/include/asm/cpufeatures.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h
index dbe104df339b..12f0a6610c93 100644
--- a/arch/x86/include/asm/cpufeatures.h
+++ b/arch/x86/include/asm/cpufeatures.h
@@ -332,7 +332,7 @@
 #define X86_FEATURE_CLZERO		(13*32+ 0) /* "clzero" CLZERO instruction */
 #define X86_FEATURE_IRPERF		(13*32+ 1) /* "irperf" Instructions Retired Count */
 #define X86_FEATURE_XSAVEERPTR		(13*32+ 2) /* "xsaveerptr" Always save/restore FP error pointers */
-#define X86_FEATURE_INVLPGB		(13*32+ 3) /* INVLPGB and TLBSYNC instructions supported */
+#define X86_FEATURE_INVLPGB		(13*32+ 3) /* "invlpgb" INVLPGB and TLBSYNC instructions supported */
 #define X86_FEATURE_RDPRU		(13*32+ 4) /* "rdpru" Read processor register at user level */
 #define X86_FEATURE_WBNOINVD		(13*32+ 9) /* "wbnoinvd" WBNOINVD instruction */
 #define X86_FEATURE_AMD_IBPB		(13*32+12) /* Indirect Branch Prediction Barrier */
-- 
2.39.5

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-18 18:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-18 17:52 [PATCH] x86/cpu: Add INVLPGB CPU feature flag to /proc/cpuinfo Yongting Lin
2026-03-18 17:58 ` Dave Hansen
2026-03-18 18:23   ` Yongting Lin
2026-03-18 18:33     ` Dave Hansen
2026-03-18 18:34     ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®