From nobody Sat Dec 21 14:49:11 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+109008+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 1695393702279535.7754065271575; Fri, 22 Sep 2023 07:41:42 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=Vbv0cozkQ5pG/NRWhPSe5BTuUoBmjNv9p2UrOOgpNec=; 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=1695393701; v=1; b=LZqf2EI4e7agT7N3HgGmzphspT/tuqTI2uNSVWeCH3coiCe1FyDODep024voIqVyjsl0RJPX PbQK0ek7sqaeBA/FT66Kl4eBp/yfjIvoYsT8qVLgcHvFz0fjbPF5RD2GEM9bHzh9uMfL963OgXq KQNLNVx9vxL/7JCe5A1SUKNA= X-Received: by 127.0.0.2 with SMTP id IEuGYY1788612x1imTlKyUZe; Fri, 22 Sep 2023 07:41:41 -0700 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.78]) by mx.groups.io with SMTP id smtpd.web10.23098.1695393700924158846 for ; Fri, 22 Sep 2023 07:41:41 -0700 X-Received: from DU2P250CA0016.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::21) by AS2PR08MB10111.eurprd08.prod.outlook.com (2603:10a6:20b:62d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.20; Fri, 22 Sep 2023 14:41:37 +0000 X-Received: from DBAEUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:231:cafe::dc) by DU2P250CA0016.outlook.office365.com (2603:10a6:10:231::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.32 via Frontend Transport; Fri, 22 Sep 2023 14:41:37 +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+109008+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 DBAEUR03FT032.mail.protection.outlook.com (100.127.142.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.12 via Frontend Transport; Fri, 22 Sep 2023 14:41:37 +0000 X-Received: ("Tessian outbound d084e965c4eb:v175"); Fri, 22 Sep 2023 14:41:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1c518ebb9dc47209 X-CR-MTA-TID: 64aa7808 X-Received: from 964386676809.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B9343B02-0E39-4EFB-8825-BAAB4B5E52CC.1; Fri, 22 Sep 2023 14:41:29 +0000 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 964386676809.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 22 Sep 2023 14:41:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=liayIUTQhEYE8zrLUccjzHSJqcK+lgjwCwQ0+Ew7D1xzHQyyyMCL/ia3WvQ9u6U6ruWalPeoUb8h+SwFoXz6zV+tTHySNRe9xuJnSM6qD9Z0eb0VQasW/xAcBu4j2nvjesMzGdwiwfgTxJPpf3XZfmphumGpwqHbrqQ4OOzQ6OTxJu9ea1f5NjW9sT3wyCiTZ4uQkbBTjY8yTpRpw4HE76rsiDOu2x/F9299BcJUg8SY3k4uVucyvZFwtUMkjipcgkiO+G5Rgqy/5BUVC1kucEeNYOfQPE0ToWLzp+qS6dJp81OiQ4KOPDUSA3OH8d5LXJ7K+LufJ38Q7XQQR2Plsg== 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=t0iqsGUiWfs5+L0UVIlxZFZOMSk22WdL9OGcizbs5to=; b=nvjfy9Dr4NZHnfnPo+FnoAlmZlGx2l8GqB7P/6bzNoQbNEi06xb1Xk518uNHaK8wv05m44s8hTNnGGPFmP2s8I9HmWmmZLzhlntZ4wsu/DIpUlwQO+dvvSUD6p/yOdYH7AdYWmdx0E80qydmwKI/NZuTViSXPYoFWVFhaHKLHxQRyOjd/aVue1O/iVeh4kSXwoQwcEjW3mRWz5LllLAio+3icOzYHh6vDjDkZTXMoLRC1Er6uZPY7hyuekIHCi7+XnU+bCeYGx3PR09hk2PPw5UCvu0+HEZsJHJqS2JSEUmOJVIzhYDchRL6c6YoP3HdhWTC7thM7BGdqBSFhLlDaA== 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 AM5PR1001CA0028.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:2::41) by AS8PR08MB8038.eurprd08.prod.outlook.com (2603:10a6:20b:548::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.20; Fri, 22 Sep 2023 14:41:26 +0000 X-Received: from AM7EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:2:cafe::d2) by AM5PR1001CA0028.outlook.office365.com (2603:10a6:206:2::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.32 via Frontend Transport; Fri, 22 Sep 2023 14:41: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 AM7EUR03FT018.mail.protection.outlook.com (100.127.140.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6813.20 via Frontend Transport; Fri, 22 Sep 2023 14:41:26 +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; Fri, 22 Sep 2023 14:41:24 +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; Fri, 22 Sep 2023 14:41:24 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , Subject: [edk2-devel] [PATCH edk2-platforms v3 1/3] Platform/ARM: Add dynamic CPU node generation for FVP Date: Fri, 22 Sep 2023 15:41:21 +0100 Message-ID: <20230922144123.41164-2-sami.mujawar@arm.com> In-Reply-To: <20230922144123.41164-1-sami.mujawar@arm.com> References: <20230922144123.41164-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT018:EE_|AS8PR08MB8038:EE_|DBAEUR03FT032:EE_|AS2PR08MB10111:EE_ X-MS-Office365-Filtering-Correlation-Id: eb6a06cf-eb0c-4fae-5877-08dbbb7a066b 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: jfWILB+tY+OuMYH9urKrVPPM7t+b4TveOoTLctf0q752XgvAQfqD7n2NrTUKU6K+iXdURbycA2SHNcCYkfKUAf+6MlDcxfB/iIKT5YiTuvZBLHoMrFga1Uf2vsUkuDoZCsV7icYkeYI6lHMMA/5csseWN3TYIGDKAzRI8kDrLHQ6D1xkY9Ol9SayWJVxZfSiqwC80QODzYFjmUabr6+L1UlBRVPuEYVweD2uwQXRKBAqCx0iuisqWyDmEXqjMqEhn1D+u2VV8QIYUdjg/OaAQ8Iwotfa1yzBx+KeNh5Qb1ug5SbxiInaVqZiZXhRA1Q8ATPG8jn+2n+hTj4M6bKNmeIZFly4jNhK9yJvXeVxt4TrsckYe8kvdhbl7QHrZPfoAZWbQjb9mt4E1N0iKGBdD12P5z66F3LBjrPCp/ELLo0yur1GHrzGYxEPOQudgN0bPDcNLGGKMb/iVk7Y4AvK1+m/Jckr3gJ9UoRArlzC2JJTyC75ZYLmkfkleon/bkMXyH1lnyiN5c/rXa7cpl9QxRKjT1XPwb+ot5MH2yDtjtHhhADMfaFsnBCq21gH30LcCetabNM6Bng0oqj14K9bNTq0RZiX7S2r8lFI9tVvSFJ5b1PiaTIn5u19V0Mujo79HWEoa8d1HGSJO7F/0GxD3GWxYChovNLmqZuatT4168SAvR2V2pnH8yo7vcId8fI80+OR9AKNybs7UphNwqfFfAVgXLot3GSvGvkmLeKY0A0ASSLTbdz247D0j4cOcdOhtTg2P8nxiS4xOr8Y35VsdIJcsEA30oW7yANhkQTO/7NkibdGmVZcpA5ciW9RMzfg 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)(396003)(39860400002)(136003)(346002)(376002)(451199024)(230921699003)(186009)(82310400011)(1800799009)(46966006)(40470700004)(36840700001)(47076005)(2906002)(83380400001)(356005)(40480700001)(82740400003)(6666004)(336012)(8676002)(8936002)(4326008)(44832011)(426003)(5660300002)(86362001)(36860700001)(26005)(316002)(70206006)(6916009)(40460700003)(54906003)(478600001)(7696005)(2616005)(81166007)(36756003)(70586007)(1076003)(41300700001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8038 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 00965eca-35b3-45aa-a3d6-08dbbb7a0042 X-Microsoft-Antispam-Message-Info: 6I2DW4P+Eg/bUbHBZglZeuYSFhDjXU6OzKyC61CIR8fqHWJUubwVP3Yv8mPBq+G0om1e/OFC5/svKOCjKJckNbI+vkg5d0Y7Pt6k5IyZK5gjGVQRCPo1g3UG91uJURoLseX6oaGHSm8iUpf2ibFEktS9bhWms7bZKHgAah3fdgGFwlnUp9Yg48ZAHHCOxBSHAeKs/1fv9UFDqAsQ7oz4xAvNCgv5ykPQzseWf2kSBpjoYSYdPtuT4kKHpi3LDn4vSf76314IiSZASk1BPMfJrC/fQz1pBYG3zdbWuCzvAq56RD/2xZyq1KUx+aXqUM1asq4RSfTFKtQ6+bCPAJRdY/SPzpf99eRE0sM5clNUcOxh6FjnkXYwEQMO70G0tBntFSRQ+MHiY1mMTI6Du8Ll5/9aX0JZOz2oYv7hN7PI6lXjvxA2xZadUsCS9s/R/d3eebkiJrm5ZeDy0D345XqZfhTHXgGTfcH9/FVns8u61fhC4Gnd0Am5kaichpt7thxBR6qOp4fsBrf7/kSJWAag6BIW34KaJDB+mYg1atqcYa6itBgS4apU0PohAJiSupM83nVzesDWtoRcApxqgtFod5+eMKDWYIOLTPJOHKyk+dOOh7l2WuI1Qk0x08z9PevfnJ5n245heVhwZDtRPU43+2ltC7TTC+ZJwDNNqE6UTMJs2S8zVyJcMsvn1aTpbgjUaIaDr19gtIMfZ11dFMVpyma0/zaywxhpghp1l4bVf5rLQ5hGwo4B3FP90vPVzAv/gOU3TRhmdIWlHwwM+bioJQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2023 14:41:37.1159 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb6a06cf-eb0c-4fae-5877-08dbbb7a066b 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: DBAEUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB10111 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: uENbbDhsYRzPIceKDaWQQrdLx1787277AA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1695393703131100005 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 Reviewed-by: Pierre Gondois --- Notes: v3: - No code change from v2 patch series. [SAMI] =20 v2: - No code change from v1 patch series. [SAMI] 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 (#109008): https://edk2.groups.io/g/devel/message/109008 Mute This Topic: https://groups.io/mt/101522380/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 Dec 21 14:49:11 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+109009+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 1695393709180773.9651633439637; Fri, 22 Sep 2023 07:41:49 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=2Ub7gFTIOCoHRzCt4tIXeo1xcCSoCiccnSVc1OkuCMw=; 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=1695393708; v=1; b=AZ/kGD47ymlCWRlCYHYb7760W7EcrvTu7YupjtaZ/zPdPnvVRX2mJeXqMNTukvPqRwFuezZc in3yHyVp9brzcRLP1/Flv5KchYMHePBSWMHZHURzWdEiHXC6sBizhOdd0YRYbW+sjnZNHUbxLbY ou22hfRGK6ooYpZ1Y3peaiGE= X-Received: by 127.0.0.2 with SMTP id O4LBYY1788612xjUujX5tr6W; Fri, 22 Sep 2023 07:41:48 -0700 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.74]) by mx.groups.io with SMTP id smtpd.web10.23102.1695393707737339031 for ; Fri, 22 Sep 2023 07:41:48 -0700 X-Received: from DUZPR01CA0301.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b7::18) by PA4PR08MB6079.eurprd08.prod.outlook.com (2603:10a6:102:ee::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.23; Fri, 22 Sep 2023 14:41:43 +0000 X-Received: from DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:4b7:cafe::1a) by DUZPR01CA0301.outlook.office365.com (2603:10a6:10:4b7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.32 via Frontend Transport; Fri, 22 Sep 2023 14:41:43 +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+109009+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 DBAEUR03FT034.mail.protection.outlook.com (100.127.142.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.12 via Frontend Transport; Fri, 22 Sep 2023 14:41:43 +0000 X-Received: ("Tessian outbound c99fbc01d472:v175"); Fri, 22 Sep 2023 14:41:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3a827ef900143919 X-CR-MTA-TID: 64aa7808 X-Received: from a14ca117d9c0.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9E34C434-F822-462E-9C08-556547D16EFE.1; Fri, 22 Sep 2023 14:41:35 +0000 X-Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a14ca117d9c0.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 22 Sep 2023 14:41:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V+adokS39kR/J0/DEakwAovrmo0gfYWPzWggjo9Wdl353/JWr7IenutHezJXCu0u+LzeBsu4yVrpLHfzSCAG2oy9tXQzSH9yX5UZKRhPyk9jnofiFudffD1bSG8Mh9W+uMh5aGdu41hsyLjs/ahe2teYAmHXFZ5DJaiFXRRhEwc5qjqvTd3ov6yld4PJxBfvOl8uzl53Eqwb1747KOLCLk4GNIfLY6ptrLVxKX51tuwpsE1flMCM6mdL0UIqf7YADXqJ0rpbdh0xSicvEpXgy7Y6jxoPW+RFof4+NA2w9vKU+0V1TyVPjXmSrb5cuDUkzIEbLnvSf1yI0zPb93m+vg== 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=PHFGC0NtLOAsSJ86/YelL7MAf9yBjArKY9tQRrXIZlU=; b=PPWl12kqK/F131LouQvxI2Ze1frbjL/UQmSH4acYLsmmotmToRJqWRq98ht6LdbzVmXXUoGbZu9MibvWFXyl7Sces5mL1nUjBorYmN+HmIGudTCBeLd1cV5kAUCP8cvBF0oH5V0H/uVR3kqcg9k7OZlmwmGaAzl9ha4facE4iMkPwHDRH1Jki/4xgJR41NsvND2PEoaps0vNMok7CAjX31JLEE7GfCAy629r9NK92E2TmAbsLv5Q/UwaG8LpNJH5MZtMxvSiNZRqpBtAVTBvfBUKsT2MHWbJHldCUDm/Fay2UmOvTvoUACGB1n3tQ4q8o9uhPIgpamtrhK+K56UnYw== 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 AS9PR0301CA0042.eurprd03.prod.outlook.com (2603:10a6:20b:469::10) by PA4PR08MB5934.eurprd08.prod.outlook.com (2603:10a6:102:e8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.23; Fri, 22 Sep 2023 14:41:32 +0000 X-Received: from AM7EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:469:cafe::e7) by AS9PR0301CA0042.outlook.office365.com (2603:10a6:20b:469::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.32 via Frontend Transport; Fri, 22 Sep 2023 14:41:32 +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 AM7EUR03FT045.mail.protection.outlook.com (100.127.140.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6813.21 via Frontend Transport; Fri, 22 Sep 2023 14:41:32 +0000 X-Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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; Fri, 22 Sep 2023 14:41:25 +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; Fri, 22 Sep 2023 14:41:25 +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; Fri, 22 Sep 2023 14:41:24 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , Subject: [edk2-devel] [PATCH edk2-platforms v3 2/3] Platform/ARM: FVP: Specify TRBE interrupt in MADT GICC Date: Fri, 22 Sep 2023 15:41:22 +0100 Message-ID: <20230922144123.41164-3-sami.mujawar@arm.com> In-Reply-To: <20230922144123.41164-1-sami.mujawar@arm.com> References: <20230922144123.41164-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT045:EE_|PA4PR08MB5934:EE_|DBAEUR03FT034:EE_|PA4PR08MB6079:EE_ X-MS-Office365-Filtering-Correlation-Id: 10755651-34a5-486b-13af-08dbbb7a0a13 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: w7PQiC3v/rPDVTd6Y53dSHWEYtyKEXMMCpmiwupoH2PS7Uc9PhQnwagYPwbGP2KoP6DxKKq1VJZNSpzv415k8kQdIACXf3P3yVVtbhBPYDAVVnF82h3V/8KeO+mTsS2B/hbCdl6ixnzl7E0aIWTyPYL5Xu3h76aCpad+kjIJuS6ZwjAmIztNjCOtOvQmFLOfBRHGL1cb8UuKSJ9JwKvOcQOvooopqSy9lgYRDwOqsH7NFG5CGPgZH/lji+2j9dewroT9R/4oD9AReRXX5SYGY4UJzdn8S01/eK79u5b5CdmnYu9B/4cyrOMHgoFi231YwT7RIrpnb2jWXf59548j4XKg0mDA1Gfcj0QOE1w95GLO2uPSpxPH6fmvBY0uADhrlNtiA0i/+f8V01Rt5sgUXPn+qP5ZAwlc98rdjDcmi2VT2kTW8CKhUjeG7l19RH9UuM8/YHDT8QG4XjA/RRd6onVo1e2QGqh31qdPQqa9GGMLqZpdIYUSbdvVaZoW+nkh29zFI//a8ZFa8qu9XvBIVAFKxYWnQshzQgU7RE+P4a0Tyo2TIJxpKNG8x4/3bsAJdldlzyj2BUg7xuUReb2zIlReaFF/uc2gzsDHpaQgzcLpyY0VMWDw0KEGE7hxHNyFIJhBrIfkzQ9XuOz07uSug32QtUPVMHO4DrgMCnyafw5qZlr1yWQg+mCbrtJ3mrhqzEvnkrsaaMPE4axR47Ky6z/PZHkqwfWAypStsq7BxTk++PsR905eB1iBmUXivEcuJWmJlrps8dsEjZPAh4g1yi4KRsFOXLpZkA4ZyBJx2tdwyTjxaQBEfQXyP/uzjx07oMlAsZ53amhIapilGtMunw== 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)(376002)(346002)(136003)(396003)(39860400002)(82310400011)(186009)(230921699003)(1800799009)(451199024)(36840700001)(46966006)(40470700004)(40460700003)(336012)(41300700001)(81166007)(82740400003)(356005)(36756003)(2906002)(2616005)(478600001)(966005)(86362001)(47076005)(426003)(1076003)(83380400001)(26005)(7696005)(316002)(36860700001)(6916009)(70206006)(70586007)(54906003)(40480700001)(8676002)(8936002)(4326008)(44832011)(5660300002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB5934 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 27556261-86cb-4a18-cd55-08dbbb7a03c9 X-Microsoft-Antispam-Message-Info: peRETwz9ITmEXqko0PNgZU/znMb42CsL7GzcFNGHYvDHqmitL2dHElO4qHM8f1JEQPg7oEfYUfcXRlLfF+BsBa1zPG7O3iMg3iMULItZE6XdKDDzEDtaZlsnREvc9c715P33SqtVXyXbMsC605G9xMrGfUAxMCL3KN617nqfDUVq0MFsyQD5iTiwvr+kWLkNpfiz17ZTNnpo2KqDzOFaVyE6Ofg8b3XqBIEpjzI5XpC1idUvfzoiCAr1T9p79eek3e+2FdW3Jue7PjBPrPRSYT9x4eql/SAwXFDv1B5jGEehVRxWth72eY8NubyKAmbnogwr8EGD+eAqQ1ZGnyJ8ZsKCRjJ5zndO5ihYYFn6NSXtZuc4+n5J84G4V2KNKi6oP+OZQqi8G0twJJ9g4Q3trhQFJjOrib18dSRAOZtc+DpPqbbwBKKoSsrrfehtm9RAJycMRGnWRkUgHKOVWJLFSQgWasZk/AMQD7URHZMBauHYdoqhmAN5bsY1ZL9AF4DBZ0A/ZU/H3prdqYRojlH3DvOFytkQR6WDclOul9FcQj6S0XUi9rAuT+z45TjrMtty86ZStwcZ2ZmH6TDHvsFoQa/JzeivIQMqzXIv3cD5gU54276Jba9dcrGkmiT8oZWWdzMAhL/pKa+xc8y/4jAmgKyBc47XlXRstCEKILdRjB3pnejz6GY4x2UNkYGlw6/vVhyXlsw014N/uSBDXyhVPzPRvKP3N7Phki6yx3e5aPnGe++b57sfNNrFuwl7z84qkUT2+4KutlWSgAPTrg/i7o8IKE0j6YFjfMMsMxfbYWYjLVzYe7bh76kPce/qs8f7 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2023 14:41:43.2483 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 10755651-34a5-486b-13af-08dbbb7a0a13 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: DBAEUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6079 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: hBzjjJ11U7xEVCPHBqpQDJrux1787277AA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1695393710947100003 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 Reviewed-by: Pierre Gondois --- Notes: v3: - Use macros instead of magic numbers in TRBE feature [Pierre] detection code. - Implemented helper functions in ArmLib to detect if [Sami] the TRBE feature is present and used it instead. Ref: https://edk2.groups.io/g/devel/message/108986 =20 v2: - Incorrect comment for TRBE interrupt number [Jeshua] - Fixed comment to specify TRBE interrupt as [Sami] PPI 15 Ref: https://edk2.groups.io/g/devel/message/107426 =20 V2: - Incorrect comment for TRBE interrupt number [Jeshua] - Fixed comment to specify TRBE interrupt as [Sami] PPI 15 Ref: https://edk2.groups.io/g/devel/message/107426 Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/Conf= igurationManager.c | 31 +++++++++++++++----- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/Conf= igurationManagerDxe.inf | 3 +- 2 files changed, 25 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..749d8eaf52de0888e9e44173f4f= 84aa41c4c70b5 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 @@ -37,8 +37,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 +51,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 +109,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 +474,8 @@ InitializePlatformRepository ( ) { EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; + UINTN Index; + UINT16 TrbeInterrupt; =20 PlatformRepo =3D This->PlatRepoInfo; =20 @@ -491,6 +493,19 @@ 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; + + // The ID_AA64DFR0_EL1.TraceBuffer field identifies support for FEAT_TRB= E. + if (ArmHasTrbe ()) { + // TRBE Interrupt is PPI 15 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 (#109009): https://edk2.groups.io/g/devel/message/109009 Mute This Topic: https://groups.io/mt/101522385/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 Dec 21 14:49:11 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+109010+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 1695393715760377.183743094547; Fri, 22 Sep 2023 07:41:55 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=knkYkUd3mp184j9eLLEWC08s7TyxHmPK71VIDlw/c/Y=; 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=1695393715; v=1; b=SV+emSj8Tpa2OpBvAJGWxqu/ZTbiqR/tf65Krcf/vSc5kiRE3N7Zy4+oxLyYMKU70b861YhK VfbFBhZZUJFGPS5wv4cqKJnIeEwzMyBDmaqF4xJAZZiK0z4YIzt7iqrXxkBXKGY6XVkCpxyJ8JO 8TSWhNPVTz2ls3Qkk1X/NcSU= X-Received: by 127.0.0.2 with SMTP id SGpSYY1788612xwV3cKqrjmh; Fri, 22 Sep 2023 07:41:55 -0700 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.79]) by mx.groups.io with SMTP id smtpd.web10.23109.1695393714376824467 for ; Fri, 22 Sep 2023 07:41:54 -0700 X-Received: from DUZPR01CA0076.eurprd01.prod.exchangelabs.com (2603:10a6:10:46a::7) by GV1PR08MB7914.eurprd08.prod.outlook.com (2603:10a6:150:8e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.23; Fri, 22 Sep 2023 14:41:44 +0000 X-Received: from DBAEUR03FT033.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:46a:cafe::99) by DUZPR01CA0076.outlook.office365.com (2603:10a6:10:46a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.32 via Frontend Transport; Fri, 22 Sep 2023 14:41:44 +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+109010+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 DBAEUR03FT033.mail.protection.outlook.com (100.127.142.251) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.12 via Frontend Transport; Fri, 22 Sep 2023 14:41:44 +0000 X-Received: ("Tessian outbound d084e965c4eb:v175"); Fri, 22 Sep 2023 14:41:44 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: a25504438af0c7e3 X-CR-MTA-TID: 64aa7808 X-Received: from bfaa3c9551ba.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 807BDD63-608F-498C-88AF-91EC9EEB6336.1; Fri, 22 Sep 2023 14:41:37 +0000 X-Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bfaa3c9551ba.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 22 Sep 2023 14:41:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ILsR2/LllcuvMLpfmW/CLPjuunKnz/ugE2idWx3gT8KEkcEabZX6D+B7afqFCZWjR7aSH8r9Bv144c3hJi3Y24NJGAjTtDqhJ0/a+8jU2WvJOnv63E557wTOZ3t9+FENt9CwPR6nOkVKoQnZyOznni6royLNMvfx57I8uXa0oa9wPwi4UuPOF6L7S0dHDni+6H1MGLDMxW268OkzDDjVqBx4vj8N6EkLT9XUGN87n1K/amTsAtvDyLfEWS51g7inURwjCSpzR/tvNTbljhkzXLUjEGekBqious47T2+FkRO7cOQ7XWhTep4dgAKZGAvaRT6jtwKxfauJpHV1jgYiMA== 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=PWxqAkHWwZr8qPQqPmivv2L30y+il/+OfsRFa13NJ18=; b=H57vhysVnMezV7iTkQvf0GCsgqoYam9R06Oj77/4gviDNSS+swbj13xwmAA8DvyGZmyKBtcEHwiJjYtf3qI2B6ZlYBuVPHS1duQBe66Bw/YTy+zmimuekZEnOz/OaWJrBpP8Rai6lWGVsMEABe3T//v77OU0DP2pxgfa24U/hj6zEQtBrrXLCT0hhF7AvxQ8SFKh8N0oSLwMBArmla9pUaO9OLv5S9NkcBlLG0ABH6FZcz+clwaEOQg6L3+Jdbb4zq0naJMtgme9nD65BKRXnlvfClbX3VqYEhwwQPaHUkyn/KQU/KfE9J3FtjY8OTEdp6QB8znOH34c0E+FhdaOfg== 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 AM6P195CA0064.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:87::41) by PAXPR08MB6685.eurprd08.prod.outlook.com (2603:10a6:102:133::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.21; Fri, 22 Sep 2023 14:41:33 +0000 X-Received: from AM7EUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:87:cafe::73) by AM6P195CA0064.outlook.office365.com (2603:10a6:209:87::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.30 via Frontend Transport; Fri, 22 Sep 2023 14:41:33 +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 AM7EUR03FT052.mail.protection.outlook.com (100.127.140.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6813.20 via Frontend Transport; Fri, 22 Sep 2023 14:41:33 +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; Fri, 22 Sep 2023 14:41:25 +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; Fri, 22 Sep 2023 14:41:25 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , Subject: [edk2-devel] [PATCH edk2-platforms v3 3/3] Platform/ARM: FVP: Add ETE device if supported by FVP Date: Fri, 22 Sep 2023 15:41:23 +0100 Message-ID: <20230922144123.41164-4-sami.mujawar@arm.com> In-Reply-To: <20230922144123.41164-1-sami.mujawar@arm.com> References: <20230922144123.41164-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT052:EE_|PAXPR08MB6685:EE_|DBAEUR03FT033:EE_|GV1PR08MB7914:EE_ X-MS-Office365-Filtering-Correlation-Id: 47c8d2ca-9954-4be9-cbea-08dbbb7a0ab9 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: fFZAPKDQZLyUu6oNDDCDQr6JJajEh+uqRjcFrAzoN8e5jfJulwRsrHCXn2zIA2N7cLQSH659Xa5M6ETmF6CX6kpasJLsZYRY0HxmqBqix3Md7BKk8gzfz53S7TwFLBKYVTSKiu7+h7p8/e6hpjZafdVRKUjlMQoQuoJ8I6YVwmQNIlR8QPK0DutAAgMXEVgc3umdl7pJT/HlBNSpMlQobnMCpUYVvZtfn36roekQ/7PeZulD6VJYLXRwZ6iUmuU8rkJe8mgZomgzi48HzATnIDJHysNNADJRElVDKz9enP3SK26Hf5ssRAWN90agnlqDjVGxpLNA8IcttLTOuQYUOyrLSZGcK31TP+OGwT4LIXgt4oxdYSZf6AQvGP6Fggu9zEhrfy2KlsKcnCwWbsyjR7eeNN0Ck1kMb6tm7MooD1op5JgGGVkQXSpjmYVBdZ9qmHuoiZ0nOFCgITeALgEWY5ducSFzrBrSeHaadXm5+9ZWYAgbthk06Q2ScmSqv9WQZGy1pInxL7ayo6rZ2xv0dRJOjpjX4Fu9I/9FvEIQCZDg6e/8WdJVDpB9ZSXsv+jm5+kd+xGOP0zUQLJHM/VVpPkkH5MA5lZ9YLNCLfAOMNDLw2m7CyxcQpK2L8OXMmexKlHeQh9qIXBh3xYr/3QslhG9wz0PLpaoh+yiQv7vFgqyaXMiKdodmEQLDqu+/aTp8f6XYvXBRl6qhSDDpnvOwW9mLrselOj5GNdyrsA8mlwCSB/BQ4PXt8fzA888DmWgJhfNOp1gZA6+vD3DEVGeMWQO/2vr/jMTk0o9O2nthqM= 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)(39860400002)(396003)(376002)(346002)(136003)(82310400011)(186009)(230921699003)(451199024)(1800799009)(46966006)(40470700004)(36840700001)(7696005)(36756003)(40460700003)(83380400001)(86362001)(47076005)(81166007)(82740400003)(356005)(2616005)(36860700001)(40480700001)(336012)(2906002)(54906003)(26005)(70206006)(70586007)(316002)(5660300002)(8676002)(41300700001)(4326008)(6916009)(426003)(966005)(1076003)(478600001)(8936002)(44832011)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6685 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4c46360a-72a7-481b-5785-08dbbb7a0442 X-Microsoft-Antispam-Message-Info: AFZrQfTp3oyWNF/fn7sI+6DhjeZuA8TH/blKr0RlbIVwdva7469BU1R+TciHeyIHltP2IsjuWCGuWqVgTkMpYdDL0YnHtdQ1CPN7YHuSiNCqrVUGlQ8AzJ1ExCPD7ZOwiw51h3qG6ShBhW5vOPCS19dxlFGbEXemvUp6TI2y8D4VnM4AFWCaCHZK7KCtlKR87i7sPIuS3qv6sRcRtb032ZVKzdrTvSBjNUDsHBPIbIWaf3SvpKyvYgiI/cutDVsLVIgqm6eJxcR5DQ2k9NPI3mf0TpKa12nLWEVGbSt3pzIGHJIK8xIph6nk/qfLP+EDN1rNM2gsgnIj1bfLrvK0/d0oy0MZ9X0smai06Q6DAxMWbRxospGYYucyyJZ4i4VPwN5phRdWW7scSsEJLulyFUzp7MQ5kLLb3SJJFuzeLYQ1CgqoAO1Kh43MbO51cNxyPIbSsIzYng2ygIPaAMVwYXDSGDnEhMvjkdLAByfAn+YkRQFNIwF2vz6Ifh5AnyASmm7XZAPGhWbr39X3BKhrK5tos6gz0v5wcoWoxhnjJE3/xVPW8lhvOCWXHRW/J1UEx7wokdhqgiMk54aQ96FchaeF7IPsn830m15E4IyykkbIuPWUrjEINbgIX9MLfVi5NCMy9U0HFKgJUpAzrkxreSQzMWf5GF9DZ3mcENXiQhMqB0kj67lAPL+sKGkFbZQpGp4uy/R9Ef1CVn/Wb0dWoNO6K46dT6D6xG6BezfCz0lPZ8Yl4a2c+djK4diGbZI+6QY8vQLMlIYUSOO3I4qE7g== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2023 14:41:44.3097 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47c8d2ca-9954-4be9-cbea-08dbbb7a0ab9 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: DBAEUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7914 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: oEUSNVhS9e0qHTWbPmWIG0urx1787277AA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1695393716804100001 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 Reviewed-by: Pierre Gondois --- Notes: v3: - Use macros instead of magic numbers in ETE feature [Pierre] detection code. - Implemented helper functions in ArmLib to detect if [Sami] the ETE feature is present and used it instead. Ref: https://edk2.groups.io/g/devel/message/108986 =20 v2: - No code change from v1 patch series. [SAMI] 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 749d8eaf52de0888e9e44173f4f84aa41c4c70b5..5b5d1f9d04c0f27bf32cca62f51= c259152e16711 100644 --- a/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManager.c +++ b/Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe= /ConfigurationManager.c @@ -365,6 +365,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. @@ -476,6 +481,7 @@ InitializePlatformRepository ( EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; UINTN Index; UINT16 TrbeInterrupt; + CM_OBJECT_TOKEN EtToken; =20 PlatformRepo =3D This->PlatRepoInfo; =20 @@ -495,6 +501,7 @@ InitializePlatformRepository ( } =20 TrbeInterrupt =3D 0; + EtToken =3D CM_NULL_TOKEN; =20 // The ID_AA64DFR0_EL1.TraceBuffer field identifies support for FEAT_TRB= E. if (ArmHasTrbe ()) { @@ -502,8 +509,14 @@ InitializePlatformRepository ( TrbeInterrupt =3D 31; } =20 + // The ID_AA64DFR0_EL1.TraceVer field identifies the presence of FEAT_ET= E. + if (ArmHasEte ()) { + 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; @@ -975,6 +988,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 (#109010): https://edk2.groups.io/g/devel/message/109010 Mute This Topic: https://groups.io/mt/101522392/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-