From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by mx.groups.io with SMTP id smtpd.web09.1656.1630183045294237687 for ; Sat, 28 Aug 2021 13:37:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SuHxOOnU; spf=pass (domain: gmail.com, ip: 209.85.160.181, mailfrom: benjamin.doron00@gmail.com) Received: by mail-qt1-f181.google.com with SMTP id c19so8294269qte.7 for ; Sat, 28 Aug 2021 13:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z4swa8fdLPz3/oph8mL5bZWpXpv/Ml0Ma4qwLrf2n+A=; b=SuHxOOnUWoBj7OZt/Po1IV8k1wxUNfuigdk6Oibt+LLtdKcCa7rrByzRUPj/18jNV5 PahFNKHPA6xHteztyYN98AXlYgW0Nj8I5E4C4R4cZ9eYSFSdcEZPEOSbf5OjE1i1dfem vkpBNb4pnsWOqXfgvSfFqqzqAUt8x7rkJd5bi68ErCTmCwjOBD62ljck+4+8pKe75a2K /xdfBAzbhXdiFpeCGUdsvRIjnbBhkPKwoDalCu697tZO+ENADvGzf/02qgK4vsuP5kWb VZdQXnt9C3qBgczU8ZqArQQM2m94N0Cqhuv92OeXAjtzySDcw0avY5/cCXgN8bqX9Qh5 f3ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z4swa8fdLPz3/oph8mL5bZWpXpv/Ml0Ma4qwLrf2n+A=; b=X4JzsZOyvSJ2vnHrUuxzqS4QFdrG/GW2NHP5boj05vc3tNCt/IRb/5cNbASMBENKGu FA3UgFTgBx2QQNCvKJjNiP9DElrZAz7WYcblSF4upJyh11bL4VOsWcR1nMv740LjeTrx WB4KALA3Bj4ZTGxU9Y8zJOoK+No3raDxhzJeQrdTXTO/bPbRASl+kan0G4nAwJ6ivQ8A 0DyCoZsbhd1lS/wj4C9KIFIPR+y4Lf++IMe01fkZF0zImdQmFlHlUXjZWBD7YGitiJmW wVOfZrmcDBsNVTjxAP7WwufUx44BroBfNBTY0H1dO+RIwqXR+t8udEGoNI2MErMD4udx jjlA== X-Gm-Message-State: AOAM533lehQBPoJI/tI6CuxVt5/rPtVyAENx/0H4VCoVFhsYvXWc1CYV oqG8ubDRLOQGQsTJK82Dmc4rIEz6Kt22eg== X-Google-Smtp-Source: ABdhPJwofncxW/xrSN8wGpIRnvpxXf1MHxe+1qryNiG3wScOXpa10PPKDJfXF3qZnH1hQiDWGVw6Gw== X-Received: by 2002:a05:622a:509:: with SMTP id l9mr14166110qtx.355.1630183044421; Sat, 28 Aug 2021 13:37:24 -0700 (PDT) Return-Path: Received: from benjamind-benjamindomain.. ([2607:f2c0:e98c:24:a8c6:887f:fc2d:64af]) by smtp.gmail.com with ESMTPSA id t66sm7749155qkc.3.2021.08.28.13.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Aug 2021 13:37:24 -0700 (PDT) From: "Benjamin Doron" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Rangasai V Chaganty , Deepika Kethi Reddy , Kathappan Esakkithevar Subject: [edk2-platforms][PATCH v2 2/4] CometlakeOpenBoardPkg/Acpi: BoardAcpiDxe also installs all PcdAcpiTableStorageFile Date: Sat, 28 Aug 2021 16:37:23 -0400 Message-Id: <20210828203725.73034-2-benjamin.doron00@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210828203725.73034-1-benjamin.doron00@gmail.com> References: <20210828203725.73034-1-benjamin.doron00@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Follow AcpiPlatformDxe (from which this module is derived) and install all ACPI tables added by board. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Rangasai V Chaganty Cc: Deepika Kethi Reddy Cc: Kathappan Esakkithevar Signed-off-by: Benjamin Doron --- Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAcpiDxe.c | = 15 ++++++++++++++- Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAcpiDxe.inf | = 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAc= piDxe.c b/Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAcpiD= xe.c index 7fc71bca644a..ba59c84fd4ba 100644 --- a/Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAcpiDxe.c +++ b/Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAcpiDxe.c @@ -270,7 +270,20 @@ InstallAcpiBoard ( //=0D // Platform ACPI Tables=0D //=0D - PublishAcpiTablesFromFv (&gEfiCallerIdGuid);=0D + Status =3D PublishAcpiTablesFromFv (&gEfiCallerIdGuid);=0D + if (EFI_ERROR (Status)) {=0D + DEBUG ((DEBUG_ERROR, "Error: PublishAcpiTablesFromFv[%g] - %r", &gEfiC= allerIdGuid, Status));=0D + }=0D + Status =3D PublishAcpiTablesFromFv (PcdGetPtr (PcdAcpiTableStorageFile))= ;=0D + if (EFI_ERROR (Status)) {=0D + DEBUG ((=0D + DEBUG_ERROR,=0D + "Error: PublishAcpiTablesFromFv[%g] - %r",=0D + PcdGetPtr (PcdAcpiTableStorageFile),=0D + Status=0D + ));=0D + DEBUG ((DEBUG_INFO, "Does board contain ACPI tables?\n"));=0D + }=0D =0D //=0D // This protocol publish must be done after PublishAcpiTablesFromFv.=0D diff --git a/Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAc= piDxe.inf b/Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAcp= iDxe.inf index 09b67376fbc1..e201964a6896 100644 --- a/Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAcpiDxe.i= nf +++ b/Platform/Intel/CometlakeOpenBoardPkg/Acpi/BoardAcpiDxe/BoardAcpiDxe.i= nf @@ -62,6 +62,8 @@ gMinPlatformPkgTokenSpaceGuid.PcdPciReservedMemBase=0D gMinPlatformPkgTokenSpaceGuid.PcdPciReservedMemLimit=0D =0D + gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiTableStorageFile=0D +=0D [Depex]=0D gEfiAcpiTableProtocolGuid AND=0D gEfiFirmwareVolume2ProtocolGuid AND=0D --=20 2.31.1