From: Nelson D'Souza <nelson.dsouza@linux.intel.com>
To: tglx@linutronix.de, bp@alien8.de
Cc: mingo@redhat.com, x86@kernel.org, hpa@zytor.com,
linux-kernel@vger.kernel.org, Tony Luck <tony.luck@intel.com>
Subject: [PATCH v1] x86/cpu/tsx: Change the TSX default from "off" to "auto"
Date: Wed, 6 May 2020 15:14:59 -0700 [thread overview]
Message-ID: <20200506221459.29104-1-nelson.dsouza@linux.intel.com> (raw)
There are now several commercially available processors that have h/w
fixes for the TSX Async Abort (TAA) issue as indicated by enumerating
the ARCH_CAPABILITIES "TAA_NO" bit.
Change the default setting to "auto" so that these CPUs will leave
TSX enabled by default.
This can still be overridden by the kernel cmdline parameter
tsx=on|off|auto
Signed-off-by: Nelson D'Souza <nelson.dsouza@linux.intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
---
arch/x86/Kconfig | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 1d6104ea8af0..b444205c964a 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1905,7 +1905,7 @@ config X86_INTEL_MEMORY_PROTECTION_KEYS
choice
prompt "TSX enable mode"
depends on CPU_SUP_INTEL
- default X86_INTEL_TSX_MODE_OFF
+ default X86_INTEL_TSX_MODE_AUTO
help
Intel's TSX (Transactional Synchronization Extensions) feature
allows to optimize locking protocols through lock elision which
@@ -1915,8 +1915,13 @@ choice
to form side channel attacks (e.g. TAA) and chances are there
will be more of those attacks discovered in the future.
- Therefore TSX is not enabled by default (aka tsx=off). An admin
- might override this decision by tsx=on the command line parameter.
+ The default setting for TSX Mode is set to auto. This will enable
+ TSX feature for platforms that are not vulnerable to the TAA issue.
+
+ TSX feature will continue to be disabled on platforms that are
+ vulnerable to TAA and support disabling TSX via the updated microcode.
+
+ An admin might override this decision by a kernel command line parameter.
Even with TSX enabled, the kernel will attempt to enable the best
possible TAA mitigation setting depending on the microcode available
for the particular machine.
--
2.24.1
next reply other threads:[~2020-05-06 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 22:14 Nelson D'Souza [this message]
2020-05-07 1:11 ` [PATCH v1] x86/cpu/tsx: Change the TSX default from "off" to "auto" Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200506221459.29104-1-nelson.dsouza@linux.intel.com \
--to=nelson.dsouza@linux.intel.com \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox