From nobody Fri May 3 11:06:46 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70677+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 161131989010671.6440449679842; Fri, 22 Jan 2021 04:51:30 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id N0P0YY1788612xCzBIhpJs19; Fri, 22 Jan 2021 04:51:26 -0800 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.58]) by mx.groups.io with SMTP id smtpd.web10.8301.1611319884943739643 for ; Fri, 22 Jan 2021 04:51:26 -0800 X-Received: from DB8PR09CA0032.eurprd09.prod.outlook.com (2603:10a6:10:a0::45) by AM5PR0802MB2499.eurprd08.prod.outlook.com (2603:10a6:203:a1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.13; Fri, 22 Jan 2021 12:51:22 +0000 X-Received: from DB5EUR03FT021.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:a0:cafe::e) by DB8PR09CA0032.outlook.office365.com (2603:10a6:10:a0::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12 via Frontend Transport; Fri, 22 Jan 2021 12:51:21 +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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+70677+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT021.mail.protection.outlook.com (10.152.20.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Fri, 22 Jan 2021 12:51:21 +0000 X-Received: ("Tessian outbound f362b81824dc:v71"); Fri, 22 Jan 2021 12:51:21 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: ee10328d5685b96f X-CR-MTA-TID: 64aa7808 X-Received: from 1d462fe9985a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B096DE05-8031-498B-8BD2-F9EA869CE615.1; Fri, 22 Jan 2021 12:51:16 +0000 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 1d462fe9985a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 22 Jan 2021 12:51:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g4USWnPou1fqC8nK+1ekPziQ94s5A07IMRImyWM5p1VYM8HuvC/eMwiNzQGU+kryzLu72gG5qqiG5kN5DCuAnNsWmAGL5AQZ9712dCy0o/DE2hvPoy6pP/7apA2I8JECIKq7yqgN6tzFrC3lO/ydq+xnQJNYg0DtPfbVEatU+h6k/uMiyfEgmzZ7T4ZobPzz9VRLPXseuSG9Pk2FXgdmIIIWOABqjKD3jSpsNXvFJ2Kx3qgGuGmEuDuO7jFDgYHg59ae9nL8sk8fOniWW1tpEdIndlfl+Cbt6gfZoYla29OnPYwGTFUUpZPdexWZUfJ0l0ZW3D6FyMvpxyAOYOufXQ== 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=xFEIpaBae3KfYisZEknFQ4Jt6tSoCKi/u6rJu1tOvHA=; b=K0NTs7cnzVzg+wDfbCejo5ZY0YtLWCls2sjdBPxHil+j+VMDMmL6PYYs1DZYb43RxyRI2VAoKumtuS6L9t1gMMI8kMgvmu2HYN5xr7dFnaxhZQef7VvxvzWTJ++/zjSD2ChQl7jqbIEeHMmSc5KSc9cRu/F9CXjbra/YmvVPwI7oSzAdqlCmao0pZKVH6SLquoRnDtqQimo6EBOQVZKTpN+8E0xZj7i8wJuwz3lQfOhjDowC4sskH1nAEDAgx0TeOxAHF2F0ykBl8HLLj8nzpNqGoivkVdt13CqIa6iW1IcMi0To/0NXfuAnGMfoZ22li8mGIup7GOsQF07HCSgT3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB6PR0202CA0044.eurprd02.prod.outlook.com (2603:10a6:4:a5::30) by AM0PR08MB3396.eurprd08.prod.outlook.com (2603:10a6:208:dd::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.13; Fri, 22 Jan 2021 12:51:15 +0000 X-Received: from DB5EUR03FT041.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:a5:cafe::57) by DB6PR0202CA0044.outlook.office365.com (2603:10a6:4:a5::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Fri, 22 Jan 2021 12:51:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT041.mail.protection.outlook.com (10.152.21.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3784.11 via Frontend Transport; Fri, 22 Jan 2021 12:51:14 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Fri, 22 Jan 2021 12:51:13 +0000 X-Received: from e124191.cambridge.arm.com (10.11.7.12) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Fri, 22 Jan 2021 12:51:13 +0000 From: "Joey Gouly" To: CC: , , , , , , Subject: [edk2-devel] [PATCH v2 1/2] DynamicTablesPkg: Don't use gEfiMdeModulePkgTokenSpaceGuid Date: Fri, 22 Jan 2021 12:51:11 +0000 Message-ID: <20210122125112.4705-2-joey.gouly@arm.com> In-Reply-To: <20210122125112.4705-1-joey.gouly@arm.com> References: <20210122125112.4705-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f6165615-4541-4649-497c-08d8bed46b74 X-MS-TrafficTypeDiagnostic: AM0PR08MB3396:|AM5PR0802MB2499: X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:3631;OLM:3631; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Dii2Jc+q5NKrKvEmXCHGqiYFf9LuhZ1OMWJfzsky6gDn/NXgQ3HbRtzTE3CKnhxEBaEf6Ajy5keVaRVEBrEhe6cVSMsc8FQAJQflL65FzzyLvycsCdmCZ4niR37Q7Kv3QN8ntq8aPEfgzBOeNjFJ8MczpZe/6Kiv8NIVj9zEGJVC8b5regnE/UIqn2ATMAYMbaH8W2O7jLjkfc11AJ4nmzJm3cp+AwNn9FqHaeA1/KIng85n0BJ2Kwgv4EkEbtzzthYAXYMJ2X7WD2+Et4ph3Y4TnF3ssgGfbpJGhbu2qw9VahAsxhkhMT5SF3BOTi8er/kkLXadOZIfaIFwVwxsHEjoFIAsIfMaU3YBYYIt4BH5WsNhqaArMOc4SbTzbnKtCVdMYbktL9lL7II5YFQoCar26ONEqcpA+6MCkoUSim5OTzEnJ0VwhoMmo5OTnQFnw1QdBtdPQyzAWBkwdbt+hXA+OXTY/uSRRAbTdptIG896XRSrbvxGRFMp29cxa2+DGt5jmGPn1xq8xWlaBJCfPbbYYVU4eK4Mh1fbjFpW13DwlesW77rFNoTdV5fn7pluHquPS0g/BV0dbBagXJxy2g== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(396003)(376002)(136003)(346002)(39840400004)(46966006)(54906003)(36756003)(2906002)(47076005)(2616005)(5660300002)(1076003)(316002)(186003)(8936002)(82310400003)(44832011)(8676002)(26005)(336012)(83380400001)(356005)(70586007)(478600001)(4326008)(86362001)(426003)(6916009)(81166007)(7696005)(70206006)(145543001)(145603002)(213903007)(36610700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3396 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT021.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: a811042d-6ad7-4677-ffb9-08d8bed46758 X-Microsoft-Antispam-Message-Info: PuxGff8Vdm3p5SkLJpsWiGsAInKko3Rc8B+nKQMT5Bhqz18qA3E6oNXYDuiV2fKSuDYrQF4U57ymMWGgOsK2veUGrFM19kerw19/S/fzgYhTeMGNU6Z1ZgPPxdPxsFR1Xjw/qNfQHezoOc3tqhFm5tWbgNOp7+JlqOZRds6+QH3Rz09q4btfnSC6JS9eThgaUzYx5oLvrB04B5l9kFxQs5sAp4m6Y+paZWxjPM8fyeeZO6BjGhTgyXvKguVOgPNxA4uIW+vnKKVj29YIlxErrIhFMBNJJJXZUs+6oJJawnpGv0azfiDQek8RlToIP06d4NJIP3QyaqKjO3D4NxxDJKeLrLop1MLr26I4zV8chOCVzVNcOlWp2aEoGbD/IKTXZnj5UdGPbTyplm7XXQ+1zx++QVP/CulvpCJtxloBwVzOXS34JKGlMqPoQdCqslZMwdaxBNRXNMB/5Z2elNOWqg0BbR0UAM3tVEOBGTvlPIMkyFX5VlFRtHqIXkeeIn2cD58XWR6DjPEU9SOWvBUSlEZn7Rw+JBMEwh1xdBuE3HU= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2021 12:51:21.7987 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f6165615-4541-4649-497c-08d8bed46b74 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: DB5EUR03FT021.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2499 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,joey.gouly@arm.com X-Gm-Message-State: aJm3TQ8x3yaIaHk0nQ1Bo0rmx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1611319886; bh=9BAnbse/Z2xdy/yROaMwMTQ3KTRAaHqJiOvXj1xPogk=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=HlYw3NJr6X9jiBgJv04Ok8l7UUKvZldV3+b8BjC6nUZRl45oJxLcGtMsB76N1JsSRff mXCnpRTqwZ6D4p0Ia68iM4hXeO1NVVmaU13UdkdCFrdYmut9IkmCXipNlAqjO+vhOdb7M AQuAnlT+izjs/QXkgu0DAI5MyXxed3+svgc= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Introduce gEdkiiDynamicTablesPkgTokenSpaceGuid and use that instead. Signed-off-by: Joey Gouly Reviewed-by: Liming Gao Reviewed-by: Alexei Fedorov --- DynamicTablesPkg/DynamicTablesPkg.dec = | 10 ++++++---- DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDxe.inf= | 8 ++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/DynamicTablesPkg/DynamicTablesPkg.dec b/DynamicTablesPkg/Dynam= icTablesPkg.dec index f36a6e8bb7c17f82acff3c766b15202b064a64b5..291a45a69679ae82219ecd2f26d= fabfbab1f7f65 100644 --- a/DynamicTablesPkg/DynamicTablesPkg.dec +++ b/DynamicTablesPkg/DynamicTablesPkg.dec @@ -1,7 +1,7 @@ ## @file # dec file for Dynamic Tables Framework. # -# Copyright (c) 2017 - 2020, Arm Limited. All rights reserved.
+# Copyright (c) 2017 - 2021, Arm Limited. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -36,11 +36,13 @@ [Protocols] [PcdsFixedAtBuild] =20 # Maximum number of Custom ACPI Generators - gEfiMdeModulePkgTokenSpaceGuid.PcdMaxCustomACPIGenerators|1|UINT16|0xC00= 00001 + gEdkiiDynamicTablesPkgTokenSpaceGuid.PcdMaxCustomACPIGenerators|1|UINT16= |0xC0000001 =20 # Maximum number of Custom SMBIOS Generators - gEfiMdeModulePkgTokenSpaceGuid.PcdMaxCustomSMBIOSGenerators|1|UINT16|0xC= 0000002 + gEdkiiDynamicTablesPkgTokenSpaceGuid.PcdMaxCustomSMBIOSGenerators|1|UINT= 16|0xC0000002 =20 # Maximum number of Custom DT Generators - gEfiMdeModulePkgTokenSpaceGuid.PcdMaxCustomDTGenerators|1|UINT16|0xC0000= 003 + gEdkiiDynamicTablesPkgTokenSpaceGuid.PcdMaxCustomDTGenerators|1|UINT16|0= xC0000003 =20 +[Guids] + gEdkiiDynamicTablesPkgTokenSpaceGuid =3D { 0xab226e66, 0x31d8, 0x4613, {= 0x87, 0x9d, 0xd2, 0xfa, 0xb6, 0x10, 0x26, 0x3c } } diff --git a/DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFa= ctoryDxe.inf b/DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTable= FactoryDxe.inf index 56b69591ac52ca3ba51250dc01a0846b22442ce9..29ed3dc2e5029206f8852c4b112= 40e7b493bbc57 100644 --- a/DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDx= e.inf +++ b/DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDx= e.inf @@ -1,7 +1,7 @@ ## @file # Module to manage the list of available table factories. # -# Copyright (c) 2017 - 2019, ARM Limited. All rights reserved. +# Copyright (c) 2017 - 2021, Arm Limited. All rights reserved. # # SPDX-License-Identifier: BSD-2-Clause-Patent ## @@ -41,9 +41,9 @@ [LibraryClasses] UefiDriverEntryPoint =20 [FixedPcd] - gEfiMdeModulePkgTokenSpaceGuid.PcdMaxCustomACPIGenerators - gEfiMdeModulePkgTokenSpaceGuid.PcdMaxCustomSMBIOSGenerators - gEfiMdeModulePkgTokenSpaceGuid.PcdMaxCustomDTGenerators + gEdkiiDynamicTablesPkgTokenSpaceGuid.PcdMaxCustomACPIGenerators + gEdkiiDynamicTablesPkgTokenSpaceGuid.PcdMaxCustomSMBIOSGenerators + gEdkiiDynamicTablesPkgTokenSpaceGuid.PcdMaxCustomDTGenerators =20 [Protocols] gEdkiiDynamicTableFactoryProtocolGuid # PRODUCES --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#70677): https://edk2.groups.io/g/devel/message/70677 Mute This Topic: https://groups.io/mt/80029084/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Fri May 3 11:06:46 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70679+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1611319906314565.059480710263; Fri, 22 Jan 2021 04:51:46 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id AjIPYY1788612x9tt6fJtGAK; Fri, 22 Jan 2021 04:51:45 -0800 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.46]) by mx.groups.io with SMTP id smtpd.web08.8503.1611319905198808224 for ; Fri, 22 Jan 2021 04:51:45 -0800 X-Received: from DB6PR07CA0184.eurprd07.prod.outlook.com (2603:10a6:6:42::14) by DB6PR08MB2869.eurprd08.prod.outlook.com (2603:10a6:6:22::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.12; Fri, 22 Jan 2021 12:51:41 +0000 X-Received: from DB5EUR03FT023.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:42:cafe::de) by DB6PR07CA0184.outlook.office365.com (2603:10a6:6:42::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.5 via Frontend Transport; Fri, 22 Jan 2021 12:51:41 +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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+70679+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT023.mail.protection.outlook.com (10.152.20.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11 via Frontend Transport; Fri, 22 Jan 2021 12:51:41 +0000 X-Received: ("Tessian outbound f362b81824dc:v71"); Fri, 22 Jan 2021 12:51:41 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 173c3a9de8641961 X-CR-MTA-TID: 64aa7808 X-Received: from b7d188580363.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1CFCE841-1F96-49F5-8FD9-C8B250B80CBC.1; Fri, 22 Jan 2021 12:51:36 +0000 X-Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b7d188580363.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 22 Jan 2021 12:51:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AjYcd/rtbCCRQQfaFiI3Ssn7FXKI+Q5U7a92a5QMmo8pIqC0pm7rhcuwnoOhfo5rNNNq4j+ZKyDIiZ1Tn/eS/8s+ZEsbAJlsA9rxgjLeu4JqRu/OibVJkMRFr/DbtIssfyJLSBIQy+QTqF6n4eke0aDuecyWM6xUo/vTjQM9OFh6ZOwcsgAQQlFr8AfWuu7GfOqXb7699KO05OatI3JBcPiOsveBOHG8iC6eoH/uNl0vMhrJW4sp8aG9bij8pHKZAuEIok3wk2C0k8bCNb5dF9d80teUmTNY8JeDVWbgaDMQPOn5oTp45J2Bi1Ac5R9xrBjbO1nQ46LgeHBSkjTysQ== 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=lUekSOFN+fAq4WPBHJRzxKz0VjgsqD6uMds2yx9LVfc=; b=XxmSufRl0wNOfzCb7ainnKL1dAz+c9SKd//RIxo0pxXNdnwfEfLSLapL8iztBfHBbWR3qAoXqmi2hiUXnpAi+GNZI7QaELK45JY9yhXFmkaRsDK1YjnZZIMoEQoZyUcd2x/lyPWxD940D/Z8ZkP5TOgGYCkC0h/Jde4wh3Dj1ypkE8MUzwg8uRh2TqC66Yvw3TZXWcwaephwvg81Gfw+Vpm3w/q6NbqKIEC8KIAfYrW4MK5DilNZwSOQWUlvYZ9RG6zsfkYD8N219rMb6Ywa3GpAozP2lmC2Qp2wJGN4MlWbykvOkc2kcwCTHHeGy6E2g1zbNAVM6JaIOKafGLYrmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from DB6PR07CA0006.eurprd07.prod.outlook.com (2603:10a6:6:2d::16) by PA4PR08MB5935.eurprd08.prod.outlook.com (2603:10a6:102:e4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9; Fri, 22 Jan 2021 12:51:33 +0000 X-Received: from DB5EUR03FT019.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2d:cafe::58) by DB6PR07CA0006.outlook.office365.com (2603:10a6:6:2d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.6 via Frontend Transport; Fri, 22 Jan 2021 12:51:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; X-Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT019.mail.protection.outlook.com (10.152.20.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3784.11 via Frontend Transport; Fri, 22 Jan 2021 12:51:33 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2044.4; Fri, 22 Jan 2021 12:51:14 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1779.2; Fri, 22 Jan 2021 12:51:13 +0000 X-Received: from e124191.cambridge.arm.com (10.11.7.12) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Fri, 22 Jan 2021 12:51:13 +0000 From: "Joey Gouly" To: CC: , , , , , , Subject: [edk2-devel] [PATCH v2 2/2] DynamicTablesPkg: Add an override for 16550 HID in SSDT Date: Fri, 22 Jan 2021 12:51:12 +0000 Message-ID: <20210122125112.4705-3-joey.gouly@arm.com> In-Reply-To: <20210122125112.4705-1-joey.gouly@arm.com> References: <20210122125112.4705-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6e2802ec-419b-4773-8f23-08d8bed47741 X-MS-TrafficTypeDiagnostic: PA4PR08MB5935:|DB6PR08MB2869: X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:4303;OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: zXFKvsjV7AisPYTdlS+mV4vNG+Vtrs4pgegyBeQT5DIuQBCy13ZC5C9Qdd0/U1UQ5x32A01CYaNV/smzFYqtEAmYryck6p5Td+S8yoAHtLjVh3LOZEWHONccPKuBflafs6LuFzr4HjF8Z5yEJV1R9VQQ9SpN7JJnFfsSmM7o+w45JhJ9fpGveFR6ZPD9o9R+GYm964eJ1pzybgSLyM9bs/eggI6f8ChaGdW2kz13R0feQVCXL4ikTSMgUu8iuDtt9oGYLhuNIoQmfdreoeG7NSLo9kHlD2KoDRCwnvpvg7gvJa5f5mSu5WbWlxOrDZJ/HI0OiSNhCYago8zp26WQixy1CPxdz92jJkIZ+ETqBS9p8V8Sh19Nfwoj7XAFd1JRICcgAzi9LuHqyDsc7D4e5cuUd2ymMPinFcRnGZmuW7HYFo2NhYi6KcvCVMVygqcbgvgDrIc21hDnvX+0N4WfnUMAQTyxxTA0iuxl29eAFhz3X3dleHUB1J6NfzyP5kz5rF/8vP2kbXQlsZltTBrvhk5UaRExA8w5XkOt2NjirDaix7f3STLcb9wQ3+waCZk5S/wNpgCLxbMdf206nERpFSBVPYIoaT7RzrP9en+qPxgubxfTPlNmJsgbK2mnlGfr X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(376002)(39860400002)(136003)(396003)(346002)(46966006)(356005)(1076003)(2616005)(83380400001)(8936002)(316002)(47076005)(81166007)(86362001)(70206006)(186003)(70586007)(478600001)(8676002)(336012)(54906003)(26005)(6916009)(82740400003)(82310400003)(19627235002)(426003)(44832011)(36756003)(2906002)(4326008)(5660300002)(7696005)(36610700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB5935 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT023.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 807ecd7f-e21f-4ca7-c49a-08d8bed47279 X-Microsoft-Antispam-Message-Info: g2jkw+BOxZNAavCHEGcPf8X7qsISTGYqFm0le8uTS+pAJqDJceQ3R4uP6QrUF+uJveTJRK9KQ6v0lCw36uXSfSgNiZkcxcO6vUUqPFNtNvBiNqJc05hSYR44WSsKdk/SzRjqvGs0nhQL7PMxTSSCtlYt1bKi/Tlq+oNk8SFlOIQVAvAdlziEdhGUreP/DjYLbW1mFVUSr8Lv8CsRphtIGs3CoQIGGDl6SFHvxnOaRWJOHWAD2HeS2tnXAJ35IOg3Tu8vVJRXNcihnav2BPBTyOpan2KwhVo74YLm3yCyDYDOoPvDCgbSeaIyMu2eqtu0kwBy/AvGBF/0FCUo6gJUpN+y1DVdZv8g9AKlOIrYbpyOV/Tu1qdgzSb1glgjG76LyiNeFBSVrbc/yL5Px7MYm6BHHuJ4nnqdb7yvEIb4M+70z+RSJPAuyMDDh0mewLTAMeJ9VQA4yLU95yBnwII7Um8XBUKd8VnNjgOfPI7/qFzXVtPosD8sSX+M6PSlK4tlxyCgRzbTHxWtTGqN6N7foAP16wMUjEkGuvWx/rpgRActen7qu2A30jIdhB7qjpKYF2zqouECt5qt02T8gU/DwGwMbnNqQtbpbmvDKaRkYww= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2021 12:51:41.5984 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6e2802ec-419b-4773-8f23-08d8bed47741 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: DB5EUR03FT023.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR08MB2869 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,joey.gouly@arm.com X-Gm-Message-State: I0NlTq3R7m8HbABHZqr86lNnx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1611319905; bh=B8uK2tOugtjwEVbC1L+nro+CBIjpqU3+8c97I4PRZ1s=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=a3Cmb4G5D8Y1r830x8BDtB+E8pE0nOURooXnK1PhFs/xaon6gkQTrgF8Oxgk6A4BbK7 gMp2Ce8y1zLmXOSuptrv4aye8KNZ7dylQrbvqXAtDrZ2UY0zx0n4YdMufp9qoICjnQ5Zq /ik14y5FQc396z2/lEC2H8Nt8qq/qZ5KPWE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Some platforms advertise support for a 16550 UART, but are not compatible with the PNP0500 HID. Allow them to override the HID by setting PcdNonBsaCompliant16550SerialHid. Signed-off-by: Joey Gouly Reviewed-by: Alexei Fedorov --- DynamicTablesPkg/DynamicTablesPkg.dec = | 3 +++ DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixup= Lib.inf | 4 +++- DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixup= Lib.c | 14 +++++++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/DynamicTablesPkg/DynamicTablesPkg.dec b/DynamicTablesPkg/Dynam= icTablesPkg.dec index 291a45a69679ae82219ecd2f26dfabfbab1f7f65..b242df01058729ce74d40c1fcf9= 31acc3bc66fa5 100644 --- a/DynamicTablesPkg/DynamicTablesPkg.dec +++ b/DynamicTablesPkg/DynamicTablesPkg.dec @@ -44,5 +44,8 @@ [PcdsFixedAtBuild] # Maximum number of Custom DT Generators gEdkiiDynamicTablesPkgTokenSpaceGuid.PcdMaxCustomDTGenerators|1|UINT16|0= xC0000003 =20 + # Non BSA Compliant 16550 Serial HID + gEdkiiDynamicTablesPkgTokenSpaceGuid.PcdNonBsaCompliant16550SerialHid|""= |VOID*|0x40000008 + [Guids] gEdkiiDynamicTablesPkgTokenSpaceGuid =3D { 0xab226e66, 0x31d8, 0x4613, {= 0x87, 0x9d, 0xd2, 0xfa, 0xb6, 0x10, 0x26, 0x3c } } diff --git a/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSer= ialPortFixupLib.inf b/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLi= b/SsdtSerialPortFixupLib.inf index af3d404393f5f1385ab2d40f45f7222ab66f9b3a..54bf71a3b73949a9c834445a81b= dade02d49e9d3 100644 --- a/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPort= FixupLib.inf +++ b/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPort= FixupLib.inf @@ -1,7 +1,7 @@ ## @file # SSDT Serial Port fixup Library # -# Copyright (c) 2020, Arm Limited. All rights reserved.
+# Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent ## @@ -28,3 +28,5 @@ [LibraryClasses] AmlLib BaseLib =20 +[Pcd] + gEdkiiDynamicTablesPkgTokenSpaceGuid.PcdNonBsaCompliant16550SerialHid diff --git a/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSer= ialPortFixupLib.c b/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/= SsdtSerialPortFixupLib.c index 0ff071485ef25f4ca63de0eeab5120d1beece4db..3c4356097c3bf25e8d1432b45ba= 8ca59d33e8d09 100644 --- a/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPort= FixupLib.c +++ b/DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPort= FixupLib.c @@ -1,7 +1,7 @@ /** @file SSDT Serial Port Fixup Library. =20 - Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.
+ Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -139,13 +139,21 @@ FixupIds ( AML_OBJECT_NODE_HANDLE NameOpIdNode; CONST CHAR8 * HidString; CONST CHAR8 * CidString; + CONST CHAR8 * NonBsaHid; =20 // Get the _CID and _HID value to write. switch (SerialPortInfo->PortSubtype) { case EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_FULL_16550: { - HidString =3D "PNP0501"; - CidString =3D "PNP0500"; + // If there is a non-BSA compliant HID, use that. + NonBsaHid =3D (CONST CHAR8*)PcdGetPtr (PcdNonBsaCompliant16550Serial= Hid); + if ((NonBsaHid !=3D NULL) && (AsciiStrLen (NonBsaHid) !=3D 0)) { + HidString =3D NonBsaHid; + CidString =3D ""; + } else { + HidString =3D "PNP0501"; + CidString =3D "PNP0500"; + } break; } case EFI_ACPI_DBG2_PORT_SUBTYPE_SERIAL_ARM_PL011_UART: --=20 Guid("CE165669-3EF3-493F-B85D-6190EE5B9759") -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#70679): https://edk2.groups.io/g/devel/message/70679 Mute This Topic: https://groups.io/mt/80029091/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-