From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.51]) by mx.groups.io with SMTP id smtpd.web08.23646.1621865620837646878 for ; Mon, 24 May 2021 07:13:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=fzn9gXOP; spf=pass (domain: arm.com, ip: 40.107.8.51, 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=YVBrSqORTzNCstAYQVCG7KSysm4DkmevLoOBcf7UQOM=; b=fzn9gXOPRue8V57lKBfOeE8TGfGmN23vgmi7TlG1RCFbUY+HQxab7LpXXI6RcYzIjup+ANvylytxCIwbJT0WfGW7uhRQ1LCbZMfBINsRm79rcitUcq5VrOTmYE2LcSIFR/i2u81pDgBt0oDiQD/TvJPHTFpIfuQNG2fsToeAtoo= Received: from AM6P191CA0079.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8a::20) by DB6PR0801MB2120.eurprd08.prod.outlook.com (2603:10a6:4:3c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.27; Mon, 24 May 2021 14:13:38 +0000 Received: from VE1EUR03FT036.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8a:cafe::85) by AM6P191CA0079.outlook.office365.com (2603:10a6:209:8a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23 via Frontend Transport; Mon, 24 May 2021 14:13:38 +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 VE1EUR03FT036.mail.protection.outlook.com (10.152.19.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Mon, 24 May 2021 14:13:37 +0000 Received: ("Tessian outbound 6c8a2be3c2e7:v92"); Mon, 24 May 2021 14:13:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2185e3c2babe331a X-CR-MTA-TID: 64aa7808 Received: from b7cc9e6611de.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 499949AF-9F92-4F3A-825D-5D61BA8FE0E7.1; Mon, 24 May 2021 14:13:31 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b7cc9e6611de.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 24 May 2021 14:13:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gZcsbAIcFbizot3gIy8r0VHsTVx9ME9AppX8gfsRph/adJJbuViQWvJFVEhqNcO5O277VjRgzgUULrV+EIbpdyi+FDnXlrpIzrxiHlvdkDY5v/cvgcHRxqM9w9mI4LvLy556o7eYiJRMRsI1SRKu5XuQInj6NSNJzwl0rG7t59aAvFnTXg2FZs5B7BcuvG4OGX83DZNh4tAcahud5th8MilsxvKX3mIw+Li+KDYV5mEaGExqO1Bx4wqduq6MPmh1IllH0+bvJoYRHuGesfhHACD/4iQhhZj46uKDGjvWSrrbM8Pqlc/L0uWLFhN3XSYA/IXqtGzUVVybhzcKmNOgHA== 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=YVBrSqORTzNCstAYQVCG7KSysm4DkmevLoOBcf7UQOM=; b=cq6SeonnOcWesRef8IPnvnO//nP95uJSKjkUWUMWdssGD7l0KGcP+ZUfEeFUshCqu/chmLSyn+hag/sTyCxje2e0AuVb3j8w2yH24NfiKMBT0OzAvpOwq5YwErE0mZEjsb9lcK8p5iWN5dukLas+ctsK0/9bjwIn+5cQJrwghQt9NGf/2FH5AexFTWFKW/4onEh9S/ahTpYTM4rMAN9kyOh9a8eOvX0opBVTdnTx0tvv71Zujwjh+8EPIbkDBdZZ/bOyUW0Cg8NZajyRKeKhM5BvppbaSt/lgqs8wWmCljbn3zzb+0C9PMLthTSVXQOfXRODITkdDjeAls31bG+gvw== 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=YVBrSqORTzNCstAYQVCG7KSysm4DkmevLoOBcf7UQOM=; b=fzn9gXOPRue8V57lKBfOeE8TGfGmN23vgmi7TlG1RCFbUY+HQxab7LpXXI6RcYzIjup+ANvylytxCIwbJT0WfGW7uhRQ1LCbZMfBINsRm79rcitUcq5VrOTmYE2LcSIFR/i2u81pDgBt0oDiQD/TvJPHTFpIfuQNG2fsToeAtoo= 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 AS8PR08MB6470.eurprd08.prod.outlook.com (2603:10a6:20b:33a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.26; Mon, 24 May 2021 14:13:29 +0000 Received: from AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::80cb:878d:c8f1:2688]) by AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::80cb:878d:c8f1:2688%7]) with mapi id 15.20.4150.027; Mon, 24 May 2021 14:13:29 +0000 Subject: Re: [edk2-platforms][PATCH V1 2/6] Platform/Sgi: ACPI PPTT table for RD-N2-Cfg1 platform To: Pranav Madhu , devel@edk2.groups.io Cc: Ard Biesheuvel , nd@arm.com References: <20210519082247.3003-1-pranav.madhu@arm.com> <20210519082247.3003-3-pranav.madhu@arm.com> From: "Sami Mujawar" Message-ID: Date: Mon, 24 May 2021 15:13:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 In-Reply-To: <20210519082247.3003-3-pranav.madhu@arm.com> X-Originating-IP: [217.140.106.52] X-ClientProxiedBy: LO4P123CA0410.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:189::19) 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.52) by LO4P123CA0410.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:189::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23 via Frontend Transport; Mon, 24 May 2021 14:13:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 36e497ab-00f2-41c4-6b5c-08d91ebe1fe3 X-MS-TrafficTypeDiagnostic: AS8PR08MB6470:|DB6PR0801MB2120: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:1227;OLM:1227; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: ISuNOvn4X7qR8V7zYYU/1MT077krF+5JygjrKqNceYk/LsXU1IQt3+/8epeCOelxrrePCT/acNc+NXyvWLzHVLHOE8VsQiL4uJZK6zmC2kOWvKvuWif5JaCum6X1nGMnrh8sVpdyH+ptraJ60R88k//OzlX0hSxjXZGvjYR2CAwfNWrnEAbyQXni5hnWqGd71gKqF7FJDP0rqi3eBt3FkIDA1kLTdFyxUA37Fp/PeNQdlSGZti4ZryQ/AEF+8fnAKZiyLZsXtz2Nd+kyTzFDklbKuV70fL1TfYgnQndXWTKv1WaaO4OhsfiVdKbfRJwvFqxl9RSJugHqNtFFhgx7EEFwMQJk7nFU+JysJGMMrlN7gD4KgzM9ew87cUuKnPciYTTNfOBHVUIi2taBDrtCOiw3Oyspt+rWOMZYUqrsdgQe6o97xCPN0yGs8qJhpjjt7W9dchimsMdfWwvnFjnvvS7pRlqhVJoPktMMPJUENi65qcL7YJbUyuM6GasKIZ1qcWQ1XVFildcqJ7vPLUA2Fz6nW8I01k/sprQ5wk2S627e4DZeWkViF/pGeDC7T2uSQIi6n7SLYozZUK0wRNOSSwFx6MfEuOghKoxWtFZPHGSiofgoFu3fCc+VaAXOq3J1nDRzTeC4lbUClnPnq+szgzWBwtU7we3Pg8Fdo6TIudp4brR+kuS+2wEMxLElizfS6p+JsNNxkVbZ3dbfWGW+UQ== 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)(376002)(136003)(39860400002)(366004)(396003)(346002)(52116002)(31696002)(66556008)(6486002)(26005)(86362001)(44832011)(66476007)(186003)(16526019)(8676002)(53546011)(83380400001)(38100700002)(2616005)(956004)(5660300002)(4326008)(16576012)(316002)(38350700002)(2906002)(36756003)(19627235002)(478600001)(31686004)(8936002)(66946007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?bXdBZ2Y1YURPMk81b1BZcWlCckEzUU85ZU9QQ01JSjBCSXdQbUFvQ0tpYXJp?= =?utf-8?B?cEVxVFF6RFR2bjdKS3JuRGx4ZlNpb0JrOVNWVkFKcnVyOHpVRmpZNXQ5djV2?= =?utf-8?B?QituWU16REJkRWJUcjF5MWx6eHcyZXduZUNnZFIvYlNKci9XK3Fmb0laSWlY?= =?utf-8?B?UVR3SmxJaTJEcTFES3RRYzg0YXVvVjBpbGpsTzhpODBSTnFUbzZ4bHpsc3Vy?= =?utf-8?B?cWxlS1NlN2djTHpaL2piS1JoVVUrb3ZVdCs5b1lTaGo1ZUhNSktLdndLYjJu?= =?utf-8?B?cUFJcXFES0lIOXBGcTkrM2NMTDVaQXdhK01BU1hWZjJoTVdpZnZNNjlJd3hv?= =?utf-8?B?S3pRdjJVMmJ5WXluNWhaUC9naU9oQmJOSnFnLzkzeE1qVnAxOFRlS0pFc1lP?= =?utf-8?B?T3FrUVlkOUFoS2tlUVAvSDhEOC9vSmdwdWpwd3I5RysvbmkxN1hWRjJFYTIy?= =?utf-8?B?R2Fab0lHbHgxYnBTMjBDYUJPSzRuQzlVZk8zOG5NRlFqWWRGZ2RZUk1HQ2ZD?= =?utf-8?B?NjhFTjBhaGFlaHNiSnNhRTY3RmdoTzlnSkpPME9TV1RYZnVBS1BvRnM0TDlT?= =?utf-8?B?bndzRkNRQmRRcE1LWm1nUEhEMDB3MHZBNVhRaTM3YmkveFZHSmkva0tHT21q?= =?utf-8?B?MGR5NFp0ZCt4Y1o2WWhLbExsZU5QSCtPdjFMamRIMEdPOGg1V1lqNHNiZXN2?= =?utf-8?B?MHNXaXlYNmx2Z3kreG81aE8xMW1vTDlCUEk5anVnMzEwUUh3dnRpZzA2NSt0?= =?utf-8?B?T0VrUFlYUzFOc21ya3d2Q0VDNSs5REIwd0pYRmFWcjJjQzdSdnJ2Y3F6SUVD?= =?utf-8?B?VHJzUHBtM1crVEYzWWYzZTNHMHR3QTFsL3VWRktldUJZS25Nb3dkZGR3d3Ro?= =?utf-8?B?bXE3N2hNY1pEVmdMWW1XR0M0YzRYOUlCREhDTjltNHZYU0xrL2xUR2o1dWxJ?= =?utf-8?B?QTR6bkRrcUF5VXNvTHRaUmk2b2lKdTVsdDBqNVQ0ZkNmOUZMdnZ2OHBPZjNi?= =?utf-8?B?a1h5S3BzYlJGaUxuTEJTd09WV3kvRzNhNEIxTzJ1ZEZISjVURkM1Zkh6T3Zk?= =?utf-8?B?UFJ4NzVBbzk3ZDNhMXd6S0Y0UmVVRU9ZVEpLTG1lS0kyc2VDaG1YdFpldFRJ?= =?utf-8?B?M2tqbXJzbnFVRmRDOFRBV2RCT0lTV09LUHprMkFucERMemtScEkyYW5Pakpj?= =?utf-8?B?N1JQMTRISVZXdUJsaDNZRXZBZ01oaFMzM1BZaERONW9jVitjY2lpemUvaktl?= =?utf-8?B?TDBKZnFqYWk5N1k2M0wzYk9qRDF0NHZXVEg4dGJYMkE4dGFTQ09QR0Q5RW1S?= =?utf-8?B?VU51VGRRVnRzWmdIdmZPa1dwNnFndW9JTnlCRklKUm81RFpTS2lSY1B6M3Z1?= =?utf-8?B?aEpVOGtYaW5GV3gvVkN1ZDZBRkU4YXdSeFFnQjhxZTFEdndWTkEvV1JjeUVF?= =?utf-8?B?YXBiRlBiTnl1a0ZNNWVSR3owN1lKZHIyMStMUFF5aUVQMkhjeW14N2dncmNV?= =?utf-8?B?NHUxY0tYdityaEdubmd6cFNGN2IvTVZ5TDZEaUFKWEVKUndWSHVVTjhtczBF?= =?utf-8?B?dlZKRUxuT0hpemx4bFpGWE1saFpROG13eHZqVWY3UkRXQ2FEMlR5SlRJV1Fx?= =?utf-8?B?d0c3YXpXSVVkQlg4V2x0NWJKZENON04renpIRkd3Tk9jZlU2NFFjdGkycG00?= =?utf-8?B?NUd6UEh1aVZGSytnQ2piSTZMRERqQ3lHL2JGVlR1ZWxPWVgyMW5BUDNWb3Bi?= =?utf-8?Q?joGFEiQRAaGnWTFrhv0FLVzGJxdDXjpqEzGdRVP?= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6470 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: VE1EUR03FT036.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 8529ff2c-6327-4943-b3e8-08d91ebe1b21 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Oa25IIlYQ1Vy8RdsJoBr/O9psaB6xOfa7TrBrFNAu2vTP+z4REH5lY6+ExCmvwgDI34ZuLlLi6JRJaCCgEI2hQSjgCri8q+Lhw2/7FLCGxzJRopf++w5cJChXlkPuTtWIdfaOiZ68vflniDTcMRuGMH5qYCwi4OvhgdWMR/w69XjoFxFq7S5EzMZ7imUucHYGBWMaEnOkWJVRQfJ60BW/LnS5eHzYFu6Is+V5nOo5XiASLTU/8m7SvaVPyDOKRknPcnfXiHopKRNKG5m7vGveMMm5P5xDWX4i4FDzHaoTDUWgnoNVKlcnoo1lLhrJNVdQHrYpvHXs4L5MDUl74QbYPwI1XuBK9eGJeNI4OfY4nGx1LfblQnk6oo/9Riv1S/BxzPwuRkzmg5zFIEad1GdtqULc2vOUiFy7vvzm1w1E9QQ0UIHMJ8fOhl/OSre03jdnbsA96HnCvDKHlyWOJu/9wRwx6jTVnHfHe3PAS7v6a+2bIZg8BmpmQe2od1dh7Px547i9PERnVwdCVlk4n1YWQ0j8aAQKwgq1N/56OFfe3gYbwZEIO8al6WgUlDYOhn8G0Z8m9CT4dp1zERBibRv0Rpv7BXcKiAF6lEMzfzNEWl07wWMi/DfZy2ZRKEWpjDtcrKg3nCIyHJ4Vhbxcq+x/W53AdX/IsffuXhjCHRzy3NGMQt+HEk9XjCt9kV535xu 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)(376002)(346002)(136003)(396003)(39860400002)(46966006)(36840700001)(70206006)(70586007)(16576012)(478600001)(53546011)(316002)(83380400001)(26005)(82740400003)(44832011)(2906002)(19627235002)(31686004)(81166007)(356005)(36860700001)(956004)(186003)(16526019)(5660300002)(47076005)(8676002)(86362001)(336012)(6486002)(8936002)(82310400003)(2616005)(31696002)(36756003)(4326008)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2021 14:13:37.5524 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 36e497ab-00f2-41c4-6b5c-08d91ebe1fe3 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: VE1EUR03FT036.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2120 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Hi Pranav, This patch looks good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 19/05/2021 09:22 AM, Pranav Madhu wrote: > The RD-N2-Cfg1 platform includes eight single-thread CPUS. Each of the > CPUs include 64KB L1 Data cache, 64KB L1 Instruction cache and 1MB L2 > cache. The platform also includes a system level cache of 8MB. Add PPTT > table for RD-N2-Cfg1 platform with this information. > > Signed-off-by: Pranav Madhu > --- > Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1AcpiTables.inf | 1 + > Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1/Pptt.aslc | 166 ++++++++++++++++++++ > 2 files changed, 167 insertions(+) > > diff --git a/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1AcpiTables.inf b/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1AcpiTables.inf > index 8c8ce462c9d3..59e9dfceec76 100644 > --- a/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1AcpiTables.inf > +++ b/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1AcpiTables.inf > @@ -22,6 +22,7 @@ > Mcfg.aslc > RdN2Cfg1/Dsdt.asl > RdN2Cfg1/Madt.aslc > + RdN2Cfg1/Pptt.aslc > Spcr.aslc > Ssdt.asl > SsdtRos.asl > diff --git a/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1/Pptt.aslc b/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1/Pptt.aslc > new file mode 100644 > index 000000000000..5890544c0b92 > --- /dev/null > +++ b/Platform/ARM/SgiPkg/AcpiTables/RdN2Cfg1/Pptt.aslc > @@ -0,0 +1,166 @@ > +/** @file > +* Processor Properties Topology Table (PPTT) for RD-N2-Cfg1 platform > +* > +* This file describes the topological structure of the processor block on the > +* RD-N2-Cfg1 platform in the form as defined by ACPI PPTT table. The RD-N2-Cfg1 > +* platform includes eight single-thread CPUS. Each of the CPUs include 64KB > +* L1 Data cache, 64KB L1 Instruction cache and 1MB L2 cache. The platform also > +* includes system level cache of 8MB. > +* > +* Copyright (c) 2021, ARM Limited. All rights reserved. > +* SPDX-License-Identifier: BSD-2-Clause-Patent > +* > +* @par Specification Reference: > +* - ACPI 6.3, Chapter 5, Section 5.2.29, Processor Properties Topology Table > +**/ > + > +#include > +#include > +#include > +#include > + > +#include "SgiAcpiHeader.h" > +#include "SgiPlatform.h" > + > +/** Define helper macro for populating processor core information. > + > + @param [in] PackageId Package instance number. > + @param [in] ClusterId Cluster instance number. > + @param [in] CpuId CPU instance number. > +**/ > +#define PPTT_CORE_INIT(PackageId, ClusterId, CpuId) \ > + { \ > + /* Parameters for CPU Core */ \ > + EFI_ACPI_6_3_PPTT_STRUCTURE_PROCESSOR_INIT ( \ > + OFFSET_OF (RD_PPTT_CORE, DCache), /* Length */ \ > + PPTT_PROCESSOR_CORE_FLAGS, /* Flag */ \ > + OFFSET_OF (EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE, \ > + Package.Cluster[ClusterId]), /* Parent */ \ > + ((PackageId << 4) | ClusterId), /* ACPI Id */ \ > + 2 /* Num of private resource */ \ > + ), \ > + \ > + /* Offsets of the private resources */ \ > + { \ > + OFFSET_OF (EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE, \ > + Package.Cluster[ClusterId].Core[CpuId].DCache), \ > + OFFSET_OF (EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE, \ > + Package.Cluster[ClusterId].Core[CpuId].ICache) \ > + }, \ > + \ > + /* L1 data cache parameters */ \ > + EFI_ACPI_6_3_PPTT_STRUCTURE_CACHE_INIT ( \ > + PPTT_CACHE_STRUCTURE_FLAGS, /* Flag */ \ > + OFFSET_OF (EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE, \ > + Package.Cluster[ClusterId].Core[CpuId].L2Cache), \ > + /* Next level of cache */ \ > + SIZE_64KB, /* Size */ \ > + 256, /* Num of sets */ \ > + 4, /* Associativity */ \ > + PPTT_DATA_CACHE_ATTR, /* Attributes */ \ > + 64 /* Line size */ \ > + ), \ > + \ > + /* L1 instruction cache parameters */ \ > + EFI_ACPI_6_3_PPTT_STRUCTURE_CACHE_INIT ( \ > + PPTT_CACHE_STRUCTURE_FLAGS, /* Flag */ \ > + OFFSET_OF (EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE, \ > + Package.Cluster[ClusterId].Core[CpuId].L2Cache), \ > + /* Next level of cache */ \ > + SIZE_64KB, /* Size */ \ > + 256, /* Num of sets */ \ > + 4, /* Associativity */ \ > + PPTT_INST_CACHE_ATTR, /* Attributes */ \ > + 64 /* Line size */ \ > + ), \ > + \ > + /* L2 cache parameters */ \ > + EFI_ACPI_6_3_PPTT_STRUCTURE_CACHE_INIT ( \ > + PPTT_CACHE_STRUCTURE_FLAGS, /* Flag */ \ > + 0, /* Next level of cache */ \ > + SIZE_1MB, /* Size */ \ > + 2048, /* Num of sets */ \ > + 8, /* Associativity */ \ > + PPTT_UNIFIED_CACHE_ATTR, /* Attributes */ \ > + 64 /* Line size */ \ > + ), \ > + } > + > +/** Define helper macro for populating processor container information. > + > + @param [in] PackageId Package instance number. > + @param [in] ClusterId Cluster instance number. > +**/ > +#define PPTT_CLUSTER_INIT(PackageId, ClusterId) \ > + { \ > + /* Parameters for Cluster */ \ > + EFI_ACPI_6_3_PPTT_STRUCTURE_PROCESSOR_INIT ( \ > + OFFSET_OF (RD_PPTT_MINIMAL_CLUSTER, Core), /* Length */ \ > + PPTT_PROCESSOR_CLUSTER_FLAGS, /* Flag */ \ > + OFFSET_OF (EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE, \ > + Package), /* Parent */ \ > + ((PackageId << 4) | ClusterId), /* ACPI Id */ \ > + 0 /* Num of private resource */ \ > + ), \ > + \ > + /* Initialize child core */ \ > + { \ > + PPTT_CORE_INIT (PackageId, ClusterId, 0) \ > + } \ > + } > + > +#pragma pack(1) > +/* > + * Processor Properties Topology Table > + */ > +typedef struct { > + EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_HEADER Header; > + RD_PPTT_SLC_PACKAGE Package; > +} EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE; > +#pragma pack () > + > +STATIC EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE Pptt = { > + { > + ARM_ACPI_HEADER ( > + EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE, > + EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE, > + EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION > + ) > + }, > + > + { > + EFI_ACPI_6_3_PPTT_STRUCTURE_PROCESSOR_INIT ( > + OFFSET_OF (RD_PPTT_SLC_PACKAGE, Slc), > + PPTT_PROCESSOR_PACKAGE_FLAGS, 0, 0, 1), > + > + OFFSET_OF (EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE, > + Package.Slc), > + > + EFI_ACPI_6_3_PPTT_STRUCTURE_CACHE_INIT ( > + PPTT_CACHE_STRUCTURE_FLAGS, /* Flag */ > + 0, /* Next level of cache */ > + SIZE_8MB, /* Size */ > + 8192, /* Num of sets */ > + 16, /* Associativity */ > + PPTT_UNIFIED_CACHE_ATTR, /* Attributes */ > + 64 /* Line size */ > + ), > + > + { > + PPTT_CLUSTER_INIT (0, 0), > + PPTT_CLUSTER_INIT (0, 1), > + PPTT_CLUSTER_INIT (0, 2), > + PPTT_CLUSTER_INIT (0, 3), > + PPTT_CLUSTER_INIT (0, 4), > + PPTT_CLUSTER_INIT (0, 5), > + PPTT_CLUSTER_INIT (0, 6), > + PPTT_CLUSTER_INIT (0, 7), > + } > + } > +}; > + > +/* > + * Reference the table being generated to prevent the optimizer from removing > + * the data structure from the executable > + */ > +VOID* CONST ReferenceAcpiTable = &Pptt;