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 7C4587803E3 for ; Wed, 13 Sep 2023 12:53:12 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=djdC9zsT4ewj1jPvyMbOMTuOKIx+v5y3rsOSkogakr0=; c=relaxed/simple; d=groups.io; h=Received-SPF:ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:NoDisclaimer:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20140610; t=1694609591; v=1; b=WoshwDg1aekanvCO0ve1vdjH3E9b11I69fhDw6gCV8NGVUFTkfwji/1h3+jmo8e4KgQ09q7X PhsocOUjZ9r1RFqb9Pf/iMiFDk+LZIKZ+GZO6v28zJ3Nheg4AKoxwngmopXAhMDpq9HPGTQk97y f2rrgge7Iyx1SMx2uxZhqPqE= X-Received: by 127.0.0.2 with SMTP id fz1fYY7687511xXr5MpRCOXm; Wed, 13 Sep 2023 05:53:11 -0700 X-Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.74]) by mx.groups.io with SMTP id smtpd.web11.11062.1694609590489391582 for ; Wed, 13 Sep 2023 05:53:10 -0700 X-Received: from DB7PR03CA0105.eurprd03.prod.outlook.com (2603:10a6:10:72::46) by DU0PR08MB9251.eurprd08.prod.outlook.com (2603:10a6:10:41a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.35; Wed, 13 Sep 2023 12:53:04 +0000 X-Received: from DBAEUR03FT006.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:72:cafe::18) by DB7PR03CA0105.outlook.office365.com (2603:10a6:10:72::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 12:53:04 +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 DBAEUR03FT006.mail.protection.outlook.com (100.127.142.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 12:53:03 +0000 X-Received: ("Tessian outbound 5c548696a0e7:v175"); Wed, 13 Sep 2023 12:53:03 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b45760fcb2533d84 X-CR-MTA-TID: 64aa7808 X-Received: from bb834e847d9c.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 613AAD4E-3A1D-46FB-9509-6055046D061B.1; Wed, 13 Sep 2023 12:52:56 +0000 X-Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bb834e847d9c.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Sep 2023 12:52:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L9/1iHUaTbeGMeQYlb5Gl6B4vDDpJY3U4ZLcuqsiJASt6XLOlgWQkfxXCCnhCz7utfid6q3kCmDYoR5KBXXLQSF3XU1q+9if7M2XM3ne3m/wGlQH8vIA4cJreUIAW+/RHpsiBpJc0IcCcZQwo/ua97OBFvtvqG2SvXACSRH00aVDg9TNK1xOvOcX1iypkPirPmpoB5KTJK7e0nOSiVS5DdceM5hCxnYLv/XVeOrfrT+5ZXS1PU03rVUqTIJfQbh95tmilyvdjWwVfbQvNZIaXAB/jiJ868OcyBRsBWavBDLJ7HwhADq1lPDS27R1EUXqAVC2p+IrXepMXOM8LC+oow== 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=RipHvrsyK4+uVsRplA1O0up5k7fYfyRneQpPd1hffnQ=; b=gaxxTfrUjzmebw0veLZcuuftQAM7r7ykySQFH3vJL3w4Ndxm7QftC3iqpMNJGrPO+jirSmp9d+yPeJ3V4VJ7Rt525wJwMM5svG+S47UTPsSNNe66SrapvA0DpB/B38hvpbRWzeauYQ6JdH/E12bSXHh4qWS3aneJ/nbOfXm+jSBzXZ6o6RUdWAuG8j6DraYz3C/VVJUlW15PvSKwcMhIepiDCFYr/X39WETkTeahUdIqeRFJ7dtcKQ7IHSf0NDyjbhaRWMSXhKEQyOGZo0iW+os2J5N8avVaYnLiHrParPJY3qjBqxFmgzOe7Q4TTNrmCzUEHqITj8dcfoqkDQbsyQ== 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 DUZPR01CA0113.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bb::6) by PA4PR08MB6287.eurprd08.prod.outlook.com (2603:10a6:102:ef::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19; Wed, 13 Sep 2023 12:52:50 +0000 X-Received: from DBAEUR03FT035.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4bb:cafe::c6) by DUZPR01CA0113.outlook.office365.com (2603:10a6:10:4bb::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 12:52:49 +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 DBAEUR03FT035.mail.protection.outlook.com (100.127.142.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6792.19 via Frontend Transport; Wed, 13 Sep 2023 12:52:49 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 13 Sep 2023 12:52:48 +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; Wed, 13 Sep 2023 12:52:48 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , Subject: [edk2-devel] [PATCH edk2-platforms v2 1/3] Platform/ARM: Add dynamic CPU node generation for FVP Date: Wed, 13 Sep 2023 13:52:45 +0100 Message-ID: <20230913125247.34748-2-sami.mujawar@arm.com> In-Reply-To: <20230913125247.34748-1-sami.mujawar@arm.com> References: <20230913125247.34748-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT035:EE_|PA4PR08MB6287:EE_|DBAEUR03FT006:EE_|DU0PR08MB9251:EE_ X-MS-Office365-Filtering-Correlation-Id: 13439fea-4478-4fc6-17f0-08dbb4585e88 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: DvvIOiU6scU99oa4p0vOj3179jCWTJNNReTakZc/VOl53gJQX3yIZhBatsFfWetIl5NAqvOkOaNcu8SBAHw2ADGmsjupt+Ri8fQiQS/2P5o5byN9x0IBUh6biqsLOgN3jugLrgkaEjx0Aln9CcuD37SxnDD3ztTLJ52Mxfkn0RGEqFTDUQoojlqgei6zSzT/v25Pjul6mB0h2j8Ti4VTG8yRVWT5p2FdPMjfY5bgWbExYpGR90W0ZvYSlD1wVXtTusYYMnQ3w+eG61YLQJwOa0mzllO4LLyNTwiFAmBds5kL3fTcEJbvqJNLkwnzkws6CWYMW4LuyGbZTONo4hQKD1s8LmciMQlocLFB3/JWxMKLLbnJANkvJBVN2+rG6NwgncjuGLuvf39bwAVBJBDJiBV9OdjV6afD6+xwg+8YDj0wADwMJ5X4j9xppsa1K9ACw+C4jFjrrZSLBFBrivLrmk1Kq5x48rbiX/UIJzlawf8jRhM0tPgkYLbt0SN997q//88Cq2h53qITugEv8vu6V28WFfyx+7PlGf/AHW/izbI0Ipki5/EzSNMPxcZGzdKMlZ35MONy8WG3k8cjIv0aYizB5S2sYWibmAyR9jHy4tV/ssrkmgJhguzkq5PRbd6K+65NMEBbcxGH4qS0lD06qKvqWIsI8wgUfFBcSIc3V8IsXRL4iucwD+2vqocltWpoHgnHEDE82cUrKEpp8nqz7IqwW5llWRfUPLRn9+WeQfOfauEUjLS2En78/IvWuKBHZqCiV+s0vKqY3K0Ze2mqGQ== 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:(13230031)(4636009)(136003)(396003)(39860400002)(346002)(376002)(186009)(451199024)(82310400011)(1800799009)(46966006)(40470700004)(36840700001)(478600001)(81166007)(6666004)(7696005)(82740400003)(86362001)(356005)(26005)(36860700001)(336012)(426003)(1076003)(2616005)(40460700003)(47076005)(83380400001)(8676002)(36756003)(5660300002)(44832011)(4326008)(8936002)(54906003)(41300700001)(316002)(6916009)(2906002)(40480700001)(70586007)(70206006)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6287 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT006.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 98c1bc7e-49dc-4708-1314-08dbb4585602 X-Microsoft-Antispam-Message-Info: cZVYQ1jXF/be52EMdqzzm7hIes6y4nLpddVgG/Am2LBxNZICbkJfG7YwcdSXLKzGV2HiSRCFWRQlQUPAvL9D/LArp+wQjzTsAC5ryfaGIHulyDJtbwVCZgWXjX3zuZxuM9CLVIYh1r1qTY9UbhnjHCIrS2GkU7Ivuqi7iwidTffOI2SggD6iChtA6ItGrLhACYJznPnjR65QhLZkCFJBMUfwOFDnn8f7vmpO5bm9Se+HUDmCPrnCxNMmJ+tNMDDhIeFns2gqn8Tw4DEv86fLGsmZlK+XE/rB0BzCPJGkgNdGObZVXZdp1g2luKO6wAqFlPjd3lzxNj7qbenvXNtBfqpHcoj+pREEBY8RVt31kIeiKg3YGp12WyVprA9il6ISVTFqPfMce4S7+A3CczxZGGBrQDgUdjPpOYE/F6StDWlmAKE6Na5/1rlF8fyDQedVEwJOjMGH3BdvtTUhWF3uy6c95VZo/yD1pR/DEPBAnGK1JpfaLq0nsHlaK5KdTGA1KauvOGtiqEEWOnXb6vjV6PqXTh7TqihWkPmR3ZzJaqbi7BST+kiHG0qlxvXRtH66TwW15DhCnj683ZSrHZaWougnMocUu7rwlvXf4fByDoe3fKeJXvZxCXKK9KIg0UztytUMDIaiTUZ/S5xOP3kGM4kWfItCfOJFcQVJ0iQG1qfghqz+P0W35ooNRJHODB2Krt8d+KUpy9qb73Z9BlxWtx3fmE0N1v1N2jTodjuJKok3JKbIYnVkaFqccyj6SiGb X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2023 12:53:03.8999 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 13439fea-4478-4fc6-17f0-08dbb4585e88 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: DBAEUR03FT006.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9251 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: zysJx5Z0zmC4K0pDrJOD58Okx7686176AA= 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=WoshwDg1; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); 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 --- Notes: v2: - No code change from v1 patch series. [SAMI] 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 (#108594): https://edk2.groups.io/g/devel/message/108594 Mute This Topic: https://groups.io/mt/101335886/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-