From nobody Sat May 18 06:04:26 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107240+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1690281084842855.2389936792376; Tue, 25 Jul 2023 03:31:24 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=3QwzSfF8B5A86ONrd1SEt5VtRgI716h22nodT38fVc4=; 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=hICIZexKXwsa8p/lsaRpUArUXVfFHBD2BNqD2dY9pBPJJk3g8ohUJkM//p/BDJJND0y2WTop KB3YPzWxAFPXVOVL/d04STa0QbM0PV1XmugM3KMhFHIDjXphYgQUKpbeLTWgH1NQ6Syk7hqfhtZ LA2QrgkoO+t2ytNRFVy8s9Ys= X-Received: by 127.0.0.2 with SMTP id npXOYY1788612xFZMfVWBb3c; 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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+107240+1787277+3901457@groups.io; helo=mail02.groups.io; 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: pcNX1fvIG1eMpnVgacGMxBvIx1787277AA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1690281086994100003 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add support to dynamically generate the CPU nodes in SSDT. Signed-off-by: Sami Mujawar --- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslT= ables/Dsdt.asl | 38 +------------------- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/Conf= igurationManager.c | 8 ++++- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/Conf= igurationManager.h | 2 +- 3 files changed, 9 insertions(+), 39 deletions(-) diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationMan= agerDxe/AslTables/Dsdt.asl b/Platform/ARM/VExpressPkg/ConfigurationManager/= ConfigurationManagerDxe/AslTables/Dsdt.asl index 3acc0c6bc1b48b747e011022f2300b2fe3fa994b..f60430b94c867ee9744a3355b0e= a377aff42b1c4 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) =20 - 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. =20 @@ -11,42 +11,6 @@ =20 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/ConfigurationMan= agerDxe/ConfigurationManager.c b/Platform/ARM/VExpressPkg/ConfigurationMana= ger/ConfigurationManagerDxe/ConfigurationManager.c index 58a4bf9890bc2a701dab558a1987f9a51662481a..4df2d6cdae58df344804a8b4120= 8a3adb8ee0110 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 VExpressPlatRepositoryInf= o =3D { 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/ConfigurationMan= agerDxe/ConfigurationManager.h b/Platform/ARM/VExpressPkg/ConfigurationMana= ger/ConfigurationManagerDxe/ConfigurationManager.h index aebf0a355291df5df5f588e8b7076e21eda9a152..1b52c2ebc7efb633c748f731660= 6e3dbe4e0b21c 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) ( =20 /** The number of ACPI tables to install */ -#define PLAT_ACPI_TABLE_COUNT 9 +#define PLAT_ACPI_TABLE_COUNT 10 =20 /** The number of platform generic timer blocks */ --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- 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/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Sat May 18 06:04:26 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107242+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1690281103110909.7616686107342; Tue, 25 Jul 2023 03:31:43 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=Qrqogumj1KSN75TDbLYZOs553j4N8lTpEC2iFvZj+5o=; 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: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=1690281102; v=1; b=TuPah7h+8Nh7MGmsUViwpXl1OuxrfsMDik2JI55rqFTi4BZ5jISXzO+HjtgePU2Cs99Ap3T/ Cbqzd8Dks2ev9WIYLsNTYagZqB7QCTdVBJt/rNKIZMQSY7tb0TQT9e0aKDow5QUjkUrmTRn2Hv+ Zw1jK5EutlhrUvOe9N1ZUMCA= X-Received: by 127.0.0.2 with SMTP id 18KhYY1788612xS1AmR9cKim; Tue, 25 Jul 2023 03:31:42 -0700 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.88]) by mx.groups.io with SMTP id smtpd.web11.17235.1690281101821601004 for ; Tue, 25 Jul 2023 03:31:42 -0700 X-Received: from AM9P192CA0028.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:21d::33) by DU0PR08MB8113.eurprd08.prod.outlook.com (2603:10a6:10:3e9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Tue, 25 Jul 2023 10:31:38 +0000 X-Received: from AM7EUR03FT015.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:21d:cafe::3c) by AM9P192CA0028.outlook.office365.com (2603:10a6:20b:21d::33) 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:38 +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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+107242+1787277+3901457@groups.io; helo=mail02.groups.io; 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 AM7EUR03FT015.mail.protection.outlook.com (100.127.140.173) 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:38 +0000 X-Received: ("Tessian outbound f5de790fcf89:v145"); Tue, 25 Jul 2023 10:31:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: d99ed310c40b36ba X-CR-MTA-TID: 64aa7808 X-Received: from b713bfa03e47.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 85368A83-684D-485E-9025-4AEA3543C0CC.1; Tue, 25 Jul 2023 10:31:30 +0000 X-Received: from EUR02-AM0-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b713bfa03e47.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 Jul 2023 10:31:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AQt5diE+8DLA0lmXml0uixbfazshMJ/NE0O2gEGvWAmoeZec4tWIujCeVjmZ1XnunB4vSh5vX7nJ+ptQc1iPmONqBQFABde1ZfSpCFOQqflVYLRuXq/fWikHrjYsdDnydZ1dd2llMiWmZhf2gDt0wh1bDbQgbaey7WjVN9TmoI6VsFY+8CPBA3YpdhnPyGXLfmaQS6HZ8vymH6SvcD5oZ0FcGzu7LMcdv8BpZhZ3M6k0qc2lBpWfJJdnqeHnfwIzcyQf9Yzsb7+/dfQ+yxetCbzwgrjCv3iaQbH3M9MdEXS6WbLUJd7CbiX6XVzzBZ7ScVYzcCG2HnFY0B7HshrnHg== 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=FSmsfBWu/ylNAV9/I5eLEszYwaWAIRl64Ql4NfBAgFs=; b=lP1CArGj9tn+wDV5NYZlCg5fM+GFwPNXDCr2Z53yC+GzmvXvFM5gu9InYAgsraX8xgW/27zYGTXdTI8+7Nb/P1s8MGvcxtWvI0AAdH59bV+Q5t+ZVc9K4ndXeLjpBMJ5lryYW3BT/5HaAhOPhCaZxD73YbJ5BCXS3MNExyLmAAsBTsOQLrhPUrNfYqG/8ImnXn3/Y5Ia0QaK4zb2NaHgiTiVZPfEYyPwfVSU/zwudt943SJxPBVlqRSyCLRZlP4KdmPW/x2/icDEfzSzJoQIi++cJEyg92IOO1T2tISBdeYwOkmbBGqujhx/nmp6WJz9aX+LueGO18CChD/OdTFQvw== 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 DUZPR01CA0341.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b8::11) by GV2PR08MB8318.eurprd08.prod.outlook.com (2603:10a6:150:b5::13) 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:25 +0000 X-Received: from DBAEUR03FT039.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4b8:cafe::8a) by DUZPR01CA0341.outlook.office365.com (2603:10a6:10:4b8::11) 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:25 +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 DBAEUR03FT039.mail.protection.outlook.com (100.127.142.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6631.25 via Frontend Transport; Tue, 25 Jul 2023 10:31:25 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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 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:06 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [edk2-devel] [PATCH edk2-platforms v1 2/3] Platform/ARM: FVP: Specify TRBE interrupt in MADT GICC Date: Tue, 25 Jul 2023 11:31:04 +0100 Message-ID: <20230725103105.8068-3-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: DBAEUR03FT039:EE_|GV2PR08MB8318:EE_|AM7EUR03FT015:EE_|DU0PR08MB8113:EE_ X-MS-Office365-Filtering-Correlation-Id: 5fb5fcf1-aa8a-4a41-1034-08db8cfa53f9 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: ra2YxiEI1SmUixIzMN/8hXxOEUPmET/+fRxuDTpXLY9O0r5Kk9+LOlekpyRXTjhWDR7tDX0q9JhA4o05Egr5iurqpF7F9fcgOVhshyLIBHmv7Vgmexed236RmoXoxNkeitvO8WXOEat1gsDh99+PHvXvj6F0F40977fdOJYXOsM3aBU3kG1UFzpyRs8B9ox1sgEZXr29rivQSgidkZgG0nibhBaHhs9kpkZeRBp1zuwgChA5geRyMXiEk9JmaHuz38oc7btiQxGSrmewvSr3Om0BIFep0N79E+K0dTusqiBUvG/wPlTRGNwtDFyY6quIYuLvsR5wKGE+nt0e8iZILPcq+tWih7uvj95zauCNfdAvjZD43BQAUpQGirzaAEh0D4w4gym2StnCN/RHhzxzUZwHfeTKsa1aDjApjqiYhpfEOoDpUx24xfflqBTHEe7A1X0CwoOCt3l2cn7clGYQBTN3D6rGEmmKXMuKlHQVew/Tkri4Vs//njHH4V4ZF1ciOJDN6NnweC6wq8ENTg/OpgYO3OSTcKtWn7icc89qzrvm+cBdyOvPlhKYmV1q5EE9RVnyUbNqIe0odvrsFEiUfN91eh15mvQd9B7MPcEmi4C3ausyNkWG0hgLNCXm9LU8onydM+SXlQz9npqAkd5DQ3wUJ4eN/VOImdMuvkHN6Q5dy3b37YMDwOzL2e9A+EDPu4gJWm2BzsDJyJ36G0bSTjrlukARaCIGNVfpXvAkDKsc3nKooL/ojLGHqOFoFq40 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)(39860400002)(136003)(346002)(396003)(376002)(451199021)(82310400008)(46966006)(36840700001)(40470700004)(44832011)(8676002)(8936002)(5660300002)(41300700001)(316002)(2906002)(4326008)(6916009)(54906003)(70206006)(70586007)(7696005)(26005)(186003)(336012)(478600001)(966005)(40460700003)(1076003)(40480700001)(86362001)(36756003)(426003)(2616005)(47076005)(36860700001)(83380400001)(82740400003)(356005)(81166007)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB8318 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT015.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 559bce0b-12e3-4455-63c4-08db8cfa4c61 X-Microsoft-Antispam-Message-Info: 5tV6Gz1opyKCuSoJRK6rMYHCOaCI/FdVdrc/+gHppyHBQUMcbEr2aq+q87MmKkTvenxngvzKXBXP1fAs/LfytP5hY+AfmG3L9XXLEavC/w1gSjjOQkxyJQEGEQTLbLNotmuJb+uqnvstBs1tIe2Ey8QImiOhvntVFxFwVXvY9yz0ptVTzjq2IYEeMApiZafNJTVsrgK1UT2bbz6/ndrXzdskb5GXLL/cfJjlTX5PGPul47tIbuVH3p4BN+lYPNaVXvkTw87XVlDvS1SRA5RB2LgJyZnRJ9DPKFySmNohCy1+wC6DxyUsc6PPAVwK9asJqhaKpulrOZuL02SLJbHB6Qusb5D4FlE6IxjAxi10QwVaEm/rwATOaLiyPBDcA0L0u4JfyIAL6Y6j/A+5a+qND17GJxQ602+ChU3/w9DeUvZ5fGkMY7AZGUMwixjRZarXQhI+ZJJpb1nNo3jfLWscFKh/0RdGEoHEnQFjU5+AG6yK75d722ULKNX1bFY6tJ1/WjBLq4CaNoS4Qxb34e1EIpnRGeGUceUk6ppwCoPIFfJ7vlCXm2k0HHkfoYqIvd2BJG+ww722GN5/OcjnbjRI34cQrZorjBzZ8u+nZ42RaqcPWMQlWRLWUP5FbuYOa8RYAAKqp4RLo4dVuQhQLMwoqVrydggSoZGA6wG/KlD1cc/otutUM3tngb0hQJdIFg2OdLvYvqnwhe6KDcEj+67siAPb7ibk0np/MoI9x6pp5F8= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 10:31:38.0976 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5fb5fcf1-aa8a-4a41-1034-08db8cfa53f9 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: AM7EUR03FT015.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8113 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: htmNs0pMZegnBgnN7ygXvG3Yx1787277AA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1690281105058100003 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When TRBE is enabled the FVP model uses the PPI 15 (i.e. INT ID 31) as the TRBE interrupt. Ref: https://www.kernel.org/doc/Documentation/ devicetree/bindings/arm/arm,trace-buffer-extension.yaml Therefore, check the debug feature register ID_AA64DFR0_EL1.TraceBuffer field to see if TRBE is enabled and configure the TRBE interrupt in the GICC structure in the MADT ACPI table. Note: To enable TRBE support in the FVP REvC model 1. Build TF-A with the CTX_INCLUDE_AARCH32_REGS=3D0 build flag set, otherwise this results in an exception when booting TF-A. 2. Set the model parameters to enable TRBE -C cluster0.has_trbe=3D1 -C cluster1.has_trbe=3D1 Signed-off-by: Sami Mujawar --- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/Conf= igurationManager.c | 39 ++++++++++++++++---- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/Conf= igurationManagerDxe.inf | 3 +- 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationMan= agerDxe/ConfigurationManager.c b/Platform/ARM/VExpressPkg/ConfigurationMana= ger/ConfigurationManagerDxe/ConfigurationManager.c index 4df2d6cdae58df344804a8b41208a3adb8ee0110..03393905be1c627b7cdbaa0efed= 33e920072c8cb 100644 --- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManager.c +++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManager.c @@ -1,7 +1,7 @@ /** @file Configuration Manager Dxe =20 - Copyright (c) 2017 - 2021, Arm Limited. All rights reserved.
+ Copyright (c) 2017 - 2023, Arm Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -37,8 +38,8 @@ EDKII_PLATFORM_REPOSITORY_INFO VExpressPlatRepositoryInfo= =3D { { // FADT Table { - EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE, - EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_REVISION, + EFI_ACPI_6_5_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE, + EFI_ACPI_6_5_FIXED_ACPI_DESCRIPTION_TABLE_REVISION, CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdFadt), NULL }, @@ -51,8 +52,8 @@ EDKII_PLATFORM_REPOSITORY_INFO VExpressPlatRepositoryInfo= =3D { }, // MADT Table { - EFI_ACPI_6_3_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE, - EFI_ACPI_6_3_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION, + EFI_ACPI_6_5_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE, + EFI_ACPI_6_5_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION, CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdMadt), NULL }, @@ -109,15 +110,15 @@ EDKII_PLATFORM_REPOSITORY_INFO VExpressPlatRepository= Info =3D { }, =20 // Boot architecture information - { EFI_ACPI_6_3_ARM_PSCI_COMPLIANT }, // BootArchFlags + { EFI_ACPI_6_5_ARM_PSCI_COMPLIANT }, // BootArchFlags =20 #ifdef HEADLESS_PLATFORM // Fixed feature flag information - { EFI_ACPI_6_3_HEADLESS }, // Fixed feature flags + { EFI_ACPI_6_5_HEADLESS }, // Fixed feature flags #endif =20 // Power management profile information - { EFI_ACPI_6_3_PM_PROFILE_ENTERPRISE_SERVER }, // PowerManagement Pro= file + { EFI_ACPI_6_5_PM_PROFILE_ENTERPRISE_SERVER }, // PowerManagement Pro= file =20 /* GIC CPU Interface information GIC_ENTRY (CPUInterfaceNumber, Mpidr, PmuIrq, VGicIrq, EnergyEfficien= cy) @@ -474,6 +475,9 @@ InitializePlatformRepository ( ) { EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; + UINT64 DbgFeatures; + UINTN Index; + UINT16 TrbeInterrupt; =20 PlatformRepo =3D This->PlatRepoInfo; =20 @@ -491,6 +495,25 @@ InitializePlatformRepository ( PlatformRepo->GicCInfo[6].MPIDR =3D GET_MPID_MT (1, 2, 0); PlatformRepo->GicCInfo[7].MPIDR =3D GET_MPID_MT (1, 3, 0); } + + TrbeInterrupt =3D 0; + DbgFeatures =3D ArmReadIdAA64Dfr0 (); + DEBUG (( + DEBUG_INFO, + "Debug Feature Register 0 - ID_AA64DFR0_EL1 =3D 0x%lx\n", + DbgFeatures + )); + + // The ID_AA64DFR0_EL1.TraceBuffer field identifies support for FEAT_TRB= E. + if (((DbgFeatures >> 44) & 0xF) !=3D 0) { + // TRBE Interrupt is PPI 13 on FVP model. + TrbeInterrupt =3D 31; + } + + for (Index =3D 0; Index < PLAT_CPU_COUNT; Index++) { + PlatformRepo->GicCInfo[Index].TrbeInterrupt =3D TrbeInterrupt; + } + return EFI_SUCCESS; } =20 diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationMan= agerDxe/ConfigurationManagerDxe.inf b/Platform/ARM/VExpressPkg/Configuratio= nManager/ConfigurationManagerDxe/ConfigurationManagerDxe.inf index b53daf51d4b1afd45e41d0debb0b9f084f135f6a..dd08f8597768d4de62941c5fd74= e329c431582b0 100644 --- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManagerDxe.inf +++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManagerDxe.inf @@ -1,7 +1,7 @@ ## @file # Configuration Manager Dxe # -# Copyright (c) 2017 - 2021, Arm Limited. All rights reserved.
+# Copyright (c) 2017 - 2023, Arm Limited. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent ## @@ -34,6 +34,7 @@ [Packages] Platform/ARM/VExpressPkg/ArmVExpressPkg.dec =20 [LibraryClasses] + ArmLib ArmPlatformLib PrintLib UefiBootServicesTableLib --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107242): https://edk2.groups.io/g/devel/message/107242 Mute This Topic: https://groups.io/mt/100347409/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Sat May 18 06:04:26 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107243+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1690281105440586.8819206286959; Tue, 25 Jul 2023 03:31:45 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=FHKkuFtSGDgAbIDeV+pl6dG1KxDCQMIkaFuDyVmeAcA=; 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: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=1690281105; v=1; b=D2QBpApy+ylwwL8q03cQEfRUpcEs5Lk3p+AUYMs116UnQ+30iTa4Iu31ColML8w2bnZhBsD+ LbV1jHYrbSoZj3qyMEl193rMEmpB5/dDGbXu7+YL0TMfJH0c58g1XnsBNW/9hWXyi5+zcec3MXu wK3PlMBT94SVFYUqagwfC7UA= X-Received: by 127.0.0.2 with SMTP id JTiPYY1788612xWIT5ao4ibg; Tue, 25 Jul 2023 03:31:45 -0700 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.77]) by mx.groups.io with SMTP id smtpd.web11.17237.1690281104321959507 for ; Tue, 25 Jul 2023 03:31:44 -0700 X-Received: from AM6P193CA0078.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:88::19) by DB9PR08MB8627.eurprd08.prod.outlook.com (2603:10a6:10:3d1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Tue, 25 Jul 2023 10:31:39 +0000 X-Received: from AM7EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:88:cafe::17) by AM6P193CA0078.outlook.office365.com (2603:10a6:209:88::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:39 +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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+107243+1787277+3901457@groups.io; helo=mail02.groups.io; 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 AM7EUR03FT008.mail.protection.outlook.com (100.127.141.25) 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:39 +0000 X-Received: ("Tessian outbound e1fdbe8a48d3:v145"); Tue, 25 Jul 2023 10:31:39 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 7ed0130f04c25226 X-CR-MTA-TID: 64aa7808 X-Received: from 0f060978a6bd.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1B12A9E1-6C6E-4818-A517-34E160F55967.1; Tue, 25 Jul 2023 10:31:28 +0000 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0f060978a6bd.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 Jul 2023 10:31:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DRdQlm9CNfwLXqPIk2b3b/qL+zinJLs2tYdFwaBIUn8xeK6PpUDjVp4lpvwUYClv0rdmcoQYhQfkj4/HlsGQHrbz7hAWNvXVmarHj2tsoxxygrcYdqt2JuEdZuS4VmzBqq44z0X0sEIawqoJDSHzU8GEX6ii4gCXbB+cM/8xS24XMzrLgYeUWXaUgYQAQM8dkk0bJSCJyQKUGhSxv/KIPhJ9SJbtGej/v82ssuEN4NBs8YJxakCvy7hZVg9S6xwleso4KOn30fAknUqtRJHt9cxsi2HdEd9kVtCeDI0en7IHJnaIluH7g0klYAFUwrppMnfrMtQoGqk3qr0rznCegQ== 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=BkLjCwEiIcsLzZ01SGw63fD6PLofHotLNlya3PNtKZU=; b=UANHtlF6RQ93q9jJXTOjxW1sr7tOCNZ27eTkJuKcFI0cibWYmF0KIHIVdbC/OMNKpIByDRaaRWDG0diAgfSMYZ++30mmEEi7pMMxoYZMt2Dxg7BYh/gN+vSX8YfPp9PO1PJG3FxEt78e0XdisC36jHuQfM74zkqrDOG9+wR4AdQx8s3uY8kzRhNjXHZFFOuG6VKs3OjLFiQgBDdGBBhv37AK6+X141Kx5uJCXK8JyEBFDYbrm/2IamGC+7fl98FAuKZ4IX9Mi44tyFIvshpYoksIy5Tbzjjq7CfDCG45dotcowq9ROmcGcVnVMl5YpHuT+X/KJ9AL3akxIxzqdGFag== 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 DBBPR09CA0013.eurprd09.prod.outlook.com (2603:10a6:10:c0::25) by PA4PR08MB6048.eurprd08.prod.outlook.com (2603:10a6:102:e6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Tue, 25 Jul 2023 10:31:26 +0000 X-Received: from DBAEUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:c0:cafe::ec) by DBBPR09CA0013.outlook.office365.com (2603:10a6:10:c0::25) 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:26 +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 DBAEUR03FT016.mail.protection.outlook.com (100.127.142.204) 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:26 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) 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:07 +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:07 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [edk2-devel] [PATCH edk2-platforms v1 3/3] Platform/ARM: FVP: Add ETE device if supported by FVP Date: Tue, 25 Jul 2023 11:31:05 +0100 Message-ID: <20230725103105.8068-4-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: DBAEUR03FT016:EE_|PA4PR08MB6048:EE_|AM7EUR03FT008:EE_|DB9PR08MB8627:EE_ X-MS-Office365-Filtering-Correlation-Id: 9712e129-fa18-4217-72ae-08db8cfa54f2 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: Sb8E4VxDIioevF3a7In7XAinyf4yY4ReFFY+jrJMuBLuDFvKR4X+qOJgCLfF5+xTMY0AdEhuWZ6bR9KbJSka6uxuIIseerhuo41JSEeVYtZUJN7GdJiKzsR/vPpGRmKS19spw4vL7WTXUwssnpNk5JhdmuZDZfL673WhSWdLPZcZdBVf0LwBY6JsIGa+4pVDsrJk3+o1WtxZbrtGmqO0mZGOXLoCnXHMEDS9ya0iLd/749dosc7TDFlaHasmpYfy6uSEXrko9bgo9Xz8XYHMZ4sd57yIS/jMru/N3gbhtYFslOqYjlGqligpPiISpaU52YEi9/gc6dZj+CWGN4NG+dYj5R8qo9maxi80bRf125DePODFH8dX2vK1XkaDjFyLVJSGTeL10ogwizrNYMizX+x9PvhR6fNCLiBwag6U3h/TpiBXr09F5eB1ojH/MXVvu7nSvIAXLlX1/UeVE8R9B55M29n4urVXtCfe4VyTGqpPEy7+V8e4+zSIVpzyI34Rh4b8jXQQuea0TJ7+Bdb+6UL7r1bA4GpjkVPQZwt/UMyCpc57fF09T8Nt9WHydM5QpRRJtN9tHyVLD/OtbLtz+tyRNU66f4b87h0ggu/xMuU8GypEMNbV4XtaOefUmcSZA02m6dWH7GmceS8r9d6ZmzwEx7A47ifx8VBC7bsWDTBeexWyh+Fx82Lhzor1JyNJTcIB8z+oFuLYi/tTfwuSC/OCXze58m9JTRXDS1Z7QJ5frufdSLg87vR332ZjEIILWW5WDzXBzeMDweuimfWZxg== 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)(39860400002)(346002)(376002)(396003)(136003)(82310400008)(451199021)(46966006)(40470700004)(36840700001)(1076003)(26005)(186003)(40460700003)(336012)(5660300002)(44832011)(36756003)(36860700001)(8676002)(8936002)(81166007)(2906002)(356005)(2616005)(426003)(47076005)(82740400003)(86362001)(40480700001)(6916009)(4326008)(316002)(70206006)(70586007)(478600001)(7696005)(41300700001)(54906003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6048 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d4bc5e9f-80ef-4b3e-4e4c-08db8cfa4cdb X-Microsoft-Antispam-Message-Info: jKvZZerw0eLxA2fBsx9wuOc0dstCybQ4vn6uWX6quJHN62oPwVUIkUNp77Cu/abtbcDmRkpObywC/CUpdYY69lkuaOWNcsTvPfjSzGQaIsgnVr7vbrGLGlb33l+sOBBJLm1uXLGzrskL+JeARef0f4BjAdIe8rndOI6WNbkVUYBDha3kXYaZ3QyeFEc45JeHIdgV5eg87FMh3CTNv1qHWVmDH53Meowoy4DvapxO8rdHhoBGelypXv+ECDbYTXaTMvIapqHCNOdT4NUrcli1INWhSf8mp6asJX1hdzsbQ2XmG0zgyBbWqecCsFxXwfukf3YZJOf6Y8yGQC+eQ0rN4hQFjVF/RFSLdiF25+T65PZYDxvUPQrUxghR/LR6koS5TIuNuW7w//XrDH1ULQjbj5J0Vv216/p4WzldOmpY7KO0j6CSdZrueDUkFakDi0FP4u9KLbnqvkOReISaTrQeCL+D4e2R4sVJgTFq22VcCp4hNSo0cHwMzvjb82uRee+zlAVmWK5SQQBi54MF1Fh6H22VjuZY975o/AlCHwGecLwgvAO45ghK0+vud5GwnXE4940d4Swq1vf+oXp5PfJ56jWlCG+hBSbmY72pXsXb7uSVJgK8tjSEA4SgSdiKGvXMY2rseoZ/5ipSC1aUHEZFjMFm8o0dRmIpgwcL7jk/EYEWxMQSa2nAj5vQUxA8yGgPKO/dXCmVu0O0bQ1vr11DysZ1tIg08ugv9jVKnjtkOWraHGTVcRxkMlKX4Vnbj78u X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 10:31:39.7320 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9712e129-fa18-4217-72ae-08db8cfa54f2 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: AM7EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8627 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: bim8SviFvFQcT9TR532nwx6Xx1787277AA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1690281107308100007 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When ETE is enabled in the FVP model the firmware can check the debug feature register ID_AA64DFR0_EL1.TraceVer field to identify the presence of FEAT_ETE and add an ETE device to the CPU node in the AML CPU hierarchy. This enables the Operating System driver to probe and enable ETE support. Note: To enable ETE support in the FVP REvC model 1. Build TF-A with the CTX_INCLUDE_AARCH32_REGS=3D0 build flag set, otherwise this results in an exception when booting TF-A 2. Set the model parameters to enable TRBE as this is required for ETE -C cluster0.has_trbe=3D1 -C cluster1.has_trbe=3D1 3. Set the ETE plugin for the model --plugin \libete-plugin.[so|dll] Signed-off-by: Sami Mujawar --- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/Conf= igurationManager.c | 25 ++++++++++++++++++++ Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/Conf= igurationManager.h | 2 ++ 2 files changed, 27 insertions(+) diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationMan= agerDxe/ConfigurationManager.c b/Platform/ARM/VExpressPkg/ConfigurationMana= ger/ConfigurationManagerDxe/ConfigurationManager.c index 03393905be1c627b7cdbaa0efed33e920072c8cb..86d5bbdb6219294d41b4ac314cc= 01139f975dc48 100644 --- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManager.c +++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManager.c @@ -366,6 +366,11 @@ EDKII_PLATFORM_REPOSITORY_INFO VExpressPlatRepositoryI= nfo =3D { FixedPcdGet32 (PcdPciBusMin), FixedPcdGet32 (PcdPciBusMax) }, + + // Embedded Trace device info + { + ArmEtTypeEte + } }; =20 /** A helper function for returning the Configuration Manager Objects. @@ -478,6 +483,7 @@ InitializePlatformRepository ( UINT64 DbgFeatures; UINTN Index; UINT16 TrbeInterrupt; + CM_OBJECT_TOKEN EtToken; =20 PlatformRepo =3D This->PlatRepoInfo; =20 @@ -497,6 +503,7 @@ InitializePlatformRepository ( } =20 TrbeInterrupt =3D 0; + EtToken =3D CM_NULL_TOKEN; DbgFeatures =3D ArmReadIdAA64Dfr0 (); DEBUG (( DEBUG_INFO, @@ -510,8 +517,14 @@ InitializePlatformRepository ( TrbeInterrupt =3D 31; } =20 + // The ID_AA64DFR0_EL1.TraceVer field identifies the presence of FEAT_ET= E. + if (((DbgFeatures >> 4) & 0xF) !=3D 0) { + EtToken =3D (CM_OBJECT_TOKEN)&PlatformRepo->EtInfo; + } + for (Index =3D 0; Index < PLAT_CPU_COUNT; Index++) { PlatformRepo->GicCInfo[Index].TrbeInterrupt =3D TrbeInterrupt; + PlatformRepo->GicCInfo[Index].EtToken =3D EtToken; } =20 return EFI_SUCCESS; @@ -983,6 +996,18 @@ GetArmNameSpaceObject ( ); break; =20 + case EArmObjEtInfo: + if (Token =3D=3D (CM_OBJECT_TOKEN)&PlatformRepo->EtInfo) { + Status =3D HandleCmObject ( + CmObjectId, + &PlatformRepo->EtInfo, + sizeof (PlatformRepo->EtInfo), + 1, + CmObject + ); + } + break; + default: { Status =3D EFI_NOT_FOUND; DEBUG (( diff --git a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationMan= agerDxe/ConfigurationManager.h b/Platform/ARM/VExpressPkg/ConfigurationMana= ger/ConfigurationManagerDxe/ConfigurationManager.h index 1b52c2ebc7efb633c748f7316606e3dbe4e0b21c..be2b512911f897dc57328673ae4= f4a2014ec20fb 100644 --- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManager.h +++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManager.h @@ -171,6 +171,8 @@ typedef struct PlatformRepositoryInfo { /// PCI configuration space information CM_ARM_PCI_CONFIG_SPACE_INFO PciConfigInfo; =20 + CM_ARM_ET_INFO EtInfo; + /// System ID UINT32 SysId; } EDKII_PLATFORM_REPOSITORY_INFO; --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107243): https://edk2.groups.io/g/devel/message/107243 Mute This Topic: https://groups.io/mt/100347411/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-