platform/x86/intel/ifs: Add an entry rendezvous for SAF
authorAshok Raj <ashok.raj@intel.com>
Thu, 25 Jan 2024 08:22:54 +0000 (00:22 -0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 31 Jan 2024 09:57:31 +0000 (11:57 +0200)
commitad630f5d92717632a15e1d0b92e5421e6eac7c8d
tree749a12b2150a899e78b131b0944a0430350d18fd
parentea15f34d5fb77a0db0dd9f983b647fe5b613cf73
platform/x86/intel/ifs: Add an entry rendezvous for SAF

The activation for Scan at Field (SAF) includes a parameter to make
microcode wait for both threads to join. It's preferable to perform an
entry rendezvous before the activation to ensure that they start the
`wrmsr` close enough to each other. In some cases it has been observed
that one of the threads might be just a bit late to arrive. An entry
rendezvous reduces the likelihood of these cases occurring.

Add an entry rendezvous to ensure the activation on both threads happen
close enough to each other.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20240125082254.424859-6-ashok.raj@intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/ifs/runtest.c