From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id EDAC7D80A13 for ; Mon, 21 Aug 2023 02:51:54 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=v+7Li54T6WzWv0dntYdxyrtTa4MsvECQ3LkfdnS/NbI=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1692586313; v=1; b=K269/uFWRm6c2YgwENl4L7QvBB/dsNl0aWsEwUEJi+8iRG2yHPqKQKZd/qoXpsOxzCIVzFDz sPwmCCLHJTjDaE5v05iLN6HuqqN9bYEEXRxr1Y7RfuxlSQ2UDWLvTYbYe/ocmBDf5hNT9rYMmAS n3OBpCDTbY/T9n2EdaKeSs6g= X-Received: by 127.0.0.2 with SMTP id vCfEYY7687511xzLxBmURMMN; Sun, 20 Aug 2023 19:51:53 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.3048.1692586312547493167 for ; Sun, 20 Aug 2023 19:51:52 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10808"; a="437407226" X-IronPort-AV: E=Sophos;i="6.01,189,1684825200"; d="scan'208";a="437407226" X-Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2023 19:51:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10808"; a="859317565" X-IronPort-AV: E=Sophos;i="6.01,189,1684825200"; d="scan'208";a="859317565" X-Received: from mxu9-mobl1.ccr.corp.intel.com ([10.93.24.148]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2023 19:51:49 -0700 From: "Min Xu" To: devel@edk2.groups.io Cc: Min M Xu , Erdem Aktas , James Bottomley , Jiewen Yao , Gerd Hoffmann , Tom Lendacky , Michael Roth Subject: [edk2-devel] [PATCH V1 1/1] OvmfPkg/TdxDxe: Change MadtMpWk->MailBoxVersion from 1 to 0 Date: Mon, 21 Aug 2023 10:51:24 +0800 Message-Id: <20230821025124.387-1-min.m.xu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,min.m.xu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Rx1tBqghzOjuYHU3SxDxT9A2x7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="K269/uFW"; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none) From: Min M Xu 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 Cc: James Bottomley Cc: Jiewen Yao Cc: Gerd Hoffmann Cc: Tom Lendacky Cc: Michael Roth Signed-off-by: Min Xu --- 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] -=-=-=-=-=-=-=-=-=-=-=-