From nobody Fri May 17 02:03:24 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+86375+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+86375+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1643914998; cv=none; d=zohomail.com; s=zohoarc; b=ORwzpAF/ha8hOsWf7ZOOdH+dztSUX1ppLW6nV/DBONpFWUyayQGlFyc12OnFYJsPHJp6dAeJPjwQstERaDZSKj7FeBs7xE4u4sZPLAK388RGh5DmmD33iADQl9pd1IOu4QkZhVEEXtc4kkEkYCP+axc07iELNWmM0t0hfoTWbfU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643914998; 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=kQ1T2rFw75DjwVy17XBTQOiGhBP1HL6BX2piSHAhvT4=; b=dyql+4rco0IRuaS/cPm4Et8vJ3w3+MFeQzGY7PctUdxp5rmt5mcHrIrzwmswapZOnKP9b+BviXNFh3twCx2Amjn6gkeUgvf+gTPVQZwb2o7H/1B9kBQHwIyJSHcWQf35yqZi0KlcUd/kJwWAI5nOd8h+8DhX24RRUZRi2hYqVG0= 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+86375+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 1643914998951587.8713179506055; Thu, 3 Feb 2022 11:03:18 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id ExKzYY1788612xPlOYvDxp9E; Thu, 03 Feb 2022 11:03:18 -0800 X-Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mx.groups.io with SMTP id smtpd.web08.2278.1643914996830185950 for ; Thu, 03 Feb 2022 11:03:16 -0800 X-Received: by mail-pl1-f179.google.com with SMTP id t9so761529plg.13 for ; Thu, 03 Feb 2022 11:03:16 -0800 (PST) X-Gm-Message-State: D9qW4E50gttxIgV6EKdN9AKBx1787277AA= X-Google-Smtp-Source: ABdhPJxxnm6Mdtr5E1tHSsP/hDijWGYQn4l9xXKEDXqu/x/F0HBYNvUgdWmP4kTPXMDsm4F82AUjaA== X-Received: by 2002:a17:902:a9c5:: with SMTP id b5mr36951037plr.167.1643914996080; Thu, 03 Feb 2022 11:03:16 -0800 (PST) X-Received: from localhost.localdomain ([50.35.74.198]) by smtp.gmail.com with ESMTPSA id w8sm24175450pfu.128.2022.02.03.11.03.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 11:03:15 -0800 (PST) From: "Kun Qin" To: devel@edk2.groups.io Cc: Andrew Fish , Leif Lindholm , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v3 1/2] EDK2 Code First: PI Specification: New error codes of Host Software class Date: Thu, 3 Feb 2022 11:03:02 -0800 Message-Id: <20220203190303.2008-2-kuqin12@gmail.com> In-Reply-To: <20220203190303.2008-1-kuqin12@gmail.com> References: <20220203190303.2008-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=1643914998; bh=LVsGwqyQ6Qc+i3fvQUtS4FdyNWD7Y2H5AVYdQzc4ovI=; h=Cc:Date:From:Reply-To:Subject:To; b=Wi3wZVEeyyk/D9oCkSzleevXTE+WxHUsW2k6z/NneJi02DWL3trj8kVLcr6+kq2iQxP CqSDAML6ec3xpfLyYraP+iBOrPpMmA5W3ll2aa8AXngFsLw7qJE6cy9IM7MOqHO0J6NEg In0D6mUFt/to7kiR1ZfuVrOue1NyFXYGltA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1643915000842100007 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 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..61a0be798d7f --- /dev/null +++ b/CodeFirst/BZ3794-SpecChange.md @@ -0,0 +1,55 @@ +# Title: Introduction of `EFI_SW_EC_FRAGMENTED_MEMORY_MAP` Status Code + +## Status: Draft + +## 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_FRAGMENTED_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, fragmented memory map from boot to boot would fail to meet certai= n OS ACPI requirements (i.e. S4 resume boot requires consistent memory maps= ) 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_FRAGMENTED_MEMORY_MAP | System will reboot due to fragment= ed 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_FRAGMENTED_MEMORY_MAP 0x00000014 + ``` + +### Code Changes + +1. Add macro definitions in `MdePkg/Include/Pi/PiStatusCode.h` to match ne= w specification. --=20 2.34.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 (#86375): https://edk2.groups.io/g/devel/message/86375 Mute This Topic: https://groups.io/mt/88890225/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 17 02:03:24 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+86376+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+86376+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1643914999; cv=none; d=zohomail.com; s=zohoarc; b=aLpmMla5u89qP4BZLIXcEMza9SluBaT8a0UGqAxil0LeFAmg9wT0TQEh5iApPSfrcu4JsEkvSHaPcfFAMWCewl5hH5RY7v9PIQmgZ5LBBu7jZsnwi7w+cE0ERAEFYqGmPmpli2+wR60XfFE29eKHI9aWWrZTioD0L5yRYTZrZRo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643914999; 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=ADaLMaiZUh95F2XHjQKsidCZwOwaITwqlY6c7TNKsNM=; b=nLkfWYYrQzPLroJOsFhRnugzTC3Epspbx+0i9QjBtUeH3OT6gTzpDRu/nTtkIu6esdtxrE/UbAoyHzLzZNKL1TRu7dYGVNqXzV4+UKy7k4wYYPfGJNcY314qvBDUm/gHb4+rIElKp7vGhJWNiMucKi+EBHtQfcRk/4qMaOVX1/E= 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+86376+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 1643914999631732.7207199943559; Thu, 3 Feb 2022 11:03:19 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id b7DgYY1788612xRc1B9oQXWX; Thu, 03 Feb 2022 11:03:19 -0800 X-Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.web10.2199.1643914997261038252 for ; Thu, 03 Feb 2022 11:03:17 -0800 X-Received: by mail-pl1-f174.google.com with SMTP id t9so761550plg.13 for ; Thu, 03 Feb 2022 11:03:17 -0800 (PST) X-Gm-Message-State: SLih8TZgNCudCwt3cmHlzSlWx1787277AA= X-Google-Smtp-Source: ABdhPJxVOYUNSIg1UXSgFgQW6Xhuy4Y+a3rK+A9NFoOl5dDTYCWUkrfYHuZqQbiwHnfmCWnwN7NRwQ== X-Received: by 2002:a17:903:234b:: with SMTP id c11mr37026159plh.157.1643914996735; Thu, 03 Feb 2022 11:03:16 -0800 (PST) X-Received: from localhost.localdomain ([50.35.74.198]) by smtp.gmail.com with ESMTPSA id w8sm24175450pfu.128.2022.02.03.11.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 11:03:16 -0800 (PST) From: "Kun Qin" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v3 2/2] MdePkg: MmCommunication: Add new Host Software class Error Code to MdePkg Date: Thu, 3 Feb 2022 11:03:03 -0800 Message-Id: <20220203190303.2008-3-kuqin12@gmail.com> In-Reply-To: <20220203190303.2008-1-kuqin12@gmail.com> References: <20220203190303.2008-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=1643914999; bh=JhysZ54QqzlYdsr4g+RtTkueG/Xe+h8wbA0G+PW4s5I=; h=Cc:Date:From:Reply-To:Subject:To; b=o8409EzAKU48rwhlnpjjg81JozkkUTJVZBWcmfkdrMmHj9CVOw3Dg1UgubfBbldPyNN BR4SAuOPz9lpdorC9RVVMdkf3PsIrwKz1sClVXyQYmAh2Ph7CSkhQuaRP5ytW8CAottdn hZ5KPwPvhn2YSO3nkxmhsMTi2ZcLMBx43qk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1643915001193100009 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 fragmented 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 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..b165f8bef356 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_FRAGMENTED_MEMORY_MAP 0x00000014 ///@} =20 // --=20 2.34.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 (#86376): https://edk2.groups.io/g/devel/message/86376 Mute This Topic: https://groups.io/mt/88890226/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-