From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.88]) by mx.groups.io with SMTP id smtpd.web08.520.1635270066156268720 for ; Tue, 26 Oct 2021 10:41:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=bvVI3/ZF; spf=pass (domain: arm.com, ip: 40.107.8.88, 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=NWUHYJwZHSdx/o+mlmge796DMw2Gbq7EI6kwdEtSm/M=; b=bvVI3/ZFX3M/RG2oxjVsBalXoPOHDLd4/VLb/y34uIX8aeilMD6lP7B/zmJIVs0JZzyhPny9i11pMD+qoIGnRLqmz6rN/ZtJusHwEKZ1FHyuKg348MBwIxkMViXAf/9MHQtJmDnu1WlJQmVflUsWrulYEA6RsXbIZRmmMvKtcX8= Received: from DB6PR07CA0161.eurprd07.prod.outlook.com (2603:10a6:6:43::15) by AM5PR0801MB2082.eurprd08.prod.outlook.com (2603:10a6:203:4b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Tue, 26 Oct 2021 17:41:03 +0000 Received: from DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:43:cafe::db) by DB6PR07CA0161.outlook.office365.com (2603:10a6:6:43::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.8 via Frontend Transport; Tue, 26 Oct 2021 17:41:03 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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 DB5EUR03FT028.mail.protection.outlook.com (10.152.20.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18 via Frontend Transport; Tue, 26 Oct 2021 17:41:03 +0000 Received: ("Tessian outbound 16951d3c485e:v103"); Tue, 26 Oct 2021 17:41:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6a0c3e367220e0c7 X-CR-MTA-TID: 64aa7808 Received: from 85085be5dcfd.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C0A2A5FB-6735-4F9C-93B1-DC4F76A406C4.1; Tue, 26 Oct 2021 17:40:42 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 85085be5dcfd.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 26 Oct 2021 17:40:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b4ij6Dj//ashODxG7kxvfufp1UL7/KCTghhLCLpR6iSuTlPQFssbtvYfgbp8WAXiy6NBFUMgPGWn/lWG9DGAZHJlxXdSseGzP/KLrXaNeqY1zwvm3XjFA3xdACtwsIMZwhQYn6legZJcnW2rr3OxdWARgFFCrS+Onf5MUqwhPEyfymodECa5eCx2/zQE/CGyMVMPmiDaBML8aOrvKavtUrr0W2o7IjcU2dD4Gkt41zVUr6E5EsWwmiH9nKge33iesxbXCqHgCiRxJeR85MWsdqmQC4M3kG9UFJefxX/x5Nl6drONrUCjfM1Siv/VyxaG6Ll/D+UM+GzL1NqwI7IHrg== 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=NWUHYJwZHSdx/o+mlmge796DMw2Gbq7EI6kwdEtSm/M=; b=i7tFB11O/+0uokYqpA2tciK+V1UVI5N3CLgDe5CllV8rGgJp1TwCnPSxvzT0w8+69RHPyn/5S2Q62H14unFxXvsfYeBoAw4zvBeomCSw/mQg4AyZfnegTRUjorrS8JBMq7oT7ggL2D5H0UMne8MF9J1KmLNcnmjG0UTd1y7WbCpBV2/zp364QMzrCWM7kFp3rdivNQvILvJY2owdsSBkUiIv9BXRWOWRLndO2m4MW7SO0J0Qrgm3NiWEMAb8FtelM1rsqEjoZQFUTjh/xsBrqt+nPuwl2Z/i9QExhK6Va1J8mlS1ZlzunbqQAEpHfsqdYvR6D1g3XsDx3BVj3AVVag== 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=NWUHYJwZHSdx/o+mlmge796DMw2Gbq7EI6kwdEtSm/M=; b=bvVI3/ZFX3M/RG2oxjVsBalXoPOHDLd4/VLb/y34uIX8aeilMD6lP7B/zmJIVs0JZzyhPny9i11pMD+qoIGnRLqmz6rN/ZtJusHwEKZ1FHyuKg348MBwIxkMViXAf/9MHQtJmDnu1WlJQmVflUsWrulYEA6RsXbIZRmmMvKtcX8= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from PA4PR08MB5902.eurprd08.prod.outlook.com (2603:10a6:102:e0::10) by PAXPR08MB6719.eurprd08.prod.outlook.com (2603:10a6:102:137::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Tue, 26 Oct 2021 17:40:40 +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.4628.020; Tue, 26 Oct 2021 17:40:40 +0000 From: "Khasim Mohammed" To: devel@edk2.groups.io Cc: nd@arm.com, Khasim Syed Mohammed , Sami Mujawar Subject: [PATCH v4 7/7] Platform/ARM/N1Sdp: Enable ACPI tables and configuration manager Date: Tue, 26 Oct 2021 23:09:59 +0530 Message-Id: <20211026173959.15742-7-khasim.mohammed@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211026173959.15742-1-khasim.mohammed@arm.com> References: <20211026173959.15742-1-khasim.mohammed@arm.com> X-ClientProxiedBy: LNXP265CA0004.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5e::16) 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 LNXP265CA0004.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.22 via Frontend Transport; Tue, 26 Oct 2021 17:40:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f5b11cd9-d534-46d6-c9da-08d998a7c7f3 X-MS-TrafficTypeDiagnostic: PAXPR08MB6719:|AM5PR0801MB2082: 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: s/QPB9Qu3hEHOTojnjnidlATnZhWR5AoMbxoHgPlfz1bI83njCggfnY8pZCsPidXAjnbZtbDSRQcFS03GAEu+24Ll8UQDMXqzxlE3gdFYOGS1RdRZpH6owZM+18b/6wIJE1nZwcecDHM+hIDH03s/0AqypQ1ttU6hrwpCwMakE5mf/0lTD1815JXM/vrC+SsIghgRW0p5Sgumtod7JZY+hA3mD7t0FJd31xw7J3SnVxEUa9eYhomTHnRA4batHzhGhrY5eT1G4B6cfHmuhdCMAnFliSW2bqzxehg3whsHlwoBnk34vSbQWqY242AwJxcNUhRURK6kuEMiztGqi6Lb/v97gSSkAAAfa35BoclIqTJJ7BJJx5mNc5fyvX+SlatO13piI+HeUHv5FuhcD8d2jh14PuibxlajLgceiNYtGJI9W7KcmN7EyrjV5bSWNIgVvA8ejdPBy6RUChiUCJrHc9wLle6xmkfV1tH4aETWfkZKYf5xx3seTWi1heNR7WQD3C5ynCMT+yla4Mfr50+Z64p3tqpARIQbQkW1sMet2l/rhnC4A6Phbh+uh6ZA9hgP+CU4Mi5jOXBbIIVsAThpiWQbip0uFKY9PRrUx+k+6YTZOOWi/iarRuU223PsF+5kexlhHurGqmja08auyA4S4OeArKp2Sd9y+Iy4EUePLqWSazs67akti9V55L0UAv9n3PViRzSD39zBn9XrHpZMg== 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)(86362001)(38350700002)(38100700002)(8936002)(7696005)(52116002)(8676002)(54906003)(19627235002)(2616005)(66476007)(1076003)(316002)(6486002)(508600001)(2906002)(26005)(66556008)(36756003)(4326008)(186003)(66946007)(6916009)(5660300002)(6666004)(956004)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6719 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Return-Path: Khasim.Mohammed@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: ec16fdf0-79df-4d5b-fb1c-08d998a7ba38 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pPXjp7dQKV5rvbAYZli12aeeSoFHHC7X12kxVAldMwzDSEJ150IOI8rn23KlAsQIFbCsRoKEaQ4bkNwnxJcF+BuqdcdUfh0DPRzqXYIJHTGa8vlF5nk+BkFxQQ3DhlO7mKEA/SjNaTq3Xvtkz/D8I2ltT4VgXM+hYNY0LEIGoEPpWbmGvN/jfRKVcSTzJwPTUDBm4OySqCcrEy1umDPW/2XLBtqAvpAjEbZqP3FnoLV5KdQHmsFBzih6k+bhmZsw3IR1b1mnTpeamdYBFVon6u4tUsBeR7K2eom7sQ17p+p4PV00d/9SSwSOzOMLUxNp1uW/NDswWeqjcRlWzW5xuYOabKDj3cjjB6I0g72NDftlgJ9HrRVIY6d5V5FQIO/mJaN7l1c+plvetwqEt7fKjTO9oIKZREdm4Uo+xZm8Y2LwdgE8YVp5L3bQnFc1doEkP2CgiX+DMrP+yFkBr1vn/ftMJQwe/ZpWswhjoqDAGhs45unGM8z/kNi1ohqQkwQra3SLhG3LaY0vlff3HGC7JgpksLZTXvgszpZF9KDI+UkPjCVe5gj6VsAvS66Cajbt67B8lVZN1BortCq20HFcgyUd9BGEHWv879iHJ6zsD8gxiAD7UJItGY+jR3UUf2dYn/TOoSdtIOVhxiiJFeAq/taZ96cg9BFhDcxtdNrDSYIdQm+SoqFNIHuNFDmjfk1qs9BeoPp+mca8rCfrjSZwZA== 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)(46966006)(36840700001)(186003)(6486002)(70206006)(47076005)(81166007)(2616005)(7696005)(956004)(86362001)(4326008)(336012)(54906003)(70586007)(2906002)(36860700001)(8936002)(8676002)(6916009)(508600001)(6666004)(5660300002)(36756003)(82310400003)(26005)(19627235002)(316002)(1076003)(356005)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2021 17:41:03.1159 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f5b11cd9-d534-46d6-c9da-08d998a7c7f3 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: DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2082 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 0bc3fa6dfe..dddf616150 100644 --- a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc +++ b/Platform/ARM/N1Sdp/N1SdpPlatform.dsc @@ -34,6 +34,8 @@ !include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc !include MdePkg/MdeLibs.dsc.inc +!include DynamicTablesPkg/DynamicTables.dsc.inc + [LibraryClasses.common] ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf @@ -163,6 +165,9 @@ gArmPlatformTokenSpaceGuid.PcdCoreCount|2 gArmPlatformTokenSpaceGuid.PcdClusterCount|2 + # ACPI Table Version + gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20 + # Runtime Variable storage gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE @@ -222,6 +227,11 @@ BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf } + # ACPI Support + MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf + MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf + Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManagerDxe.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