From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id DB5B89415FB for ; Tue, 25 Jul 2023 10:31:25 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=pqB4TqO5VcTNFMDSTHYkvdgJxLP4DX+38Sk+bWlBgRI=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-Received:X-Received:X-MS-Exchange-Authentication-Results:Received-SPF:X-Received:X-Received:X-CheckRecipientChecked:X-CR-MTA-CID:X-CR-MTA-TID:X-Received:X-Received:ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:X-Received:X-Received:X-MS-Exchange-Authentication-Results:Received-SPF:X-Received:X-Received:X-Received:X-Received:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:X-EOPAttributedMessage:X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id:x-checkrecipientrouted:NoDisclaimer:X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam-Untrusted:X-Microsoft-Antispam-Message-Info-Original:X-Forefront-Antispam-Report-Untrusted:X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-MS-Exchange-Transport-CrossTenantHeadersStripped:X-MS-PublicTrafficType:X-MS-Office365-Filtering-Correlation-Id-Prvs:X-Microsoft-Antispam-Message-Info:X-OriginatorOrg:X-MS-Exchange-CrossTenant-OriginalArrivalTime:X- MS-Exchange-CrossTenant-Network-Message-Id:X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp:X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-FromEntityHeader:X-MS-Exchange-Transport-CrossTenantHeadersStamped:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:X-Gm-Message-State:Content-Type; s=20140610; t=1690281084; v=1; b=nrMXfaM4UHTFwsblkYrXEG5Qj2bcJaIbKYUU2hQPr8BX/Ta2p2YM60rmIwYgFlhoIjWKtxSr HKwn4nBhlCrWLcdszomDRjZ62wcizC+XpnlPpy0Vu4aF5HC/5ziPMbB4sVaKuW5ow95P0xrbfD6 fJz5sdiuen9k8uUPP8xPI/lg= X-Received: by 127.0.0.2 with SMTP id nVCyYY7687511xNO7Y8JioCJ; Tue, 25 Jul 2023 03:31:24 -0700 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.48]) by mx.groups.io with SMTP id smtpd.web10.17133.1690281083620309054 for ; Tue, 25 Jul 2023 03:31:24 -0700 X-Received: from DU2PR04CA0194.eurprd04.prod.outlook.com (2603:10a6:10:28d::19) by DBAPR08MB5813.eurprd08.prod.outlook.com (2603:10a6:10:1a5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Tue, 25 Jul 2023 10:31:17 +0000 X-Received: from DBAEUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28d:cafe::10) by DU2PR04CA0194.outlook.office365.com (2603:10a6:10:28d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33 via Frontend Transport; Tue, 25 Jul 2023 10:31:17 +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; pr=C X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT025.mail.protection.outlook.com (100.127.142.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.25 via Frontend Transport; Tue, 25 Jul 2023 10:31:17 +0000 X-Received: ("Tessian outbound d7adc65d10b4:v145"); Tue, 25 Jul 2023 10:31:17 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3481440883f38f97 X-CR-MTA-TID: 64aa7808 X-Received: from cbca1cfec232.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id A9DCFD8F-0DFA-41FE-BBF1-B660C2811D70.1; Tue, 25 Jul 2023 10:31:09 +0000 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cbca1cfec232.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 Jul 2023 10:31:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Min1W9QUxvZdaqQkZxVeS7NcItI1darEPoRef8VodjNz19iE6fuM/nM/PQ1FhAoCokC8nJXOAFsNnZP2Jz+QVRzZm7Ln0a7c9XV8LBLxc/fz7jzIvZVxrSue026EsWxfvTq1c9q55r6Y9gmMtq0vnQfzRUcnLDSJv/E4hyJ+Cu/65UM294nuOrMf5kT3thbg57Sqq6zg+mwA+Fk3eJVLQeJGdTsKXmxfla9S8YupgksPLb8gbF2gTKPFYmOgWwKOwWTHVdgalFmyPSnOoLX+4o4tYjqsZDVtz2lxrpPDZp/aFtswFDpW1atKz1NtUJDG0Al3+IRHZFmLy5nfIfT2bQ== 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=JICAr1fKgbT6RjdzvSHeZosENennlVpDoQxhyHjXEJw=; b=IzfHeeDvmEdjPJ65Xv2d2TOZTid5xGIeGKWPNguWSxB0q+0qi7WkWAcwJBx5dE7R7lZmd0WZUHVlUqa3nIL2EDUk9iUeex6Vuc0VhLkuNlRl4Qg30BPxAzqUWiLaTddSfCMFDOSb1IdTEkPEyOlHEbGE3x59hlYUep5GizULtYS0mYoccupYw3pHZ4hP+rhbJMcqwmE0wG9RA0vIx+COoQWmI+2E4UgAqA2sDjHSEWHXQ5tYyDZiS5n0YJFkM3kiz7q8WB0imqkUf4vhI+QkFvWjbaAgciuI+0r51sxqq+jdn0VJ0P17DxHwKuaa1TDQVOpHhpXiifrOGpZlar/QdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DU2PR04CA0176.eurprd04.prod.outlook.com (2603:10a6:10:2b0::31) by DB9PR08MB9539.eurprd08.prod.outlook.com (2603:10a6:10:453::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Tue, 25 Jul 2023 10:31:08 +0000 X-Received: from DBAEUR03FT014.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2b0:cafe::df) by DU2PR04CA0176.outlook.office365.com (2603:10a6:10:2b0::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33 via Frontend Transport; Tue, 25 Jul 2023 10:31:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C X-Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT014.mail.protection.outlook.com (100.127.143.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6631.29 via Frontend Transport; Tue, 25 Jul 2023 10:31:07 +0000 X-Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 25 Jul 2023 10:31:06 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 25 Jul 2023 10:31:06 +0000 X-Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Tue, 25 Jul 2023 10:31:05 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [edk2-devel] [PATCH edk2-platforms v1 1/3] Platform/ARM: Add dynamic CPU node generation for FVP Date: Tue, 25 Jul 2023 11:31:03 +0100 Message-ID: <20230725103105.8068-2-sami.mujawar@arm.com> In-Reply-To: <20230725103105.8068-1-sami.mujawar@arm.com> References: <20230725103105.8068-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT014:EE_|DB9PR08MB9539:EE_|DBAEUR03FT025:EE_|DBAPR08MB5813:EE_ X-MS-Office365-Filtering-Correlation-Id: e06550b6-7f1c-430c-3df7-08db8cfa478d x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: T5H2c1WVP5GghlYF0ALxMCs5ZcLVQBG1et8C6OxlHW1xr8fXEtjb5YANekz7ZNCw9/79Q29Dhp3wFS7RcA4mIGqLzceWZRVokAwmbOGidqMx9OQAvkt8yUvAqLprPnACWXHkRCHJFe5KvKMPQiEFiwHjGAGer7xNBvU69ii8RcjIZHk+SaYKj9f0rshS6dZMTLljmpmkmk/hvcJlT0FsiG/oBhFJt93s842NLy9ikKxznDNJYlSOUhIa2LVDC7AwszLRpukJISWnhxIOjGUMc2a0gn5BnLia85jejYr3oYxrPvvE++6v3bxxc9KL2iCanONVOOlcXchO2uRYwuDIzpJCkzOLH5r4jtrle9lQl9eOHoOrCwkOCO4dQEuOCxtiN98YMbSoDuDXlSRXdVRivpNub9853yJeia6OKLeos3O2ti33xgToQoNiAVgT1ppL+X++x9knlExlyzA0XkXTP+azCoGpJPmRNm686LAqYQtAoWHoWRimPku4Wt1ddf2GNpNIRMQl8s/REAor1ULuFHA4T0TlQAKh5xKaIXUUWdFBP8Sz3TwoJojiS6u5eabME4uTw0BE7E7MKZtaPC+SWoUB0RqiXZVFdRHM+jLYEQyhg1+XoUwxvy/Q8e+CZJdzEBbeAvIEgurWGFe67t1vjE7IF1W/W/o6KfKrobWYpiO/o8GIKH/Ba+fUquLLKiLWr5oAejXnt2nlqxTDr0tK6dq/5B9MNV16ALoezU/XjzDlDLy8vjgODO9/jOufogSbCYJSj36S+1/y+usxqzIRug== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(136003)(396003)(39860400002)(82310400008)(451199021)(46966006)(40470700004)(36840700001)(40480700001)(40460700003)(356005)(81166007)(478600001)(54906003)(7696005)(82740400003)(41300700001)(5660300002)(8676002)(6916009)(316002)(70586007)(4326008)(8936002)(70206006)(2616005)(426003)(36860700001)(186003)(336012)(83380400001)(47076005)(1076003)(26005)(86362001)(44832011)(2906002)(36756003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB9539 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT025.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 2c822731-5a93-4608-5175-08db8cfa41ff X-Microsoft-Antispam-Message-Info: bXAPt+WFLhIHhWbxWVVeQHuu82Wc2VKqco5/40Vu872HaSMiu1wB3vGnhRM055dVPNGVBfbNWh2czQ175utC0Agm4/OyaoEAihZE0pSXYf0oLKGjqoPOzIko/6T/vikYhWjDtEYNLewmyqgZ019C3lgD6zc3rBlCq3BU8RR9MFygjEKaHdr+axGejYw+YPkDLXiBShBma8+YluBTz+hW9tw2sF7H1AqPrmLp8RAH56lcB2IKYK9D8T/clmy71UzS2nrA6uE06OclBiKb+d0Jg8UMOm0vvPqBfyHLo0+0Yo5wA46i7EsictDrq0GHP4ZRQ1PijP9kkvfzZST7l5kIM0G8ubC0rnpuudgX8G4Dz90jgty60O22BAfCk/vg2VopQiP3cJP2kMp3XCdsZswmia4M5ByG5QpDmJooGlgVg9jN078OWPTcAvA7qkDNBaKO4cTiVzxmwFn3XVHx4CtqbVYiArOtQMKtn+ULrbXHhrGJVK5XjpwGXijHAzfhSaQMZchIHjOPqOGmbRhf+LUnfMV2cBNOfHZVpPbTYijOKX33AvsNou3PIPw98BiHIKWlR/G4Ql3MNyJgMU4cesfWy5YhGZ+OPKCI7fTlWEej+/CyFmzT9vp7wQX7enhwzJ3jYktPrTYmn+4MyHFT4tdm/KPdrgAzN33okrlRsSbE3ZuLX6jANEbD/zE//a2GVCI9qH+jxar3lcZhaO3mBTrKd1TBGy21GK0pGvpFJq7118oGtNMLDRNwGaAzMgx2p7bT X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 10:31:17.3208 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e06550b6-7f1c-430c-3df7-08db8cfa478d 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: DBAEUR03FT025.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5813 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sami.mujawar@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: tRlgSgDghO4g1wj2T2N3L1enx7686176AA= Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=nrMXfaM4; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Add support to dynamically generate the CPU nodes in SSDT. Signed-off-by: Sami Mujawar --- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl | 38 +------------------- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c | 8 ++++- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.h | 2 +- 3 files changed, 9 insertions(+), 39 deletions(-) diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl index 3acc0c6bc1b48b747e011022f2300b2fe3fa994b..f60430b94c867ee9744a3355b0ea377aff42b1c4 100644 --- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl +++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl @@ -1,7 +1,7 @@ /** @file Differentiated System Description Table Fields (DSDT) - Copyright (c) 2014-2021, ARM Ltd. All rights reserved.
+ Copyright (c) 2014-2023, ARM Ltd. All rights reserved.
Copyright (c) 2013, Al Stone All rights reserved. @@ -11,42 +11,6 @@ DefinitionBlock("DsdtTable.aml", "DSDT", 2, "ARMLTD", "ARM-VEXP", 1) { Scope(_SB) { - // - // Processor - // - Device(CPU0) { - Name(_HID, "ACPI0007") - Name(_UID, Zero) - } - Device(CPU1) { - Name(_HID, "ACPI0007") - Name(_UID, One) - } - Device(CPU2) { - Name(_HID, "ACPI0007") - Name(_UID, 2) - } - Device(CPU3) { - Name(_HID, "ACPI0007") - Name(_UID, 3) - } - Device(CPU4) { - Name(_HID, "ACPI0007") - Name(_UID, 4) - } - Device(CPU5) { - Name(_HID, "ACPI0007") - Name(_UID, 5) - } - Device(CPU6) { - Name(_HID, "ACPI0007") - Name(_UID, 6) - } - Device(CPU7) { - Name(_HID, "ACPI0007") - Name(_UID, 7) - } - // SMC91X Device (NET0) { Name (_HID, "LNRO0003") diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c index 58a4bf9890bc2a701dab558a1987f9a51662481a..4df2d6cdae58df344804a8b41208a3adb8ee0110 100644 --- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c +++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c @@ -77,7 +77,13 @@ EDKII_PLATFORM_REPOSITORY_INFO VExpressPlatRepositoryInfo = { CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdDbg2), NULL }, - + // SSDT Cpu Hierarchy Table + { + EFI_ACPI_6_3_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE, + 0, // Unused + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdSsdtCpuTopology), + NULL + }, // Note: The last 3 tables in this list are for FVP RevC only. // IORT Table - FVP RevC { diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.h b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.h index aebf0a355291df5df5f588e8b7076e21eda9a152..1b52c2ebc7efb633c748f7316606e3dbe4e0b21c 100644 --- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.h +++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.h @@ -89,7 +89,7 @@ typedef EFI_STATUS (*CM_OBJECT_HANDLER_PROC) ( /** The number of ACPI tables to install */ -#define PLAT_ACPI_TABLE_COUNT 9 +#define PLAT_ACPI_TABLE_COUNT 10 /** The number of platform generic timer blocks */ -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107240): https://edk2.groups.io/g/devel/message/107240 Mute This Topic: https://groups.io/mt/100347406/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-