https://www.phoronix.com/scan.php?page=news_item&px=Intel-TSX-Off-New-Microcode Phoronix * Articles & Reviews * News Archive * Forums * Premium * Categories * Computers * Display Drivers * GPUs / Graphics Cards * Linux Gaming * Memory * Motherboards * CPUs / Processors * Software * Storage * Operating Systems * Peripherals * Close * * Articles & Reviews * News Archive * Forums * Premium * Categories Computers GPUs / Graphics Cards Linux Gaming Memory Motherboards CPUs / Processors Software Storage Operating Systems Peripherals * [ ] [Search] Intel To Disable TSX By Default On More CPUs With New Microcode Written by Michael Larabel in Intel on 28 June 2021 at 12:18 PM EDT. 18 Comments INTEL -- Intel is going to be disabling Transactional Synchronization Extensions (TSX) by default for various Skylake through Coffee Lake processors with forthcoming microcode updates. Yes, this does mean performance implications for workloads benefiting from TSX. This change has seemingly not been talked about much at all publicly and I just happened to become aware of it when looking through new kernel patches. Transactional Synchronization Extensions (TSX) have been around since Haswell for hardware transactional memory support and going off Intel's own past numbers can be around 40% faster in specific workloads or as much 4~5 times faster in database transaction benchmarks. TSX issues have been found in the past such as a possible side channel timing attack that could lead to KASLR being defeated and CVE-2019-11135 (TSX Async Abort) for an MDS-style flaw. Now in 2021 Intel is disabling TSX by default across multiple families of Intel CPUs from Skylake through Coffee Lake. No widespread announcement on the change seems to have been made as this is the first time I have heard of this deprecation/disabling and not mentioned on other news sites, but noticed it with the fresh round of patches going into the new Linux 5.14 cycle. The Linux kernel is preparing for this microcode change as seen in the flow of new patches this morning for the 5.14 merge window. [image] A memory ordering issue is what is reportedly leading Intel to now deprecate TSX on various processors. There is this Intel whitepaper updated this month that outlines the problem at length. As noted in the revision history, the memory ordering issue has been known to Intel since at least before October 2018 but only now in June 2021 are they pushing out microcode updates to disable TSX by default. When going through the new Linux patches, there was reference to this guidance from 12 June that outlines the intended change. That update was published a few days after Intel's latest CPU microcode update earlier this month that did not note any TSX changes but noted other security updates. (Trying this latest microcode update on one of the affected CPUs still shows TSX as active with TAA mitigations still active.) With forthcoming microcode updates will effectively deprecate TSX for all Skylake Xeon CPUs prior to Stepping 5 (including Xeon D and 1st Gen Xeon Scalable), all 6th Gen Xeon E3-1500m v5 / E3-1200 v5 Skylake processors, all 7th/8th Gen Core and Pentium Kaby/Coffee/Whiskey CPUs prior to 0x8 stepping, and all 8th/ 9th Gen Core/Pentium Coffee Lake CPUs prior to 0xC stepping will be affected. That ultimately spans from various Skylake steppings through Coffee Lake; it was with 10th Gen Comet Lake and Ice Lake where TSX/TSX-NI was subsequently removed. [image] In addition to disabling TSX by default and force-aborting all RTM transactions by default, a new CPUID bit is being enumerated with the new microcode to indicate that the force aborting of RTM transactions. It's due to that new CPUID bit that the Linux kernel is seeing patches. Previously Linux and other operating systems applied a workaround for the TSX memory ordering issue but now when this feature is disabled, the kernel can drop said workaround. These patches are coming with the Linux 5.14 cycle and will likely be back-ported to stable too. [image] Intel disabling TSX via microcode updates isn't entirely new as back when the feature first appeared with Haswell they ended up selectively disabling the feature due to early bugs in that original implementation but now this effectively killing it off spans multiple product generations and years after software has been adapted to allow making use of Transactional Synchronization Extensions. TSX performance on Linux has already been degraded for newer processors as well stemming from the TAA mitigations enacted back in late 2019. Intel's guidance this month around the forthcoming microcode change does acknowledge "Workloads that were benefited from Intel TSX might experience a change in performance." Thus time to fire up some new benchmarks. 18 Comments Tweet [INS::INS] Related News Crocus Gallium3D Adds Experimental Intel Gen8 Graphics, Overlapping With Iris Driver Habana Labs Driver Drops Default Memory Scrubbing For Better Performance, Other Changes Intel Lands More Open-Source Vulkan Driver Changes For Ray-Tracing Intel Announces New Leadership Roles, Business Unit Changes Intel's Latest CPU Microcode Update Isn't All That Scary Intel Graphics Compiler 1.0.7683 Ships With Many Changes About The Author Author picture Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com. Popular News This Week Linux 5.13 Lands More Fixes To The Mucked Up FPU/XSTATE Handling Mess Microsoft Announces Windows 11 - Benchmarks Against Linux To Begin Soon Dell BIOS/UEFI Under Attack From New Vulnerabilities - Use FWUPD For The Latest Updates NVIDIA Posts 470 Linux Driver Beta With Better Wayland Support, DLSS + Improved PRIME Valve's Dota 2 Adds AMD FidelityFX Super Resolution Surface Suspension Protocol Proposed For Wayland The 13 Most Interesting Changes Of Linux 5.13 From Apple M1 To Security Enhancements Proton 6.3-5 Released With A Number Of Improvements For Windows Games On Linux Latest Linux News Glibc 2.34 Adds "_Fork" Function Ahead Of Future POSIX Revision PipeWire 0.3.31 Released With Better JACK Support, More Crash Fixes Google's Lyra v0.0.2 Speech Codec Gets Rid Of The Binary Blob Intel To Disable TSX By Default On More CPUs With New Microcode GNU Linux-libre 5.13-gnu Released For The Latest Kernel Deblobbing Core-Scheduling For Linux 5.14 To Reduce SMT/HT Information Leak Risks, Side Channels FESCo Says "Yes" To Fedora 35 Using Yescrypt For Hashing Shadow Passwords Linux 5.13 Released With Apple M1 Bringup, Landlock, FreeSync HDMI + Much More Linux's New "randomize_kstack_offset" Security Feature Having Minimal Performance Impact Mesa's Exciting Milestones So Far In 2021 From Zink To Great Intel/ AMD Open-Source Work Linux Developers Discuss A Global Counter For Block/Disk Changes Show Your Support, Go Premium Phoronix Premium allows ad-free access to the site, multi-page articles on a single page, and other features while supporting this site's continued operations. Latest Featured Articles LLVM Clang 12 Benchmarks At Varying Optimization Levels, LTO Another Test Drive With Crocus Gallium3D On Old Intel Hardware Left 4 Dead 2 Vulkan Performance With Radeon Graphics On Linux FreeBSD 13.0 vs. DragonFlyBSD 6.0 vs. Linux On AMD EPYC 7003 Series "Milan" Running The New Intel OpenGL "Crocus" Gallium3D Driver On Sandy Bridge Support Phoronix The mission at Phoronix since 2004 has centered around enriching the Linux hardware experience. In addition to supporting our site through advertisements, you can help by subscribing to Phoronix Premium. You can also contribute to Phoronix through a PayPal tip. Phoronix Media --------------------------------------------------------------------- * OpenBenchmarking.org Phoronix Premium --------------------------------------------------------------------- * Support Phoronix * While Having Ad-Free Browsing, * Single-Page Article Viewing Share --------------------------------------------------------------------- * Facebook * Twitter * Legal Disclaimer, Privacy Policy | Contact * Copyright (c) 2004 - 2021 by Phoronix Media. * All trademarks used are properties of their respective owners. All rights reserved.