On Wed, 16 Aug 2023 at 22:13, Michael Roth <michael.r...@amd.com> wrote: > > PcdFirstTimeWakeUpAPsBySipi was recently introduced to indicate when > the full INIT-SIPI-SIPI sequence can be skipped for AP bringup. It is > true by default, but needs to be disabled for QEMU/OVMF where early INIT > is not simulated. Commit 1d76560146 ("OvmfPkg: Disable > PcdFirstTimeWakeUpAPsBySipi.") added changes to disable it > by default for OvmfPkg, but a similar change was not made for the > AmdSev package. This breaks booting of SEV and SNP guests. > > Fix this defaulting PcdFirstTimeWakeUpAPsBySipi to false for AmdSev > package, as was previously done for OvmfPkg variants. > > Fixes: eaffa1d7ff ("UefiCpuPkg:Wake up APs after power-up or RESET through > SIPI.") > Cc: YuanhaoXie <yuanhao....@intel.com> > Cc: Tom Lendacky <thomas.lenda...@amd.com> > Cc: Eric Dong <eric.d...@intel.com> > Cc: Ray Ni <ray...@intel.com> > Cc: Rahul Kumar <rahul1.ku...@intel.com> > Cc: Gerd Hoffmann <kra...@redhat.com> > Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> > Cc: Jiewen Yao <jiewen....@intel.com> > Cc: Jordan Justen <jordan.l.jus...@intel.com> > Cc: Erdem Aktas <erdemak...@google.com> > Cc: James Bottomley <j...@linux.ibm.com> > Cc: Min Xu <min.m...@intel.com> > Signed-off-by: Michael Roth <michael.r...@amd.com>
Reviewed-by: Ard Biesheuvel <a...@kernel.org> Apologies for the oversight. This should be included in the upcoming stable tag. > --- > OvmfPkg/AmdSev/AmdSevX64.dsc | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/OvmfPkg/AmdSev/AmdSevX64.dsc b/OvmfPkg/AmdSev/AmdSevX64.dsc > index f43300a95e..cf058f6a05 100644 > --- a/OvmfPkg/AmdSev/AmdSevX64.dsc > +++ b/OvmfPkg/AmdSev/AmdSevX64.dsc > @@ -469,6 +469,14 @@ > gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|TRUE > gUefiOvmfPkgTokenSpaceGuid.PcdBootRestrictToFirmware|TRUE > > + # > + # INIT is now triggered before BIOS by ucode/hardware. In the OVMF > + # environment, QEMU lacks a simulation for the INIT process. > + # To address this, PcdFirstTimeWakeUpAPsBySipi set to FALSE to > + # broadcast INIT-SIPI-SIPI for the first time. > + # > + gUefiCpuPkgTokenSpaceGuid.PcdFirstTimeWakeUpAPsBySipi|FALSE > + > > ################################################################################ > # > # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this > Platform > -- > 2.25.1 > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107808): https://edk2.groups.io/g/devel/message/107808 Mute This Topic: https://groups.io/mt/100787520/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-