glibc/x86-haswell-string-flags.patch
Andreas Schwab 386fd5bef0 Accepting request 647005 from home:Andreas_Schwab:Factory
- pthread-mutex-lock-elision-race.patch: Fix race in pthread_mutex_lock
  while promoting to PTHREAD_MUTEX_ELISION_NP (BZ #23275)
- x86-haswell-string-flags.patch: x86: Fix Haswell CPU string flags (BZ
  #23709)

OBS-URL: https://build.opensuse.org/request/show/647005
OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=512
2018-11-07 14:16:18 +00:00

25 lines
864 B
Diff

2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
[BZ #23709]
* sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
independently of other flags.
Index: glibc-2.28/sysdeps/x86/cpu-features.c
===================================================================
--- glibc-2.28.orig/sysdeps/x86/cpu-features.c
+++ glibc-2.28/sysdeps/x86/cpu-features.c
@@ -316,7 +316,13 @@ init_cpu_features (struct cpu_features *
| bit_arch_Fast_Unaligned_Copy
| bit_arch_Prefer_PMINUB_for_stringop);
break;
+ }
+ /* Disable TSX on some Haswell processors to avoid TSX on kernels that
+ weren't updated with the latest microcode package (which disables
+ broken feature by default). */
+ switch (model)
+ {
case 0x3f:
/* Xeon E7 v3 with stepping >= 4 has working TSX. */
if (stepping >= 4)