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.92.21.25]) by mx.groups.io with SMTP id smtpd.web10.1502.1596784555547885196 for ; Fri, 07 Aug 2020 00:15:55 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@outlook.com header.s=selector1 header.b=kQEV+lG8; spf=pass (domain: outlook.com, ip: 40.92.21.25, mailfrom: michael.kubacki@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ShTQP0MzCpIeas+NVOJibnMEvqq21jWWKF9h1RLtolRXHkIDpJiq8FIQ/leGDFYytSoipW7XzedpPF/0k02EzXpCIwSn5wVw9UDUzKC7XyWWz3XxrFE3XpxClfoqqU0gd9/RTOb53GC0vJCEBFA+Ag7Rl+LVj4rn03XdyOke133OOF54Ab+Gp3xirJPC0TCAru5RO9OyjtdMSeOXSrZ7h1XsxGHIeOgpn57uhZCcgK71PdqbQihDRVkQbvYimRiHorWQO5mJ7FTmZ4lSuvBsSFmHz9SAgbLJIjPyA3/ETONURwKVpqOw84PIVieZN/H4E6MuK4Lk0l6znKJ4GLfrbQ== 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=4zf9n38AhlWADMHkCbS8oJIKslvPYbtrMkUsU2dt/C8=; b=YUa66B8c5uQ8Xj6p/MTd/QdlZG4wk0Akr7R+ZnPob9I8GYLtYwD05YGktYxRD61CWgekccd6TB9TJdSWHi+zfY0E+V+cvHVwGH5hlJB8OzhCNwIhIcZtaUZs0boYt6/4RTVT1zQdozwH/XVwn4LarCF6mwmYYgr2f+7Osgu6MxrqWqkoHGuRGwqeXN1JJFqbtd/sghedX2RJAxIjuuht6v6pThSJj6xakFULxZFbXjvKoSd77+MDmzURWmGljm67u8u9Y9xyWiTvBg759xJqeFc0Dv5kroXTXEV6ghl1rPSe+YI3D+95M8lJF0iOxyzb1zcdw8s2K67yFS7RDqGVxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4zf9n38AhlWADMHkCbS8oJIKslvPYbtrMkUsU2dt/C8=; b=kQEV+lG80opmvRK1ae1eHtHii4q5ISJEDiKwE0l9IZQO3ktQM6bCzujVbyArhAAWziy8mBtCHR1c7uUwD+Nt3eYxRxIRCiXaBYgjbrlh9DxlxhZO18W18MN05g1SHR825OxxRSKb8fjcXexwXck6ihrO2Z4gLKBqo9QNSNRnayA2+FWPTygIWki3IF7ov1bxJvAvkq0cnvPH86lIFWSikuh1j/zk99McAQ61l5OGAEvk5Qv4nok+4VpFcbPsIwGsYHVgZKixriC4lEv8z3n5B+DvPbLTUWMITKyeMDfh9xAGXCzCK5cCPaK3mf+DSo++hzzdHeAXsiCSky165bC1Hw== Received: from BN8NAM12FT047.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::51) by BN8NAM12HT105.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.10; Fri, 7 Aug 2020 07:15:54 +0000 Received: from MWHPR07MB3440.namprd07.prod.outlook.com (2a01:111:e400:fc66::49) by BN8NAM12FT047.mail.protection.outlook.com (2a01:111:e400:fc66::318) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.10 via Frontend Transport; Fri, 7 Aug 2020 07:15:54 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1D0279E41031C3A11ACFD450C6C57A34FE26FE44B60A8EBF51B6811E16AC86B7;UpperCasedChecksum:9C37C4DE0922A79993AE21DC23B8517C40D16105DB2B02AE24148671B6159D34;SizeAsReceived:7646;Count:47 Received: from MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::9856:570e:1735:974e]) by MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::9856:570e:1735:974e%7]) with mapi id 15.20.3261.019; Fri, 7 Aug 2020 07:15:54 +0000 From: "Michael Kubacki" To: devel@edk2.groups.io CC: Liming Gao , Michael D Kinney , Guomin Jiang , Wei6 Xu Subject: [PATCH v1 0/7] Extend Last Attempt Status Usage Date: Fri, 7 Aug 2020 00:15:19 -0700 Message-ID: X-Mailer: git-send-email 2.28.0.windows.1 X-ClientProxiedBy: MWHPR15CA0042.namprd15.prod.outlook.com (2603:10b6:300:ad::28) To MWHPR07MB3440.namprd07.prod.outlook.com (2603:10b6:301:69::28) Return-Path: michael.kubacki@outlook.com X-Microsoft-Original-Message-ID: <20200807071526.1837-1-michael.kubacki@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2001:4898:80e8:a:adbb:8e69:1fd3:409e) by MWHPR15CA0042.namprd15.prod.outlook.com (2603:10b6:300:ad::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19 via Frontend Transport; Fri, 7 Aug 2020 07:15:53 +0000 X-Mailer: git-send-email 2.28.0.windows.1 X-Microsoft-Original-Message-ID: <20200807071526.1837-1-michael.kubacki@outlook.com> X-TMN: [ee3UiKUj4K8wBgU6B2RThJNGWiwoOPXGkwp8Rx/UBh4rUO6+F0YPYeyXLfYrPCB1] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 54a2f187-2b4d-467a-75dd-08d83aa1b8cb X-MS-TrafficTypeDiagnostic: BN8NAM12HT105: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WAVZtCaVCNCVtb8KvPJTa+q0MTRCK4knGpiEfkNorEod7smpE5ajlLNFaLM2bG3CCiAf6rNE1JEmij2a2WpepjSsMXL7/EQbxDuTQ83N7fxVYM1aAlYCUZR4ZBia/K2UXJKby0EOTlRDE+fhYJ6WHPvX463wQFrzzY+hxar8a4jmCjdbOnXRjvXi7w6HQkXl3dhOAvCsVHkG6NpV/pr2QQHhBP0IwhiXaKb3T3ioMeALQx3ZNxiVnzckT8jorrKh X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR07MB3440.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: 8E7UeG6BPDQuMYHBX/jQkKovctnQ1VPNvg9Ql7YY7h+XbmWQeldsN1Eg4Ie6hf3CoLfJL0yBFt+blEX9LKR3ovVVEd4k8UwRTWXnqCoCT+Uknu0lEwb4BH6guUxf8YjFZq9gQD0m4fMBpw+kEimuhO36TlIUCBt2eHe2jH7VCbF/F1/l2+ow9Pkh5hH0I9QqBYao7tji99osAy35Ja2Zfw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 54a2f187-2b4d-467a-75dd-08d83aa1b8cb X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2020 07:15:54.0460 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: BN8NAM12FT047.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM12HT105 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2802 This patch series adds more granularity to Last Attempt Status codes reported during FMP check image and set image operations that greatly improve precision of the status codes. The vendor range (0x1000 - 0x4000) was introduced in UEFI Specification 2.8. That range is used within this patch series to define three subranges: 1. FMP driver codes 2. FMP dependency related codes 3. FMP device library codes Most of the vendor range remains allocated to vendor device library codes. There might be a preference to move some of these codes explicitly to the UEFI Specification or other ranges in the Last Attempt Status space. That is left open to feedback to the series. Cc: Liming Gao Cc: Michael D Kinney Cc: Guomin Jiang Cc: Wei6 Xu Signed-off-by: Michael Kubacki Michael Kubacki (7): FmpDevicePkg/SystemResourceTable.h: Add vendor range values FmpDevicePkg: Add LastAttemptStatus.h FmpDevicePkg/FmpDxe: Add check image path Last Attempt Status capability FmpDevicePkg/FmpDxe: Improve set image path Last Attempt Status granularity FmpDevicePkg/LastAttemptStatus.h: Add dependency range codes FmpDevicePkg: Add Last Attempt Status support to dependency libs FmpDevicePkg/FmpDeviceLib: Add Last Attempt Status to Check/Set API FmpDevicePkg/FmpDxe/FmpDxe.c = | 180 +++++++++++++++++--- FmpDevicePkg/Library/FmpDependencyCheckLib/FmpDependencyCheckLib.c = | 38 +++-- FmpDevicePkg/Library/FmpDependencyCheckLibNull/FmpDependencyCheckLibNull.c= | 9 +- FmpDevicePkg/Library/FmpDependencyLib/FmpDependencyLib.c = | 95 +++++++++-- FmpDevicePkg/Library/FmpDeviceLibNull/FmpDeviceLib.c = | 42 +++-- FmpDevicePkg/Test/UnitTest/Library/FmpDependencyLib/EvaluateDependencyUnit= Test.c | 7 +- FmpDevicePkg/FmpDxe/FmpDxe.h = | 1 + FmpDevicePkg/Include/LastAttemptStatus.h = | 81 +++++++++ FmpDevicePkg/Include/Library/FmpDependencyCheckLib.h = | 8 +- FmpDevicePkg/Include/Library/FmpDependencyLib.h = | 44 +++-- FmpDevicePkg/Include/Library/FmpDeviceLib.h = | 44 +++-- MdePkg/Include/Guid/SystemResourceTable.h = | 4 + 12 files changed, 461 insertions(+), 92 deletions(-) create mode 100644 FmpDevicePkg/Include/LastAttemptStatus.h --=20 2.28.0.windows.1