* [edk2-devel] [PATCH V1 1/1] OvmfPkg/TdxDxe: Change MadtMpWk->MailBoxVersion from 1 to 0
@ 2023-08-21 2:51 Min Xu
2023-08-21 14:30 ` Yao, Jiewen
0 siblings, 1 reply; 2+ messages in thread
From: Min Xu @ 2023-08-21 2:51 UTC (permalink / raw)
To: devel
Cc: Min M Xu, Erdem Aktas, James Bottomley, Jiewen Yao, Gerd Hoffmann,
Tom Lendacky, Michael Roth
From: Min M Xu <min.m.xu@intel.com>
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4527
According to ACPI 6.5 (https://uefi.org/specs/ACPI/6.5/05_ACPI_Software
_Programming_Model.html?highlight=mailboxversion#multiprocessor-wakeup-
structure) the MailBoxVersion is 0.
This patch changed MadtMpWk->MailBoxVersion from 1 to 0 to fix the error.
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Michael Roth <michael.roth@amd.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
---
OvmfPkg/TdxDxe/TdxAcpiTable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/OvmfPkg/TdxDxe/TdxAcpiTable.c b/OvmfPkg/TdxDxe/TdxAcpiTable.c
index 5dc27e23ad71..d6d6975e5676 100644
--- a/OvmfPkg/TdxDxe/TdxAcpiTable.c
+++ b/OvmfPkg/TdxDxe/TdxAcpiTable.c
@@ -186,7 +186,7 @@ AlterAcpiTable (
MadtMpWk = (EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_STRUCTURE *)(NewMadtTable + Table->Length);
MadtMpWk->Type = EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP;
MadtMpWk->Length = sizeof (EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_STRUCTURE);
- MadtMpWk->MailBoxVersion = 1;
+ MadtMpWk->MailBoxVersion = 0;
MadtMpWk->Reserved = 0;
MadtMpWk->MailBoxAddress = RelocateMailboxAddress;
--
2.39.1.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107906): https://edk2.groups.io/g/devel/message/107906
Mute This Topic: https://groups.io/mt/100866594/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [edk2-devel] [PATCH V1 1/1] OvmfPkg/TdxDxe: Change MadtMpWk->MailBoxVersion from 1 to 0
2023-08-21 2:51 [edk2-devel] [PATCH V1 1/1] OvmfPkg/TdxDxe: Change MadtMpWk->MailBoxVersion from 1 to 0 Min Xu
@ 2023-08-21 14:30 ` Yao, Jiewen
0 siblings, 0 replies; 2+ messages in thread
From: Yao, Jiewen @ 2023-08-21 14:30 UTC (permalink / raw)
To: Xu, Min M, devel@edk2.groups.io
Cc: Aktas, Erdem, James Bottomley, Gerd Hoffmann, Tom Lendacky,
Michael Roth
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
> -----Original Message-----
> From: Xu, Min M <min.m.xu@intel.com>
> Sent: Monday, August 21, 2023 11:51 AM
> To: devel@edk2.groups.io
> Cc: Xu, Min M <min.m.xu@intel.com>; Aktas, Erdem <erdemaktas@google.com>;
> James Bottomley <jejb@linux.ibm.com>; Yao, Jiewen <jiewen.yao@intel.com>;
> Gerd Hoffmann <kraxel@redhat.com>; Tom Lendacky
> <thomas.lendacky@amd.com>; Michael Roth <michael.roth@amd.com>
> Subject: [PATCH V1 1/1] OvmfPkg/TdxDxe: Change MadtMpWk->MailBoxVersion
> from 1 to 0
>
> From: Min M Xu <min.m.xu@intel.com>
>
> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4527
>
> According to ACPI 6.5 (https://uefi.org/specs/ACPI/6.5/05_ACPI_Software
> _Programming_Model.html?highlight=mailboxversion#multiprocessor-wakeup-
> structure) the MailBoxVersion is 0.
>
> This patch changed MadtMpWk->MailBoxVersion from 1 to 0 to fix the error.
>
> Cc: Erdem Aktas <erdemaktas@google.com>
> Cc: James Bottomley <jejb@linux.ibm.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Cc: Tom Lendacky <thomas.lendacky@amd.com>
> Cc: Michael Roth <michael.roth@amd.com>
> Signed-off-by: Min Xu <min.m.xu@intel.com>
> ---
> OvmfPkg/TdxDxe/TdxAcpiTable.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/OvmfPkg/TdxDxe/TdxAcpiTable.c b/OvmfPkg/TdxDxe/TdxAcpiTable.c
> index 5dc27e23ad71..d6d6975e5676 100644
> --- a/OvmfPkg/TdxDxe/TdxAcpiTable.c
> +++ b/OvmfPkg/TdxDxe/TdxAcpiTable.c
> @@ -186,7 +186,7 @@ AlterAcpiTable (
> MadtMpWk =
> (EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_STRUCTURE *)(NewMadtTable +
> Table->Length);
> MadtMpWk->Type = EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP;
> MadtMpWk->Length = sizeof
> (EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_STRUCTURE);
> - MadtMpWk->MailBoxVersion = 1;
> + MadtMpWk->MailBoxVersion = 0;
> MadtMpWk->Reserved = 0;
> MadtMpWk->MailBoxAddress = RelocateMailboxAddress;
>
> --
> 2.39.1.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107917): https://edk2.groups.io/g/devel/message/107917
Mute This Topic: https://groups.io/mt/100866594/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-21 14:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-21 2:51 [edk2-devel] [PATCH V1 1/1] OvmfPkg/TdxDxe: Change MadtMpWk->MailBoxVersion from 1 to 0 Min Xu
2023-08-21 14:30 ` Yao, Jiewen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox