From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web08.14330.1660552575721061037 for ; Mon, 15 Aug 2022 01:36:15 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=UyIL+U5i; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: aryeh.chen@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660552575; x=1692088575; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ygxQ9uHw0LrLeXhhgW+Jh2ycYR4emIa7QEoxOsxw0Fs=; b=UyIL+U5iCyK6tyMQZMmkhsnTn7ponGXjF3vc6laUZ4uptbLaHdMS/hJX h3YRSKl2G9MHWoJnDn3UmXsH2/mGwGInpTmMaPj8zrvuQ2iqsuxnEpSNI XRUse0WvYaUaMGJF6AJQs+OhI8yYaW0smtyFv0Rif+HzzyPUMyRGTqHS2 ewcF9NumZxQRluTBVoxcs6BMJndpPlkOy95iTHQhchQg6MyBN15WR/9LU +AyVR4ZHNvVK9YV+sESybkm2XDcAQ2CN/QpixEjN3AWl6mOxHGEHkuO+S oarVOWksLMg4TZf0KxCFVRb0bNBjRwHN1TTuMexiDkimPfC5jaE6Q88jK A==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="293189430" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="293189430" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2022 01:36:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="666590558" Received: from aryehche-desk1.gar.corp.intel.com ([10.5.215.0]) by fmsmga008.fm.intel.com with ESMTP; 15 Aug 2022 01:36:13 -0700 From: aryeh.chen@intel.com To: devel@edk2.groups.io Cc: Aryeh Chen , Chasel Chiu , Nate DeSimone , Isaac Oram , Liming Gao , Eric Dong Subject: [PATCH v1] MinPlatformPkg: Add PcdAcpiGpe1BlockLength for FADT from board package Date: Mon, 15 Aug 2022 16:36:01 +0800 Message-Id: <20220815083601.1610-1-aryeh.chen@intel.com> X-Mailer: git-send-email 2.26.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Aryeh Chen REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4020 Add PcdAcpiGpe1BlockLength of FADT Gpe1BlkLen register on MinPlatformPkg for PlatformBoardpkg to update platform setting. Signed-off-by: Aryeh Chen Cc: Chasel Chiu Cc: Nate DeSimone Cc: Isaac Oram Cc: Liming Gao Cc: Eric Dong --- Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c | 3 ++- Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf | 1 + Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c b= /Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c index f134c8a58f..6e57b638e0 100644 --- a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c +++ b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c @@ -88,7 +88,7 @@ EFI_STATUS AppendCpuMapTableEntry (=0D IN VOID *ApicPtr,=0D IN UINT32 LocalApicCounter,=0D - IN EFI_CPU_ID_ORDER_MAP *CpuApicIdOrderTable =0D + IN EFI_CPU_ID_ORDER_MAP *CpuApicIdOrderTable=0D )=0D {=0D EFI_STATUS Status;=0D @@ -1111,6 +1111,7 @@ PlatformUpdateTables ( FadtHeader->Gpe0Blk =3D PcdGet16 (PcdAcpiGpe= 0BlockAddress);=0D FadtHeader->Gpe0BlkLen =3D PcdGet8 (PcdAcpiGpe0= BlockLength);=0D FadtHeader->Gpe1Blk =3D PcdGet16 (PcdAcpiGpe= 1BlockAddress);=0D + FadtHeader->Gpe1BlkLen =3D PcdGet8 (PcdAcpiGpe1= BlockLength);=0D FadtHeader->Gpe1Base =3D PcdGet8 (PcdAcpiGpe1= Base);=0D =0D FadtHeader->XPm1aEvtBlk.Address =3D PcdGet16 (PcdAcpiPm1= AEventBlockAddress);=0D diff --git a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf= b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf index 89350828d6..451034fb8a 100644 --- a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf +++ b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.inf @@ -84,6 +84,7 @@ gMinPlatformPkgTokenSpaceGuid.PcdAcpiGpe0BlockAddress=0D gMinPlatformPkgTokenSpaceGuid.PcdAcpiGpe0BlockLength=0D gMinPlatformPkgTokenSpaceGuid.PcdAcpiGpe1BlockAddress=0D + gMinPlatformPkgTokenSpaceGuid.PcdAcpiGpe1BlockLength=0D gMinPlatformPkgTokenSpaceGuid.PcdAcpiResetRegisterAccessSize=0D gMinPlatformPkgTokenSpaceGuid.PcdAcpiXPm1aEvtBlkAccessSize=0D gMinPlatformPkgTokenSpaceGuid.PcdAcpiXPm1bEvtBlkAccessSize=0D diff --git a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec b/Platform/In= tel/MinPlatformPkg/MinPlatformPkg.dec index db0a19066f..8e603b7bf9 100644 --- a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec +++ b/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec @@ -123,6 +123,7 @@ gMinPlatformPkgTokenSpaceGuid.PcdAcpiGpe0BlockAddress|0x1880|UINT16|0x00= 01003B=0D gMinPlatformPkgTokenSpaceGuid.PcdAcpiGpe0BlockLength|0x00|UINT8|0x000100= 3C=0D gMinPlatformPkgTokenSpaceGuid.PcdAcpiGpe1BlockAddress|0x0000|UINT16|0x00= 01003D=0D + gMinPlatformPkgTokenSpaceGuid.PcdAcpiGpe1BlockLength|0x00|UINT8|0x000100= 3E=0D gMinPlatformPkgTokenSpaceGuid.PcdAcpiGpe1Base|0x00|UINT8|0x00010040=0D gMinPlatformPkgTokenSpaceGuid.PcdAcpiResetRegisterAccessSize|0x00|UINT8|= 0x00010042=0D =0D --=20 2.26.2.windows.1