From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.42]) by mx.groups.io with SMTP id smtpd.web09.263.1663879028438140275 for ; Thu, 22 Sep 2022 13:37:08 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nvidia.com header.s=selector2 header.b=E7xaTKo9; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.237.42, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FRoGUTjvTWtbO/cbyWB2A2mTxT3rgNF9I/VmvmnXfwvyJMERMZMXgBLpHihHIyDhN40SSHCnnv4DU3FpGgjeuofCa6TV+D2ZmG0XJK9toWklJcBzdYDNyQVUioSHJqmxXXpn5KbkFGhlXzZLbic0w6SbBk0qVkCIbA+QvZvm69T3NdJPTkY8GlKx+orpC8o6iAJCylP3Z0w8b0uDCLx8vGwhwsOy/UkSW3DPPte0dr6qczhHPVzKBhYT43NFVtnb4l35buNPQoHOSRwRKlg7anPwOjsOcEhE1L73EmXOW46psaO/9vEEF/vLfhJY9BCJvrug59yU3VCeZ0QvpdSiYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0lD5Qd+2bJc/+qyNbd/fi1JOReXUfzoGWlpDYrLUapU=; b=Wd3jP0dEeoHUb0hJzqY+9tmwSuco5l2+aiNrc9xaQ8lyCPzQ6WwO7TymajkbNyXGkw577mBF9kscvNYeCWCw1Vvl87Rnwfnr/0BXM4OkHhmgc180L9WpluLEdqwV2/irdDccGmv+4iVXOUYhUlP69l0iAC+mSwAQMlx96mdz3rOGWIWEz7Ixt5yhszXfuDg5hiEPjjVYPL+5KBm8iMSv0icU5+lVKqvpFPS2ht6OMSHyY8K+FOZHwEPtCOwmDaLt/DW50dS+oyp9bNZRacSEiut62PA3qMoMkMQt4eCDSNS0oQ7zrIfz6E+n5zkCk7a5W17pQQbUlvMTaV8lOR/MlA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0lD5Qd+2bJc/+qyNbd/fi1JOReXUfzoGWlpDYrLUapU=; b=E7xaTKo9egV5Sk1WxxJkZZLPmruYLjS9/BLVEDaVeXZACYg5U1gM+4M9jxVUmXT0d7jQy48tkZV4AoI7X4SHX0Cm/lso9JoO2p9CQzDwQ0VyX7+SNh64g4tGUJmPRHEpM90ZnoYf2PVMiEKFE61gm8R3czwfe6T0iuzJjWlw/r7vw0Hh7J8SCOlbZl5cUHD6lqptM4l1WptOElLn51S4HP/M7I9ToYdpQsCwXbhbr44Swog1A7o4mD2DfKAf8+8GixMdquf6P3+njBVRAMfTI7y3wd5V3DWjaYmhWS1c1fyJot4c7tjVOABLYF1dysecWdvbrJ3maXdC5ELlmkdTTg== Received: from DM6PR06CA0025.namprd06.prod.outlook.com (2603:10b6:5:120::38) by BN9PR12MB5260.namprd12.prod.outlook.com (2603:10b6:408:101::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.18; Thu, 22 Sep 2022 20:37:05 +0000 Received: from DM6NAM11FT094.eop-nam11.prod.protection.outlook.com (2603:10b6:5:120:cafe::cf) by DM6PR06CA0025.outlook.office365.com (2603:10b6:5:120::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.19 via Frontend Transport; Thu, 22 Sep 2022 20:37:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT094.mail.protection.outlook.com (10.13.172.195) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14 via Frontend Transport; Thu, 22 Sep 2022 20:37:05 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Thu, 22 Sep 2022 13:36:52 -0700 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 22 Sep 2022 13:36:52 -0700 Received: from f153882e4be8.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.986.29 via Frontend Transport; Thu, 22 Sep 2022 13:36:51 -0700 From: "Jeff Brasen" To: CC: , , , , , Jeff Brasen Subject: [PATCH v5 0/3] DynamicTablesPkg: _CPC support Date: Thu, 22 Sep 2022 14:36:43 -0600 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public Return-Path: jbrasen@nvidia.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT094:EE_|BN9PR12MB5260:EE_ X-MS-Office365-Filtering-Correlation-Id: 2302f5c5-abaa-4f68-632f-08da9cda3650 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 44Lcc80WxTZRsm9Vwu2o5UvxbVJBE4CqlgQZ3dZ2d7desNSEZ4/ul2mVk+134E6Bcfhl/RwTqfbX0VrWEEAMCP3hEikrIty8PqwhOQ2sElCumZ1xB93SENaP/NmuIv/Xz2Gr1ZD2+Yw3ZXwpWUZphFAH8I7v1luGJl0Ga4IjuK3kP0GgmBwBRAaKLGiIkQhxsVk5EGwymthIHvrrExHMltvYzrjCMb4oHIi1JtzJpu5yLbO2EvO7TYcG1Cxzvr13OZtlLWIwnDB8ZzdFgBtyNLDc0WdJj6c1CLtOAXkHDqhSMzzslNEYRXfK8SuRSjnb3IcdCnA409ePk9nWboAFYOKa9pbOzuOCWqv/STDnang8G7yzM9mDUma9UifzVUmO9kc2Ra41ZqhiH4KSdYEE+ubAn++K+nhoFnQkjiO2cUgR/eF6EuLWGbznGuXBJwFvvwZBYagMy0Fn3Qs+AyBZ5yvNMv1UvldIEK8j+iKXb8RM8K6hx5sywC9D9JnpFUwYrTrXWPKaztLCwdIasIUI8UiYMq8ZEiELFRoqm7Phhc8AuKeAnEwgXHSk5nvye8mZHTlmej73vcy/ekrWvGnQPNFFEQDNKR+2P+TCr5d1BsLuPMJ9DDtvqytiQF+Lu+uOyveVVZNSc7FWtB6B9uC7N5pncD2i59FADtyp7p77nHAu1wLNAZy6H+bMW6zkojIndLd6FCIzmOXkfgwrm1C4djKhViarDQr5CWGicTznLszpbaeVV7tYlg5ouptPSGG6tpwrobPkhbfO9zmwGQfAtYVms0CNGT6ebitT8AOMkXI= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(396003)(39860400002)(136003)(346002)(376002)(451199015)(36840700001)(40470700004)(46966006)(6916009)(36756003)(82740400003)(36860700001)(86362001)(7636003)(356005)(426003)(186003)(82310400005)(336012)(40460700003)(2906002)(5660300002)(966005)(107886003)(7696005)(6666004)(41300700001)(478600001)(26005)(2616005)(83380400001)(47076005)(8676002)(40480700001)(316002)(8936002)(4326008)(70586007)(70206006)(54906003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2022 20:37:05.2981 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2302f5c5-abaa-4f68-632f-08da9cda3650 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT094.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5260 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Add generator for creating the _CPC object for CPU nodes. If viewing this review by a pull request is helpful one exists here: https://github.com/NVIDIA/edk2/pull/12 Change Log: v1 - Initial Revision v2 - Added revision to object, improved error handling, changed to ACPI 6.4= structures. v3 - Minor review feedback v4 - Convert CpcInfo to structure and use that for APIs v5 - Cleanup parameter checks, add token to parser Jeff Brasen (3): DynamicTablesPkg: Add CM_ARM_CPC_INFO object DynamicTablesPkg: AML Code generation to add _CPC entries DynamicTablesPkg: SSDT CPU _CPC generator .../Include/ArmNameSpaceObjects.h | 60 ++- DynamicTablesPkg/Include/Library/AmlCpcInfo.h | 124 +++++ .../Include/Library/AmlLib/AmlLib.h | 54 ++ .../SsdtCpuTopologyGenerator.c | 133 ++++- .../Common/AmlLib/CodeGen/AmlCodeGen.c | 475 ++++++++++++++++++ .../ConfigurationManagerObjectParser.c | 115 ++++- 6 files changed, 921 insertions(+), 40 deletions(-) create mode 100644 DynamicTablesPkg/Include/Library/AmlCpcInfo.h --=20 2.25.1