From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (EUR03-DB5-obe.outbound.protection.outlook.com [40.107.4.53]) by mx.groups.io with SMTP id smtpd.web12.1637.1633890688502744414 for ; Sun, 10 Oct 2021 11:31:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=fyNmLSZV; spf=pass (domain: arm.com, ip: 40.107.4.53, mailfrom: khasim.mohammed@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jQrZhKaCdTlSLpXyhdk8CfHaFCVMY2Jqnb944YrEDTE=; b=fyNmLSZVQCuc0TOuig1kCT7b3oosWawVe9Rug+kl6QSMk0/8hjPTT1AhSjiz0uGSnZtNuLGSnB7sYMYKKLfKAAJEFbTE+M2duDAZ0o1m1/0gXunxHRBzkVULd9KfY+BwVD6PV5d7opjdU8zbeKFtWE9nFZBvUuIHFhhioSCx2+A= Received: from DB6PR0402CA0024.eurprd04.prod.outlook.com (2603:10a6:4:91::34) by AM6PR08MB4006.eurprd08.prod.outlook.com (2603:10a6:20b:a9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18; Sun, 10 Oct 2021 18:31:25 +0000 Received: from DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:91:cafe::ce) by DB6PR0402CA0024.outlook.office365.com (2603:10a6:4:91::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Sun, 10 Oct 2021 18:31:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT018.mail.protection.outlook.com (10.152.20.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Sun, 10 Oct 2021 18:31:25 +0000 Received: ("Tessian outbound f1898412aff1:v103"); Sun, 10 Oct 2021 18:31:25 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: da4149ea1fa1c796 X-CR-MTA-TID: 64aa7808 Received: from 5691fc01cd10.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 32ED9370-5635-41C3-B578-018CE7FADA9C.1; Sun, 10 Oct 2021 18:31:14 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5691fc01cd10.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sun, 10 Oct 2021 18:31:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hWYog/Kohupw9yOn8oNX97ZpA9M96PAjjp8uTLGevs28Whs/NINEkpvfTayxU3qdvsRmnp/7ilgJAb2B9++is1gAXTOMnMhYaAxBy0nBUIxAAQozn/3Sfn65b0UtfTUV3F0r2M5+p/Ki38RojcipC55C+xeO59z6+UpMJ3yntE7S375xLXjfGvNAI7rDJt+IkFOzxE71ZD1Q2JyFBD1kR8JAgY5qJl3KgUZDV2Zu1EX5kWZWpHvKFEdc8YUzy4aJ0PPjwG27cS3iMh60FI5NEfiSyhSLMqVgF8fAOqhj1rqUXRpZpYg0lblNbtAUK6k5mOavNJddFmlJOEfJhqyCyA== 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=jQrZhKaCdTlSLpXyhdk8CfHaFCVMY2Jqnb944YrEDTE=; b=icLLQr/rvnR9yQ8Y2len+SmLBSXCe+srdMPCgQdKguvINgIEyN+R/u5C8uZpTLKx4fZuRVyomBfy8pM5kdyZfqhv5WZXXK/2OgL/oPZim4MaThno4JPyPjEww4BylBvVF7BJUJIfWZD+/X8AOropPATomx42WJ5k6UMQeBwHiQ1T3BYPTT4U4/9Q4GMfsiKnrpYi28Y3gghukS2EBIVZ+wkfpv4/lUpQECpryCASkvHatW32qqONad+mxklVTqp055UsGomMRR/lKYaIkeLsugq5nQmWUFVZhhCGe91p7Lb0WPhw49Q9muKttLF7GqKei1jnMWItiMdDmeNupz/afQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jQrZhKaCdTlSLpXyhdk8CfHaFCVMY2Jqnb944YrEDTE=; b=fyNmLSZVQCuc0TOuig1kCT7b3oosWawVe9Rug+kl6QSMk0/8hjPTT1AhSjiz0uGSnZtNuLGSnB7sYMYKKLfKAAJEFbTE+M2duDAZ0o1m1/0gXunxHRBzkVULd9KfY+BwVD6PV5d7opjdU8zbeKFtWE9nFZBvUuIHFhhioSCx2+A= Authentication-Results-Original: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; Received: from PA4PR08MB5902.eurprd08.prod.outlook.com (2603:10a6:102:e0::10) by PA4PR08MB6288.eurprd08.prod.outlook.com (2603:10a6:102:f3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Sun, 10 Oct 2021 18:31:11 +0000 Received: from PA4PR08MB5902.eurprd08.prod.outlook.com ([fe80::e5a7:9474:4463:d258]) by PA4PR08MB5902.eurprd08.prod.outlook.com ([fe80::e5a7:9474:4463:d258%2]) with mapi id 15.20.4587.025; Sun, 10 Oct 2021 18:31:11 +0000 From: "Khasim Mohammed" To: devel@edk2.groups.io Cc: nd@arm.com, Khasim Syed Mohammed , Sami Mujawar Subject: [PATCH v2 7/7] Platform/ARM/N1Sdp: Enable ACPI tables and configuration manager Date: Sun, 10 Oct 2021 23:59:56 +0530 Message-Id: <20211010182956.13526-8-khasim.mohammed@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211010182956.13526-1-khasim.mohammed@arm.com> References: <20211010182956.13526-1-khasim.mohammed@arm.com> X-ClientProxiedBy: LO4P123CA0392.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18f::19) To PA4PR08MB5902.eurprd08.prod.outlook.com (2603:10a6:102:e0::10) MIME-Version: 1.0 Received: from e116623.arm.com (217.140.99.251) by LO4P123CA0392.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.20 via Frontend Transport; Sun, 10 Oct 2021 18:31:10 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1f045c3-91bc-4679-2a94-08d98c1c2acc X-MS-TrafficTypeDiagnostic: PA4PR08MB6288:|AM6PR08MB4006: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:5236;OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Pbc6XaAseDBhB82Dw1Rf8r1PAnUFXeHOwPXZ1Gg0rvGXcbe4h/dn2RVKZfzI1RLYThe4dDODlb+g1aol4TN/Gi5dZUoQB6Sq1SmlDEyS58ssytMd+EF5G1HumMeQ8IxcBVfNon+olPCoVKg6s0iU0DaYfVdebZJepdQymhGziMzmX7aI1cnNnGD1eKNY+ZzXIzbd/NQp6C+h/s4CZXQRPI7fKLKJRZ9EMVV+fhtZ5rF2Np0jbRR97LMd88cJmnVcGkeoWgWbGwEy0Gm/kCJUXWIhsDgfYj9HaZldM9YHmopG14AHYwW19qAEtxU+cYFMwpBg3rjaof57aC7CRnFCHJgMSFDdmcWy82hfBH+Yfp7gabR+PvIHdfodYguMMfE8I/6vf3B7Of2h4t39g6IavymAxtWDYbrqFWfTsoCBJHG3DO/RqjjxPZ4er57X0nMfLzpUnluq0wzoIH+vr3b/M84/o/0wmt4O0KTRuTcLHt+dCb9qxvX++dYlj4CkgvZre4C3afXgo8tcZRgalel8fB5NvkqIyfB8CJmXz8u5k0LTEyjWII4PjtwfGWU+nfzzCZdnsO5kgpkuC+ucH3b7BkAVVkCFSDrxyNeONucFfOIEQjWZU1qEY8a/iuyDuqkcF7QiNPv6SAg7CoEnv9rtB4/S/2lqD858jDCC3lVO85UtV7kArfh5fqrGtEgiUYxwFL9Gc1IHTwb4OzNzDFSMbw== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR08MB5902.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(6666004)(66946007)(508600001)(6916009)(5660300002)(2616005)(956004)(86362001)(83380400001)(66476007)(66556008)(36756003)(6486002)(2906002)(1076003)(19627235002)(52116002)(7696005)(4326008)(26005)(38350700002)(38100700002)(316002)(8676002)(54906003)(186003)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6288 Original-Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; Return-Path: Khasim.Mohammed@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 5ce2cd9f-8e1b-4e1e-9bd8-08d98c1c2229 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U5tDCakZHq1cyCVyoEJGeeZmmVee5X/OYtC//m88/OYTE4hZ7SvezDdr0ggzqdfIXNe16XLMt7jUfCt053+jk8rg5WeRRUz4ZEt2AvBXk5iXpiSw5YnqGmmFvLJ6kiTD0Gs1ebfnDJXZeCTP3QKXV/gNdsa5he32zSbvM1vE/rg007ou2/wvac+jtVpxin1Pr2qhdao53ggr2YZFJrTAvEqdU1lSCdQcJUO5o2/rjf1QsxngC+VzBhikMRA5djlPG7NCAFx3ow/q1/61+ymNU5YzPFdozZRU7R4nuetPhTo+L/Yb+BlY9eeQ5hkQAyd23TXx+3n7p1BwNfGcMw0EGqW1HnwpTUj8o370JQDWXYPMnIEOILLp48SYVoSbT6PDq+sq+/qIuI8W0ru2bSE//r0esizeuDzcyZV+x4KR9pB2VYLU3XULWxWNWtcdDC1bomJhZ7thvFPcIQW8LfJ7hrfiYByN5+DSrpxFlUgaaZLN8Vhwf4FcSSoLpCS/fOehMFfHcBIacAsgGtD54wf5/Ei6a+WCUWoBbNHy+PwD3CWADDiw+/zQ8aPm248edmKFDFaVcEpTX9BvNQRuT1TaKLJdg5e3mrM9WcWuF9dNqRUzoDsicjoTu+MoBkcfum+FpsHqBdakzTNk7+F6e2ZCR11ZjkXeSMy1EFKFWGmaEuUgusWKLXQRN5gTttK/e+iRTxBP4TOycuC+5jny30tpsg== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(36840700001)(46966006)(8676002)(81166007)(356005)(2906002)(70206006)(47076005)(4326008)(1076003)(82310400003)(6666004)(956004)(70586007)(19627235002)(6486002)(36860700001)(2616005)(86362001)(8936002)(83380400001)(336012)(54906003)(26005)(36756003)(316002)(6916009)(5660300002)(7696005)(186003)(508600001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2021 18:31:25.4562 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1f045c3-91bc-4679-2a94-08d98c1c2acc X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4006 Content-Type: text/plain This patch enables ACPI tables and configuration manager for N1SDP Signed-off-by: Sami Mujawar Signed-off-by: Khasim Syed Mohammed --- Platform/ARM/N1Sdp/Include/N1SdpAcpiHeader.h | 35 ++++++++++++++++++++ Platform/ARM/N1Sdp/N1SdpPlatform.dec | 1 + Platform/ARM/N1Sdp/N1SdpPlatform.dsc | 10 ++++++ Platform/ARM/N1Sdp/N1SdpPlatform.fdf | 9 +++++ 4 files changed, 55 insertions(+) create mode 100644 Platform/ARM/N1Sdp/Include/N1SdpAcpiHeader.h diff --git a/Platform/ARM/N1Sdp/Include/N1SdpAcpiHeader.h b/Platform/ARM/N1Sdp/Include/N1SdpAcpiHeader.h new file mode 100644 index 0000000000..d81bdb3576 --- /dev/null +++ b/Platform/ARM/N1Sdp/Include/N1SdpAcpiHeader.h @@ -0,0 +1,35 @@ +/** @file + + Copyright (c) 2021, ARM Limited. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef N1SDP_ACPI_HEADER_ +#define N1SDP_ACPI_HEADER_ + +// +// ACPI table information used to initialize tables. +// +#define EFI_ACPI_ARM_OEM_ID 'A','R','M','L','T','D' // OEMID 6 bytes long +#define EFI_ACPI_ARM_OEM_TABLE_ID SIGNATURE_64('A','R','M','N','1','S','D','P') // OEM table id 8 bytes long +#define EFI_ACPI_ARM_OEM_REVISION 0x20181101 +#define EFI_ACPI_ARM_CREATOR_ID SIGNATURE_32('A','R','M',' ') +#define EFI_ACPI_ARM_CREATOR_REVISION 0x00000099 + +// A macro to initialise the common header part of EFI ACPI tables as defined by +// EFI_ACPI_DESCRIPTION_HEADER structure. +#define ARM_ACPI_HEADER(Signature, Type, Revision) { \ + Signature, /* UINT32 Signature */ \ + sizeof (Type), /* UINT32 Length */ \ + Revision, /* UINT8 Revision */ \ + 0, /* UINT8 Checksum */ \ + { EFI_ACPI_ARM_OEM_ID }, /* UINT8 OemId[6] */ \ + EFI_ACPI_ARM_OEM_TABLE_ID, /* UINT64 OemTableId */ \ + EFI_ACPI_ARM_OEM_REVISION, /* UINT32 OemRevision */ \ + EFI_ACPI_ARM_CREATOR_ID, /* UINT32 CreatorId */ \ + EFI_ACPI_ARM_CREATOR_REVISION /* UINT32 CreatorRevision */ \ + } + +#endif /* N1SDP_ACPI_HEADER_ */ diff --git a/Platform/ARM/N1Sdp/N1SdpPlatform.dec b/Platform/ARM/N1Sdp/N1SdpPlatform.dec index d56891b985..36123ddac0 100644 --- a/Platform/ARM/N1Sdp/N1SdpPlatform.dec +++ b/Platform/ARM/N1Sdp/N1SdpPlatform.dec @@ -22,6 +22,7 @@ # ################################################################################ [Includes.common] + Include # Root include for the pakage [LibraryClasses] ArmPlatformLib|Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLib.inf diff --git a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc b/Platform/ARM/N1Sdp/N1SdpPlatform.dsc index d5ada590e1..aba843bc29 100644 --- a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc +++ b/Platform/ARM/N1Sdp/N1SdpPlatform.dsc @@ -27,6 +27,9 @@ !include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc !include MdePkg/MdeLibs.dsc.inc +!include DynamicTablesPkg/DynamicTables.dsc.inc +!include Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager.dsc.inc + [LibraryClasses.common] ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf @@ -156,6 +159,9 @@ gArmPlatformTokenSpaceGuid.PcdCoreCount|2 gArmPlatformTokenSpaceGuid.PcdClusterCount|2 + # ACPI Table Version + gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20 + # Runtime Variable storage gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE @@ -215,6 +221,10 @@ BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf } + # ACPI Support + MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf + MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf + # Platform driver Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.inf diff --git a/Platform/ARM/N1Sdp/N1SdpPlatform.fdf b/Platform/ARM/N1Sdp/N1SdpPlatform.fdf index 6b097438ad..6ede2b7fc8 100644 --- a/Platform/ARM/N1Sdp/N1SdpPlatform.fdf +++ b/Platform/ARM/N1Sdp/N1SdpPlatform.fdf @@ -94,6 +94,15 @@ READ_LOCK_STATUS = TRUE INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf + # ACPI Support + INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf + + # Configuration Manager + INF Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManagerDxe.inf + + # Dynamic Table fdf + !include DynamicTablesPkg/DynamicTables.fdf.inc + # Human Interface Support INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf -- 2.17.1