From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.11388.1682652605102605887 for ; Thu, 27 Apr 2023 20:30:05 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=DF29qC6H; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: vincentx.ke@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682652605; x=1714188605; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=DdU+bLVHjYMw3GwH3fMI1X6vgODZPMaDSqTNkLffvZg=; b=DF29qC6HX3MRhohUVXAU/ELKzQzJUnzwvGD3VbaULOFwOBz7Z0DXySiF ZVqtMIh6GItm/xvWSgEqbW5NIJd0yU010dbvnG44rTJ11u+ZRhLYifD3r aNWRNA9w0mxrhlklcRmwe9dZW7pX8IegfMC4aZflnalj0+JpwmhGSKRbj dzfJkEM0Meb9hsESnFIBXpfdv/aOs3VrQPxp0EzDC4c0h/JDRoptZAyNm sgVrNUPI6hDMb8wMYr4T9qtzvsrgi8UqanljrnIUDsHpbTYuugIW9CZqo mK/2a3TbI9PVOeCymk0CSdrmxkZS4ihggEbn9M33N0rr6wjjZEijxn35a g==; X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="327964262" X-IronPort-AV: E=Sophos;i="5.99,233,1677571200"; d="scan'208";a="327964262" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2023 20:30:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="688663763" X-IronPort-AV: E=Sophos;i="5.99,233,1677571200"; d="scan'208";a="688663763" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga007.jf.intel.com with ESMTP; 27 Apr 2023 20:30:04 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 27 Apr 2023 20:30:04 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Thu, 27 Apr 2023 20:30:04 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.48) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Thu, 27 Apr 2023 20:30:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j9Izm5NwHgRlOTe17tIPKZv3MNNRN0GDHEyeaMFHvYLfVI+8LCAPCiN4s4WGTIBsBfbJ6h4Hi19r1xIs6GpokFjZcpEO7WWS9lhX1wKNrSzXCykyDgZNCF9IsL2i4btuR5BBuY095XEY67ktvKiV69m0hREshxN8J/UFKCjB6aAkgmGKXqKANTvYtUiDXHBLXxx40htJzQ7tPK7FjCaiqz/SRfLIRrbOcudjoOKjnGZVOuMQ7qoIsDxSIg/HgGLbvK2gwyQImlrrR3ie5k2J6WBup0k1bP1pGGEEXjLnLx5ht308TNaVy3PVpzcModjtidB5x59ssQQ/Ampy0yGpXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rSIjPGwtzjmEZ0FMtEaJQ0nt67eXN+SOUpx3tE2+9G4=; b=B6uUsNvud2I/2ijrzd7B1dBLvL614aoL8351j5mPwt89tqdQrIGbL1mBEh9uCS7daCPdHNEHTJH6x+JARgxMxtsNnRvv2Uc9F9AD917EaXh9Mkm8HGyJKR1cVSr2itKNtYFLPvHCy+6P5qMzh7iNAfZ3AnGCybSxGiiHhbc0SIZWO+h50L4B1px3CyzNVd6m3Xn2u8kUbrJH/CslHZF05RjDbstZr1phk2MfdEQkAib2h9tm23VRdIFMis90zoFvX3vG2DwWZ/QybatIxy5z0cOh6sKhl5VIDLY1ZqgVropcRjVusm1pL679aMk7LabuZpDEkO4wCpBmZI6TmN0ehQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB5487.namprd11.prod.outlook.com (2603:10b6:5:39f::22) by DM4PR11MB5229.namprd11.prod.outlook.com (2603:10b6:5:39f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.23; Fri, 28 Apr 2023 03:30:02 +0000 Received: from DM4PR11MB5487.namprd11.prod.outlook.com ([fe80::5b26:2660:6aaf:37f9]) by DM4PR11MB5487.namprd11.prod.outlook.com ([fe80::5b26:2660:6aaf:37f9%4]) with mapi id 15.20.6340.023; Fri, 28 Apr 2023 03:30:02 +0000 From: "VincentX Ke" To: "Ni, Ray" , "devel@edk2.groups.io" CC: "Chiu, Chasel" , "Desimone, Nathaniel L" , "Oram, Isaac W" , "Gao, Liming" , "Dong, Eric" Subject: Re: [edk2-devel] [PATCH v3] MinPlatformPkg: Update HWSignature filed in FADT Thread-Topic: [edk2-devel] [PATCH v3] MinPlatformPkg: Update HWSignature filed in FADT Thread-Index: AQHZeX0mA4R/6MEpGEuSu/V9YrvmU69ACk8AgAACgeA= Date: Fri, 28 Apr 2023 03:30:01 +0000 Message-ID: References: <20230428025659.692-1-vincentx.ke@intel.com> In-Reply-To: Accept-Language: zh-TW, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5487:EE_|DM4PR11MB5229:EE_ x-ms-office365-filtering-correlation-id: e1946567-0e22-47d8-0777-08db4798d992 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QnHlLJJh1J9JLdUV06IrRjqQjAJqFEP+goXRAvwtpEan3oL2mCCWES1IfdQkMGHT9VPsp5AKNOpb4yCVCziWzwzyLQvoj+2+kKGL8TPCPoHm4Kp8YptReEn/jeRuWS8Ev1sNIESKM53FqEBZlAH+IVIj4MsO72av3vaxKe5K8MO6ji2j2Jq0/pWEszAu8mt/69mGYFHmZlS3PcD6FKZWiZ46A9IaS2ldwyz/lxqa4Bl7AOacqAskTBdaP30pp6z72aW8W2j2BzqupiNFv2XvM+yYOZ05gvkPG7g4Uy8/Is30+H01lktN88FuNgSGBRsL0WB/X/1/HKV6cTTUWYfhaOILJdrXokxqxcd+ntqiANiryIcWnb7rLlSHAzvAC9sN4xbAuDB2m4/cLIJSXMZ74I86MpNPv0MTtnOicy4Aue2x48YjwVUjaw3NJVh+KQPANVR8Xvwk+Morb6nnBqDJ6gRRPJFmbFJpVyBiecr97txY1tntsbXao4zYCzmvUMx1rt1ct7NKc7AL53mbDHiQKC5eJLN2ad2y6ZZ8SO67TWBEOlWW1qhRGTCikMnvzIedoResq0hLDn9VQHGSXszBToh7V+G0gu1cbtfrZbsR6nwzV8csKtrnPQ+4ii714im1iS8v1SQvhjs3uNesfm8uuA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5487.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(376002)(346002)(136003)(396003)(39860400002)(366004)(451199021)(53546011)(9686003)(26005)(6506007)(33656002)(107886003)(66899021)(186003)(55016003)(478600001)(82960400001)(15650500001)(52536014)(122000001)(66476007)(54906003)(66446008)(66946007)(66556008)(64756008)(76116006)(110136005)(4326008)(8676002)(5660300002)(8936002)(38100700002)(38070700005)(2906002)(7696005)(71200400001)(41300700001)(316002)(966005)(86362001)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?xbJ27l2gQyvNUULptSVRqvs8k45sUGsUVhil6xIQsgehU0oJJjx2cKQ40hqC?= =?us-ascii?Q?Vz12p5Zn4VNZOHa8qTfwwFhTB/5091kFkxOQURxlLHbSIPe3YOmhf/lraQx7?= =?us-ascii?Q?UsRs+Fgn79RyuKrUTFc162IJnKHigzHqquGEDl+XL3rKUo3ebl6/ANm9RlP9?= =?us-ascii?Q?ag0QjyY2l/B0Fn+W03QDkWReE39VA3kH8Luqw6rllB5HKL3cjzZFBjJ/FeCl?= =?us-ascii?Q?RgacRcc6u0OMTjXmam/z3wwTdbO+fS1LwCUQ1Lb0YTWuhKZ5oM8Fw0+88Ks8?= =?us-ascii?Q?6iCJmL0tcgPi51nwcPoypXxgl4secMF4H8LfZNB1vW7u1cspYsjqTOi4XkM0?= =?us-ascii?Q?klYpmMtAL4VKYGlJr+XIzwjv71NXg8DRf5fhFFqpsj/kA1Tt9s6UsrCGz83y?= =?us-ascii?Q?tNG270U7Rw8k2rVfIEYhHEBFjx+AmxruuRoGWVUe86QTyyr2y2FuLX5z7k7z?= =?us-ascii?Q?syRB0aMH9bXlhNj4H8DkFOGtKN3A6Y+unhQax3CZjkusbjZKvfc5Uk9XgXWu?= =?us-ascii?Q?YSFR2C8xjV6s6wRqYRw43Yr6PRLdCIq9xAl+LOzfT/lwTumWBgftYLkYX+yL?= =?us-ascii?Q?KY7YnFwWz3aPw6wvuK16fxPYJ5wfomz8mBJbWYIR3Q/H0IT6vB9TKrjU40cz?= =?us-ascii?Q?sGSAblfjNd4VzgtLfEo6I7Caf8tO1xCNbMmx8qNCgKKkikfWB922rDaQfnBe?= =?us-ascii?Q?Iw+ZA7rMFS4yVaRgOfl+zrA42ITwtTET3+AZlNB7q38mnVNv9tJ2ncomQzrF?= =?us-ascii?Q?3jpfgtgavP7qDzDi0EYELbFVI+UoighzkdQCEDZdFSbDcx+622W6P0JerFqA?= =?us-ascii?Q?THIpq6ndvLtxrRRQmw4k0hvyhM1s7wxFEm/aiotvI4KkBYHr72kDAIFx+d5I?= =?us-ascii?Q?K52/pZ56TTfhgQrGg8tR2304f8QsV8op+iW14DswArL4vz9imagdTxsTeNra?= =?us-ascii?Q?qaQQbyyZGvd9oKsbE0kbH48AzX2HdNi6xAvMxdUcfW04Zbfdfc42WUcuU7m3?= =?us-ascii?Q?UMNBex2Vy3AejefwWlTx6VwfJYKaKh6gR2kulUnICXtfB0v6Z7enWvnMMxEn?= =?us-ascii?Q?aQalEt63sGgJbNevjBhwXMtCpkSQAnr5g/y9RLW2o6ECI5vMSrFC7n15LQVn?= =?us-ascii?Q?CtBnZQ/19O2STuqJw4ZoIEO+gzP6J/x8y32bVbv3mGsNgevZXKYTXqUymPZw?= =?us-ascii?Q?Hz8eUlViigLGt+JEeSOGoTmr7JXjEwFyGtbuuMB7BGfzHMpq/5UXhcqwQcFW?= =?us-ascii?Q?ro+oddo9qCTMPN5yRS7GPZV6IoCqYm6SnAFMWrrq1lMLGBIZT//YNFw6EwQm?= =?us-ascii?Q?QyHxmM+Td1H87hUKjWsiZUbLLX7KdBho+GXeH/OG34vwrW3y6S2YzWn2Dcrs?= =?us-ascii?Q?iADUiMtdIWLtMUpNUxuxMJUiqOvbUZJ1rFc4TK650uMRM6t0ESnSabWvG0Xy?= =?us-ascii?Q?M+/3hz1dMzOEiED4fa9J9WwyIdzH8PPdIJTq6vhDdLfwzGcxS8Sa3ri+hpJD?= =?us-ascii?Q?H0NfutJNh4UGoMJy6ClCrbl649fjFlRvs76Jn5FlofIU83bpU4gZvWoZ/dI8?= =?us-ascii?Q?qDK/Ru4Os/TTAdQiIIijRzBf8AtWPqUAwK1ko165?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5487.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e1946567-0e22-47d8-0777-08db4798d992 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Apr 2023 03:30:01.3790 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: DI4SDcJdIXqT/NWY3LMv5OqvNNcRPWCoT/QHnv44XFU/thw5riDNFdzmAeSvQIYawAD8eg+E02+SpwvrNq9hqA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5229 Return-Path: vincentx.ke@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Ray Based on ACPI Spec 6.5, "Hardware Signature" filed changed the description. Here is the new description. "The only thing that determines the hardware signature is the ACPI tables.= =20 If any content or structure of the ACPI tables has changed,=20 including adding or removing of tables, then the hardware signature must ch= ange." I keep version 6.3 only for Intel code base test. It should be updated to 6= .4. Thanks for the reminder. BR, Vincent -----Original Message----- From: Ni, Ray =20 Sent: Friday, April 28, 2023 11:08 AM To: devel@edk2.groups.io; Ke, VincentX Cc: Chiu, Chasel ; Desimone, Nathaniel L ; Oram, Isaac W ; Gao, Liming = ; Dong, Eric Subject: RE: [edk2-devel] [PATCH v3] MinPlatformPkg: Update HWSignature fil= ed in FADT Vincent, It's an interesting patch. The original logic is to use the HardwareSignature field to indicate any ch= anges in adding/removing PCI devices. Your new logic is to expand this field to indicate any changes in any table= s when FADT version is > 6.3. Why? > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of=20 > VincentX Ke > Sent: Friday, April 28, 2023 10:57 AM > To: devel@edk2.groups.io > Cc: Ke, VincentX ; Chiu, Chasel=20 > ; Desimone, Nathaniel L=20 > ; Oram, Isaac W=20 > ; Gao, Liming ;=20 > Dong, Eric > Subject: [edk2-devel] [PATCH v3] MinPlatformPkg: Update HWSignature=20 > filed in FADT >=20 > From: VincentX Ke >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4428 >=20 > Calculating CRC based on checksum from all ACPI tables. > Update HWSignature filed in FADT based on CRC while ACPI table changed. >=20 > Signed-off-by: VincentX Ke > Cc: Chasel Chiu > Cc: Nate DeSimone > Cc: Isaac Oram > Cc: Liming Gao > Cc: Eric Dong > --- > Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c | 110 > +++++++++++++++++++- > Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf | 1 + > 2 files changed, 110 insertions(+), 1 deletion(-) >=20 > diff --git=20 > a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c > b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c > index e967031a3b..d84c1d4f6d 100644 > --- a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c > +++ b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c > @@ -1285,6 +1285,108 @@ IsHardwareChange ( > FreePool (HWChange); >=20 > } >=20 >=20 >=20 > +/** >=20 > + This function calculates RCR based on Checksum from all ACPI tables. >=20 > + It also calculates CRC and provides as HWSignature filed in FADT table= . >=20 > +**/ >=20 > +VOID >=20 > +IsAcpiTableChange ( >=20 > + VOID >=20 > + ) >=20 > +{ >=20 > + EFI_STATUS Status; >=20 > + UINTN Index; >=20 > + UINTN AcpiTableCount; >=20 > + UINT32 Table; >=20 > + UINT32 CRC; >=20 > + UINT32 *AcpiTable; >=20 > + EFI_ACPI_6_5_ROOT_SYSTEM_DESCRIPTION_POINTER *Rsdp; >=20 > + EFI_ACPI_DESCRIPTION_HEADER *Rsdt; >=20 > + EFI_ACPI_DESCRIPTION_HEADER *Xsdt; >=20 > + EFI_ACPI_6_5_FIRMWARE_ACPI_CONTROL_STRUCTURE *FacsPtr; >=20 > + EFI_ACPI_6_5_FIXED_ACPI_DESCRIPTION_TABLE *pFADT; >=20 > + >=20 > + AcpiTableCount =3D 0; >=20 > + AcpiTable =3D NULL; >=20 > + Rsdp =3D NULL; >=20 > + Rsdt =3D NULL; >=20 > + Xsdt =3D NULL; >=20 > + FacsPtr =3D NULL; >=20 > + pFADT =3D NULL; >=20 > + >=20 > + DEBUG ((DEBUG_INFO, "%a() - Start\n", __FUNCTION__)); >=20 > + >=20 > + Status =3D EfiGetSystemConfigurationTable (&gEfiAcpiTableGuid, (VOID > **)&Rsdp); >=20 > + if (EFI_ERROR (Status) || (Rsdp =3D=3D NULL)) { >=20 > + return; >=20 > + } >=20 > + >=20 > + // >=20 > + // ACPI table count starts with 2 as RSDT and XSDT are already located= . >=20 > + // Then add ACPI tables found by XSDT and FADT. >=20 > + // >=20 > + Rsdt =3D (EFI_ACPI_DESCRIPTION_HEADER *)(UINTN)Rsdp- > >RsdtAddress; >=20 > + Xsdt =3D (EFI_ACPI_DESCRIPTION_HEADER *)(UINTN)Rsdp- > >XsdtAddress; >=20 > + AcpiTableCount =3D AcpiTableCount + 2; >=20 > + AcpiTableCount =3D AcpiTableCount + (Xsdt->Length - sizeof > (EFI_ACPI_DESCRIPTION_HEADER))/sizeof (UINT64); >=20 > + >=20 > + for (Index =3D sizeof (EFI_ACPI_DESCRIPTION_HEADER); Index < (Xsdt- > >Length); Index =3D Index + sizeof (UINT64)) { >=20 > + Table =3D *((UINT32 *)((UINT8 *)Xsdt + Index)); >=20 > + if (((EFI_ACPI_DESCRIPTION_HEADER *)(UINTN)Table)->Signature =3D=3D > EFI_ACPI_6_5_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE) { >=20 > + pFADT =3D (EFI_ACPI_6_5_FIXED_ACPI_DESCRIPTION_TABLE > *)(UINTN)Table; >=20 > + if ((pFADT->XDsdt !=3D 0) || (pFADT->Dsdt !=3D 0)) { >=20 > + AcpiTableCount =3D AcpiTableCount + 1; >=20 > + } >=20 > + } >=20 > + } >=20 > + >=20 > + // >=20 > + // Allocate memory for founded ACPI tables. >=20 > + // >=20 > + AcpiTable =3D AllocateZeroPool (sizeof (UINT32) * AcpiTableCount); >=20 > + if (AcpiTable =3D=3D NULL) { >=20 > + return; >=20 > + } >=20 > + >=20 > + AcpiTableCount =3D 0; >=20 > + AcpiTable[AcpiTableCount++] =3D Rsdt->Checksum; >=20 > + AcpiTable[AcpiTableCount++] =3D Xsdt->Checksum; >=20 > + >=20 > + for (Index =3D sizeof (EFI_ACPI_DESCRIPTION_HEADER); Index < (Xsdt- > >Length); Index =3D Index + sizeof (UINT64)) { >=20 > + Table =3D *((UINT32 *)((UINT8 *)Xsdt + Index))= ; >=20 > + AcpiTable[AcpiTableCount++] =3D ((EFI_ACPI_DESCRIPTION_HEADER > *)(UINTN)Table)->Checksum; >=20 > + if (((EFI_ACPI_DESCRIPTION_HEADER *)(UINTN)Table)->Signature =3D=3D > EFI_ACPI_6_5_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE) { >=20 > + pFADT =3D (EFI_ACPI_6_5_FIXED_ACPI_DESCRIPTION_TABLE > *)(UINTN)Table; >=20 > + if (pFADT->XDsdt !=3D 0) { >=20 > + AcpiTable[AcpiTableCount++] =3D ((EFI_ACPI_DESCRIPTION_HEADER > *)(UINTN)pFADT->XDsdt)->Checksum; >=20 > + } else { >=20 > + AcpiTable[AcpiTableCount++] =3D ((EFI_ACPI_DESCRIPTION_HEADER > *)(UINTN)pFADT->Dsdt)->Checksum; >=20 > + } >=20 > + } >=20 > + } >=20 > + >=20 > + // >=20 > + // pFADT table not found. >=20 > + // >=20 > + if (pFADT =3D=3D NULL) { >=20 > + return; >=20 > + } >=20 > + >=20 > + // >=20 > + // Calculate CRC value. >=20 > + // >=20 > + Status =3D gBS->CalculateCrc32 (AcpiTable, AcpiTableCount, &CRC); >=20 > + DEBUG ((DEBUG_INFO, "CRC =3D %x and Status =3D %r\n", CRC, Status)); >=20 > + >=20 > + // >=20 > + // Set HardwareSignature value based on CRC value. >=20 > + // >=20 > + FacsPtr =3D > (EFI_ACPI_6_5_FIRMWARE_ACPI_CONTROL_STRUCTURE *)(UINTN)pFADT- > >FirmwareCtrl; >=20 > + FacsPtr->HardwareSignature =3D CRC; >=20 > + FreePool (AcpiTable); >=20 > + DEBUG ((DEBUG_INFO, "%a() - End\n", __FUNCTION__)); >=20 > +} >=20 > + >=20 > VOID >=20 > UpdateLocalTable ( >=20 > VOID >=20 > @@ -1329,7 +1431,13 @@ AcpiEndOfDxeEvent ( > // >=20 > // Calculate Hardware Signature value based on current platform=20 > configurations >=20 > // >=20 > - IsHardwareChange (); >=20 > + if ((PcdGet8 (PcdFadtMajorVersion) <=3D > EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_REVISION) && >=20 > + (PcdGet8 (PcdFadtMinorVersion) <=3D > EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION)) >=20 > + { >=20 > + IsHardwareChange (); >=20 > + } else { >=20 > + IsAcpiTableChange (); >=20 > + } >=20 > } >=20 >=20 >=20 > /** >=20 > diff --git=20 > a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf > b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf > index 694492112b..f47cc3908d 100644 > --- a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf > +++ b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf > @@ -128,6 +128,7 @@ > gEfiGlobalVariableGuid ## CONSUMES >=20 > gEfiHobListGuid ## CONSUMES >=20 > gEfiEndOfDxeEventGroupGuid ## CONSUMES >=20 > + gEfiAcpiTableGuid ## CONSUMES >=20 >=20 >=20 > [Depex] >=20 > gEfiAcpiTableProtocolGuid AND >=20 > -- > 2.39.2.windows.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#103734): > https://edk2.groups.io/g/devel/message/103734 > Mute This Topic: https://groups.io/mt/98551423/1712937 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [ray.ni@intel.com]=20 > -=3D-=3D-=3D-=3D-=3D-=3D >=20