public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] x86: Disable RTM on Skylake [BZ #27398]
@ 2021-03-27 18:34 H.J. Lu
  2021-03-27 19:15 ` Florian Weimer
  0 siblings, 1 reply; 8+ messages in thread
From: H.J. Lu @ 2021-03-27 18:34 UTC (permalink / raw)
  To: libc-alpha; +Cc: Florian Weimer, Siddhesh Poyarekar

Disable RTM explicitly on Skylake since CPUID may incorrectly report RTM
feature.
---
 sysdeps/x86/cpu-features.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c
index d7248cbb45..3641a48407 100644
--- a/sysdeps/x86/cpu-features.c
+++ b/sysdeps/x86/cpu-features.c
@@ -518,6 +518,10 @@ init_cpu_features (struct cpu_features *cpu_features)
 		 with stepping >= 4) to avoid TSX on kernels that weren't
 		 updated with the latest microcode package (which disables
 		 broken feature by default).  */
+	    case 0x8e:
+	    case 0x9e:
+	      /* Disable RTM explicitly on Skylake since CPUID may report
+		 RTM feature incorrectly [BZ #27398].  */
 	      CPU_FEATURE_UNSET (cpu_features, RTM);
 	      break;
 	    }
-- 
2.30.2


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

end of thread, other threads:[~2021-03-27 20:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27 18:34 [PATCH] x86: Disable RTM on Skylake [BZ #27398] H.J. Lu
2021-03-27 19:15 ` Florian Weimer
2021-03-27 19:57   ` H.J. Lu
2021-03-27 20:02     ` Florian Weimer
2021-03-27 20:13       ` H.J. Lu
2021-03-27 20:16         ` Florian Weimer
2021-03-27 20:16           ` H.J. Lu
2021-03-27 20:16         ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).