On 06/14/18 16:52, Andrew Fish wrote:
> 
> 
>> On Jun 14, 2018, at 7:08 AM, Duran, Leo <[email protected]> wrote:
>>
>>
>>
>>> -----Original Message-----
>>> From: Laszlo Ersek <[email protected] <mailto:[email protected]>>
>>> Sent: Wednesday, June 13, 2018 3:50 PM
>>> To: Duran, Leo <[email protected] <mailto:[email protected]>>; 
>>> [email protected] <mailto:[email protected]>
>>> Cc: Jordan Justen <[email protected] 
>>> <mailto:[email protected]>>; Jeff Fan
>>> <[email protected] <mailto:[email protected]>>; Liming Gao 
>>> <[email protected] <mailto:[email protected]>>; Singh, Brijesh
>>> <[email protected] <mailto:[email protected]>>; Paolo Bonzini 
>>> <[email protected] <mailto:[email protected]>>; Igor
>>> Mammedov <[email protected] <mailto:[email protected]>>
>>> Subject: Re: [edk2] [PATCH] UefiCpuPkg/LocalApicLib: Exclude second
>>> SendIpi sequence on AMD processors.
>>>
>>> Hello Leo,
>>>
>>> On 06/13/18 22:11, Leo Duran wrote:
>>>> On AMD processors the second SendIpi in the SendInitSipiSipi and
>>>> SendInitSipiSipiAllExcludingSelf routines is not required, and may
>>>> cause undesired side-effects during MP initialization.
>>>>
>>>> This patch leverages the StandardSignatureIsAuthenticAMD check to
>>>> exclude the second SendIpi and its associated MicroSecondDelay (200).
>>>
>>> QEMU and KVM emulate some AMD processors too; of particular interest is
>>> the recent EPYC addition, I believe (for SME/SEV, minimally).
>>>
>>> Did you check whether the StandardSignatureIsAuthenticAMD() check
>>> applies to those QEMU VCPU models, and if so, whether omitting the second
>>> Startup IPI interferes with *V*CPU startup in OVMF guests? (In
>>> multiprocessing modules, such as CpuMpPei, CpuDxe, and
>>> PiSmmCpuDxeSmm.)
>>>
>>> Adding Brijesh, Paolo and Igor.
>>>
>>> Thanks!
>>> Laszlo
>>
>> Hi Lazlo,
>>
>> My understanding is that hypervisors simply ignore the second SIPI, so a 
>> single (or double) SIPI should be fine.
>> In any event, I'm checking with Brijesh on your specific question.
>>
> 
> My understanding is the 2nd SIPI was for an Intel processor bug in the mid 
> 1990's and it has not been required since. People are just scared to change 
> it since all the Operating Systems have been historically validated against 
> INT SIPI SIPI. 
> 
> One of my co-works removed our extra SIPI, not knowing the history, and 
> everything worked. Well we booted a little faster without the extra SIPI. 
> 
> If people still have the compatibility concern can we make the 2nd SIPI 
> configurable via a PCD. But given the StandardSignatureIsAuthenticAMD() data 
> point we should default the 2nd SIPI to off and move the world forward? What 
> do folks think?

Given that I asked Brijesh to comment too, I'd like to see his feedback
as well (or Leo to forward Brijesh's findings); then I'm OK with
removing the second SIPI.

Thanks
Laszlo
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to