From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by mx.groups.io with SMTP id smtpd.web08.1753.1662483382066897105 for ; Tue, 06 Sep 2022 09:56:22 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eexrUhna; spf=pass (domain: gmail.com, ip: 209.85.222.169, mailfrom: benjamin.doron00@gmail.com) Received: by mail-qk1-f169.google.com with SMTP id b9so8639714qka.2 for ; Tue, 06 Sep 2022 09:56:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=b+rWDjqF5e14zYUamP4g8wNlir6i/WeKD1O9iKpXiYo=; b=eexrUhnaK0p+0KHX9ehVNUdvWXoght4L3YskfYXez1LDczNhXKApsFMw8VRHWE6SQf cE1B77RIMxF2LCvDIdxH3klP5tP0UQ/dfs77bpKfjOLVb2aiY3plmUOxupAMkv0jY2/T HDaMTkC7hRrN51n91qwPZu/CJYVEXSkxrh3MhgwR8xjpUZdywEBkYCYXLQaZwAJRMe5y wCH6RZeOdm7MKpbbEE8ANaPYesSvIrVOlGVDkFSBK4DVIDw0iJD7o5aYkQ/AhtVv+TDR GwSXM7WBjLiw6ubH0BvOprNN+H76gq+80dvbAFDZg+GNDZO367Uois7zsunTfDsSOvwd g/+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=b+rWDjqF5e14zYUamP4g8wNlir6i/WeKD1O9iKpXiYo=; b=UIUGpPDxm6MgQlhCYu7RTE2rNDPSGyjo4l11hHSXeuqoD4JcGMpFVwtt/tyoEd2Ura Ujmxo2xmr5bT/YSVOtbqLE2zdSlkklzl2HY5fVi6Gf8xmiovR2CWleiPhk5Nt/En/24T meotNtW6WH7iF1RDpGcECJXpYkZtYebB4Wx/NrIXjTm7ZM305Uf6nGTv47BgKQ74z2t1 GlbkLMXJmkZGAh5eqHCtfkjfL9I8fjwduX9rqiXCRXboFnNkdiVynYvb+yffuUBjEhGT Bf8u6P1Jky/HMWzlII6e1Ic3cHJOKGG7eVGLJsBw2o4F8fRMtmaWXL5UnCDJIqFR+gu4 CPqA== X-Gm-Message-State: ACgBeo0KdpzKiqMKv9ATz39JqkHVQQUFl4gj2nhLjSp6d8XFuTaP22ac a0060pG3ECwff0dvjcwIS8ZITo6eYue14w== X-Google-Smtp-Source: AA6agR6bG1PmunlsN9AqVGwWPRVdBSh/NPIpSlEFq7jYro7axvqLSQ2oyp3LLkLXWwbOcskiZRRd+A== X-Received: by 2002:a05:620a:1432:b0:6be:6c4a:b800 with SMTP id k18-20020a05620a143200b006be6c4ab800mr36360515qkj.578.1662483380916; Tue, 06 Sep 2022 09:56:20 -0700 (PDT) Return-Path: Received: from aturtleortwo-benjamindomain.. ([2607:f2c0:e98c:e:46bc:db07:bbf3:df6d]) by smtp.gmail.com with ESMTPSA id s7-20020a375e07000000b006b5e1aeb777sm10861247qkb.43.2022.09.06.09.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 09:56:20 -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-devel][edk2-platforms][PATCH v1 2/4] CometlakeOpenBoardPkg/Acpi: BoardAcpiDxe also installs all PcdAcpiTableStorageFile Date: Tue, 6 Sep 2022 12:55:22 -0400 Message-Id: <6e0303689772f9494865150d6a3b9171655f80a4.1662482547.git.benjamin.doron00@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: References: 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 --- .../Acpi/BoardAcpiDxe/BoardAcpiDxe.c | 15 ++++++++++++++- .../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.37.2