x86/events/intel: Do not deploy TSX force abort workaround when TSX is deprecated
authorPawan Gupta <pawan.kumar.gupta@linux.intel.com>
Mon, 14 Jun 2021 21:13:23 +0000 (14:13 -0700)
committerBorislav Petkov <bp@suse.de>
Tue, 15 Jun 2021 15:36:03 +0000 (17:36 +0200)
commitad3c2e174938d72fded674acead42e2464a3b460
treea17c7dc78052a9b4395f10e4f5b1bb27325bdc6b
parent1348924ba8169f35cedfd0a0087872b81a632b8e
x86/events/intel: Do not deploy TSX force abort workaround when TSX is deprecated

Earlier workaround added by

  400816f60c54 ("perf/x86/intel: Implement support for TSX Force Abort")

for perf counter interactions [1] are not required on some client
systems which received a microcode update that deprecates TSX.

Bypass the perf workaround when such microcode is enumerated.

[1] [ bp: Look for document ID 604224, "Performance Monitoring Impact
      of Intel Transactional Synchronization Extension Memory". Since
      there's no way for us to have stable links to documents... ]

 [ bp: Massage comment. ]

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Tested-by: Neelima Krishnan <neelima.krishnan@intel.com>
Link: https://lkml.kernel.org/r/e4d410f786946280ced02dd07c74e0a74f1d10cb.1623704845.git-series.pawan.kumar.gupta@linux.intel.com
arch/x86/events/intel/core.c