mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/cpu: Clear TME feature flag if TME is not enabled by BIOS
@ 2024-03-08 12:27 Bingsong Si
  2024-03-11  6:13 ` Huang, Kai
  2024-03-11  7:19 ` [PATCH v2] " Bingsong Si
  0 siblings, 2 replies; 5+ messages in thread
From: Bingsong Si @ 2024-03-08 12:27 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin
  Cc: Bingsong Si, linux-kernel

Signed-off-by: Bingsong Si <sibs@chinatelecom.cn>
---
 arch/x86/kernel/cpu/intel.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
index a927a8fc9624..22f0c829784d 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -526,6 +526,7 @@ static void detect_tme(struct cpuinfo_x86 *c)
 	if (!TME_ACTIVATE_LOCKED(tme_activate) || !TME_ACTIVATE_ENABLED(tme_activate)) {
 		pr_info_once("x86/tme: not enabled by BIOS\n");
 		mktme_status = MKTME_DISABLED;
+		clear_cpu_cap(c, X86_FEATURE_TME);
 		return;
 	}
 
-- 
2.34.1


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

end of thread, other threads:[~2024-03-26  8:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-08 12:27 [PATCH] x86/cpu: Clear TME feature flag if TME is not enabled by BIOS Bingsong Si
2024-03-11  6:13 ` Huang, Kai
2024-03-12 10:35   ` [PATCH v3] " Bingsong Si
2024-03-11  7:19 ` [PATCH v2] " Bingsong Si
2024-03-26  8:56   ` [tip: x86/cpu] " tip-bot2 for Bingsong Si

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®