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.43]) by mx.groups.io with SMTP id smtpd.web12.1785.1574673522037087336 for ; Mon, 25 Nov 2019 01:18:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=td9OPsCh; spf=pass (domain: arm.com, ip: 40.107.14.43, 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=usukD9/lpY2OiPfTmFo0+ySzYPtWYsZFCVy1i3De3dg=; b=td9OPsChZheklraLxtCjFxXvihYcsXuUNHD+bDAKonRfzQ5ouAmDgaJoh58v00O2d87sK6SnRAqT3Y8Pg7vRHzcNFQxL5iY4tirNbj6A52z1TXwuE4r8ruwkP2WdAAjso4D8636PBm7Izcq7i9SPHZ1zKU8GLw25YjuoH/hTTAw= Received: from VI1PR08CA0182.eurprd08.prod.outlook.com (2603:10a6:800:d2::12) by AM0PR08MB3265.eurprd08.prod.outlook.com (2603:10a6:208:56::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.21; Mon, 25 Nov 2019 09:18:39 +0000 Received: from VE1EUR03FT024.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::205) by VI1PR08CA0182.outlook.office365.com (2603:10a6:800:d2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.16 via Frontend Transport; Mon, 25 Nov 2019 09:18:39 +0000 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=bestguesspass 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 VE1EUR03FT024.mail.protection.outlook.com (10.152.18.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17 via Frontend Transport; Mon, 25 Nov 2019 09:18:38 +0000 Received: ("Tessian outbound f7868d7ede10:v33"); Mon, 25 Nov 2019 09:18:38 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 29172d841f9b8d26 X-CR-MTA-TID: 64aa7808 Received: from dbf052de8b25.1 (ip-172-16-0-2.eu-west-1.compute.internal [104.47.6.53]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id AB59EAA9-EEC0-4C48-81ED-4C96BEDFFFE0.1; Mon, 25 Nov 2019 09:18:32 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02lp2053.outbound.protection.outlook.com [104.47.6.53]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id dbf052de8b25.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 25 Nov 2019 09:18:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SQuA0Tn3Iq2jzGWfHknyM9pAvYq4VYagmWWQKEBsCTgfPBquUWp3Ute8Kr75BvB6FDoD6UVylXrFM0gzgfDKzworBQ9KDYQJRKH7jak1+XR8/7M/+zIScpKS2cZWSGWmvECLzu/JMD0UKVhz6rQ1f9t/pdCrTiSlh9SZtyKEEsKQnFWcCH1EaWvrmLRctCaYZGxZEoKLIZUEj7bzfDHf/59/Q1dZT7Q8ucAWXpDY+wdwAJyFUygSKSqUHzKE/Klr1AQNueNRJaf2E4Tsa7sNxre5bDa+G3+UDh1UlNlInCGHUf3w3S10wFCJVbRCenlaJ3sn0KicEkrDED9Y3tZ+lw== 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=usukD9/lpY2OiPfTmFo0+ySzYPtWYsZFCVy1i3De3dg=; b=ZH6d//Q3DdTF4h5UZs6st6zSyknKwoK6LQxymlOw2IVc0FoPWXAwT+FQo2xdUnZXt7ixoeqthI9Ml8hFNmdvHs91+lJjmAZMfOaitrM6SyRXoeX1z5+8eFW0DXh6l/SQHPB5hDHeYhjNGb0O367RyrQoag4UIUXpiaxrKi8wdieQVtKr8P5RkgNvxOrmy6QRZOe0rFzHoJczutj71414JsK2thGo9Z45oSn11HrGCuh+SSy0GJUiktQoUhW8ETV+Wm/ICIUKN+Uo1t+J3UsneQeh4XO+llDRcilwmT0/zMFWOM148R3oANCMKJ+FRa0BHLADPj56hiaQ31HQDvVuGQ== 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=bestguesspass action=none header.from=arm.com; dkim=none (message not signed); 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=usukD9/lpY2OiPfTmFo0+ySzYPtWYsZFCVy1i3De3dg=; b=td9OPsChZheklraLxtCjFxXvihYcsXuUNHD+bDAKonRfzQ5ouAmDgaJoh58v00O2d87sK6SnRAqT3Y8Pg7vRHzcNFQxL5iY4tirNbj6A52z1TXwuE4r8ruwkP2WdAAjso4D8636PBm7Izcq7i9SPHZ1zKU8GLw25YjuoH/hTTAw= Received: from AM6PR08CA0016.eurprd08.prod.outlook.com (2603:10a6:20b:b2::28) by VI1PR08MB3933.eurprd08.prod.outlook.com (2603:10a6:803:dd::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.19; Mon, 25 Nov 2019 09:18:29 +0000 Received: from VE1EUR03FT013.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::200) by AM6PR08CA0016.outlook.office365.com (2603:10a6:20b:b2::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17 via Frontend Transport; Mon, 25 Nov 2019 09:18:29 +0000 Authentication-Results-Original: 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=bestguesspass 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; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT013.mail.protection.outlook.com (10.152.19.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2474.17 via Frontend Transport; Mon, 25 Nov 2019 09:18:28 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) 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.1415.2; Mon, 25 Nov 2019 09:18:20 +0000 Received: from E114225.Arm.com (10.1.195.19) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Mon, 25 Nov 2019 09:18:20 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , Subject: [PATCH v2 1/1] ShellPkg: acpiview: IORT Spec Rev D updates Date: Mon, 25 Nov 2019 09:18:13 +0000 Message-ID: <20191125091814.5216-1-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;IPV:NLI;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(396003)(39860400002)(136003)(376002)(346002)(199004)(189003)(70206006)(6916009)(8936002)(2906002)(50226002)(8676002)(48376002)(6306002)(4326008)(81156014)(81166006)(15650500001)(53416004)(6666004)(47776003)(356004)(51416003)(316002)(7696005)(44832011)(26005)(2616005)(36756003)(2351001)(5660300002)(16586007)(54906003)(14444005)(50466002)(966005)(478600001)(305945005)(426003)(86362001)(70586007)(106002)(336012)(1076003)(186003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR08MB3933;H:nebula.arm.com;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 46788c21-652b-4e0e-cbb6-08d771887503 X-MS-TrafficTypeDiagnostic: VI1PR08MB3933:|AM0PR08MB3265: X-MS-Exchange-PUrlCount: 1 X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true X-MS-Oob-TLC-OOBClassifiers: OLM:849;OLM:849; X-Forefront-PRVS: 0232B30BBC X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: CeZiQ4Nxeyv6+BuzMIcfQ4PciWd0PnpG2nVsHtJ6WY0OFMbuu4e92vAOH9ju0tXAejBloGsE1cLK1lGESBkXVqxiLJgnGDhRkkXBxMZMmpETAxUkn0oO1nrM98ek0c8YIHoPZ1qNwvldGKAY49RWHOkWOiZrR28HNEAq9rIIN56SYKCMaHfy4iup5y4b+KpxqrM+ZDk30rurMKRI6PpMKzZhg4yp72iwMImsBj2OutRnEQcu2saZdUTeljgNYz0BEqMG1hXvxihJU+984CL44itcEoEeUV/umCXxIx511SOac0M6WB9inl6BypqJlxxd2xW7XA04Lnt5LO/XBSuSgftOmCStcTljisgz+cxgPgWjPjz2b9agd+lb3/FfbyxOd67p929ZUA8ayy9sTLDaJXNlLKJ4mG0vWpl5zFIofgI11TGqGWRifwouAYgdtUqTJ4IPM7I5f8xMSsYtQ/7p4A5/ABI1AHsYctqhQJ6Cn7A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3933 Original-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=bestguesspass action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT024.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;IPV:CAL;SCL:-1;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(136003)(39860400002)(396003)(376002)(346002)(199004)(189003)(305945005)(50226002)(478600001)(26005)(36906005)(81156014)(426003)(70206006)(50466002)(106002)(26826003)(1076003)(336012)(2906002)(6306002)(966005)(6916009)(316002)(2616005)(54906003)(53416004)(186003)(4326008)(16586007)(48376002)(15650500001)(44832011)(22756006)(86362001)(6666004)(5660300002)(76130400001)(8936002)(7696005)(51416003)(70586007)(47776003)(81166006)(14444005)(2351001)(8676002)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR08MB3265;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:Pass;LANG:en;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;A:1;MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: bd042a96-2a5f-40bc-7831-08d771886f02 NoDisclaimer: True X-Forefront-PRVS: 0232B30BBC X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?tr6b8FHIok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af?= =?us-ascii?Q?xtQWU6AUFXgIFqS9IefSsy8EqD5LRiCBZZ5H4hZh9rvI4g1B3plYiZvThDzL?= =?us-ascii?Q?GsMr5MVJA2M5cOJoDTtGmJLIlQ8phNanJIFgilwrHhDWxIAzK7xToYiqNcg0?= =?us-ascii?Q?E65x0U2PSPr4S44PpkGWLWl5CQvJ6oMalugTTxQt0s9J7pxCaZhE6RaeVPSu?= =?us-ascii?Q?KIb3McA1aDQrpHQAnT6mhILaz8RXUZAoHkoCdblK40xQVi8K5OYT7EB8VyjQ?= =?us-ascii?Q?yOn+EakIBa2fPxzXfhXs/DSkw5+1sQgahjiqO/BRbma9W6JG7Dhud2c8faTv?= =?us-ascii?Q?A8OYBWSZ/Lhpu4z7olBYDrG4u3th1F9TDDpaFD85kJn4Gn2AGgM2WK9slCJn?= =?us-ascii?Q?Pv9HRNBGoXPMSWcPlA12KPOVWbbDl+D7DIXs5VE1Z0GFi4NUPGZvDhz+ER5L?= =?us-ascii?Q?/G4b0yqsKMP+65SBz+bmKoAiQBfHSlrpt2fdMkAz6OUnBNIMRAEJlK9A8XLg?= =?us-ascii?Q?kYCNwaLg8gdsYbqfJP2kg+owE/zI/YGnoaEhTJxrYMxHmHHpjP7aD2skyI/L?= =?us-ascii?Q?yuYGRwr84FDh6FCI7oAIafvmUhkzjZm+SfnixKku38lEP1XR6bjbuyXpUh3X?= =?us-ascii?Q?KCkRGjfAD+ngzNLZtNzIHt9lB3+sHFvD3t+Aiyw3oq4cU7slFzvOrSSkkT/c?= =?us-ascii?Q?qIhviVuNr2q6nG7SOuNQ5r7qS4J4zOAIfFqjypwcRjBMplFlMygEoW5VHLYR?= =?us-ascii?Q?zY4yiwz2RpACscBVncjdFm0=3D?= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2019 09:18:38.7827 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 46788c21-652b-4e0e-cbb6-08d771887503 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3265 Content-Type: text/plain Updated IORT parser to conform to the IO Remapping Table, Platform Design Document, Revision D, March 2018. The following structure parsers have been updated: 1. SMMUv3 - added proximity domain and device Id mapping index. 2. RootComplex - added memory address size limit. 2. PMCG - added page 1 support. Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Sami Mujawar --- The changes can be seen at: https://github.com/samimujawar/edk2/tree/667_acpiview_iort_rev_c_v1 Notes: v2: - Fixed patch check failure in commit message, [SAMI] changed 'CC' to 'Cc'. No code change. v1: - Update parser to support IORT specification Rev D updates [SAMI] ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c index f1cdb9ac01d848f22ab588d8f824886387c5983d..72289c7680bc3cd5c444481e8d6a719803202a9b 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c @@ -5,7 +5,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent @par Reference(s): - - IO Remapping Table, Platform Design Document, Revision C, 15 May 2017 + - IO Remapping Table, Platform Design Document, Revision D, March 2018 **/ #include @@ -193,7 +193,9 @@ STATIC CONST ACPI_PARSER IortNodeSmmuV3Parser[] = { {L"Event", 4, 44, L"0x%x", NULL, NULL, NULL, NULL}, {L"PRI", 4, 48, L"0x%x", NULL, NULL, NULL, NULL}, {L"GERR", 4, 52, L"0x%x", NULL, NULL, NULL, NULL}, - {L"Sync", 4, 56, L"0x%x", NULL, NULL, NULL, NULL} + {L"Sync", 4, 56, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Proximity domain", 4, 60, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Device ID mapping index", 4, 64, L"%d", NULL, NULL, NULL, NULL} }; /** @@ -231,7 +233,9 @@ STATIC CONST ACPI_PARSER IortNodeRootComplexParser[] = { PARSE_IORT_NODE_HEADER (NULL, NULL), {L"Memory access properties", 8, 16, L"0x%lx", NULL, NULL, NULL, NULL}, {L"ATS Attribute", 4, 24, L"0x%x", NULL, NULL, NULL, NULL}, - {L"PCI Segment number", 4, 28, L"0x%x", NULL, NULL, NULL, NULL} + {L"PCI Segment number", 4, 28, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Memory access size limit", 1, 32, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Reserved", 3, 33, L"%x %x %x", Dump3Chars, NULL, NULL, NULL} }; /** @@ -239,9 +243,10 @@ STATIC CONST ACPI_PARSER IortNodeRootComplexParser[] = { **/ STATIC CONST ACPI_PARSER IortNodePmcgParser[] = { PARSE_IORT_NODE_HEADER (ValidatePmcgIdMappingCount, NULL), - {L"Base Address", 8, 16, L"0x%lx", NULL, NULL, NULL, NULL}, + {L"Page 0 Base Address", 8, 16, L"0x%lx", NULL, NULL, NULL, NULL}, {L"Overflow interrupt GSIV", 4, 24, L"0x%x", NULL, NULL, NULL, NULL}, {L"Node reference", 4, 28, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Page 1 Base Address", 8, 32, L"0x%lx", NULL, NULL, NULL, NULL} }; /** -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'