From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.107.14.87]) by mx.groups.io with SMTP id smtpd.web09.10032.1624372783385681595 for ; Tue, 22 Jun 2021 07:39:44 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=rjKtk7fc; spf=pass (domain: arm.com, ip: 40.107.14.87, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8ZRqWJzrrufAO1J29HXSnPP+fC+HFfbCZN7F/9gcyU8=; b=rjKtk7fc0LEt7pEykV0VprnmLeNnyB/fPLo0dZAzK6cQrPbGSGG3ifkTKo/XH0/SZXXlK8tRQPW/S/gRcG4ZmsoKpuRV/3Kxlp4m5NdSGsKE40vJIS5vmeCOyXYUIfZoW5BYvf0ja4eithoex8z0yGNsCKAwgT9mbfnaj/UpFYE= Received: from AM6P191CA0054.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:7f::31) by AM8PR08MB6482.eurprd08.prod.outlook.com (2603:10a6:20b:367::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.18; Tue, 22 Jun 2021 14:39:39 +0000 Received: from AM5EUR03FT054.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:7f:cafe::52) by AM6P191CA0054.outlook.office365.com (2603:10a6:209:7f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Tue, 22 Jun 2021 14:39:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT054.mail.protection.outlook.com (10.152.16.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.16 via Frontend Transport; Tue, 22 Jun 2021 14:39:38 +0000 Received: ("Tessian outbound f945d55369ce:v96"); Tue, 22 Jun 2021 14:39:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 84ea163dd860bcd8 X-CR-MTA-TID: 64aa7808 Received: from ff9efaaff4f6.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id DF04E002-30AA-4B71-B96D-E03D0759B423.1; Tue, 22 Jun 2021 14:38:57 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ff9efaaff4f6.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 22 Jun 2021 14:38:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nHvwVJ6G1jGkG8139efsS5SLtYdcegA1y2Jzgx9JObcDboSH18Ejn9/2EfJyrj2sJy/S0Q4JRCljWk6Cl05tLoiBsDxD8pq1qdbYXfQeJhk/pVAKiNv0jd2OHqCpaNHqMbn9sXYhuos9nP1SRkNzl0olpJv8uPUYEOsXbNDlSt8gabFdJZD5HtZUbJerPQ6ccY1QYvw0ilrCSMoJ+khqB4Vses1/Yy0F7WXhnmTuAgv9MrBQQ1busDAcHxFW8S6cCDhS5bVZeVJmXWjpbbMbpEgIPA7qNtdF8MQVnt7g96YABI0KwGHOtmfsreKoFGV7baY3OOXEKWF9e1UAUBGiEg== 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-SenderADCheck; bh=8ZRqWJzrrufAO1J29HXSnPP+fC+HFfbCZN7F/9gcyU8=; b=NcOY7Yh0mEY3oSVQBEbPGZ4Ty5ZF81if9uJXtET4ZnQA1Kn6ohE8fpTEdfFg3GIj1rBQFpv2+WjxVvqnM8RzamfbQpPAvBJ9iZvLYks5D97J45SERqbGEDDbTNMkEQdnMYcGGAo75Hn2wyoZ6bzopnJPzL6DmpJES1bG8JYll+IM/ou2IRj+HUW9na23DJaPI12oOCBd3QmYJXmxCj1xHkRqn/cKbzf1v1ORqYBNl1WJaWzvCVpalBDDPW3QrVo/4MQA60gYpsPp+1cAg7fBrJM1anZiE5nVJn8qLxvoURkOxAR1x1M4n9TCgPwh+CIN37AAFqjzOPa/lB3GyeveLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8ZRqWJzrrufAO1J29HXSnPP+fC+HFfbCZN7F/9gcyU8=; b=rjKtk7fc0LEt7pEykV0VprnmLeNnyB/fPLo0dZAzK6cQrPbGSGG3ifkTKo/XH0/SZXXlK8tRQPW/S/gRcG4ZmsoKpuRV/3Kxlp4m5NdSGsKE40vJIS5vmeCOyXYUIfZoW5BYvf0ja4eithoex8z0yGNsCKAwgT9mbfnaj/UpFYE= Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) by AM6PR08MB3575.eurprd08.prod.outlook.com (2603:10a6:20b:48::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.21; Tue, 22 Jun 2021 14:38:53 +0000 Received: from AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::5c0d:142c:27df:c52b]) by AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::5c0d:142c:27df:c52b%5]) with mapi id 15.20.4242.023; Tue, 22 Jun 2021 14:38:53 +0000 Subject: Re: [edk2-devel] [edk2-platforms][PATCH V1 4/4] Platform/ARM/N1Sdp: Configuration Manager for N1Sdp To: devel@edk2.groups.io, khasim.mohammed@arm.com, Pierre Gondois References: <20210602124701.18045-1-khasim.mohammed@arm.com> <20210602124701.18045-5-khasim.mohammed@arm.com> From: "Sami Mujawar" Message-ID: <9a383418-594d-fe23-d904-1c0b138e71a3@arm.com> Date: Tue, 22 Jun 2021 15:38:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 In-Reply-To: <20210602124701.18045-5-khasim.mohammed@arm.com> X-Originating-IP: [217.140.106.54] X-ClientProxiedBy: LNXP265CA0001.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5e::13) To AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.1.196.43] (217.140.106.54) by LNXP265CA0001.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Tue, 22 Jun 2021 14:38:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a86a603f-9caa-46fa-fa1e-08d9358b9048 X-MS-TrafficTypeDiagnostic: AM6PR08MB3575:|AM8PR08MB6482: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8882;OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: mGx/0Ylq67pTt2MWsjP9FmsDfAcr/RHV5WKUt0AdyhbN3gdEFIRVEy+kdfdI+TLsjxK54iQu9QMIVJTCusum76zN+uayR513Kd2lMP3waaOGd1qGGzSfcvsiLuC+EqUfAQf31JvnJo76hdXgnVnffXCHGXlUvko5QiMkiGtRPX1GxEHsbdNusnhQk2UejrWd+T/UtAxh6mYe3rR5fqnWHgA6t1Hm8EllFIlcbm6X86r8GcKeHtjKHpTtTbUE8gRyljmzOs/o7s51rcHnFr3O9aGzCAy89jyJW4deKQtbIzYKq6/1n1m2rgj+16XXcHsE0vLsZ0y4AzneGmXU2z8POV29nAtndXryhBSNBYeI6WE8uAS+Pja0kU4ZvGGecE2fY9yNsagdy5jvzpa3FQHRJD/LW8TMpN0x4jNlMIpXD8Z4stvHy3lOH1D5M5hlwOHITVCajapBUvlT1UNEzXBWbGNrWDWKvqMAiOCh1ETvToHlonfYSHSEY6dbDzPQCuR51tdV19cYxEm/C7Ti9zXBdB3AOhahfV4d8iv3b0LLzaQ2ou9iRKVpKJs0AbM4T6oonErz/zlkq2wq5sMynCfT38QwgRkHSna9ITtab/63ryNo9Acx+86Pj7yf2yDEH5pnheG0F/KO7PbEaZgVLSOwrglz+nC1/siPW9ElE79UmGZ6KupqmjhM77NAAglhwSSdW9YWChF+X114RAKiBQMKZ7eG4WySqWNmORau/PqKl5Y= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR08MB6806.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(36756003)(6636002)(26005)(6486002)(86362001)(6862004)(52116002)(8676002)(53546011)(19627235002)(30864003)(498600001)(38350700002)(5660300002)(83380400001)(8936002)(31686004)(66556008)(2906002)(66476007)(66946007)(16576012)(38100700002)(31696002)(16526019)(186003)(37006003)(44832011)(956004)(2616005)(32563001)(45980500001)(43740500002)(579004)(559001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZzVYVVp3T0RCRG5LZmV0UEJGMk0yM3lna1lXV2srYWQxZXVLczU5S1NVZ1h0?= =?utf-8?B?dDFHTnE3ZGZDOFVXeDVZUnNLTUJFcnppeC81WVpGUENtNllxSERDRlZuNnhm?= =?utf-8?B?OGxWV2I0OVo0R1ZLRmdlQU9iZHFOeGRFbjBIZEloTnY4NGRUK2FqUXdQYkwr?= =?utf-8?B?cjJFL0ovdUJkd28vMlV3TlhyWHpvc1pyMVlORko3dHBYZy91M01BRGZGNVJ0?= =?utf-8?B?dHZKTFczTXlYTklXT29haUlVbm9mQVdFbnFzOWR0WjFPZVBza3ZmNjMwenQr?= =?utf-8?B?M1UycGM5aWdmby9BcWdlQjQ2a3FKRmZTNDZ1VWxoa2t0U2VQUWVkM1Rna0Y4?= =?utf-8?B?RnZGMUhSMElFZU1oaFY3MzVPUHFFaXlwWlNTQjBOTENuYUM3aDRqM1c3UHVQ?= =?utf-8?B?OWtOOVdzaklJTnF2Q0dGQkdyRWVyK1FXa00wVndjcVV0dlMxMlN2TXUvRTVU?= =?utf-8?B?Smp5Zmp6cFpaSlhtMktMUDJhVnRqTUlabFQ4bGpQTEhyMlE4L1JBR2FtN2I4?= =?utf-8?B?TWxYYXNmWFpGditUYlVkNlFhQWtOQU9kMmdnZXl3NjRDMFFUZ2xmY0VKQk9r?= =?utf-8?B?YWtaVW1Qa1hFUy8yTzB2aTRXSkJVeFlGV0RtalJOUWlHZHFZSWxPY2x2YmpD?= =?utf-8?B?SVZrbE5kNDZXbzZnbmxNOURqZVN6RUx0YXRvV3AvZno5WkVSYW9HMmFwTWR0?= =?utf-8?B?M1JKa1ZuYTRpcXJibmtnYmRGTEFZZ3pNSzRhNXNLU1F1bUpjZWFCTERnNk9r?= =?utf-8?B?Sk1rTnkybHV0UGIvQW1YZnBEREtGWEhHZHUrNHZMYWdsTmVLZktnT1ZzWUk0?= =?utf-8?B?ZzUrUTUxa3FQNi8rK1NIT0ZudGRwSWpIcFVXTHc3bFdKNktLbXpqa3Z6Zjda?= =?utf-8?B?YXVWRDRtaCs3WStWbWE5NUNVVyt2ZFMxNXZmNFRjamFHZmt6SDdrNmI5bzdI?= =?utf-8?B?YnYralovTHRKMXBUaWVRRnEvSUp3U3RtNnhVd29BQUMxVVpsaG9DWmVZWTVa?= =?utf-8?B?aU1SaXpSTVJiWk5LV3pmMzBsdmg0QXhFejJJVUpUUmJkNFBEMzZhYUs5bzBt?= =?utf-8?B?dGVMNDlGbml4Q1M1S2xXR1B2MUlMTnJzeUwybXJuT2UzM2E4TVAzSDFxUUhV?= =?utf-8?B?QVhJQ1ZEci9CQTA0QnNrNEM3NFFhVVQ4Y2MzVFBHN0N2amFhNnMxYjVyaElv?= =?utf-8?B?TTBqNjdPSWU3UUVOcSt0eHN0VWU5SVkvTlkvc0JzS0ErVTVBQkJCY0wySFJ5?= =?utf-8?B?YWxlYnhSNDZlUlRibWlyUFFWUUsva3psanJQekZHeWdTbmJzS0pQWk9QQjZy?= =?utf-8?B?cVJzc25VTWtSRXVHeEtkM3lOeXYwdjlYNGlGM3UwZjZkSG1TRXZHTGtER1Q0?= =?utf-8?B?Q3VjOGJTUENBQ3Rudk1hYWpYNG0yd1ptYTJacUNaUzNyUVpOZGxMam5WVWpG?= =?utf-8?B?NWRUbkpLZUxiQkh0WFhVK2w5U1hIWnJHNnJwSG1KVWdZbGhRRUdQclpMaExY?= =?utf-8?B?MG9aRSsvaWdXQy9sYTZwS3hUR3dkdGVRQy9wY1BWVW1BSExqenBqbS9kcFVp?= =?utf-8?B?RDBpSE53UUdaUklhZUFxbURCWXBYbGNLSkxGVFVHR1VWN1NBMWt0eDZ4VS83?= =?utf-8?B?amFxZG1NZjVQM0EyUkZHV0lDbEdleHBPT2tGMVQ2Vjd4VTFSNFFFNE1nZ0g3?= =?utf-8?B?Y1IrVllheGhENUZsSnIzdTlmWGltVGRGOTJUVCtvNThjMDFWNnhqQm9FTktv?= =?utf-8?Q?127/OeVCjbg+L6wuJ5zBxoZzr18yTMwJHqfoARB?= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3575 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: a058b72c-eaf3-4cd2-0e7a-08d9358b7515 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9/W9JQnzMkF5xu7rBEC4rno16DACAb4+5TUoz+Wr7WbQ7m4ND6UfIVLVu9AMR3msQJFi7VMW9K2GRw5L6afwGavtTIB9bYflblu4qUJdS84ADH9YWonjUGYhQMzzD7O3tdkI3ZWkaU2Z9OzxFw5q36YSFob9+n0p8kv9wKivp2drLg3IAqhwL4Tp8YZ0SHtxeveaVvTiD3vkggpggIPc56heMOMA3NsIXFIiiLI9YuFdc0upqKIf58G8zvrTVYcjddwZW4eDQw6eO0WYU7wo1V2hjRrnBZhQDv/Hox2Oao0rK+WphS28TfGhd5QOYhEIyBQAL1+4u1p5g3XavKGBVIhQeAzfL1N4Ma7Z1ok+pyww/C0s+g8N3xFaLqe6d7EnFjFnjk7jx0I/dU2n7vIi8sE1kJixRDbEfQhRgwBEWnWzF0umoQwHTQ4kkoSooFMIeZvSQnyyVVCVIRBSaltQznZ8gFKHVubZJJHIsciLrzo8MMwNz6X8fVyYchuWYGFO8dG5TyzOL7C9fRE6yxVCGa8J2sCr6QlizZCDFo4PcApo+V5vdYEan4oqzsHwadlCG6LhGZnmWRCxTJa0tDUx0ZdgcYgwwqLs1JgUyUbyBkqvPdE0Axd8NP9eetZvFR3sdSGMCohXbMW0XjygXPL5vRRHOKGio1cfcLUoxnn4/c/DmPHtJ8G2yBW4NC86fkrsIbVmTTWNzfmtaduRergJ6A== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(396003)(39860400002)(136003)(376002)(346002)(36840700001)(46966006)(8936002)(16576012)(82740400003)(31696002)(37006003)(336012)(956004)(6636002)(316002)(5660300002)(2616005)(30864003)(186003)(16526019)(53546011)(86362001)(2906002)(8676002)(47076005)(356005)(478600001)(36756003)(19627235002)(44832011)(70206006)(6486002)(70586007)(36860700001)(83380400001)(82310400003)(31686004)(6862004)(81166007)(26005)(32563001)(43740500002)(579004)(559001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2021 14:39:38.6354 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a86a603f-9caa-46fa-fa1e-08d9358b9048 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: AM5EUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB6482 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-GB Hi Khasim, This patch really needs to be split as it is too large to review. Also, some changes don't look relevant to the commit message or the subject of the patch, e.g PlatformDxe changes. Other than that, please find my response inline marked [SAMI]. Regards, Sami Mujawar On 02/06/2021 01:47 PM, Khasim Mohammed via groups.io wrote: > The dynamic tables framework utilizes the configuration manager > protocol to get the platform specific information required for > building the firmware tables. > > The configuration manager is a platform specific component that > collates the platform hardware information and builds an abstract > platform configuration repository. The configuration manager also > implements the configuration manager protocol which returns the > hardware information requested by the table generators. > > This patch implements the configuration manager for N1SDP > platform. It enables support for generating the following > ACPI tables: > 1. FACP > 2. DSDT > 3. GTDT > 4. APIC > 5. SPCR > 6. DBG2 > 7. PPTT > 8. IORT > 9. MCFG > 10. SSDT - PCI > 11. SSDT - REMOTE PCI > > Also added : > ACPI bindings for CoreSight components. > Support for Arm CMN-600 PMU > HMAT table and expose CCIX memory as EFI_MEMORY_SP > > Signed-off-by: Sami Mujawar > Signed-off-by: Khasim Syed Mohammed > Signed-off-by: Chandni Cherukuri > Signed-off-by: Manoj Kumar > Signed-off-by: Patrik Berglund > Signed-off-by: anukou01 > Signed-off-by: Sayanta Pattanayak > --- > Platform/ARM/N1Sdp/N1SdpPlatform.dec = | 10 + > Silicon/ARM/NeoverseN1Soc/NeoverseN1Soc.dec = | 5 + > Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager.dsc.inc = | 16 + > Platform/ARM/N1Sdp/N1SdpPlatform.dsc = | 10 + > Platform/ARM/N1Sdp/N1SdpPlatform.fdf = | 9 + > Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Configu= rationManagerDxe.inf | 167 ++ > Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.inf = | 4 + > Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Configu= rationManager.h | 307 +++ > Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Platfor= m.h | 92 + > Platform/ARM/N1Sdp/Include/N1SdpAcpiHeader.h = | 35 + > Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Configu= rationManager.c | 2197 ++++++++++++++++++++ > Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Hmat.c = | 103 + > Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.c = | 1 + > Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/AslTabl= es/Dsdt.asl | 477 +++++ > Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/AslTabl= es/SsdtPci.asl | 247 +++ > Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/AslTabl= es/SsdtRemotePci.asl | 156 ++ > 16 files changed, 3836 insertions(+) > > diff --git a/Platform/ARM/N1Sdp/N1SdpPlatform.dec b/Platform/ARM/N1Sdp/N1= SdpPlatform.dec > index 4b730d728eaf..a6f982c7af3f 100644 > --- a/Platform/ARM/N1Sdp/N1SdpPlatform.dec > +++ b/Platform/ARM/N1Sdp/N1SdpPlatform.dec > @@ -22,17 +22,22 @@ [Defines] > # > #######################################################################= ######### > [Includes.common] > + Include # Root include for the package > > [LibraryClasses] > ArmPlatformLib|Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/Platform= Lib.inf > > [Guids.common] > gArmN1SdpTokenSpaceGuid =3D { 0xd8f1624a, 0x98c1, 0x4f64, { 0xa6, 0x= 41, 0x19, 0x5e, 0xb5, 0x3b, 0x26, 0x0f } } > + gN1SdpAcpiTableFileGuid =3D { 0x9af67d31, 0x7de8, 0x4a71, { 0xa9, 0xa= 8, 0xa5, 0x97, 0xa2, 0x76, 0x59, 0xce } } [SAMI] I don't think the gN1SdpAcpiTableFileGuid would be needed when Dynamic Tables Framework is used. Can you explain why this is added here, please? [/SAMI] > > [PcdsFixedAtBuild] > gArmN1SdpTokenSpaceGuid.PcdRamDiskBase|0x88000000|UINT32|0x00000001 > gArmN1SdpTokenSpaceGuid.PcdRamDiskSize|0x18000000|UINT32|0x00000002 > > + # PCIe > + gArmN1SdpTokenSpaceGuid.PcdPcieExpressBaseAddress|0x70000000|UINT32|0x= 00000007 > + > # External memory > gArmNeoverseN1SocTokenSpaceGuid.PcdExtMemorySpace|0|UINT64|0x00000029 > > @@ -88,3 +93,8 @@ [PcdsFixedAtBuild.common] > # unmapped reserved region results in a DECERR response. > # > gArmN1SdpTokenSpaceGuid.PcdCsComponentSize|0x1000|UINT32|0x00000049 > + > + # Remote Chip PCIe > + gArmN1SdpTokenSpaceGuid.PcdRemotePcieIoTranslation|0x40075200000|UINT6= 4|0x0000004A > + gArmN1SdpTokenSpaceGuid.PcdRemotePcieMmio32Translation|0x40000000000|U= INT64|0x0000004B > + gArmN1SdpTokenSpaceGuid.PcdRemotePcieMmio64Translation|0x40000000000|U= INT64|0x0000004C > diff --git a/Silicon/ARM/NeoverseN1Soc/NeoverseN1Soc.dec b/Silicon/ARM/Ne= overseN1Soc/NeoverseN1Soc.dec > index 8789795bbae3..eea2d58402e6 100644 > --- a/Silicon/ARM/NeoverseN1Soc/NeoverseN1Soc.dec > +++ b/Silicon/ARM/NeoverseN1Soc/NeoverseN1Soc.dec > @@ -68,3 +68,8 @@ [PcdsFixedAtBuild] > gArmNeoverseN1SocTokenSpaceGuid.PcdCcixRootPortConfigBaseSize|0x00001= 000|UINT32|0x00000027 > > gArmNeoverseN1SocTokenSpaceGuid.PcdExtMemorySpace|0x40000000000|UINT6= 4|0x00000029 > + > + # Remote Chip PCIe > + gArmNeoverseN1SocTokenSpaceGuid.PcdRemotePcieIoTranslation|0x400752000= 00|UINT64|0x0000004A > + gArmNeoverseN1SocTokenSpaceGuid.PcdRemotePcieMmio32Translation|0x40000= 000000|UINT64|0x0000004B > + gArmNeoverseN1SocTokenSpaceGuid.PcdRemotePcieMmio64Translation|0x40000= 000000|UINT64|0x0000004C > diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= .dsc.inc b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager.dsc= .inc > new file mode 100644 > index 000000000000..bcd4bf334dad > --- /dev/null > +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager.dsc.in= c > @@ -0,0 +1,16 @@ > +## @file > +# dsc include file for Configuration Manager > +# > +# Copyright (c) 2021, ARM Limited. All rights reserved.
> +# > +# SPDX-License-Identifier: BSD-2-Clause-Patent > +# > +## > + > +[Defines] > + > +[BuildOptions] > + > +[Components.common] > + # Configuration Manager > + Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Config= urationManagerDxe.inf > diff --git a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc b/Platform/ARM/N1Sdp/N1= SdpPlatform.dsc > index abfcbe534550..14769659ddf5 100644 > --- a/Platform/ARM/N1Sdp/N1SdpPlatform.dsc > +++ b/Platform/ARM/N1Sdp/N1SdpPlatform.dsc > @@ -27,6 +27,9 @@ [Defines] > !include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc > !include MdePkg/MdeLibs.dsc.inc > > +!include DynamicTablesPkg/DynamicTables.dsc.inc > +!include Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager.ds= c.inc > + > [LibraryClasses.common] > ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf > ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf > @@ -156,6 +159,9 @@ [PcdsFixedAtBuild.common] > gArmPlatformTokenSpaceGuid.PcdCoreCount|2 > gArmPlatformTokenSpaceGuid.PcdClusterCount|2 > > + # ACPI Table Version > + gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20 > + > # Runtime Variable storage > gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0 > gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE > @@ -215,6 +221,10 @@ [Components.common] > BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf > } > > + # ACPI Support > + MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf > + MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf > + > # Platform driver > Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.inf > > diff --git a/Platform/ARM/N1Sdp/N1SdpPlatform.fdf b/Platform/ARM/N1Sdp/N1= SdpPlatform.fdf > index 6b097438adaf..6ede2b7fc894 100644 > --- a/Platform/ARM/N1Sdp/N1SdpPlatform.fdf > +++ b/Platform/ARM/N1Sdp/N1SdpPlatform.fdf > @@ -94,6 +94,15 @@ [FV.FvMain] > INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf > INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf > > + # ACPI Support > + INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf > + > + # Configuration Manager > + INF Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Co= nfigurationManagerDxe.inf > + > + # Dynamic Table fdf > + !include DynamicTablesPkg/DynamicTables.fdf.inc > + > # Human Interface Support > INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf > > diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/ConfigurationManagerDxe.inf b/Platform/ARM/N1Sdp/ConfigurationManager/C= onfigurationManagerDxe/ConfigurationManagerDxe.inf > new file mode 100644 > index 000000000000..52207e7f7d26 > --- /dev/null > +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManagerDxe.inf > @@ -0,0 +1,167 @@ > +## @file > +# Configuration Manager Dxe > +# > +# Copyright (c) 2021, ARM Limited. All rights reserved.
> +# > +# SPDX-License-Identifier: BSD-2-Clause-Patent > +# > +## > + > +[Defines] > + INF_VERSION =3D 0x0001001B > + BASE_NAME =3D ConfigurationManagerDxe > + FILE_GUID =3D 6f9c3b47-6f7d-44b6-87e5-4b7f44a6014= 7 > + MODULE_TYPE =3D DXE_DRIVER > + VERSION_STRING =3D 1.0 > + ENTRY_POINT =3D ConfigurationManagerDxeInitialize > + > +# > +# The following information is for reference only and not required by th= e build tools. > +# > +# VALID_ARCHITECTURES =3D ARM AARCH64 > +# > + > +[Sources] > + AslTables/Dsdt.asl > + AslTables/SsdtPci.asl > + AslTables/SsdtRemotePci.asl > + ConfigurationManager.c > + ConfigurationManager.h > + Hmat.c > + Platform.h > + > +[Packages] > + ArmPkg/ArmPkg.dec > + ArmPlatformPkg/ArmPlatformPkg.dec > + DynamicTablesPkg/DynamicTablesPkg.dec > + EmbeddedPkg/EmbeddedPkg.dec > + MdeModulePkg/MdeModulePkg.dec > + MdePkg/MdePkg.dec > + Platform/ARM/N1Sdp/N1SdpPlatform.dec > + Platform/ARM/VExpressPkg/ArmVExpressPkg.dec > + Silicon/ARM/NeoverseN1Soc/NeoverseN1Soc.dec > + > +[LibraryClasses] > + ArmPlatformLib > + PrintLib > + UefiBootServicesTableLib > + UefiDriverEntryPoint > + UefiRuntimeServicesTableLib > + > +[Protocols] > + gEdkiiConfigurationManagerProtocolGuid > + > +[FixedPcd] > + # PL011 Serial Debug UART > + gArmPlatformTokenSpaceGuid.PcdSerialDbgRegisterBase > + gArmPlatformTokenSpaceGuid.PcdSerialDbgUartBaudRate > + gArmPlatformTokenSpaceGuid.PcdSerialDbgUartClkInHz > + > + gArmPlatformTokenSpaceGuid.PL011UartClkInHz > + gArmPlatformTokenSpaceGuid.PL011UartInterrupt > + > + gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum > + gArmTokenSpaceGuid.PcdArmArchTimerIntrNum > + gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum > + gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum > + > + # SBSA Generic Watchdog > + gArmTokenSpaceGuid.PcdGenericWatchdogControlBase > + gArmTokenSpaceGuid.PcdGenericWatchdogEl2IntrNum > + gArmTokenSpaceGuid.PcdGenericWatchdogRefreshBase > + > + gArmTokenSpaceGuid.PcdGicDistributorBase > + gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase > + gArmTokenSpaceGuid.PcdGicRedistributorsBase > + > + gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase > + gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate > + > + gArmN1SdpTokenSpaceGuid.PcdPcieExpressBaseAddress > + > + gArmNeoverseN1SocTokenSpaceGuid.PcdExtMemorySpace > + gArmNeoverseN1SocTokenSpaceGuid.PcdDramBlock2Base > + > + gArmPlatformTokenSpaceGuid.PcdCoreCount > + gArmPlatformTokenSpaceGuid.PcdClusterCount > + > + gArmTokenSpaceGuid.PcdSystemMemoryBase > + gArmTokenSpaceGuid.PcdSystemMemorySize > + > + #PCIe > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieBusCount > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieBusMax > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieBusMin > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieIoBase > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieIoMaxBase > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieIoSize > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieIoTranslation > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieMmio32Base > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieMmio32MaxBase > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieMmio32Size > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieMmio32Translation > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieMmio64Base > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieMmio64MaxBase > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieMmio64Size > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieMmio64Translation > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieRootPortConfigBaseAddress > + gArmNeoverseN1SocTokenSpaceGuid.PcdPcieRootPortConfigBaseSize > + > + # CCIX > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixBusCount > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixBusMax > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixBusMin > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixExpressBaseAddress > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixIoBase > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixIoMaxBase > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixIoSize > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixIoTranslation > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixMmio32Base > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixMmio32MaxBase > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixMmio32Size > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixMmio32Translation > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixMmio64Base > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixMmio64MaxBase > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixMmio64Size > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixMmio64Translation > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixRootPortConfigBaseAddress > + gArmNeoverseN1SocTokenSpaceGuid.PcdCcixRootPortConfigBaseSize > + > + # Coresight > + gArmN1SdpTokenSpaceGuid.PcdCsComponentSize > + gArmN1SdpTokenSpaceGuid.PcdCsEtf0Base > + gArmN1SdpTokenSpaceGuid.PcdCsEtf0MaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsEtf1Base > + gArmN1SdpTokenSpaceGuid.PcdCsEtf1MaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsEtf2Base > + gArmN1SdpTokenSpaceGuid.PcdCsEtf2MaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsEtm0Base > + gArmN1SdpTokenSpaceGuid.PcdCsEtm0MaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsEtm1Base > + gArmN1SdpTokenSpaceGuid.PcdCsEtm1MaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsEtm2Base > + gArmN1SdpTokenSpaceGuid.PcdCsEtm2MaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsEtm3Base > + gArmN1SdpTokenSpaceGuid.PcdCsEtm3MaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsEtrBase > + gArmN1SdpTokenSpaceGuid.PcdCsEtrMaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsFunnel0Base > + gArmN1SdpTokenSpaceGuid.PcdCsFunnel0MaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsFunnel1Base > + gArmN1SdpTokenSpaceGuid.PcdCsFunnel1MaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsReplicatorBase > + gArmN1SdpTokenSpaceGuid.PcdCsReplicatorMaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsStmBase > + gArmN1SdpTokenSpaceGuid.PcdCsStmMaxBase > + gArmN1SdpTokenSpaceGuid.PcdCsStmStimulusBase > + gArmN1SdpTokenSpaceGuid.PcdCsStmStimulusSize > + gArmN1SdpTokenSpaceGuid.PcdCsTpiuBase > + gArmN1SdpTokenSpaceGuid.PcdCsTpiuMaxBase > + > + # Remote PCIe > + gArmN1SdpTokenSpaceGuid.PcdRemotePcieIoTranslation > + gArmN1SdpTokenSpaceGuid.PcdRemotePcieMmio32Translation > + gArmN1SdpTokenSpaceGuid.PcdRemotePcieMmio64Translation > + > +[Depex] > + TRUE > diff --git a/Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.inf b/Pla= tform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.inf > index 925bde4063cc..55325327298b 100644 > --- a/Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.inf > +++ b/Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.inf > @@ -27,9 +27,13 @@ [Packages] > Platform/ARM/N1Sdp/N1SdpPlatform.dec > > [LibraryClasses] > + AcpiLib [SAMI] I may be missing somthing here, where is AcpiLib used in this module= ? > HobLib > UefiDriverEntryPoint > > +[Guids] > + gN1SdpAcpiTableFileGuid [SAMI] Is this needed here? [/SAMI] > + > [Protocols] > gEfiRamDiskProtocolGuid > > diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/ConfigurationManager.h b/Platform/ARM/N1Sdp/ConfigurationManager/Config= urationManagerDxe/ConfigurationManager.h > new file mode 100644 > index 000000000000..52e7680cd34d > --- /dev/null > +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.h > @@ -0,0 +1,307 @@ > +/** @file > + > + Copyright (c) 2021, ARM Limited. All rights reserved.
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > + > + @par Glossary: > + - Cm or CM - Configuration Manager > + - Obj or OBJ - Object > +**/ > + > +#ifndef CONFIGURATION_MANAGER_H_ > +#define CONFIGURATION_MANAGER_H_ > + > +/** C array containing the compiled AML template. > + This symbol is defined in the auto generated C file > + containing the AML bytecode array. > +*/ > +extern CHAR8 dsdt_aml_code[]; > +extern CHAR8 ssdtpci_aml_code[]; > +extern CHAR8 ssdtremotepci_aml_code[]; > + > +/** The configuration manager version. > +*/ > +#define CONFIGURATION_MANAGER_REVISION CREATE_REVISION (1, 0) > + > +/** The OEM ID > +*/ > +#define CFG_MGR_OEM_ID { 'A', 'R', 'M', 'L', 'T', 'D' } > + > +/** A helper macro for mapping a reference token > +*/ > +#define REFERENCE_TOKEN(Field) \ > + (CM_OBJECT_TOKEN)((UINT8*)&N1sdpRepositoryInfo + \ > + OFFSET_OF (EDKII_PLATFORM_REPOSITORY_INFO, Field)) > + > +/** A helper macro that constructs the MPID based on the > + Aff0, Aff1, Aff2, Aff3 values > +*/ > +#define GET_MPID3(Aff3, Aff2, Aff1, Aff0) \ > + (((Aff3##ULL) << 32) | ((Aff2) << 16) | ((Aff1) << 8) | (Aff0)) > + > +/** A helper macro for populating the GIC CPU information > +*/ > +#define GICC_ENTRY( = \ > + CPUInterfaceNumber, = \ > + Mpidr, = \ > + PmuIrq, = \ > + VGicIrq, = \ > + GicRedistBase, = \ > + EnergyEfficiency, = \ > + SpeIrq, = \ > + ProximityDomain, = \ > + ClockDomain = \ > + ) { = \ > + CPUInterfaceNumber, /* UINT32 CPUInterfaceNumber */= \ > + CPUInterfaceNumber, /* UINT32 AcpiProcessorUid */= \ > + EFI_ACPI_6_2_GIC_ENABLED, /* UINT32 Flags */= \ > + 0, /* UINT32 ParkingProtocolVersion */= \ > + PmuIrq, /* UINT32 PerformanceInterruptGsiv */= \ > + 0, /* UINT64 ParkedAddress */= \ > + FixedPcdGet64 ( = \ > + PcdGicInterruptInterfaceBase = \ > + ), /* UINT64 PhysicalBaseAddress */= \ > + 0, /* UINT64 GICV */= \ > + 0, /* UINT64 GICH */= \ > + VGicIrq, /* UINT32 VGICMaintenanceInterrupt */= \ > + GicRedistBase, /* UINT64 GICRBaseAddress */= \ > + Mpidr, /* UINT64 MPIDR */= \ > + EnergyEfficiency, /* UINT8 ProcessorPowerEfficiencyClass*/= \ > + SpeIrq, /* UINT16 SpeOverflowInterrupt */= \ > + ProximityDomain, /* UINT32 ProximityDomain */= \ > + ClockDomain, /* UINT32 ClockDomain */= \ > + EFI_ACPI_6_3_GICC_ENABLED,/* UINT32 Flags */= \ > + } > + > +/** A helper macro for populating the Processor Hierarchy Node flags > +*/ > +#define PROC_NODE_FLAGS( = \ > + PhysicalPackage, = \ > + AcpiProcessorIdValid, = \ > + ProcessorIsThread, = \ > + NodeIsLeaf, = \ > + IdenticalImplementation = \ > + ) = \ > + ( = \ > + PhysicalPackage | = \ > + (AcpiProcessorIdValid << 1) | = \ > + (ProcessorIsThread << 2) | = \ > + (NodeIsLeaf << 3) | = \ > + (IdenticalImplementation << 4) = \ > + ) > + > +/** A helper macro for populating the Cache Type Structure's attributes > +*/ > +#define CACHE_ATTRIBUTES( = \ > + AllocationType, = \ > + CacheType, = \ > + WritePolicy = \ > + ) = \ > + ( = \ > + AllocationType | = \ > + (CacheType << 2) | = \ > + (WritePolicy << 4) = \ > + ) > + > +/** A function that prepares Configuration Manager Objects for returning= . > + @param [in] This Pointer to the Configuration Manager Protocol= . > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token A token for identifying the object. > + @param [out] CmObject Pointer to the Configuration Manager Object > + descriptor describing the requested Object. > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not f= ound. > +**/ > +typedef EFI_STATUS (*CM_OBJECT_HANDLER_PROC) ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ); > + > +/** The number of CPUs > +*/ > +#define PLAT_CPU_COUNT 4 > + > +/** The number of ACPI tables to install > +*/ > +#define PLAT_ACPI_TABLE_COUNT 13 > + > +/** The number of platform generic timer blocks > +*/ > +#define PLAT_GTBLOCK_COUNT 1 > + > +/** The number of timer frames per generic timer block > +*/ > +#define PLAT_GTFRAME_COUNT 2 > + > +/** The number of Processor Hierarchy Nodes > + - one package node > + - two cluster nodes > + - two cores in cluster 0 > + - two cores in cluster 1 > +*/ > +#define PLAT_PROC_HIERARCHY_NODE_COUNT 7 > + > +/** The number of unique cache structures: > + - cluster L3 unified cache > + - core L1 instruction cache > + - core L1 data cache > + - core L2 cache > + - slc unified cache > +*/ > +#define PLAT_CACHE_COUNT 5 > + > +/** The number of resources private to the cluster > + - L3 cache > +*/ > +#define CLUSTER_RESOURCE_COUNT 1 > + > +/** The number of resources private to 'core instance > + - L1 data cache > + - L1 instruction cache > +*/ > +#define CORE_RESOURCE_COUNT 2 > + > +/** The number of resources private to SoC > + - slc cache > +*/ > +#define SOC_RESOURCE_COUNT 1 > + > +/** Number of memory affinity entries > +*/ > +#define LOCAL_DDR_REGION1 0 > +#define LOCAL_DDR_REGION2 1 > +#define REMOTE_DDR_REGION1 2 > +#define REMOTE_DDR_REGION2 3 > +#define DDR_REGION_COUNT 4 > + > +enum { > + ITS_SMMU_CCIX =3D 0, > + ITS_SMMU_PCIE, > + ITS_CCIX, > + ITS_PCIE, > + ITS_MASTER_CHIP_MAX, > + ITS_REMOTE_SMMU_PCIE =3D ITS_MASTER_CHIP_MAX, > + ITS_REMOTE_PCIE, > + ITS_MAX > +}; [SAMI] Enums should be typedefed. Same comment for the other enums defined in this file. [/SAMI] > + > +enum { > + SMMUV3INFO_PCIE =3D 0, > + SMMUV3INFO_CCIX, > + SMMUV3INFO_MASTER_CHIP_MAX, > + SMMUV3INFO_REMOTE_PCIE =3D SMMUV3INFO_MASTER_CHIP_MAX, > + SMMUV3INFO_MAX > +}; > + > +enum { > + ROOT_PCIE =3D 0, > + ROOT_PCIE_CCIX, > + ROOT_PCIE_MASTER_CHIP_MAX, > + ROOT_REMOTE_PCIE =3D ROOT_PCIE_MASTER_CHIP_MAX, > + ROOT_PCIE_MAX > +}; > + > +enum { > + DEVICEIDMAPPING_SMMU_PCIE =3D 0, > + DEVICEIDMAPPING_SMMU_CCIX, > + DEVICEIDMAPPING_PCIE, > + DEVICEIDMAPPING_MASTER_CHIP_MAX, > + DEVICEIDMAPPING_REMOTE_SMMU_PCIE =3D DEVICEIDMAPPING_MASTER_CHIP_MAX, > + DEVICEIDMAPPING_REMOTE_PCIE, > + DEVICEIDMAPPING_MAX, > +}; > + > +/** A structure describing the platform configuration > + manager repository information > +*/ > +typedef struct PlatformRepositoryInfo { > + /// Configuration Manager Information > + CM_STD_OBJ_CONFIGURATION_MANAGER_INFO CmInfo; > + > + /// List of ACPI tables > + CM_STD_OBJ_ACPI_TABLE_INFO CmAcpiTableList[PLAT_ACPI_TABLE_= COUNT]; > + > + /// Boot architecture information > + CM_ARM_BOOT_ARCH_INFO BootArchInfo; > + > + /// Fixed feature flag information > + CM_ARM_FIXED_FEATURE_FLAGS FixedFeatureFlags; > + > + /// Power management profile information > + CM_ARM_POWER_MANAGEMENT_PROFILE_INFO PmProfileInfo; > + > + /// GIC CPU interface information > + CM_ARM_GICC_INFO GicCInfo[PLAT_CPU_COUNT * 2]; > + > + /// GIC distributor information > + CM_ARM_GICD_INFO GicDInfo; > + > + /// GIC Redistributor information > + CM_ARM_GIC_REDIST_INFO GicRedistInfo[2]; > + > + /// GIC ITS information > + CM_ARM_GIC_ITS_INFO GicItsInfo[ITS_MAX]; > + > + /// Generic timer information > + CM_ARM_GENERIC_TIMER_INFO GenericTimerInfo; > + > + /// Generic timer block information > + CM_ARM_GTBLOCK_INFO GTBlockInfo[PLAT_GTBLOCK_COUNT]; > + > + /// Generic timer frame information > + CM_ARM_GTBLOCK_TIMER_FRAME_INFO GTBlock0TimerInfo[PLAT_GTFRAME_C= OUNT]; > + > + /// Watchdog information > + CM_ARM_GENERIC_WATCHDOG_INFO Watchdog; > + > + /** Serial port information for the > + serial port console redirection port > + */ > + CM_ARM_SERIAL_PORT_INFO SpcrSerialPort; > + > + /// Serial port information for the DBG2 UART port > + CM_ARM_SERIAL_PORT_INFO DbgSerialPort; > + > + // Processor topology information > + CM_ARM_PROC_HIERARCHY_INFO ProcHierarchyInfo[PLAT_PROC_HIER= ARCHY_NODE_COUNT * 2]; > + > + // Cache information > + CM_ARM_CACHE_INFO CacheInfo[PLAT_CACHE_COUNT]; > + > + // Cluster private resources > + CM_ARM_OBJ_REF ClusterResources[CLUSTER_RESOURC= E_COUNT]; > + > + // Core private resources > + CM_ARM_OBJ_REF CoreResources[CORE_RESOURCE_COUN= T]; > + > + // SoC Resources > + CM_ARM_OBJ_REF SocResources[SOC_RESOURCE_COUNT]= ; > + > + /// ITS Group node > + CM_ARM_ITS_GROUP_NODE ItsGroupInfo[ITS_MAX]; > + > + /// ITS Identifier array > + CM_ARM_ITS_IDENTIFIER ItsIdentifierArray[ITS_MAX]; > + > + /// SMMUv3 node > + CM_ARM_SMMUV3_NODE SmmuV3Info[SMMUV3INFO_MAX]; > + > + /// PCI Root complex node > + CM_ARM_ROOT_COMPLEX_NODE RootComplexInfo[ROOT_PCIE_MAX]; > + > + /// Array of DeviceID mapping > + CM_ARM_ID_MAPPING DeviceIdMapping[DEVICEIDMAPPING_= MAX][2]; > + > + /// PCI configuration space information > + CM_ARM_PCI_CONFIG_SPACE_INFO PciConfigInfo[ROOT_PCIE_MAX]; > + > + /// Memory Affinity Info > + CM_ARM_MEMORY_AFFINITY_INFO MemAffInfo[DDR_REGION_COUNT]; > + > +} EDKII_PLATFORM_REPOSITORY_INFO; > + > +#endif // CONFIGURATION_MANAGER_H_ > diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/Platform.h b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManag= erDxe/Platform.h > new file mode 100644 > index 000000000000..a4a1d8504ffc > --- /dev/null > +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Pla= tform.h > @@ -0,0 +1,92 @@ > +/** @file > + > + Copyright (c) 2021, ARM Limited. All rights reserved.
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > + > +**/ > + > +#ifndef PLATFORM_H_ > +#define PLATFORM_H_ > + > +#define ENABLE_MEM_MAPPED_TIMER > + > +#ifdef ENABLE_MEM_MAPPED_TIMER > +// REFCLK CNTControl > +#define N1Sdp_SYSTEM_TIMER_BASE_ADDRESS 0x2A430000 [SAMI] Macro names should all be in capital letters. Same comment for other macros defined and used in this patch series. [/SAMI] > +// REFCLK CNTRead > +#define N1Sdp_CNT_READ_BASE_ADDRESS 0x2A800000 > +#else > +#define N1Sdp_SYSTEM_TIMER_BASE_ADDRESS 0xFFFFFFFFFFFFFFFF > +#define N1Sdp_CNT_READ_BASE_ADDRESS 0xFFFFFFFFFFFFFFFF > +#endif > + > +// GT Block Timer > +// AP_REFCLK CNTCTL > +#define N1Sdp_GT_BLOCK_CTL_BASE 0x2A810000 > +#define N1Sdp_TIMER_FRAMES_COUNT 2 > + > +// GT Block Timer Frames > +// AP_REFCLK_S CNTBase0 > +#define N1Sdp_GT_BLOCK_FRAME0_CTL_BASE 0x2A830000 > +#define N1Sdp_GT_BLOCK_FRAME0_CTL_EL0_BASE 0xFFFFFFFFFFFFFFFF > +#define N1Sdp_GT_BLOCK_FRAME0_GSIV 92 > + > +// AP_REFCLK_NS CNTBase1 > +#define N1Sdp_GT_BLOCK_FRAME1_CTL_BASE 0x2A820000 > +#define N1Sdp_GT_BLOCK_FRAME1_CTL_EL0_BASE 0xFFFFFFFFFFFFFFFF > +#define N1Sdp_GT_BLOCK_FRAME1_GSIV 91 > + > +#define GTDT_TIMER_EDGE_TRIGGERED \ > + EFI_ACPI_6_3_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE > +#define GTDT_TIMER_LEVEL_TRIGGERED 0 > +#define GTDT_TIMER_ACTIVE_LOW \ > + EFI_ACPI_6_3_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY > +#define GTDT_TIMER_ACTIVE_HIGH 0 > +#define GTDT_TIMER_SAVE_CONTEXT \ > + EFI_ACPI_6_3_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY > +#define GTDT_TIMER_LOSE_CONTEXT 0 > + > +#define N1Sdp_GTDT_GTIMER_FLAGS (GTDT_TIMER_LOSE_CONTEXT | \ > + GTDT_TIMER_ACTIVE_LOW | \ > + GTDT_TIMER_LEVEL_TRIGGERED) > + > +// GT Block Timer Flags > +#define GTX_TIMER_EDGE_TRIGGERED \ > + EFI_ACPI_6_3_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE > +#define GTX_TIMER_LEVEL_TRIGGERED 0 > +#define GTX_TIMER_ACTIVE_LOW \ > + EFI_ACPI_6_3_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY > +#define GTX_TIMER_ACTIVE_HIGH 0 > + > +#define N1Sdp_GTX_TIMER_FLAGS (GTX_TIMER_ACTIVE_HIGH | \ > + GTX_TIMER_LEVEL_TRIGGERED) > + > +#define GTX_TIMER_SECURE \ > + EFI_ACPI_6_3_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER > +#define GTX_TIMER_NON_SECURE 0 > +#define GTX_TIMER_SAVE_CONTEXT \ > + EFI_ACPI_6_3_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY > +#define GTX_TIMER_LOSE_CONTEXT 0 > + > +#define N1Sdp_GTX_COMMON_FLAGS_S (GTX_TIMER_SAVE_CONTEXT | \ > + GTX_TIMER_SECURE) > +#define N1Sdp_GTX_COMMON_FLAGS_NS (GTX_TIMER_SAVE_CONTEXT | \ > + GTX_TIMER_NON_SECURE) > + > +// Watchdog > +#define SBSA_WATCHDOG_EDGE_TRIGGERED \ > + EFI_ACPI_6_3_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_M= ODE > +#define SBSA_WATCHDOG_LEVEL_TRIGGERED 0 > +#define SBSA_WATCHDOG_ACTIVE_LOW \ > + EFI_ACPI_6_3_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_P= OLARITY > +#define SBSA_WATCHDOG_ACTIVE_HIGH 0 > +#define SBSA_WATCHDOG_SECURE \ > + EFI_ACPI_6_3_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER > +#define SBSA_WATCHDOG_NON_SECURE 0 > + > +#define N1Sdp_SBSA_WATCHDOG_FLAGS (SBSA_WATCHDOG_NON_SECURE = | \ > + SBSA_WATCHDOG_ACTIVE_HIGH = | \ > + SBSA_WATCHDOG_LEVEL_TRIGGERE= D) > + > +#endif // PLATFORM_H_ > diff --git a/Platform/ARM/N1Sdp/Include/N1SdpAcpiHeader.h b/Platform/ARM/= N1Sdp/Include/N1SdpAcpiHeader.h > new file mode 100644 > index 000000000000..e0ea26893810 > --- /dev/null > +++ b/Platform/ARM/N1Sdp/Include/N1SdpAcpiHeader.h > @@ -0,0 +1,35 @@ > +/** @file > + > + Copyright (c) 2021, ARM Limited. All rights reserved.
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > + > +**/ > + > +#ifndef N1Sdp_ACPI_HEADER_ > +#define N1Sdp_ACPI_HEADER_ [SAMI] File include guard must be in all capital letters. [/SAMI] > + > +// > +// ACPI table information used to initialize tables. > +// > +#define EFI_ACPI_ARM_OEM_ID 'A','R','M','L','T','D' // OEMID= 6 bytes long > +#define EFI_ACPI_ARM_OEM_TABLE_ID SIGNATURE_64('A','R','M','N','1','= S','D','P') // OEM table id 8 bytes long > +#define EFI_ACPI_ARM_OEM_REVISION 0x20181101 > +#define EFI_ACPI_ARM_CREATOR_ID SIGNATURE_32('A','R','M',' ') > +#define EFI_ACPI_ARM_CREATOR_REVISION 0x00000099 > + > +// A macro to initialise the common header part of EFI ACPI tables as de= fined by > +// EFI_ACPI_DESCRIPTION_HEADER structure. > +#define ARM_ACPI_HEADER(Signature, Type, Revision) { \ > + Signature, /* UINT32 Signature */ \ > + sizeof (Type), /* UINT32 Length */ \ > + Revision, /* UINT8 Revision */ \ > + 0, /* UINT8 Checksum */ \ > + { EFI_ACPI_ARM_OEM_ID }, /* UINT8 OemId[6] */ \ > + EFI_ACPI_ARM_OEM_TABLE_ID, /* UINT64 OemTableId */ \ > + EFI_ACPI_ARM_OEM_REVISION, /* UINT32 OemRevision */ \ > + EFI_ACPI_ARM_CREATOR_ID, /* UINT32 CreatorId */ \ > + EFI_ACPI_ARM_CREATOR_REVISION /* UINT32 CreatorRevision */ \ > + } > + > +#endif /* N1Sdp_ACPI_HEADER_ */ > diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/ConfigurationManager.c b/Platform/ARM/N1Sdp/ConfigurationManager/Config= urationManagerDxe/ConfigurationManager.c > new file mode 100644 > index 000000000000..fb264ba783af > --- /dev/null > +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Con= figurationManager.c > @@ -0,0 +1,2197 @@ > +/** @file > + Configuration Manager Dxe > + > + Copyright (c) 2021, ARM Limited. All rights reserved.
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > + > + @par Glossary: > + - Cm or CM - Configuration Manager > + - Obj or OBJ - Object > +**/ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include "ConfigurationManager.h" > +#include "N1SdpAcpiHeader.h" > +#include "Platform.h" > + > +extern struct EFI_ACPI_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE Hmat; > + > +/** The platform configuration repository information. > +*/ > +STATIC > +EDKII_PLATFORM_REPOSITORY_INFO N1sdpRepositoryInfo =3D { > + // Configuration Manager information > + { CONFIGURATION_MANAGER_REVISION, CFG_MGR_OEM_ID }, > + > + // ACPI Table List > + { > + // FADT Table > + { > + EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE, > + EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdFadt), > + NULL > + }, > + // GTDT Table > + { > + EFI_ACPI_6_3_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE, > + EFI_ACPI_6_3_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdGtdt), > + NULL > + }, > + // MADT Table > + { > + EFI_ACPI_6_3_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE, > + EFI_ACPI_6_3_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdMadt), > + NULL > + }, > + // SPCR Table > + { > + EFI_ACPI_6_3_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE, > + EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdSpcr), > + NULL > + }, > + // DSDT Table > + { > + EFI_ACPI_6_3_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE, > + 0, // Unused > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdDsdt), > + (EFI_ACPI_DESCRIPTION_HEADER*)dsdt_aml_code > + }, > + // DBG2 Table > + { > + EFI_ACPI_6_3_DEBUG_PORT_2_TABLE_SIGNATURE, > + EFI_ACPI_DBG2_DEBUG_DEVICE_INFORMATION_STRUCT_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdDbg2), > + NULL > + }, > + // PPTT Table > + { > + EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATU= RE, > + EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdPptt), > + NULL > + }, > + // IORT Table > + { > + EFI_ACPI_6_3_IO_REMAPPING_TABLE_SIGNATURE, > + EFI_ACPI_IO_REMAPPING_TABLE_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdIort), > + NULL > + }, > + // PCI MCFG Table > + { > + EFI_ACPI_6_3_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_AD= DRESS_DESCRIPTION_TABLE_SIGNATURE, > + EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_TABLE_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdMcfg), > + NULL, > + SIGNATURE_64 ('A','R','M','N','1','S','D','P'), > + 0x20181101 > + }, > + // SSDT table describing the PCI root complex > + { > + EFI_ACPI_6_3_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE, > + 0, // Unused > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdSsdt), > + (EFI_ACPI_DESCRIPTION_HEADER*)ssdtpci_aml_code > + }, > + // SRAT Table > + { > + EFI_ACPI_6_3_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE, > + EFI_ACPI_6_3_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdSrat), > + NULL > + }, > + // HMAT Table > + { > + EFI_ACPI_6_3_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE, > + EFI_ACPI_6_3_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_REVISION, > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdRaw), > + (EFI_ACPI_DESCRIPTION_HEADER*)&Hmat > + }, > + // SSDT table describing the Remote Chip PCI root complex > + { > + EFI_ACPI_6_3_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE, > + 0, // Unused > + CREATE_STD_ACPI_TABLE_GEN_ID (EStdAcpiTableIdSsdt), > + (EFI_ACPI_DESCRIPTION_HEADER*)ssdtremotepci_aml_code > + }, > + }, > + > + // Boot architecture information > + { EFI_ACPI_6_3_ARM_PSCI_COMPLIANT }, // BootArchFlags > + > + // Fixed feature flag information > + { EFI_ACPI_6_3_HEADLESS }, // Fixed feature fla= gs > + > + // Power management profile information > + { EFI_ACPI_6_3_PM_PROFILE_ENTERPRISE_SERVER }, // PowerManagement P= rofile > + > + /* GIC CPU Interface information > + GICC_ENTRY (CPUInterfaceNumber, Mpidr, PmuIrq, VGicIrq, GicRedistBa= se, > + EnergyEfficiency, SpeIrq, ProximityDomain, ClockDomain) > + */ > + { > + GICC_ENTRY (0, GET_MPID3 (0x0, 0x0, 0x0, 0x0), 23, 25, 0, 0, 21, 0, = 0), > + GICC_ENTRY (1, GET_MPID3 (0x0, 0x0, 0x1, 0x0), 23, 25, 0, 0, 21, 0, = 0), > + GICC_ENTRY (2, GET_MPID3 (0x0, 0x1, 0x0, 0x0), 23, 25, 0, 0, 21, 0, = 0), > + GICC_ENTRY (3, GET_MPID3 (0x0, 0x1, 0x1, 0x0), 23, 25, 0, 0, 21, 0, = 0), > + GICC_ENTRY (4, GET_MPID3 (0x1, 0x0, 0x0, 0x0), 23, 25, 0, 0, 21, 1, = 0), > + GICC_ENTRY (5, GET_MPID3 (0x1, 0x0, 0x1, 0x0), 23, 25, 0, 0, 21, 1, = 0), > + GICC_ENTRY (6, GET_MPID3 (0x1, 0x1, 0x0, 0x0), 23, 25, 0, 0, 21, 1, = 0), > + GICC_ENTRY (7, GET_MPID3 (0x1, 0x1, 0x1, 0x0), 23, 25, 0, 0, 21, 1, = 0), > + }, > + > + // GIC Distributor Info > + { > + FixedPcdGet64 (PcdGicDistributorBase), // UINT64 PhysicalBaseAddre= ss > + 0, // UINT32 SystemVectorBase > + 3 // UINT8 GicVersion > + }, > + > + // GIC Re-Distributor Info > + { > + { > + // UINT64 DiscoveryRangeBaseAddress > + FixedPcdGet64 (PcdGicRedistributorsBase), > + // UINT32 DiscoveryRangeLength > + SIZE_1MB > + }, > + { > + // UINT64 DiscoveryRangeBaseAddress > + FixedPcdGet64 (PcdGicRedistributorsBase) + (1ULL << 42), > + // UINT32 DiscoveryRangeLength > + SIZE_1MB > + }, > + }, > + > + // GIC ITS > + { > + // GIC ITS - CCIX TCU > + { > + // The GIC ITS ID. > + 0, > + // The physical address for the Interrupt Translation Service > + 0x30040000, > + //Proximity Domain > + 0 > + }, > + // GIC ITS - PCIe TCU > + { > + // The GIC ITS ID. > + 1, > + // The physical address for the Interrupt Translation Service > + 0x30060000, > + //Proximity Domain > + 0 > + }, > + // GIC ITS - CCIX RC > + { > + // The GIC ITS ID. > + 2, > + // The physical address for the Interrupt Translation Service > + 0x30080000, > + //Proximity Domain > + 0 > + }, > + // GIC ITS - PCIe RC > + { > + // The GIC ITS ID. > + 3, > + // The physical address for the Interrupt Translation Service > + 0x300A0000, > + //Proximity Domain > + 0 > + }, > + //Remote chip GIC ITS - PCIe TCU > + { > + ITS_REMOTE_SMMU_PCIE, > + 0x40030060000, > + 1 > + }, > + //Remote chip GIC ITS - PCIe RC > + { > + ITS_REMOTE_PCIE, > + 0x400300a0000, > + 1 > + }, > + }, > + > + // Generic Timer Info > + { > + // The physical base address for the counter control frame > + N1Sdp_SYSTEM_TIMER_BASE_ADDRESS, > + // The physical base address for the counter read frame > + N1Sdp_CNT_READ_BASE_ADDRESS, > + // The secure PL1 timer interrupt > + FixedPcdGet32 (PcdArmArchTimerSecIntrNum), > + // The secure PL1 timer flags > + N1Sdp_GTDT_GTIMER_FLAGS, > + // The non-secure PL1 timer interrupt > + FixedPcdGet32 (PcdArmArchTimerIntrNum), > + // The non-secure PL1 timer flags > + N1Sdp_GTDT_GTIMER_FLAGS, > + // The virtual timer interrupt > + FixedPcdGet32 (PcdArmArchTimerVirtIntrNum), > + // The virtual timer flags > + N1Sdp_GTDT_GTIMER_FLAGS, > + // The non-secure PL2 timer interrupt > + FixedPcdGet32 (PcdArmArchTimerHypIntrNum), > + // The non-secure PL2 timer flags > + N1Sdp_GTDT_GTIMER_FLAGS > + }, > + > + // Generic Timer Block Information > + { > + { > + // The physical base address for the GT Block Timer structure > + N1Sdp_GT_BLOCK_CTL_BASE, > + // The number of timer frames implemented in the GT Block > + N1Sdp_TIMER_FRAMES_COUNT, > + // Reference token for the GT Block timer frame list > + REFERENCE_TOKEN (GTBlock0TimerInfo) > + } > + }, > + > + // GT Block Timer Frames > + { > + // Frame 0 > + { > + 0, // UINT8 FrameNumber > + N1Sdp_GT_BLOCK_FRAME0_CTL_BASE, // UINT64 PhysicalAddressCntB= ase > + N1Sdp_GT_BLOCK_FRAME0_CTL_EL0_BASE, // UINT64 PhysicalAddressCntE= L0Base > + N1Sdp_GT_BLOCK_FRAME0_GSIV, // UINT32 PhysicalTimerGSIV > + N1Sdp_GTX_TIMER_FLAGS, // UINT32 PhysicalTimerFlags > + 0, // UINT32 VirtualTimerGSIV > + 0, // UINT32 VirtualTimerFlags > + N1Sdp_GTX_COMMON_FLAGS_NS // UINT32 CommonFlags > + }, > + // Frame 1 > + { > + 1, // UINT8 FrameNumber > + N1Sdp_GT_BLOCK_FRAME1_CTL_BASE, // UINT64 PhysicalAddressCntB= ase > + N1Sdp_GT_BLOCK_FRAME1_CTL_EL0_BASE, // UINT64 PhysicalAddressCntE= L0Base > + N1Sdp_GT_BLOCK_FRAME1_GSIV, // UINT32 PhysicalTimerGSIV > + N1Sdp_GTX_TIMER_FLAGS, // UINT32 PhysicalTimerFlags > + 0, // UINT32 VirtualTimerGSIV > + 0, // UINT32 VirtualTimerFlags > + N1Sdp_GTX_COMMON_FLAGS_S // UINT32 CommonFlags > + }, > + }, > + > + // Watchdog Info > + { > + // The physical base address of the SBSA Watchdog control frame > + FixedPcdGet64 (PcdGenericWatchdogControlBase), > + // The physical base address of the SBSA Watchdog refresh frame > + FixedPcdGet64 (PcdGenericWatchdogRefreshBase), > + // The watchdog interrupt > + FixedPcdGet32 (PcdGenericWatchdogEl2IntrNum), > + // The watchdog flags > + N1Sdp_SBSA_WATCHDOG_FLAGS > + }, > + > + // SPCR Serial Port > + { > + FixedPcdGet64 (PcdSerialRegisterBase), // BaseAddre= ss > + FixedPcdGet32 (PL011UartInterrupt), // Interrupt > + FixedPcdGet64 (PcdUartDefaultBaudRate), // BaudRate > + FixedPcdGet32 (PL011UartClkInHz), // Clock > + EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_ARM_PL011_UART // Port subt= ype > + }, > + > + // Debug Serial Port > + { > + FixedPcdGet64 (PcdSerialDbgRegisterBase), // BaseAddre= ss > + 0, // Interrupt= -unused > + FixedPcdGet64 (PcdSerialDbgUartBaudRate), // BaudRate > + FixedPcdGet32 (PcdSerialDbgUartClkInHz), // Clock > + EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_ARM_PL011_UART // Port subt= ype > + }, > + > + // Processor Hierarchy Nodes > + { > + // Package > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[0]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_INVALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_NOT_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + CM_NULL_TOKEN, > + // CM_OBJECT_TOKEN GicCToken > + CM_NULL_TOKEN, > + // UINT32 NoOfPrivateResources > + SOC_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (SocResources) > + }, > + // Cluster0 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[1]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_INVALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_NOT_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[0]), // -> Package > + // CM_OBJECT_TOKEN GicCToken > + CM_NULL_TOKEN, > + // UINT32 NoOfPrivateResources > + CLUSTER_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (ClusterResources) > + }, > + // Cluster1 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[2]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_INVALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_NOT_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[0]), // -> Package > + // CM_OBJECT_TOKEN GicCToken > + CM_NULL_TOKEN, > + // UINT32 NoOfPrivateResources > + CLUSTER_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (ClusterResources) > + }, > + // Cluster0 - Cpu0 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[3]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_VALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_NOT_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[1]), // -> 'cluster in Cluster0 > + // CM_OBJECT_TOKEN GicCToken > + REFERENCE_TOKEN (GicCInfo[0]), > + // UINT32 NoOfPrivateResources > + CORE_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (CoreResources) > + }, > + // Cluster0 - Cpu1 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[4]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_VALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_NOT_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[1]), // -> 'cluster in Cluster0 > + // CM_OBJECT_TOKEN GicCToken > + REFERENCE_TOKEN (GicCInfo[1]), > + // UINT32 NoOfPrivateResources > + CORE_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (CoreResources) > + }, > + // Cluster1 - Cpu0 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[3]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_VALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_NOT_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[2]), // -> 'cluster in Cluster1 > + // CM_OBJECT_TOKEN GicCToken > + REFERENCE_TOKEN (GicCInfo[2]), > + // UINT32 NoOfPrivateResources > + CORE_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (CoreResources) > + }, > + // Cluster1 - Cpu1 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[4]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_VALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_NOT_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[2]), // -> 'cluster in Cluster1 > + // CM_OBJECT_TOKEN GicCToken > + REFERENCE_TOKEN (GicCInfo[3]), > + // UINT32 NoOfPrivateResources > + CORE_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (CoreResources) > + }, > + // Slave chip hierarchy > + // Package > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[7]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_INVALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_NOT_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + CM_NULL_TOKEN, > + // CM_OBJECT_TOKEN GicCToken > + CM_NULL_TOKEN, > + // UINT32 NoOfPrivateResources > + SOC_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (SocResources) > + }, > + // Cluster0 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[8]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_INVALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_NOT_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[7]), // -> Package > + // CM_OBJECT_TOKEN GicCToken > + CM_NULL_TOKEN, > + // UINT32 NoOfPrivateResources > + CLUSTER_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (ClusterResources) > + }, > + // Cluster1 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[9]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_INVALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_NOT_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[7]), // -> Package > + // CM_OBJECT_TOKEN GicCToken > + CM_NULL_TOKEN, > + // UINT32 NoOfPrivateResources > + CLUSTER_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (ClusterResources) > + }, > + // Cluster0 - Cpu0 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[10]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_VALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_NOT_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[8]), // -> 'cluster in Cluster0 > + // CM_OBJECT_TOKEN GicCToken > + REFERENCE_TOKEN (GicCInfo[4]), > + // UINT32 NoOfPrivateResources > + CORE_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (CoreResources) > + }, > + // Cluster0 - Cpu1 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[11]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_VALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_NOT_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[8]), // -> 'cluster in Cluster0 > + // CM_OBJECT_TOKEN GicCToken > + REFERENCE_TOKEN (GicCInfo[5]), > + // UINT32 NoOfPrivateResources > + CORE_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (CoreResources) > + }, > + // Cluster1 - Cpu0 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[10]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_VALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_NOT_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[9]), // -> 'cluster in Cluster1 > + // CM_OBJECT_TOKEN GicCToken > + REFERENCE_TOKEN (GicCInfo[6]), > + // UINT32 NoOfPrivateResources > + CORE_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (CoreResources) > + }, > + // Cluster1 - Cpu1 > + { > + // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (ProcHierarchyInfo[11]), > + // UINT32 Flags > + PROC_NODE_FLAGS ( > + EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL, > + EFI_ACPI_6_3_PPTT_PROCESSOR_ID_VALID, > + EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD, > + EFI_ACPI_6_3_PPTT_NODE_IS_LEAF, > + EFI_ACPI_6_3_PPTT_IMPLEMENTATION_NOT_IDENTICAL > + ), > + // CM_OBJECT_TOKEN ParentToken > + REFERENCE_TOKEN (ProcHierarchyInfo[9]), // -> 'cluster in Cluster1 > + // CM_OBJECT_TOKEN GicCToken > + REFERENCE_TOKEN (GicCInfo[7]), > + // UINT32 NoOfPrivateResources > + CORE_RESOURCE_COUNT, > + // CM_OBJECT_TOKEN PrivateResourcesArrayToken > + REFERENCE_TOKEN (CoreResources) > + }, > + }, > + > + // Cache information > + { > + // 'cluster's L3 cache > + { > + REFERENCE_TOKEN (CacheInfo[0]), // CM_OBJECT_TOKEN Token > + CM_NULL_TOKEN, // CM_OBJECT_TOKEN NextLevelOfCa= cheToken > + SIZE_1MB, // UINT32 Size > + 2048, // UINT32 NumberOfSets > + 8, // UINT32 Associativity > + CACHE_ATTRIBUTES ( // UINT8 Attributes > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_ALLOCATION_READ, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK > + ), > + 64 // UINT16 LineSize > + }, > + // 'core's L1 instruction cache > + { > + REFERENCE_TOKEN (CacheInfo[1]), // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (CacheInfo[3]), // CM_OBJECT_TOKEN NextLevelOfCa= cheToken > + SIZE_64KB, // UINT32 Size > + 256, // UINT32 NumberOfSets > + 4, // UINT32 Associativity > + CACHE_ATTRIBUTES ( // UINT8 Attributes > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_ALLOCATION_READ, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK > + ), > + 64 // UINT16 LineSize > + }, > + // 'core's L1 data cache > + { > + REFERENCE_TOKEN (CacheInfo[2]), // CM_OBJECT_TOKEN Token > + REFERENCE_TOKEN (CacheInfo[3]), // CM_OBJECT_TOKEN NextLevelOfCa= cheToken > + SIZE_64KB, // UINT32 Size > + 256, // UINT32 NumberOfSets > + 4, // UINT32 Associativity > + CACHE_ATTRIBUTES ( // UINT8 Attributes > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_CACHE_TYPE_DATA, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK > + ), > + 64 // UINT16 LineSize > + }, > + // cores's L2 cache > + { > + REFERENCE_TOKEN (CacheInfo[3]), // CM_OBJECT_TOKEN Token > + CM_NULL_TOKEN, // CM_OBJECT_TOKEN NextLevelOfCa= cheToken > + SIZE_1MB, // UINT32 Size > + 2048, // UINT32 NumberOfSets > + 8, // UINT32 Associativity > + CACHE_ATTRIBUTES ( // UINT8 Attributes > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_ALLOCATION_READ, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK > + ), > + 64 // UINT16 LineSize > + }, > + // slc cache > + { > + REFERENCE_TOKEN (CacheInfo[4]), // CM_OBJECT_TOKEN Token > + CM_NULL_TOKEN, // CM_OBJECT_TOKEN NextLevelOfCa= cheToken > + SIZE_8MB, // UINT32 Size > + 8192, // UINT32 NumberOfSets > + 16, // UINT32 Associativity > + CACHE_ATTRIBUTES ( // UINT8 Attributes > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_ALLOCATION_READ, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED, > + EFI_ACPI_6_3_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK > + ), > + 64 // UINT16 LineSize > + }, > + }, > + > + // Resources private to the 'cluster (shared among cores) in Cluster > + { > + { REFERENCE_TOKEN (CacheInfo[0]) } // -> 'cluster's L3 cache in Clu= ster > + }, > + > + // Resources private to each individual 'core instance in Cluster > + { > + { REFERENCE_TOKEN (CacheInfo[1]) }, // -> 'core's L1 I-cache in Clus= ter > + { REFERENCE_TOKEN (CacheInfo[2]) } // -> 'core's L1 D-cache in Clus= ter > + }, > + > + // Resources private to the SoC > + { > + { REFERENCE_TOKEN (CacheInfo[4]) }, // -> slc for SoC > + }, > + > + // ITS group node > + { > + { > + // Reference token for this Iort node > + REFERENCE_TOKEN (ItsGroupInfo[ITS_SMMU_CCIX]), > + // The number of ITS identifiers in the ITS node. > + 1, > + // Reference token for the ITS identifier array > + REFERENCE_TOKEN (ItsIdentifierArray[ITS_SMMU_CCIX]) > + }, > + { > + // Reference token for this Iort node > + REFERENCE_TOKEN (ItsGroupInfo[ITS_SMMU_PCIE]), > + // The number of ITS identifiers in the ITS node. > + 1, > + // Reference token for the ITS identifier array > + REFERENCE_TOKEN (ItsIdentifierArray[ITS_SMMU_PCIE]) > + }, > + { > + // Reference token for this Iort node > + REFERENCE_TOKEN (ItsGroupInfo[ITS_CCIX]), > + // The number of ITS identifiers in the ITS node. > + 1, > + // Reference token for the ITS identifier array > + REFERENCE_TOKEN (ItsIdentifierArray[ITS_CCIX]) > + }, > + { > + // Reference token for this Iort node > + REFERENCE_TOKEN (ItsGroupInfo[ITS_PCIE]), > + // The number of ITS identifiers in the ITS node. > + 1, > + // Reference token for the ITS identifier array > + REFERENCE_TOKEN (ItsIdentifierArray[ITS_PCIE]) > + }, > + //Remote Chip ITS > + { > + REFERENCE_TOKEN (ItsGroupInfo[ITS_REMOTE_SMMU_PCIE]), > + 1, > + REFERENCE_TOKEN (ItsIdentifierArray[ITS_REMOTE_SMMU_PCIE]) > + }, > + { > + REFERENCE_TOKEN (ItsGroupInfo[ITS_REMOTE_PCIE]), > + 1, > + REFERENCE_TOKEN (ItsIdentifierArray[ITS_REMOTE_PCIE]) > + }, > + }, > + > + // ITS identifier array > + { > + { > + // The ITS Identifier - 0 > + ITS_SMMU_CCIX > + }, > + { > + // The ITS Identifier - 1 > + ITS_SMMU_PCIE > + }, > + { > + // The ITS Identifier - 2 > + ITS_CCIX > + }, > + { > + // The ITS Identifier - 3 > + ITS_PCIE > + }, > + { > + // The ITS Identifier - 4 > + ITS_REMOTE_SMMU_PCIE > + }, > + { > + // The ITS Identifier - 5 > + ITS_REMOTE_PCIE > + } > + }, > + > + { > + // SMMUv3 Node > + { > + // Reference token for this Iort node > + REFERENCE_TOKEN (SmmuV3Info[SMMUV3INFO_PCIE]), > + // Number of ID mappings > + 2, > + // Reference token for the ID mapping array > + REFERENCE_TOKEN (DeviceIdMapping[DEVICEIDMAPPING_SMMU_PCIE][0]), > + // SMMU Base Address > + 0x4F400000, > + // SMMU flags > + EFI_ACPI_IORT_SMMUv3_FLAG_COHAC_OVERRIDE, > + // VATOS address > + 0, > + // Model > + EFI_ACPI_IORT_SMMUv3_MODEL_GENERIC, > + // GSIV of the Event interrupt if SPI based > + 0x10B, > + // PRI Interrupt if SPI based > + 0, > + // GERR interrupt if GSIV based > + 0x10D, > + // Sync interrupt if GSIV based > + 0x10C, > + // Proximity domain flag, ignored in this case > + 0, > + // Index into the array of ID mapping > + 1 > + }, > + // SMMUv3 Node > + { > + // Reference token for this Iort node > + REFERENCE_TOKEN (SmmuV3Info[SMMUV3INFO_CCIX]), > + // Number of ID mappings > + 2, > + // Reference token for the ID mapping array > + REFERENCE_TOKEN (DeviceIdMapping[DEVICEIDMAPPING_SMMU_CCIX][0]), > + // SMMU Base Address > + 0x4F000000, > + // SMMU flags > + EFI_ACPI_IORT_SMMUv3_FLAG_COHAC_OVERRIDE, > + // VATOS address > + 0, > + // Model > + EFI_ACPI_IORT_SMMUv3_MODEL_GENERIC, > + // GSIV of the Event interrupt if SPI based > + 0x104, > + // PRI Interrupt if SPI based > + 0, > + // GERR interrupt if GSIV based > + 0x106, > + // Sync interrupt if GSIV based > + 0x105, > + // Proximity domain flag, ignored in this case > + 0, > + // Index into the array of ID mapping > + 1 > + }, > + //Remote Chip SMMU V3 setting > + { > + REFERENCE_TOKEN (SmmuV3Info[SMMUV3INFO_REMOTE_PCIE]), > + 2, > + REFERENCE_TOKEN (DeviceIdMapping[DEVICEIDMAPPING_REMOTE_SMMU_PCIE]= [0]), > + 0x4004f400000, > + EFI_ACPI_IORT_SMMUv3_FLAG_COHAC_OVERRIDE, > + 0, > + EFI_ACPI_IORT_SMMUv3_MODEL_GENERIC, > + 747, > + 0, > + 749, > + 748, > + 0, > + 1 > + } > + }, > + > + { > + // Root Complex node info > + { > + // Reference token for this Iort node > + REFERENCE_TOKEN (RootComplexInfo[0]), > + // Number of ID mappings > + 1, > + // Reference token for the ID mapping array > + REFERENCE_TOKEN (DeviceIdMapping[DEVICEIDMAPPING_PCIE][0]), > + // Memory access properties : Cache coherent attributes > + EFI_ACPI_IORT_MEM_ACCESS_PROP_CCA, > + // Memory access properties : Allocation hints > + 0, > + // Memory access properties : Memory access flags > + 0, > + // ATS attributes > + EFI_ACPI_IORT_ROOT_COMPLEX_ATS_SUPPORTED, > + // PCI segment number > + 0, > + // Memory address size limit > + 42 > + }, > + // Root Complex node info > + { > + // Reference token for this Iort node > + REFERENCE_TOKEN (RootComplexInfo[1]), > + // Number of ID mappings > + 1, > + // Reference token for the ID mapping array > + REFERENCE_TOKEN (DeviceIdMapping[DEVICEIDMAPPING_PCIE][1]), > + // Memory access properties : Cache coherent attributes > + EFI_ACPI_IORT_MEM_ACCESS_PROP_CCA, > + // Memory access properties : Allocation hints > + 0, > + // Memory access properties : Memory access flags > + 0, > + // ATS attributes > + EFI_ACPI_IORT_ROOT_COMPLEX_ATS_SUPPORTED, > + // PCI segment number > + 1, > + // Memory address size limit > + 42 > + }, > + //Remote Chip Root Complex node Info > + { > + REFERENCE_TOKEN (RootComplexInfo[ROOT_REMOTE_PCIE]), > + 1, > + REFERENCE_TOKEN (DeviceIdMapping[DEVICEIDMAPPING_REMOTE_PCIE][0]), > + EFI_ACPI_IORT_MEM_ACCESS_PROP_CCA, > + 0, > + 0, > + EFI_ACPI_IORT_ROOT_COMPLEX_ATS_SUPPORTED, > + 2, > + 42 > + } > + }, > + > + // Array of Device ID mappings > + { > + // DeviceIdMapping[0][0] - [0][1] > + { > + // Mapping SMMUv3 -> ITS Group > + // SMMUv3 device ID mapping > + { > + // Input base > + 0x0, > + // Number of input IDs > + 0x0000FFFF, > + // Output Base > + 0x0, > + // Output reference > + REFERENCE_TOKEN (ItsGroupInfo[ITS_PCIE]), > + // Flags > + 0 > + }, > + // SMMUv3 device ID mapping > + { > + // Input base > + 0x0, > + // Number of input IDs > + 0x00000001, > + // Output Base > + 0x0, > + // Output reference token for the IORT node > + REFERENCE_TOKEN (ItsGroupInfo[ITS_SMMU_PCIE]), > + // Flags > + EFI_ACPI_IORT_ID_MAPPING_FLAGS_SINGLE > + } > + }, > + // DeviceIdMapping[1][0] - [1][1] > + { > + // Mapping SMMUv3 -> ITS Group > + // SMMUv3 device ID mapping > + { > + // Input base > + 0x0, > + // Number of input IDs > + 0x0000FFFF, > + // Output Base > + 0x0, > + // Output reference > + REFERENCE_TOKEN (ItsGroupInfo[ITS_CCIX]), > + // Flags > + 0 > + }, > + // SMMUv3 device ID mapping > + { > + // Input base > + 0x0, > + // Number of input IDs > + 0x00000001, > + // Output Base > + 0x0, > + // Output reference token for the IORT node > + REFERENCE_TOKEN (ItsGroupInfo[ITS_SMMU_CCIX]), > + // Flags > + EFI_ACPI_IORT_ID_MAPPING_FLAGS_SINGLE > + } > + }, > + // DeviceIdMapping[2][0] - [2][1] > + { > + // Mapping for RootComplex -> SMMUv3 > + // Device ID mapping for Root complex node > + { > + // Input base > + 0x0, > + // Number of input IDs > + 0x0000FFFF, > + // Output Base > + 0x0, > + // Output reference > + REFERENCE_TOKEN (SmmuV3Info[SMMUV3INFO_PCIE]), > + // Flags > + 0 > + }, > + // Device ID mapping for Root complex node > + { > + // Input base > + 0x0, > + // Number of input IDs > + 0x0000FFFF, > + // Output Base > + 0x0, > + // Output reference token for the IORT node > + REFERENCE_TOKEN (SmmuV3Info[SMMUV3INFO_CCIX]), > + // Flags > + 0 > + } > + }, > + // Mapping of Remote Chip SMMUv3 -> ITS Group > + { > + { > + 0x0, > + 0x0000ffff, > + 0x0, > + REFERENCE_TOKEN (ItsGroupInfo[ITS_REMOTE_PCIE]), > + 0 > + }, > + { > + 0x0, > + 0x00000001, > + 0x0, > + REFERENCE_TOKEN (ItsGroupInfo[ITS_REMOTE_SMMU_PCIE]), > + EFI_ACPI_IORT_ID_MAPPING_FLAGS_SINGLE > + } > + }, > + // Mapping for Remote Chip RootComplex -> SMMUv3 > + { > + { > + 0x0, > + 0x0000ffff, > + 0x0, > + REFERENCE_TOKEN (SmmuV3Info[SMMUV3INFO_REMOTE_PCIE]), > + 0 > + } > + }, > + }, > + > + // PCI Configuration Space Info > + { > + // PCIe ECAM > + { > + 0x70000000, // Base Address > + 0x0, // Segment Group Number > + 0x0, // Start Bus Number > + 17 // End Bus Number > + }, > + // CCIX ECAM > + { > + 0x68000000, // Base Address > + 0x1, // Segment Group Number > + 0x0, // Start Bus Number > + 17 // End Bus Number > + }, > + //Remote Chip PCIe ECAM > + { > + 0x40070000000, // Base Address > + 0x2, // Segment Group Number > + 0x0, // Start Bus Number > + 17 // End Bus Number > + } > + }, > + > + // Memory Affinity Info > + { > + { > + // Proximity domain to which memory range belongs > + 0, > + //Base Address > + 0x80000000, > + //Length > + 0x80000000, > + //Flags > + EFI_ACPI_6_3_MEMORY_ENABLED > + }, > + { > + // Proximity domain to which memory range belongs > + 0, > + //Base Address > + 0x8080000000, > + //Length is updated dynamically from SRAM > + 0, > + //Flags > + EFI_ACPI_6_3_MEMORY_ENABLED > + } > + } > + > +}; > + > +/** A helper function for returning the Configuration Manager Objects. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Object Pointer to the Object(s). > + @param [in] ObjectSize Total size of the Object(s). > + @param [in] ObjectCount Number of Objects. > + @param [in, out] CmObjectDesc Pointer to the Configuration Manager = Object > + descriptor describing the requested O= bject. > + @retval EFI_SUCCESS Success. > +**/ > +STATIC > +EFI_STATUS > +EFIAPI > +HandleCmObject ( > + IN CONST CM_OBJECT_ID CmObjectId, > + IN VOID * Object, > + IN CONST UINTN ObjectSize, > + IN CONST UINTN ObjectCount, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObjectDesc > + ) > +{ > + CmObjectDesc->ObjectId =3D CmObjectId; > + CmObjectDesc->Size =3D ObjectSize; > + CmObjectDesc->Data =3D (VOID*)Object; > + CmObjectDesc->Count =3D ObjectCount; > + DEBUG (( > + DEBUG_INFO, > + "INFO: CmObjectId =3D %x, Ptr =3D 0x%p, Size =3D %d, Count =3D %d\n"= , > + CmObjectId, > + CmObjectDesc->Data, > + CmObjectDesc->Size, > + CmObjectDesc->Count > + )); > + return EFI_SUCCESS; > +} > + > +/** A helper function for returning the Configuration Manager Objects th= at > + match the token. > + @param [in] This Pointer to the Configuration Manager P= rotocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Object Pointer to the Object(s). > + @param [in] ObjectSize Total size of the Object(s). > + @param [in] ObjectCount Number of Objects. > + @param [in] Token A token identifying the object. > + @param [in] HandlerProc A handler function to search the objec= t > + referenced by the token. > + @param [in, out] CmObjectDesc Pointer to the Configuration Manager O= bject > + descriptor describing the requested Ob= ject. > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not f= ound. > +**/ > +STATIC > +EFI_STATUS > +EFIAPI > +HandleCmObjectRefByToken ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN VOID * Object, > + IN CONST UINTN ObjectSize, > + IN CONST UINTN ObjectCount, > + IN CONST CM_OBJECT_TOKEN Token, > + IN CONST CM_OBJECT_HANDLER_PROC HandlerProc, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObjectDesc > + ) > +{ > + EFI_STATUS Status; > + CmObjectDesc->ObjectId =3D CmObjectId; > + if (Token =3D=3D CM_NULL_TOKEN) { > + CmObjectDesc->Size =3D ObjectSize; > + CmObjectDesc->Data =3D (VOID*)Object; > + CmObjectDesc->Count =3D ObjectCount; > + Status =3D EFI_SUCCESS; > + } else { > + Status =3D HandlerProc (This, CmObjectId, Token, CmObjectDesc); > + } > + > + DEBUG (( > + DEBUG_INFO, > + "INFO: Token =3D 0x%p, CmObjectId =3D %x, Ptr =3D 0x%p, Size =3D %d,= Count =3D %d\n", > + (VOID*)Token, > + CmObjectId, > + CmObjectDesc->Data, > + CmObjectDesc->Size, > + CmObjectDesc->Count > + )); > + return Status; > +} > + > +/** A helper function for returning Configuration Manager Object(s) refe= renced > + by token when the entire platform repository is in scope and the > + CM_NULL_TOKEN value is not allowed. > + @param [in] This Pointer to the Configuration Manager P= rotocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token A token identifying the object. > + @param [in] HandlerProc A handler function to search the objec= t(s) > + referenced by the token. > + @param [in, out] CmObjectDesc Pointer to the Configuration Manager O= bject > + descriptor describing the requested Ob= ject. > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not f= ound. > +**/ > +STATIC > +EFI_STATUS > +EFIAPI > +HandleCmObjectSearchPlatformRepo ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token, > + IN CONST CM_OBJECT_HANDLER_PROC HandlerProc, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObjectDesc > + ) > +{ > + EFI_STATUS Status; > + CmObjectDesc->ObjectId =3D CmObjectId; > + if (Token =3D=3D CM_NULL_TOKEN) { > + DEBUG (( > + DEBUG_ERROR, > + "ERROR: CM_NULL_TOKEN value is not allowed when searching" > + " the entire platform repository.\n" > + )); > + return EFI_INVALID_PARAMETER; > + } > + > + Status =3D HandlerProc (This, CmObjectId, Token, CmObjectDesc); > + DEBUG (( > + DEBUG_INFO, > + "INFO: Token =3D 0x%p, CmObjectId =3D %x, Ptr =3D 0x%p, Size =3D %d,= Count =3D %d\n", > + CmObjectId, > + (VOID*)Token, > + CmObjectDesc->Data, > + CmObjectDesc->Size, > + CmObjectDesc->Count > + )); > + return Status; > +} > + > +/** Initialize the Platform Configuration Repository. > + @param [in] PlatformRepo Pointer to the Configuration Manager = Protocol. > + @retval EFI_SUCCESS Success > +**/ > +STATIC > +EFI_STATUS > +EFIAPI > +InitializePlatformRepository ( > + IN EDKII_PLATFORM_REPOSITORY_INFO * CONST PlatformRepo > + ) > +{ > + return EFI_SUCCESS; > +} > + > +/** Return a GT Block timer frame info list. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token A token for identifying the object > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +GetGTBlockTimerFrameInfo ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; > + > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + PlatformRepo =3D This->PlatRepoInfo; > + > + if (Token !=3D (CM_OBJECT_TOKEN)&PlatformRepo->GTBlock0TimerInfo) { > + return EFI_NOT_FOUND; > + } > + > + CmObject->ObjectId =3D CmObjectId; > + CmObject->Size =3D sizeof (PlatformRepo->GTBlock0TimerInfo); > + CmObject->Data =3D (VOID*)&PlatformRepo->GTBlock0TimerInfo; > + CmObject->Count =3D ARRAY_SIZE (PlatformRepo->GTBlock0TimerInfo); > + return EFI_SUCCESS; > +} > + > +/** Return an ITS identifier array. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token A token for identifying the object > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +GetItsIdentifierArray ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; > + UINTN Count; > + UINTN Index; > + > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + PlatformRepo =3D This->PlatRepoInfo; > + > + Count =3D ARRAY_SIZE (PlatformRepo->ItsIdentifierArray); > + > + for (Index =3D 0; Index < Count; Index++) { > + if (Token =3D=3D (CM_OBJECT_TOKEN)&PlatformRepo->ItsIdentifierArray[= Index]) { > + CmObject->ObjectId =3D CmObjectId; > + CmObject->Size =3D sizeof (PlatformRepo->ItsIdentifierArray[0]); > + CmObject->Data =3D (VOID*)&PlatformRepo->ItsIdentifierArray[Index]= ; > + CmObject->Count =3D 1; > + return EFI_SUCCESS; > + } > + } > + > + return EFI_NOT_FOUND; > +} > + > +/** Return an ITS group info. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token A token for identifying the object > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +GetItsGroupInfo ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; > + UINTN Count; > + UINTN Index; > + > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + PlatformRepo =3D This->PlatRepoInfo; > + > + Count =3D ARRAY_SIZE (PlatformRepo->ItsGroupInfo); > + > + for (Index =3D 0; Index < Count; Index++) { > + if (Token =3D=3D (CM_OBJECT_TOKEN)&PlatformRepo->ItsGroupInfo[Index]= ) { > + CmObject->ObjectId =3D CmObjectId; > + CmObject->Size =3D sizeof (PlatformRepo->ItsGroupInfo[0]); > + CmObject->Data =3D (VOID*)&PlatformRepo->ItsGroupInfo[Index]; > + CmObject->Count =3D 1; > + return EFI_SUCCESS; > + } > + } > + > + return EFI_NOT_FOUND; > +} > + > +/** Return a device Id mapping array. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token A token for identifying the object > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +GetDeviceIdMappingArray ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; > + UINTN Count; > + > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + PlatformRepo =3D This->PlatRepoInfo; > + > + DEBUG ((DEBUG_INFO, "DeviceIdMapping - Token =3D %p\n")); > + > + if (Token =3D=3D (CM_OBJECT_TOKEN)&PlatformRepo->DeviceIdMapping[0][0]= ) { > + Count =3D 2; > + DEBUG ((DEBUG_INFO, "DeviceIdMapping - Found DeviceIdMapping[0][0]\n= ")); > + } else if (Token =3D=3D > + (CM_OBJECT_TOKEN)&PlatformRepo->DeviceIdMapping[1][0]) { > + Count =3D 2; > + DEBUG ((DEBUG_INFO, "DeviceIdMapping - Found DeviceIdMapping[1][0]\n= ")); > + } else if (Token =3D=3D > + (CM_OBJECT_TOKEN)&PlatformRepo->DeviceIdMapping[2][0]) { > + Count =3D 1; > + DEBUG ((DEBUG_INFO, "DeviceIdMapping - Found DeviceIdMapping[2][0]\n= ")); > + } else if (Token =3D=3D > + (CM_OBJECT_TOKEN)&PlatformRepo->DeviceIdMapping[2][1]) { > + Count =3D 1; > + DEBUG ((DEBUG_INFO, "DeviceIdMapping - Found DeviceIdMapping[2][1]\n= ")); > + } else if (Token =3D=3D > + (CM_OBJECT_TOKEN)&PlatformRepo->DeviceIdMapping[DEVICEIDMAP= PING_REMOTE_SMMU_PCIE][0]) { > + Count =3D 2; > + DEBUG ((DEBUG_INFO, "DeviceIdMapping - Found DeviceIdMapping[DEVICEI= DMAPPING_REMOTE_SMMU_PCIE][0]\n")); > + } else if (Token =3D=3D > + (CM_OBJECT_TOKEN)&PlatformRepo->DeviceIdMapping[DEVICEIDMAP= PING_REMOTE_PCIE][0]) { > + Count =3D 1; > + DEBUG ((DEBUG_INFO, "DeviceIdMapping - Found DeviceIdMapping[DEVICEI= DMAPPING_REMOTE_PCIE][0]\n")); > + } else { > + DEBUG ((DEBUG_INFO, "DeviceIdMapping - Not Found\n")); > + return EFI_NOT_FOUND; > + } > + > + CmObject->Data =3D (VOID*)Token; > + CmObject->ObjectId =3D CmObjectId; > + CmObject->Count =3D Count; > + CmObject->Size =3D Count * sizeof (CM_ARM_ID_MAPPING); > + > + return EFI_SUCCESS; > +} > + > +/** Return GIC CPU Interface Info. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Object ID of the CM object requeste= d > + @param [in] SearchToken A unique token for identifying the requ= ested > + CM_ARM_GICC_INFO object. > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +GetGicCInfo ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN SearchToken, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; > + NEOVERSEN1SOC_PLAT_INFO *PlatInfo; > + UINT32 TotalObjCount; > + UINT32 ObjIndex; > + > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + PlatformRepo =3D This->PlatRepoInfo; > + PlatInfo =3D (NEOVERSEN1SOC_PLAT_INFO *)NEOVERSEN1SOC_PLAT_INFO_STRUCT= _BASE; > + > + if (PlatInfo->MultichipMode) [SAMI] Use curly braces for if-else. Also, the if statment does not evaluate a boolean expression as MultichipMode is UINT8. Same comment for other places in this patch series. [/SAMI] > + TotalObjCount =3D PLAT_CPU_COUNT * 2; > + else > + TotalObjCount =3D PLAT_CPU_COUNT; > + > + for (ObjIndex =3D 0; ObjIndex < TotalObjCount; ObjIndex++) { > + if (SearchToken =3D=3D (CM_OBJECT_TOKEN)&PlatformRepo->GicCInfo[ObjI= ndex]) { > + CmObject->ObjectId =3D CmObjectId; > + CmObject->Size =3D sizeof (PlatformRepo->GicCInfo[ObjIndex]); > + CmObject->Data =3D (VOID*)&PlatformRepo->GicCInfo[ObjIndex]; > + CmObject->Count =3D 1; > + return EFI_SUCCESS; > + } > + } > + > + return EFI_NOT_FOUND; > +} > + > +/** Return a list of Configuration Manager object references pointed to = by the > + given input token. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Object ID of the CM object requeste= d > + @param [in] SearchToken A unique token for identifying the requ= ested > + CM_ARM_OBJ_REF list. > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +GetCmObjRefs ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN SearchToken, > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; > + > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + PlatformRepo =3D This->PlatRepoInfo; > + > + if (SearchToken =3D=3D (CM_OBJECT_TOKEN)&PlatformRepo->ClusterResource= s) { > + CmObject->Size =3D sizeof (PlatformRepo->ClusterResources); > + CmObject->Data =3D (VOID*)&PlatformRepo->ClusterResources; > + CmObject->Count =3D ARRAY_SIZE (PlatformRepo->ClusterResources); > + return EFI_SUCCESS; > + } > + if (SearchToken =3D=3D (CM_OBJECT_TOKEN)&PlatformRepo->CoreResources) = { > + CmObject->Size =3D sizeof (PlatformRepo->CoreResources); > + CmObject->Data =3D (VOID*)&PlatformRepo->CoreResources; > + CmObject->Count =3D ARRAY_SIZE (PlatformRepo->CoreResources); > + return EFI_SUCCESS; > + } > + if (SearchToken =3D=3D (CM_OBJECT_TOKEN)&PlatformRepo->SocResources) { > + CmObject->Size =3D sizeof (PlatformRepo->SocResources); > + CmObject->Data =3D (VOID*)&PlatformRepo->SocResources; > + CmObject->Count =3D ARRAY_SIZE (PlatformRepo->SocResources); > + return EFI_SUCCESS; > + } > + > + return EFI_NOT_FOUND; > +} > + > +/** Return a standard namespace object. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token An optional token identifying the objec= t. If > + unused this must be CM_NULL_TOKEN. > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +GetStandardNameSpaceObject ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token OPTIONAL= , > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EFI_STATUS Status; > + EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; > + NEOVERSEN1SOC_PLAT_INFO *PlatInfo; > + UINT32 AcpiTableCount; > + > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + Status =3D EFI_NOT_FOUND; > + PlatformRepo =3D This->PlatRepoInfo; > + PlatInfo =3D (NEOVERSEN1SOC_PLAT_INFO *)NEOVERSEN1SOC_PLAT_INFO_STRUCT= _BASE; > + AcpiTableCount =3D ARRAY_SIZE (PlatformRepo->CmAcpiTableList); > + if (!PlatInfo->MultichipMode) > + AcpiTableCount -=3D 1; > + > + switch (GET_CM_OBJECT_ID (CmObjectId)) { > + case EStdObjCfgMgrInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->CmInfo, > + sizeof (PlatformRepo->CmInfo), > + 1, > + CmObject > + ); > + break; > + case EStdObjAcpiTableList: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->CmAcpiTableList, > + sizeof (PlatformRepo->CmAcpiTableList), > + AcpiTableCount, > + CmObject > + ); > + break; > + default: { > + Status =3D EFI_NOT_FOUND; > + DEBUG (( > + DEBUG_ERROR, > + "ERROR: Object 0x%x. Status =3D %r\n", > + CmObjectId, > + Status > + )); > + break; > + } > + } > + > + return Status; > +} > + > +/** Return an ARM namespace object. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token An optional token identifying the objec= t. If > + unused this must be CM_NULL_TOKEN. > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +GetArmNameSpaceObject ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token OPTIONAL= , > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EFI_STATUS Status; > + EDKII_PLATFORM_REPOSITORY_INFO * PlatformRepo; > + NEOVERSEN1SOC_PLAT_INFO *PlatInfo; [SAMI] Align consistently. [/SAMI] > + UINT32 GicRedistCount; > + UINT32 GicCpuCount; > + UINT32 ProcHierarchyInfoCount; > + UINT32 GicItsInfoCount; > + UINT32 ItsGroupInfoCount; > + UINT32 ItsIdentifierArrayCount; > + UINT32 SmmuV3InfoCount; > + UINT32 DeviceIdMappingCount; > + UINT32 RootComplexInfoCount; > + UINT32 PciConfigInfoCount; > + > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + Status =3D EFI_NOT_FOUND; > + PlatformRepo =3D This->PlatRepoInfo; > + > + // Probe for multi chip information > + PlatInfo =3D (NEOVERSEN1SOC_PLAT_INFO *)NEOVERSEN1SOC_PLAT_INFO_STRUCT= _BASE; > + if (PlatInfo->MultichipMode) { > + GicRedistCount =3D 2; > + GicCpuCount =3D PLAT_CPU_COUNT * 2; > + ProcHierarchyInfoCount =3D PLAT_PROC_HIERARCHY_NODE_COUNT * 2; > + GicItsInfoCount =3D ITS_MAX; > + ItsGroupInfoCount =3D ITS_MAX; > + ItsIdentifierArrayCount =3D ITS_MAX; > + SmmuV3InfoCount =3D SMMUV3INFO_MAX; > + DeviceIdMappingCount =3D DEVICEIDMAPPING_MAX; > + RootComplexInfoCount =3D ROOT_PCIE_MAX; > + PciConfigInfoCount =3D ROOT_PCIE_MAX; > + } else { > + GicRedistCount =3D 1; > + GicCpuCount =3D PLAT_CPU_COUNT; > + ProcHierarchyInfoCount =3D PLAT_PROC_HIERARCHY_NODE_COUNT; > + GicItsInfoCount =3D ITS_MASTER_CHIP_MAX; > + ItsGroupInfoCount =3D ITS_MASTER_CHIP_MAX; > + ItsIdentifierArrayCount =3D ITS_MASTER_CHIP_MAX; > + SmmuV3InfoCount =3D SMMUV3INFO_MASTER_CHIP_MAX; > + DeviceIdMappingCount =3D DEVICEIDMAPPING_MASTER_CHIP_MAX; > + RootComplexInfoCount =3D ROOT_PCIE_MASTER_CHIP_MAX; > + PciConfigInfoCount =3D ROOT_PCIE_MASTER_CHIP_MAX; > + } > + > + switch (GET_CM_OBJECT_ID (CmObjectId)) { > + case EArmObjBootArchInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->BootArchInfo, > + sizeof (PlatformRepo->BootArchInfo), > + 1, > + CmObject > + ); > + break; > + > + case EArmObjFixedFeatureFlags: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->FixedFeatureFlags, > + sizeof (PlatformRepo->FixedFeatureFlags), > + 1, > + CmObject > + ); > + break; > + > + case EArmObjPowerManagementProfileInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->PmProfileInfo, > + sizeof (PlatformRepo->PmProfileInfo), > + 1, > + CmObject > + ); > + break; > + > + case EArmObjGenericTimerInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->GenericTimerInfo, > + sizeof (PlatformRepo->GenericTimerInfo), > + 1, > + CmObject > + ); > + break; > + > + case EArmObjPlatformGenericWatchdogInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->Watchdog, > + sizeof (PlatformRepo->Watchdog), > + 1, > + CmObject > + ); > + break; > + > + case EArmObjPlatformGTBlockInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + PlatformRepo->GTBlockInfo, > + sizeof (PlatformRepo->GTBlockInfo), > + ARRAY_SIZE (PlatformRepo->GTBlockInfo), > + CmObject > + ); > + break; > + > + case EArmObjGTBlockTimerFrameInfo: > + Status =3D HandleCmObjectRefByToken ( > + This, > + CmObjectId, > + PlatformRepo->GTBlock0TimerInfo, > + sizeof (PlatformRepo->GTBlock0TimerInfo), > + ARRAY_SIZE (PlatformRepo->GTBlock0TimerInfo), > + Token, > + GetGTBlockTimerFrameInfo, > + CmObject > + ); > + break; > + > + case EArmObjGicCInfo: > + Status =3D HandleCmObjectRefByToken ( > + This, > + CmObjectId, > + PlatformRepo->GicCInfo, > + sizeof (PlatformRepo->GicCInfo), > + GicCpuCount, > + Token, > + GetGicCInfo, > + CmObject > + ); > + break; > + > + case EArmObjGicDInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->GicDInfo, > + sizeof (PlatformRepo->GicDInfo), > + 1, > + CmObject > + ); > + break; > + > + case EArmObjGicRedistributorInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + PlatformRepo->GicRedistInfo, > + sizeof (PlatformRepo->GicRedistInfo), > + GicRedistCount, > + CmObject > + ); > + break; > + > + case EArmObjSerialConsolePortInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->SpcrSerialPort, > + sizeof (PlatformRepo->SpcrSerialPort), > + 1, > + CmObject > + ); > + break; > + > + case EArmObjSerialDebugPortInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + &PlatformRepo->DbgSerialPort, > + sizeof (PlatformRepo->DbgSerialPort), > + 1, > + CmObject > + ); > + break; > + > + case EArmObjGicItsInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + PlatformRepo->GicItsInfo, > + sizeof (PlatformRepo->GicItsInfo), > + GicItsInfoCount, > + CmObject > + ); > + break; > + > + case EArmObjSmmuV3: > + Status =3D HandleCmObject ( > + CmObjectId, > + PlatformRepo->SmmuV3Info, > + sizeof (PlatformRepo->SmmuV3Info), > + SmmuV3InfoCount, > + CmObject > + ); > + break; > + > + case EArmObjItsGroup: > + Status =3D HandleCmObjectRefByToken ( > + This, > + CmObjectId, > + PlatformRepo->ItsGroupInfo, > + sizeof (PlatformRepo->ItsGroupInfo), > + ItsGroupInfoCount, > + Token, > + GetItsGroupInfo, > + CmObject > + ); > + break; > + > + case EArmObjGicItsIdentifierArray: > + Status =3D HandleCmObjectRefByToken ( > + This, > + CmObjectId, > + PlatformRepo->ItsIdentifierArray, > + sizeof (PlatformRepo->ItsIdentifierArray), > + ItsIdentifierArrayCount, > + Token, > + GetItsIdentifierArray, > + CmObject > + ); > + break; > + > + case EArmObjRootComplex: > + Status =3D HandleCmObject ( > + CmObjectId, > + PlatformRepo->RootComplexInfo, > + sizeof (PlatformRepo->RootComplexInfo), > + RootComplexInfoCount, > + CmObject > + ); > + break; > + > + case EArmObjIdMappingArray: > + Status =3D HandleCmObjectRefByToken ( > + This, > + CmObjectId, > + PlatformRepo->DeviceIdMapping, > + sizeof (PlatformRepo->DeviceIdMapping), > + DeviceIdMappingCount, > + Token, > + GetDeviceIdMappingArray, > + CmObject > + ); > + break; > + > + case EArmObjProcHierarchyInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + PlatformRepo->ProcHierarchyInfo, > + sizeof (PlatformRepo->ProcHierarchyInfo), > + ProcHierarchyInfoCount, > + CmObject > + ); > + break; > + > + case EArmObjCacheInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + PlatformRepo->CacheInfo, > + sizeof (PlatformRepo->CacheInfo), > + ARRAY_SIZE (PlatformRepo->CacheInfo), > + CmObject > + ); > + break; > + > + case EArmObjCmRef: > + Status =3D HandleCmObjectSearchPlatformRepo ( > + This, > + CmObjectId, > + Token, > + GetCmObjRefs, > + CmObject > + ); > + break; > + > + case EArmObjPciConfigSpaceInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + PlatformRepo->PciConfigInfo, > + sizeof (PlatformRepo->PciConfigInfo), > + PciConfigInfoCount, > + CmObject > + ); > + break; > + > + case EArmObjMemoryAffinityInfo: > + Status =3D HandleCmObject ( > + CmObjectId, > + PlatformRepo->MemAffInfo, > + sizeof (PlatformRepo->MemAffInfo), > + ARRAY_SIZE (PlatformRepo->MemAffInfo), > + CmObject > + ); > + break; > + > + default: { > + Status =3D EFI_NOT_FOUND; > + DEBUG (( > + DEBUG_INFO, > + "INFO: Object 0x%x. Status =3D %r\n", > + CmObjectId, > + Status > + )); > + break; > + } > + }//switch > + > + return Status; > +} > + > +/** Return an OEM namespace object. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token An optional token identifying the objec= t. If > + unused this must be CM_NULL_TOKEN. > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +GetOemNameSpaceObject ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token OPTIONAL= , > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EFI_STATUS Status; > + > + Status =3D EFI_SUCCESS; > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + switch (GET_CM_OBJECT_ID (CmObjectId)) { > + default: { > + Status =3D EFI_NOT_FOUND; > + DEBUG (( > + DEBUG_ERROR, > + "ERROR: Object 0x%x. Status =3D %r\n", > + CmObjectId, > + Status > + )); > + break; > + } > + } > + > + return Status; > +} > + > +/** The GetObject function defines the interface implemented by the > + Configuration Manager Protocol for returning the Configuration > + Manager Objects. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token An optional token identifying the objec= t. If > + unused this must be CM_NULL_TOKEN. > + @param [in, out] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the requested Obj= ect. > + > + @retval EFI_SUCCESS Success. > + @retval EFI_INVALID_PARAMETER A parameter is invalid. > + @retval EFI_NOT_FOUND The required object information is not = found. > +**/ > +EFI_STATUS > +EFIAPI > +N1sdpPlatformGetObject ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token OPTIONAL= , > + IN OUT CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + EFI_STATUS Status; > + > + if ((This =3D=3D NULL) || (CmObject =3D=3D NULL)) { > + ASSERT (This !=3D NULL); > + ASSERT (CmObject !=3D NULL); > + return EFI_INVALID_PARAMETER; > + } > + > + switch (GET_CM_NAMESPACE_ID (CmObjectId)) { > + case EObjNameSpaceStandard: > + Status =3D GetStandardNameSpaceObject (This, CmObjectId, Token, Cm= Object); > + break; > + case EObjNameSpaceArm: > + Status =3D GetArmNameSpaceObject (This, CmObjectId, Token, CmObjec= t); > + break; > + case EObjNameSpaceOem: > + Status =3D GetOemNameSpaceObject (This, CmObjectId, Token, CmObjec= t); > + break; > + default: { > + Status =3D EFI_INVALID_PARAMETER; > + DEBUG (( > + DEBUG_ERROR, > + "ERROR: Unknown Namespace Object =3D 0x%x. Status =3D %r\n", > + CmObjectId, > + Status > + )); > + break; > + } > + } > + > + return Status; > +} > + > +/** The SetObject function defines the interface implemented by the > + Configuration Manager Protocol for updating the Configuration > + Manager Objects. > + > + @param [in] This Pointer to the Configuration Manager Pr= otocol. > + @param [in] CmObjectId The Configuration Manager Object ID. > + @param [in] Token An optional token identifying the objec= t. If > + unused this must be CM_NULL_TOKEN. > + @param [in] CmObject Pointer to the Configuration Manager Ob= ject > + descriptor describing the Object. > + > + @retval EFI_UNSUPPORTED This operation is not supported. > +**/ > +EFI_STATUS > +EFIAPI > +N1sdpPlatformSetObject ( > + IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL * CONST This, > + IN CONST CM_OBJECT_ID CmObjectId, > + IN CONST CM_OBJECT_TOKEN Token OPTIONAL= , > + IN CM_OBJ_DESCRIPTOR * CONST CmObject > + ) > +{ > + return EFI_UNSUPPORTED; > +} > + > +/** A structure describing the configuration manager protocol interface. > +*/ > +STATIC > +CONST > +EDKII_CONFIGURATION_MANAGER_PROTOCOL N1sdpPlatformConfigManagerProtocol = =3D { > + CREATE_REVISION(1,0), > + N1sdpPlatformGetObject, > + N1sdpPlatformSetObject, > + &N1sdpRepositoryInfo > +}; > + > +/** > + Entrypoint of Configuration Manager Dxe. > + > + @param ImageHandle > + @param SystemTable > + > + @return EFI_SUCCESS > + @return EFI_LOAD_ERROR > + @return EFI_OUT_OF_RESOURCES > +**/ > +EFI_STATUS > +EFIAPI > +ConfigurationManagerDxeInitialize ( > + IN EFI_HANDLE ImageHandle, > + IN EFI_SYSTEM_TABLE * SystemTable > + ) > +{ > + EFI_STATUS Status; > + NEOVERSEN1SOC_PLAT_INFO *PlatInfo; > + UINT64 Dram2Size; > + UINT64 RemoteDdrSize; > + > + RemoteDdrSize =3D 0; > + > + PlatInfo =3D (NEOVERSEN1SOC_PLAT_INFO *)NEOVERSEN1SOC_PLAT_INFO_STRUCT= _BASE; > + Dram2Size =3D ((PlatInfo->LocalDdrSize - 2) * 1024UL * 1024UL * 1024UL= ); [SAMI] Can SIZE_1GB be used here instead of 1024UL *...? [/SAMI] > + > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo->MemAffInfo[LOCAL_DDR_= REGION2]. \ > + Length =3D Dram2Size; > + > + if (PlatInfo->MultichipMode =3D=3D 1) { > + RemoteDdrSize =3D ((PlatInfo->RemoteDdrSize -2) * 1024UL * 1024UL * = 1024UL); > + > + // Update Remote DDR Region1 > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo->MemAffInfo[REMOTE_D= DR_REGION1]. \ > + ProximityDomain =3D 1; > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo->MemAffInfo[REMOTE_D= DR_REGION1]. \ > + BaseAddress =3D FixedPcdGet64 (PcdExtMemorySpace) + FixedPcdGet64 = (PcdSystemMemoryBase); > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo->MemAffInfo[REMOTE_D= DR_REGION1]. \ > + Length =3D FixedPcdGet64 (PcdSystemMemorySize); > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo->MemAffInfo[REMOTE_D= DR_REGION1]. \ > + Flags =3D EFI_ACPI_6_3_MEMORY_ENABLED; > + > + // Update Remote DDR Region2 > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo->MemAffInfo[REMOTE_D= DR_REGION2]. \ > + ProximityDomain =3D 1; > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo->MemAffInfo[REMOTE_D= DR_REGION2]. \ > + BaseAddress =3D FixedPcdGet64 (PcdExtMemorySpace) + FixedPcdGet64 = (PcdDramBlock2Base); > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo->MemAffInfo[REMOTE_D= DR_REGION2]. \ > + Length =3D RemoteDdrSize; > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo->MemAffInfo[REMOTE_D= DR_REGION2]. \ > + Flags =3D EFI_ACPI_6_3_MEMORY_ENABLED; > + } > + [SAMI] The code clock above is initialising the platform info repository. Can this be moved to InitializePlatformRepositor() ? [/SAMI] > + // Initialize the Platform Configuration Repository before installing = the > + // Configuration Manager Protocol > + Status =3D InitializePlatformRepository ( > + N1sdpPlatformConfigManagerProtocol.PlatRepoInfo > + ); > + if (EFI_ERROR (Status)) { > + DEBUG (( > + DEBUG_ERROR, > + "ERROR: Failed to initialize the Platform Configuration Repository= ." \ > + " Status =3D %r\n", > + Status > + )); > + } > + > + Status =3D gBS->InstallProtocolInterface ( > + &ImageHandle, > + &gEdkiiConfigurationManagerProtocolGuid, > + EFI_NATIVE_INTERFACE, > + (VOID*)&N1sdpPlatformConfigManagerProtocol > + ); > + if (EFI_ERROR (Status)) { > + DEBUG (( > + DEBUG_ERROR, > + "ERROR: Failed to get Install Configuration Manager Protocol." \ > + " Status =3D %r\n", > + Status > + )); > + goto error_handler; > + } > + > +error_handler: > + return Status; > +} > diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/Hmat.c b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDx= e/Hmat.c > new file mode 100644 > index 000000000000..52fc3108a2c5 > --- /dev/null > +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Hma= t.c > @@ -0,0 +1,103 @@ > +/** @file > + Heterogeneous Memory Attribute Table (HMAT) > + > + Copyright (c) 2021, ARM Limited. All rights reserved.
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > +**/ > + > +#include > +#include > +#include > +#include "N1SdpAcpiHeader.h" > + > +// > +// Heterogeneous Memory Attribute Table > +// > +#pragma pack (1) > + > +typedef struct { > + EFI_ACPI_6_3_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO= LatencyStruct; > + UINT32 InitiatorProximityDomainList[1]; > + UINT32 TargetProximityDomainList[2]; > + UINT16 LatencyEntry[1][2]; > +} EFI_ACPI_6_3_HMAT_SYSTEM_LOCALITY_LATENCY_STRUCTURE; > + > +typedef struct { > + EFI_ACPI_6_3_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_HEADER Header; > + EFI_ACPI_6_3_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES Memory[= 2]; > + EFI_ACPI_6_3_HMAT_SYSTEM_LOCALITY_LATENCY_STRUCTURE Latency= Info; > +} EFI_ACPI_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE; > + > +#pragma pack () > + > +EFI_ACPI_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE Hmat =3D { > + // Header > + { > + ARM_ACPI_HEADER ( > + EFI_ACPI_6_3_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE, > + EFI_ACPI_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE, > + EFI_ACPI_6_3_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_REVISION > + ), > + {0x00, 0x00, 0x00, 0x00}, > + }, > + > + // Memory Attribute Structure > + { > + { > + EFI_ACPI_6_3_HMAT_TYPE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES, // Type > + {0x00, 0x00}, // Reserved > + 40, // Length > + {.InitiatorProximityDomainValid =3D 1}, // Flags > + {0x00, 0x00}, // Reserved1 > + 0, // InitiatorProximityDomain > + 0, // MemoryProximityDomain > + { 0x00, 0x00, 0x00, 0x00, > + 0x00, 0x00, 0x00, 0x00, > + 0x00, 0x00, 0x00, 0x00, > + 0x00, 0x00, 0x00, 0x00, > + 0x00, 0x00, 0x00, 0x00, > + }, // Reserved2 > + }, > + { > + EFI_ACPI_6_3_HMAT_TYPE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES, // Type > + {0x00, 0x00}, // Reserved > + 40, // Length > + {.InitiatorProximityDomainValid =3D 1}, // Flags > + {0x00, 0x00}, // Reserved1 > + 0, // InitiatorProximityDomain > + 1, // MemoryProximityDomain > + { 0x00, 0x00, 0x00, 0x00, > + 0x00, 0x00, 0x00, 0x00, > + 0x00, 0x00, 0x00, 0x00, > + 0x00, 0x00, 0x00, 0x00, > + 0x00, 0x00, 0x00, 0x00, > + }, // Reserved2 > + }, > + }, > + > + // System Locality Latency Structure (LatencyInfo) > + { > + // LatencyStruct > + { > + EFI_ACPI_6_3_HMAT_TYPE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO,= // Type > + {0x00, 0x00}, // Reserved > + sizeof (EFI_ACPI_6_3_HMAT_SYSTEM_LOCALITY_LATENCY_STRUCTURE), // L= ength > + {.MemoryHierarchy =3D 0}, // Flags > + 0, // DataType - Access latency > + {0x00, 0x00}, // Reserved1 > + 1, // NumberOfInitiatorProximityDomains > + 2, // NumberOfTargetProximityDomains > + {0x00, 0x00, 0x00, 0x00}, // Reserved2 > + 1000, // EntryBaseUnit - 1000ps =3D 1ns > + }, > + // InitiatorProximityDomainList > + { 0 }, > + // TargetProximityDomainList > + { 0, 1 }, > + // LatencyEntry > + { > + {119, 200}, > + }, > + }, > +}; > diff --git a/Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.c b/Platf= orm/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.c > index e0b89556d40d..a5ebeb71efa8 100644 > --- a/Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.c > +++ b/Platform/ARM/N1Sdp/Drivers/PlatformDxe/PlatformDxe.c > @@ -6,6 +6,7 @@ > > **/ > > +#include [SAMI] Is this needed here in this file? [SAMI] > #include > #include > #include > diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/AslTables/Dsdt.asl b/Platform/ARM/N1Sdp/ConfigurationManager/Configurat= ionManagerDxe/AslTables/Dsdt.asl > new file mode 100644 > index 000000000000..0d7dde1a73ae > --- /dev/null > +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Asl= Tables/Dsdt.asl > @@ -0,0 +1,477 @@ > +/** @file > + Differentiated System Description Table Fields (DSDT) > + > + Copyright (c) 2021, ARM Limited. All rights reserved.
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > +**/ > + > +#include "N1SdpAcpiHeader.h" > +#include "NeoverseN1Soc.h" > + > +#define ACPI_GRAPH_REV 0 > +#define ACPI_GRAPH_UUID "ab02a46b-74c7-45a2-bd68-f7d344ef2153" > + > +#define CORESIGHT_GRAPH_UUID "3ecbc8b6-1d0e-4fb3-8107-e627f805c6cd" > + > +#define CS_LINK_MASTER 1 > +#define CS_LINK_SLAVE 0 > + > +#define DSD_CS_GRAPH_BEGIN(_nports) \ > + Package () { \ > + 1, \ > + ToUUID(CORESIGHT_GRAPH_UUID), \ > + _nports, > + > +#define DSD_CS_GRAPH_END \ > + } > + > +#define DSD_GRAPH_BEGIN(_nports) \ > + ToUUID(ACPI_GRAPH_UUID), \ > + Package() { \ > + ACPI_GRAPH_REV, \ > + 1, \ > + DSD_CS_GRAPH_BEGIN(_nports) > + > +#define DSD_GRAPH_END \ > + DSD_CS_GRAPH_END \ > + } > + > +#define DSD_PORTS_BEGIN(_nports) \ > + Name (_DSD, Package () { \ > + DSD_GRAPH_BEGIN(_nports) > + > +#define DSD_PORTS_END \ > + DSD_GRAPH_END \ > + }) > + > +#define CS_PORT(_port, _rport, _rphandle, _dir) \ > + Package () { _port, _rport, _rphandle, _dir} > + > +#define CS_INPUT_PORT(_port, _rport, _rphandle) \ > + CS_PORT(_port, _rport, _rphandle, CS_LINK_SLAVE) > + > +#define CS_OUTPUT_PORT(_port, _rport, _rphandle) \ > + CS_PORT(_port, _rport, _rphandle, CS_LINK_MASTER) > + > +DefinitionBlock("Dsdt.aml", "DSDT", 1, "ARMLTD", "N1Sdp", EFI_ACPI_ARM_O= EM_REVISION) { > + Scope(_SB) { > + Device(CP00) { // Ares-0: Cluster 0, Cpu 0 > + Name(_HID, "ACPI0007") > + Name(_UID, 0) > + Name(_STA, 0xF) > + Device(ETM0) { // ETM on Cluster0 CPU0 > + Name (_HID, "ARMHC500") > + Name (_CID, "ARMHC500") > + Name (_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsEtm0Base), // Min Base Ad= dress > + FixedPcdGet64 (PcdCsEtm0MaxBase), // Max Base Ad= dress > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + DSD_PORTS_BEGIN(1) > + CS_OUTPUT_PORT(0, 0, \_SB_.SFN0) > + DSD_PORTS_END > + } // ETM0 > + } > + > + Device(CP01) { // Ares-1: Cluster 0, Cpu 1 > + Name(_HID, "ACPI0007") > + Name(_UID, 1) > + Name(_STA, 0xF) > + Device(ETM1) { // ETM on Cluster0 CPU1 > + Name (_HID, "ARMHC500") > + Name (_CID, "ARMHC500") > + Name (_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsEtm1Base), // Min Base Addres= s > + FixedPcdGet64 (PcdCsEtm1MaxBase), // Max Base Addres= s > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + DSD_PORTS_BEGIN(1) > + CS_OUTPUT_PORT(0, 1, \_SB_.SFN0) > + DSD_PORTS_END > + } // ETM1 > + } > + > + Device(CP02) { // Ares-2: Cluster 1, Cpu 0 > + Name(_HID, "ACPI0007") > + Name(_UID, 2) > + Name(_STA, 0xF) > + Device(ETM2) { // ETM on Cluster1 CPU0 > + Name (_HID, "ARMHC500") > + Name (_CID, "ARMHC500") > + Name (_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsEtm2Base), // Min Base Addres= s > + FixedPcdGet64 (PcdCsEtm2MaxBase), // Max Base Addres= s > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + DSD_PORTS_BEGIN(1) > + CS_OUTPUT_PORT(0, 0, \_SB_.SFN1) > + DSD_PORTS_END > + } // ETM2 > + } > + > + Device(CP03) { // Ares-3: Cluster 1, Cpu 1 > + Name(_HID, "ACPI0007") > + Name(_UID, 3) > + Name(_STA, 0xF) > + Device(ETM3) { // ETM on Cluster0 CPU0 > + Name (_HID, "ARMHC500") > + Name (_CID, "ARMHC500") > + Name (_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsEtm3Base), // Min Base Addres= s > + FixedPcdGet64 (PcdCsEtm3MaxBase), // Max Base Addres= s > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + > + DSD_PORTS_BEGIN(1) > + CS_OUTPUT_PORT(0, 1, \_SB_.SFN1) > + DSD_PORTS_END > + } // ETM3 > + } > + > + Device(ETF0) { > + Name(_HID, "ARMHC97C") // TMC > + Name(_CID, "ARMHC97C") // TMC > + Name(_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsEtf0Base), // Min Base Address > + FixedPcdGet64 (PcdCsEtf0MaxBase), // Max Base Address > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + > + DSD_PORTS_BEGIN(2) > + CS_OUTPUT_PORT(0, 0, \_SB_.FUN), > + CS_INPUT_PORT(0, 0, \_SB_.SFN0) > + DSD_PORTS_END > + } // ETF0 > + > + Device(ETF1) { > + Name(_HID, "ARMHC97C") // TMC > + Name(_CID, "ARMHC97C") // TMC > + Name(_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsEtf1Base), // Min Base Address > + FixedPcdGet64 (PcdCsEtf1MaxBase), // Max Base Address > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + > + DSD_PORTS_BEGIN(2) > + CS_OUTPUT_PORT(0, 1, \_SB_.FUN), > + CS_INPUT_PORT(0, 0, \_SB_.SFN1) > + DSD_PORTS_END > + } // ETF1 > + > + Device(ETF2) { > + Name(_HID, "ARMHC97C") // TMC > + Name(_CID, "ARMHC97C") // TMC > + Name(_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsEtf2Base), // Min Base Address > + FixedPcdGet64 (PcdCsEtf2MaxBase), // Max Base Address > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + > + DSD_PORTS_BEGIN(2) > + CS_OUTPUT_PORT(0, 5, \_SB_.MFUN), > + CS_INPUT_PORT(0, 0, \_SB_.STM0) > + DSD_PORTS_END > + } // ETF2 > + > + Device(FUN) { > + Name(_HID, "ARMHC9FF") > + Name(_CID, "ARMHC9FF") > + Name(_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsFunnel0Base), // Min Base Address > + FixedPcdGet64 (PcdCsFunnel0MaxBase), // Max Base Address > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + DSD_PORTS_BEGIN(3) > + CS_OUTPUT_PORT(0, 0, \_SB_.MFUN), > + CS_INPUT_PORT(0, 0, \_SB_.ETF0), > + CS_INPUT_PORT(1, 0, \_SB_.ETF1) > + DSD_PORTS_END > + } // FUN > + > + Device(STM0) { > + Name(_HID, "ARMHC502") // STM > + Name(_CID, "ARMHC502") > + Name(_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsStmBase), // Min Base Address > + FixedPcdGet64 (PcdCsStmMaxBase), // Max Base Address > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + Memory32Fixed(ReadWrite, > + FixedPcdGet32 (PcdCsStmStimulusBase), > + FixedPcdGet32 (PcdCsStmStimulusSize)) > + }) > + > + DSD_PORTS_BEGIN(1) > + CS_OUTPUT_PORT(0, 0, \_SB_.ETF2) > + DSD_PORTS_END > + } > + > + Device(MFUN) { // Master Funnel > + Name(_HID, "ARMHC9FF") // Funnel > + Name(_CID, "ARMHC9FF") // Funnel > + Name(_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsFunnel1Base), // Min Base Address > + FixedPcdGet64 (PcdCsFunnel1MaxBase), // Max Base Address > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + > + DSD_PORTS_BEGIN(3) > + CS_OUTPUT_PORT(0, 0, \_SB_.REP), > + CS_INPUT_PORT(0, 0, \_SB_.FUN), > + CS_INPUT_PORT(5, 0, \_SB_.ETF2) > + DSD_PORTS_END > + } // MFUN > + > + Device(REP) { > + Name(_HID, "ARMHC98D") // Replicator > + Name(_CID, "ARMHC98D") // Replicator > + Name(_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsReplicatorBase), // Min Base Address > + FixedPcdGet64 (PcdCsReplicatorMaxBase), // Max Base Address > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + > + DSD_PORTS_BEGIN(3) > + CS_OUTPUT_PORT(0, 0, \_SB_.TPIU), > + CS_OUTPUT_PORT(1, 0, \_SB_.ETR), > + CS_INPUT_PORT(0, 0, \_SB_.MFUN) > + DSD_PORTS_END > + } // REP > + > + Device(TPIU) { > + Name(_HID, "ARMHC979") // TPIU > + Name(_CID, "ARMHC979") // TPIU > + Name(_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsTpiuBase), // Min Base Address > + FixedPcdGet64 (PcdCsTpiuMaxBase), // Max Base Address > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + > + DSD_PORTS_BEGIN(1) > + CS_INPUT_PORT(0, 0, \_SB_.REP) > + DSD_PORTS_END > + } // TPIU > + > + Device(ETR) { > + Name(_HID, "ARMHC97C") // TMC > + Name(_CID, "ARMHC97C") // TMC > + Name(_CCA, 0) // The ETR on this platform is not c= oherent > + Name(_CRS, ResourceTemplate() { > + QWordMemory ( > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCsEtrBase), // Min Base Address > + FixedPcdGet64 (PcdCsEtrMaxBase), // Max Base Address > + 0, // Translate > + FixedPcdGet32 (PcdCsComponentSize) // Length > + ) > + }) > + > + Name(_DSD, Package() { > + DSD_GRAPH_BEGIN(1) > + CS_INPUT_PORT(0, 1, \_SB_.REP) > + DSD_GRAPH_END, > + > + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), > + Package() { > + Package(2) {"arm,scatter-gather", 1} > + } > + }) > + > + } // ETR > + > + Device(SFN0) { // Static Funnel 0 > + Name(_HID, "ARMHC9FE") // Funnel > + Name(_CID, "ARMHC9FE") // Funnel > + > + DSD_PORTS_BEGIN(3) > + CS_OUTPUT_PORT(0, 0, \_SB_.ETF0), > + CS_INPUT_PORT(0, 0, \_SB_.CP00.ETM0), > + CS_INPUT_PORT(1, 0, \_SB_.CP01.ETM1) > + DSD_PORTS_END > + } // SFN0 > + > + Device(SFN1) { // Static Funnel 1 > + Name(_HID, "ARMHC9FE") // Funnel > + Name(_CID, "ARMHC9FE") // Funnel > + > + DSD_PORTS_BEGIN(3) > + CS_OUTPUT_PORT(0, 0, \_SB_.ETF1), > + CS_INPUT_PORT(0, 0, \_SB_.CP02.ETM2), > + CS_INPUT_PORT(1, 0, \_SB_.CP03.ETM3) > + DSD_PORTS_END > + } // SFN1 > + > + Device(CMN6) { > + Name(_HID, "ARMHC600") > + > + Name(_CRS, ResourceTemplate () { > + // Region location is platform specific > + // Other name(s) of this region: PERIPHBASE > + QWordMemory ( > + ResourceConsumer, > + PosDecode, > + MinFixed, > + MaxFixed, > + NonCacheable, > + ReadWrite, > + 0x00000000, > + 0x50000000, > + 0x5FFFFFFF, > + 0x00000000, > + 0x10000000, > + , > + , > + CFGR > + ) > + > + // Sub-region location is platform specific > + // Other name(s) of this region: ROOTNODEBASE > + QWordMemory ( > + ResourceConsumer, > + PosDecode, > + MinFixed, > + MaxFixed, > + NonCacheable, > + ReadWrite, > + 0x00000000, > + 0x50D00000, > + 0x50D03FFF, > + 0x00000000, > + 0x00004000, > + , > + , > + ROOT > + ) > + > + // CMN600_INTREQPMU_DTC0 > + Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 78 = } > + }) > + } > + } // Scope(_SB) > +} > diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/AslTables/SsdtPci.asl b/Platform/ARM/N1Sdp/ConfigurationManager/Configu= rationManagerDxe/AslTables/SsdtPci.asl > new file mode 100644 > index 000000000000..50f8fdf11416 > --- /dev/null > +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Asl= Tables/SsdtPci.asl > @@ -0,0 +1,247 @@ > +/** @file > + Secondary System Description Table (SSDT) > + > + Copyright (c) 2021, ARM Limited. All rights reserved.
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > +**/ > + > +#include "N1SdpAcpiHeader.h" > + > +/* > + See ACPI 6.1 Section 6.2.13 > + > + There are two ways that _PRT can be used. > + > + In the first model, a PCI Link device is used to provide additional > + configuration information such as whether the interrupt is Level or > + Edge triggered, it is active High or Low, Shared or Exclusive, etc. > + > + In the second model, the PCI interrupts are hardwired to specific > + interrupt inputs on the interrupt controller and are not > + configurable. In this case, the Source field in _PRT does not > + reference a device, but instead contains the value zero, and the > + Source Index field contains the global system interrupt to which the > + PCI interrupt is hardwired. > + > + We use the first model with link indirection to set the correct > + interrupt type as PCI defaults (Level Triggered, Active Low) are not > + compatible with GICv2. > +*/ > +#define LNK_DEVICE(Unique_Id, Link_Name, irq) = \ > + Device(Link_Name) { = \ > + Name(_HID, EISAID("PNP0C0F")) = \ > + Name(_UID, Unique_Id) = \ > + Name(_PRS, ResourceTemplate() { = \ > + Interrupt(ResourceProducer, Level, ActiveHigh, Exclusive) { irq } = \ > + }) = \ > + Method (_CRS, 0) { Return (_PRS) } = \ > + Method (_SRS, 1) { } = \ > + Method (_DIS) { } = \ > +} > + > +#define PRT_ENTRY(Address, Pin, Link) = \ > + Package (4) { = \ > + Address, /* uses the same format as _ADR */ = \ > + Pin, /* The PCI pin number of the device (0-INTA, 1-INTB, 2-INT= C, 3-INTD) */ \ > + Link, /* Interrupt allocated via Link device */ = \ > + Zero /* global system interrupt number (no used) */ = \ > +} > + > +/* > + See Reference [1] 6.1.1 > + "High word-Device #, Low word-Function #. (for example, device 3, > + function 2 is 0x00030002). To refer to all the functions on a device #= , > + use a function number of FFFF)." > +*/ > +#define ROOT_PRT_ENTRY(Pin, Link) PRT_ENTRY(0x0000FFFF, Pin, Link) //= Device 0 for Bridge. > + > +DefinitionBlock("SsdtPci.aml", "SSDT", 1, "ARMLTD", "N1Sdp", > + EFI_ACPI_ARM_OEM_REVISION) > +{ > + Scope (_SB) { > + > + // PCI Root Complex > + LNK_DEVICE(1, LNKA, 201) > + LNK_DEVICE(2, LNKB, 202) > + LNK_DEVICE(3, LNKC, 203) > + LNK_DEVICE(4, LNKD, 204) > + LNK_DEVICE(5, LNKE, 233) > + LNK_DEVICE(6, LNKF, 234) > + LNK_DEVICE(7, LNKG, 235) > + LNK_DEVICE(8, LNKH, 236) > + > + // PCI Root Complex > + Device(PCI0) { > + Name (_HID, EISAID("PNP0A08")) // PCI Express Root Bridge > + Name (_CID, EISAID("PNP0A03")) // Compatible PCI Root Bridge > + Name (_SEG, Zero) // PCI Segment Group number > + Name (_BBN, Zero) // PCI Base Bus Number > + Name (_CCA, 1) // Cache Coherency Attribute > + > + // Root Complex 0 > + Device (RP0) { > + Name(_ADR, 0xF0000000) // Dev 0, Func 0 > + } > + > + // PCI Routing Table > + Name(_PRT, Package() { > + ROOT_PRT_ENTRY(0, LNKA), // INTA > + ROOT_PRT_ENTRY(1, LNKB), // INTB > + ROOT_PRT_ENTRY(2, LNKC), // INTC > + ROOT_PRT_ENTRY(3, LNKD), // INTD > + }) > + > + // Root complex resources > + Method (_CRS, 0, Serialized) { > + Name (RBUF, ResourceTemplate () { > + WordBusNumber ( // Bus numbers ass= igned to this root > + ResourceProducer, > + MinFixed, > + MaxFixed, > + PosDecode, > + 0, // AddressGranular= ity > + FixedPcdGet32 (PcdPcieBusMin), // AddressMinimum = - Minimum Bus Number > + FixedPcdGet32 (PcdPcieBusMax), // AddressMaximum = - Maximum Bus Number > + 0, // AddressTranslat= ion - Set to 0 > + FixedPcdGet32 (PcdPcieBusCount) // RangeLength - N= umber of Busses > + ) > + > + DWordMemory ( // 32-bit BAR Wind= ows > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet32 (PcdPcieMmio32Base), // Min Base Addres= s > + FixedPcdGet32 (PcdPcieMmio32MaxBase), // Max Base Addres= s > + FixedPcdGet32 (PcdPcieMmio32Translation), // Translate > + FixedPcdGet32 (PcdPcieMmio32Size) // Length > + ) > + > + QWordMemory ( // 64-bit BAR Wind= ows > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdPcieMmio64Base), // Min Base Addres= s > + FixedPcdGet64 (PcdPcieMmio64MaxBase), // Max Base Addres= s > + FixedPcdGet64 (PcdPcieMmio64Translation), // Translate > + FixedPcdGet64 (PcdPcieMmio64Size) // Length > + ) > + > + DWordIo ( // IO window > + ResourceProducer, > + MinFixed, > + MaxFixed, > + PosDecode, > + EntireRange, > + 0x00000000, // Granularity > + FixedPcdGet32 (PcdPcieIoBase), // Min Base Addres= s > + FixedPcdGet32 (PcdPcieIoMaxBase), // Max Base Addres= s > + FixedPcdGet32 (PcdPcieIoTranslation), // Translate > + FixedPcdGet32 (PcdPcieIoSize), // Length > + , > + , > + , > + TypeTranslation > + ) > + }) // Name(RBUF) > + > + Return (RBUF) > + } // Method (_CRS) > + } > + > + // CCIX Root Complex > + Device(PCI1) { > + Name (_HID, EISAID("PNP0A08")) // PCI Express Root Bridge > + Name (_CID, EISAID("PNP0A03")) // Compatible PCI Root Bridge > + Name (_SEG, 1) // PCI Segment Group number > + Name (_BBN, Zero) // PCI Base Bus Number > + Name (_CCA, 1) // Cache Coherency Attribute > + > + // Root Complex 1 > + Device (RP1) { > + Name(_ADR, 0xF0000000) // Dev 0, Func 0 > + } > + > + // PCI Routing Table > + Name(_PRT, Package() { > + ROOT_PRT_ENTRY(0, LNKE), // INTA > + ROOT_PRT_ENTRY(1, LNKF), // INTB > + ROOT_PRT_ENTRY(2, LNKG), // INTC > + ROOT_PRT_ENTRY(3, LNKH), // INTD > + }) > + > + // Root complex resources > + Method (_CRS, 0, Serialized) { > + Name (RBUF, ResourceTemplate () { > + WordBusNumber ( // Bus numbers assigned to this roo= t > + ResourceProducer, > + MinFixed, > + MaxFixed, > + PosDecode, > + 0, // AddressGranular= ity > + FixedPcdGet32 (PcdCcixBusMin), // AddressMinimum = - Minimum Bus Number > + FixedPcdGet32 (PcdCcixBusMax), // AddressMaximum = - Maximum Bus Number > + 0, // AddressTranslat= ion - Set to 0 > + FixedPcdGet32 (PcdCcixBusCount) // RangeLength - N= umber of Busses > + ) > + > + DWordMemory ( // 32-bit BAR Windows > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet32 (PcdCcixMmio32Base), // Min Base Addres= s > + FixedPcdGet32 (PcdCcixMmio32MaxBase), // Max Base Addres= s > + FixedPcdGet32 (PcdCcixMmio32Translation), // Translate > + FixedPcdGet32 (PcdCcixMmio32Size) // Length > + ) > + > + QWordMemory ( // 64-bit BAR Windows > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdCcixMmio64Base), // Min Base Addres= s > + FixedPcdGet64 (PcdCcixMmio64MaxBase), // Max Base Addres= s > + FixedPcdGet64 (PcdCcixMmio64Translation), // Translate > + FixedPcdGet64 (PcdCcixMmio64Size) // Length > + ) > + > + DWordIo ( // IO window > + ResourceProducer, > + MinFixed, > + MaxFixed, > + PosDecode, > + EntireRange, > + 0x00000000, // Granularity > + FixedPcdGet32 (PcdCcixIoBase), // Min Base Addres= s > + FixedPcdGet32 (PcdCcixIoMaxBase), // Max Base Addres= s > + FixedPcdGet32 (PcdCcixIoTranslation), // Translate > + FixedPcdGet32 (PcdCcixIoSize), // Length > + , > + , > + , > + TypeTranslation > + ) > + }) // Name(RBUF) > + > + Return (RBUF) > + } // Method (_CRS) > + } > + > + } > +} > diff --git a/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManager= Dxe/AslTables/SsdtRemotePci.asl b/Platform/ARM/N1Sdp/ConfigurationManager/C= onfigurationManagerDxe/AslTables/SsdtRemotePci.asl > new file mode 100644 > index 000000000000..1efb755a67dd > --- /dev/null > +++ b/Platform/ARM/N1Sdp/ConfigurationManager/ConfigurationManagerDxe/Asl= Tables/SsdtRemotePci.asl > @@ -0,0 +1,156 @@ > +/** @file > + Secondary System Description Table (SSDT) > + > + Copyright (c) 2021, ARM Limited. All rights reserved.
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > +**/ > + > +#include "N1SdpAcpiHeader.h" > + > +/* > + See ACPI 6.1 Section 6.2.13 > + > + There are two ways that _PRT can be used. > + > + In the first model, a PCI Link device is used to provide additional > + configuration information such as whether the interrupt is Level or > + Edge triggered, it is active High or Low, Shared or Exclusive, etc. > + > + In the second model, the PCI interrupts are hardwired to specific > + interrupt inputs on the interrupt controller and are not > + configurable. In this case, the Source field in _PRT does not > + reference a device, but instead contains the value zero, and the > + Source Index field contains the global system interrupt to which the > + PCI interrupt is hardwired. > + > + We use the first model with link indirection to set the correct > + interrupt type as PCI defaults (Level Triggered, Active Low) are not > + compatible with GICv2. > +*/ > +#define LNK_DEVICE(Unique_Id, Link_Name, irq) = \ > + Device(Link_Name) { = \ > + Name(_HID, EISAID("PNP0C0F")) = \ > + Name(_UID, Unique_Id) = \ > + Name(_PRS, ResourceTemplate() { = \ > + Interrupt(ResourceProducer, Level, ActiveHigh, Exclusive) { irq } = \ > + }) = \ > + Method (_CRS, 0) { Return (_PRS) } = \ > + Method (_SRS, 1) { } = \ > + Method (_DIS) { } = \ > +} > + > +#define PRT_ENTRY(Address, Pin, Link) = \ > + Package (4) { = \ > + Address, /* uses the same format as _ADR */ = \ > + Pin, /* The PCI pin number of the device (0-INTA, 1-INTB, 2-INT= C, 3-INTD) */ \ > + Link, /* Interrupt allocated via Link device */ = \ > + Zero /* global system interrupt number (no used) */ = \ > +} > + > +/* > + See Reference [1] 6.1.1 > + "High word-Device #, Low word-Function #. (for example, device 3, > + function 2 is 0x00030002). To refer to all the functions on a device #= , > + use a function number of FFFF)." > +*/ > +#define ROOT_PRT_ENTRY(Pin, Link) PRT_ENTRY(0x0000FFFF, Pin, Link) //= Device 0 for Bridge. > + > +DefinitionBlock("SsdtRemotePci.aml", "SSDT", 1, "ARMLTD", "N1Sdp", > + EFI_ACPI_ARM_OEM_REVISION) > +{ > + Scope (_SB) { > + > + // Remote PCI Root Complex > + LNK_DEVICE(9, LNKI, 681) > + LNK_DEVICE(10, LNKJ, 682) > + LNK_DEVICE(11, LNKK, 683) > + LNK_DEVICE(12, LNKL, 684) > + > + //Remote PCIe root complex > + Device(PCI2) { > + Name (_HID, EISAID("PNP0A08")) // PCI Express Root Bridge > + Name (_CID, EISAID("PNP0A03")) // Compatible PCI Root Bridge > + Name (_SEG, 2) // PCI Segment Group number > + Name (_BBN, Zero) // PCI Base Bus Number > + Name (_CCA, 1) // Cache Coherency Attribute > + > + // Remote Root Complex 0 > + Device (RP0) { > + Name(_ADR, 0xF0000000) // Dev 0, Func 0 > + } > + > + // PCI Routing Table > + Name(_PRT, Package() { > + ROOT_PRT_ENTRY(0, LNKI), // INTA > + ROOT_PRT_ENTRY(1, LNKJ), // INTB > + ROOT_PRT_ENTRY(2, LNKK), // INTC > + ROOT_PRT_ENTRY(3, LNKL), // INTD > + }) > + > + // Root complex resources > + Method (_CRS, 0, Serialized) { > + Name (RBUF, ResourceTemplate () { > + WordBusNumber ( // Bus numbers ass= igned to this root > + ResourceProducer, > + MinFixed, > + MaxFixed, > + PosDecode, > + 0, // AddressGranular= ity > + FixedPcdGet32 (PcdPcieBusMin), // AddressMinimum = - Minimum Bus Number > + FixedPcdGet32 (PcdPcieBusMax), // AddressMaximum = - Maximum Bus Number > + 0, // AddressTranslat= ion - Set to 0 > + FixedPcdGet32 (PcdPcieBusCount) // RangeLength - N= umber of Busses > + ) > + > + QWordMemory ( // 32-bit BAR Wind= ows > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet32 (PcdPcieMmio32Base), // Min Base Addres= s > + FixedPcdGet32 (PcdPcieMmio32MaxBase), // Max Base Addres= s > + FixedPcdGet32 (PcdRemotePcieMmio32Translation), // Translate > + FixedPcdGet32 (PcdPcieMmio32Size) // Length > + ) > + > + QWordMemory ( // 64-bit BAR Wind= ows > + ResourceProducer, > + PosDecode, > + MinFixed, > + MaxFixed, > + Cacheable, > + ReadWrite, > + 0x00000000, // Granularity > + FixedPcdGet64 (PcdPcieMmio64Base), // Min Base Addres= s > + FixedPcdGet64 (PcdPcieMmio64MaxBase), // Max Base Addres= s > + FixedPcdGet64 (PcdRemotePcieMmio64Translation), // Translate > + FixedPcdGet64 (PcdPcieMmio64Size) // Length > + ) > + > + QWordIo ( // IO window > + ResourceProducer, > + MinFixed, > + MaxFixed, > + PosDecode, > + EntireRange, > + 0x00000000, // Granularity > + FixedPcdGet32 (PcdPcieIoBase), // Min Base Addres= s > + FixedPcdGet32 (PcdPcieIoMaxBase), // Max Base Addres= s > + FixedPcdGet64 (PcdRemotePcieIoTranslation), // Translate > + FixedPcdGet32 (PcdPcieIoSize), // Length > + , > + , > + , > + TypeTranslation > + ) > + }) // Name(RBUF) > + > + Return (RBUF) > + } // Method (_CRS) > + } > + } > +} IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.