From nobody Fri Apr 26 07:36:35 2024 Delivered-To: importer@patchew.org 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+92094+1787277+3901457@groups.io; helo=mail02.groups.io; 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+92094+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1659562874; cv=none; d=zohomail.com; s=zohoarc; b=M4CGzbDta6jUXY5mXBwbB2r4DOLfPgXpLR7g9zA95dK+dSh2WMFq2mpFGt35IIt6dZ0W719SRHbWi1Bd5rsehQZR599IftBjOuXi6tGoc0T9AYgPQmT4+InB6MXFj2Jhilsx+Ti1qL1s7vUnVeCX2aWAOiR3wolPmwmxRvFj67E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659562874; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=4fiKNrUMZU43uV3dhHXUaLdnCw+hEK6wNxPrVlQcQck=; b=SV+XK+QXZJeU5GeDoK6LSCfT0GAq+TEOUDOcwuhPWRtsCS1DiWoGmXfOHT0TL0GcLb70lky/nGklcbSuUs4kGSZqmaFte3MzNiR3MBD9tqCq1v3tWMgZb62kVr7Xd+I4YxYDfOk+PA9alqx+g4c15DIVaw7dZZ0n4vqf993H0Sk= ARC-Authentication-Results: i=1; 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+92094+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1659562874156207.30169405488004; Wed, 3 Aug 2022 14:41:14 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id VUMcYY1788612xHbBVOefq8U; Wed, 03 Aug 2022 14:41:13 -0700 X-Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mx.groups.io with SMTP id smtpd.web09.5.1659562873227427475 for ; Wed, 03 Aug 2022 14:41:13 -0700 X-Received: by mail-pf1-f179.google.com with SMTP id q19so8279103pfg.8 for ; Wed, 03 Aug 2022 14:41:13 -0700 (PDT) X-Gm-Message-State: bKwGr0wqLT9eQxWVkzjNxAjex1787277AA= X-Google-Smtp-Source: AGRyM1uH+ZCToAMWgkafl+reXMsVrEmzNikQ7PSTHOA0eAOLQynrZ61LpSCuRy5rGhNWpPanOke8gA== X-Received: by 2002:a63:1f5d:0:b0:41a:6c04:f5bb with SMTP id q29-20020a631f5d000000b0041a6c04f5bbmr22452910pgm.530.1659562872461; Wed, 03 Aug 2022 14:41:12 -0700 (PDT) X-Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:36:19a:484b:79e3:a7ec]) by smtp.gmail.com with ESMTPSA id q10-20020a170902a3ca00b0016d6c939332sm2389850plb.279.2022.08.03.14.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 14:41:11 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Andrew Fish , Leif Lindholm , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [edk2-staging][PATCH v4 1/2] EDK2 Code First: PI Specification: New error codes of Host Software class Date: Wed, 3 Aug 2022 14:41:07 -0700 Message-Id: <20220803214108.259-2-kuqin12@gmail.com> In-Reply-To: <20220803214108.259-1-kuqin12@gmail.com> References: <20220803214108.259-1-kuqin12@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kuqin12@gmail.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1659562873; bh=vVaMa/SC6lGRFIW2F/e1vBDZccu8H69TziCUMcsRLdQ=; h=Cc:Date:From:Reply-To:Subject:To; b=OwcPqxSPdDwAe6njur7z/JwwqucCu2Vv3RNeLfa+pWubLtUCNP21NJK/YfiJ4zg9sTn pwi5tIAzfXesw6ikxYZx5MF91M3JIxbFWxNa59Up9/sT/PclB+WYcGK2DrdU/Vewk+4PL WvJXRxobq45MSbkcCTk8My8OhYhwziEzKsU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1659562875157100007 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3794 This change includes specification update markdown file that describes the proposed PI Specification v1.7 Errata A in detail and potential impact to the existing codebase. Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qin --- Notes: v2: - Removed "RELEASE_ASSERT" definition - Removed reference to EDK2 based memory type info [Mike] =20 v3: - No review, no change =20 v4: - Updated draft status to "Accepted with modification" - Updated definition to "INCONSISTENT_MEMORY_MAP" [PIWG] CodeFirst/BZ3794-SpecChange.md | 55 ++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/CodeFirst/BZ3794-SpecChange.md b/CodeFirst/BZ3794-SpecChange.md new file mode 100644 index 000000000000..792da8874019 --- /dev/null +++ b/CodeFirst/BZ3794-SpecChange.md @@ -0,0 +1,55 @@ +# Title: Introduction of `EFI_SW_EC_INCONSISTENT_MEMORY_MAP` Status Code + +## Status: Accepted by industry standard forum with modifications + +## Document: UEFI Platform Initialization Specification Version 1.7 Errata= A + +## License + +SPDX-License-Identifier: CC-BY-4.0 + +## Submitter: [TianoCore Community](https://www.tianocore.org) + +## Summary of the change + +Add `EFI_SW_EC_INCONSISTENT_MEMORY_MAP` into Status Codes definition. + +## Benefits of the change + +Current Status Codes covered various [software class error code definition= s](https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Pi/PiStatus= Code.h). + +However, inconsistent memory map from boot to boot would fail to meet cert= ain OS ACPI requirements (i.e. S4 resume boot requires consistent memory ma= ps) and trigger system reboots. Yet the corresponding case was not covered = by the already defined status codes. + +The unexpected system reboots above could indicate decay of system health = and reporting of such generic events would provide helpful information to O= EMs to investigate/prevent system failures in general. + +The request of this change intends to expand definitions of `EFI_SW_EC_**`= under Status Codes to cover more unexpected system reboot events, which co= uld improve Status Code futility and readability. + +## Impact of the change + +Occupy a new macro definitions of Error Codes under Software class Status = Codes. + +## Detailed description of the change [normative updates] + +### Specification Changes + +1. In PI Specification v1.7 Errata A: Vol. 3, Table 3-61: Error Code Opera= tions: Host Software Class, add one new rows below `EFI_SW_EC_FV_CORRUPTED`= definition: + + | Operation | Description | Extended Data | + | --- | --- | --- | + | EFI_SW_EC_INCONSISTENT_MEMORY_MAP | System will reboot due to incons= istent memory maps | None | + +1. In PI Specification v1.7 Errata A: Vol. 3, Table 3-61: Error Code Opera= tions: Host Software Class, replace the row of `0x0014-0x00FF` to: + + | Operation | Description | Extended Data | + | --- | --- | --- | + | 0x0015-0x00FF | Reserved for future use by this specification for Ho= st Software class error codes. | None | + +1. In PI Specification v1.7 Errata A: Vol. 3, Section 6.7.4.3 Error Code D= efinitions: Prototype, add one new definitions below `EFI_SW_EC_FV_CORRUPTE= D` definition: + + ```c + #define EFI_SW_EC_INCONSISTENT_MEMORY_MAP 0x00000014 + ``` + +### Code Changes + +1. Add macro definitions in `MdePkg/Include/Pi/PiStatusCode.h` to match ne= w specification. --=20 2.37.1.windows.1 -=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 (#92094): https://edk2.groups.io/g/devel/message/92094 Mute This Topic: https://groups.io/mt/92802268/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 Apr 26 07:36:35 2024 Delivered-To: importer@patchew.org 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+92095+1787277+3901457@groups.io; helo=mail02.groups.io; 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+92095+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1659562874; cv=none; d=zohomail.com; s=zohoarc; b=jAqO6k/DYm45jhOzooJi8fNZBTpfgnCFmGz6nfM5L7YPHTC4odFO3UF18dXa2QB5jecD1E3zppyT8pvsXDqixxIbtf4iI/l8BBBfS2uxymhF5WToZsmdSEGdD2gyIkcRAN9V6qhep9pLMxEII9ItlR355a5yLNZVwzqigtaGBus= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1659562874; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Os6ME9tkuoSZSOey4uo81ys3ToeXbLh12WcCKYjhsIw=; b=mGj+lhop6RzjE4dGkPISCr5rrnRvrC21IpaIxDKZfFqExrAYyiXjX/BAxXMC8uM2rBcCqFiMPUUPEH4HnUngIZbjFVoVlVeehZ3Sa+Y31btzvBJLrxBs1OzP3BCuRaosUsH2hv4Iv4a85EGKEYB4BFQrW4+J74GshddUeR+15e8= ARC-Authentication-Results: i=1; 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+92095+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1659562874656210.69045325506295; Wed, 3 Aug 2022 14:41:14 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 0sHGYY1788612xkliWQlM4IV; Wed, 03 Aug 2022 14:41:14 -0700 X-Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mx.groups.io with SMTP id smtpd.web10.15.1659562873843740948 for ; Wed, 03 Aug 2022 14:41:13 -0700 X-Received: by mail-pg1-f182.google.com with SMTP id r186so16258848pgr.2 for ; Wed, 03 Aug 2022 14:41:13 -0700 (PDT) X-Gm-Message-State: 7rUxrj0KH12G6b5dQfIX775jx1787277AA= X-Google-Smtp-Source: AA6agR7xYwG/T3K0BownW46bTFvjyODAOgABYLtgPwCbIpvCcwHXxVCkQ4VdWGKX6lPr8HowSszgqg== X-Received: by 2002:a62:e114:0:b0:52d:24b6:a89 with SMTP id q20-20020a62e114000000b0052d24b60a89mr21319092pfh.65.1659562873151; Wed, 03 Aug 2022 14:41:13 -0700 (PDT) X-Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:36:19a:484b:79e3:a7ec]) by smtp.gmail.com with ESMTPSA id q10-20020a170902a3ca00b0016d6c939332sm2389850plb.279.2022.08.03.14.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 14:41:12 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [edk2-staging][PATCH v4 2/2] MdePkg: MmCommunication: Add new Host Software class Error Code to MdePkg Date: Wed, 3 Aug 2022 14:41:08 -0700 Message-Id: <20220803214108.259-3-kuqin12@gmail.com> In-Reply-To: <20220803214108.259-1-kuqin12@gmail.com> References: <20220803214108.259-1-kuqin12@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kuqin12@gmail.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1659562874; bh=1544c3fv5gJA1uPX0bVPSOf6mzRPpcm8Z9EO/4zCvKk=; h=Cc:Date:From:Reply-To:Subject:To; b=h2aKoA3/3BtLAb3Wq5v+CXl7tRGZ6KUkonIpjG9VBIlOAyknUQpPPJet+CInbtacl1d 7RgoEqtu1A+H6IuKbNa8PguZMMykdTSF4gO4KnjXVD163qO1p0h+85p7HTp0rlw0pfCue R0uYw6dUJQRjN5lg1Mm9ohQ749EN9vmlec4= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1659562875148100006 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3794 This change introduces a new error code definitions under Host Software class. The new error code definition will cover system reboot events under the conditions of inconsistent memory map from one boot to another. These error codes could provide helpful datapoints to OEMs to investigate and prevent system failures in general. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qin --- Notes: v2: - Removed "RELEASE_ASSERT" definition - Removed reference to EDK2 based memory type info [Mike] =20 v3: - Added BZ3794 prefix to new macro definition =20 v4: - Updated definition to "INCONSISTENT_MEMORY_MAP" [PIWG] MdePkg/Include/Pi/PiStatusCode.h | 1 + 1 file changed, 1 insertion(+) diff --git a/MdePkg/Include/Pi/PiStatusCode.h b/MdePkg/Include/Pi/PiStatusC= ode.h index ef2aea7364bc..61ecee3d9da9 100644 --- a/MdePkg/Include/Pi/PiStatusCode.h +++ b/MdePkg/Include/Pi/PiStatusCode.h @@ -985,6 +985,7 @@ typedef struct { #define EFI_SW_EC_EVENT_LOG_FULL 0x00000011 #define EFI_SW_EC_WRITE_PROTECTED 0x00000012 #define EFI_SW_EC_FV_CORRUPTED 0x00000013 +#define BZ3794_EFI_SW_EC_INCONSISTENT_MEMORY_MAP 0x00000014 ///@} =20 // --=20 2.37.1.windows.1 -=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 (#92095): https://edk2.groups.io/g/devel/message/92095 Mute This Topic: https://groups.io/mt/92802269/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-