From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mx.groups.io with SMTP id smtpd.web10.384.1685644203545043779 for ; Thu, 01 Jun 2023 11:30:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20221208 header.b=pFsx6U15; spf=pass (domain: gmail.com, ip: 209.85.210.180, mailfrom: kuqin12@gmail.com) Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-64d4e4598f0so1406413b3a.2 for ; Thu, 01 Jun 2023 11:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685644203; x=1688236203; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=J7G9mToAV2TnyssBMw/haBeogatFfX0oGBbNTMIvG8s=; b=pFsx6U15rTAfJUkbKV0p9UWETkbAi5V3yTT/7VzbpVDsrPxhEzyYOSvlTprxUUsTLE vAPXkQU+jcF/lzVLx7vofT5lp0qvTrj2smYMkjbsmEA5eh2ZuNaPC8kQDbqWp61HeFCB oDctQ5Oy2k1UhDYL+um1lWEKMtd1eUs2fPlD0GrbSfQQoi6YsTg9sU+jOpM08H8YuSV1 CeQ21ZerGDlUrweKrfAziWz1AO5KMbwCCDegXFodrcIR44Ei1nBRBHuKXX2ZdAw5hMXG lsscPbD8na+sgLvxeqiCNCc9cnWNKwsMOX1rcey12bd32LRHAQyANKyY8ixxkx5aFcUF 1nXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685644203; x=1688236203; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J7G9mToAV2TnyssBMw/haBeogatFfX0oGBbNTMIvG8s=; b=BkGr00MahwEVyyqMrKOvwthE5ax9vIqLqtEPAqwu+sU2jzeY3Dn1K3okEod1FHcdEY afR4fVNQW+yTqCFUV3K9G255ch7BzwH7vkHs01TG3+WCikmHLzhIwOJ3iC7mzxOPlk0C FfeZaUNiwalzPIwlYQCblEXxwT83RFn4EVu4y/+gx4riBq8Ol9sBHkI8SFFCAv0Z7Kvy a5W5lRCeWQOeYXRyAjuO3ycnY0igf9uy0rsdekgIFzWMw2sQx4AQVLIjI7Eb3qmYYCaL 7mBbmqMRutVq0U3OO6Yv0h7mXmchr9B/3EC1HOkzs3muCw/G5RjKPtszqdAcXMcHm9uf fsUA== X-Gm-Message-State: AC+VfDysUlilhpJcQQ4DQNTnoYLLJubpDFtg8w3LORgz0o9KIkkaj5Zk 4eJr/sQvuFzWo0ere0gUL7el15N2FGE= X-Google-Smtp-Source: ACHHUZ6+lQZcaZ78vnSQ30LQGZjBB2HIIRkFqUIfxzhzYhakTD0sgGzuu3bKwppPxsTjxZT3R5D1vA== X-Received: by 2002:a05:6a00:13a7:b0:644:ad29:fd5a with SMTP id t39-20020a056a0013a700b00644ad29fd5amr13560788pfg.21.1685644202687; Thu, 01 Jun 2023 11:30:02 -0700 (PDT) Return-Path: Received: from MININT-0U7P5GU.redmond.corp.microsoft.com ([2001:4898:80e8:36:652e:1aba:f961:866]) by smtp.gmail.com with ESMTPSA id v12-20020a62a50c000000b0063d44634d8csm5352054pfm.71.2023.06.01.11.30.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 11:30:01 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v1 1/3] MdePkg: PiStatusCode: Add new Host Software class Error Code to MdePkg Date: Thu, 1 Jun 2023 11:29:54 -0700 Message-Id: <20230601182956.2068-2-kuqin12@gmail.com> X-Mailer: git-send-email 2.40.1.windows.1 In-Reply-To: <20230601182956.2068-1-kuqin12@gmail.com> References: <20230601182956.2068-1-kuqin12@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3794 This change introduces a new error code definitions under Host Software class according to PI specification v1.8. 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 --- MdePkg/Include/Pi/PiStatusCode.h | 41 ++++++++++---------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/MdePkg/Include/Pi/PiStatusCode.h b/MdePkg/Include/Pi/PiStatusC= ode.h index ef2aea7364bc..3222a082c550 100644 --- a/MdePkg/Include/Pi/PiStatusCode.h +++ b/MdePkg/Include/Pi/PiStatusCode.h @@ -965,26 +965,27 @@ typedef struct { /// These are shared by all subclasses.=0D ///=0D ///@{=0D -#define EFI_SW_EC_NON_SPECIFIC 0x00000000=0D -#define EFI_SW_EC_LOAD_ERROR 0x00000001=0D -#define EFI_SW_EC_INVALID_PARAMETER 0x00000002=0D -#define EFI_SW_EC_UNSUPPORTED 0x00000003=0D -#define EFI_SW_EC_INVALID_BUFFER 0x00000004=0D -#define EFI_SW_EC_OUT_OF_RESOURCES 0x00000005=0D -#define EFI_SW_EC_ABORTED 0x00000006=0D -#define EFI_SW_EC_ILLEGAL_SOFTWARE_STATE 0x00000007=0D -#define EFI_SW_EC_ILLEGAL_HARDWARE_STATE 0x00000008=0D -#define EFI_SW_EC_START_ERROR 0x00000009=0D -#define EFI_SW_EC_BAD_DATE_TIME 0x0000000A=0D -#define EFI_SW_EC_CFG_INVALID 0x0000000B=0D -#define EFI_SW_EC_CFG_CLR_REQUEST 0x0000000C=0D -#define EFI_SW_EC_CFG_DEFAULT 0x0000000D=0D -#define EFI_SW_EC_PWD_INVALID 0x0000000E=0D -#define EFI_SW_EC_PWD_CLR_REQUEST 0x0000000F=0D -#define EFI_SW_EC_PWD_CLEARED 0x00000010=0D -#define EFI_SW_EC_EVENT_LOG_FULL 0x00000011=0D -#define EFI_SW_EC_WRITE_PROTECTED 0x00000012=0D -#define EFI_SW_EC_FV_CORRUPTED 0x00000013=0D +#define EFI_SW_EC_NON_SPECIFIC 0x00000000=0D +#define EFI_SW_EC_LOAD_ERROR 0x00000001=0D +#define EFI_SW_EC_INVALID_PARAMETER 0x00000002=0D +#define EFI_SW_EC_UNSUPPORTED 0x00000003=0D +#define EFI_SW_EC_INVALID_BUFFER 0x00000004=0D +#define EFI_SW_EC_OUT_OF_RESOURCES 0x00000005=0D +#define EFI_SW_EC_ABORTED 0x00000006=0D +#define EFI_SW_EC_ILLEGAL_SOFTWARE_STATE 0x00000007=0D +#define EFI_SW_EC_ILLEGAL_HARDWARE_STATE 0x00000008=0D +#define EFI_SW_EC_START_ERROR 0x00000009=0D +#define EFI_SW_EC_BAD_DATE_TIME 0x0000000A=0D +#define EFI_SW_EC_CFG_INVALID 0x0000000B=0D +#define EFI_SW_EC_CFG_CLR_REQUEST 0x0000000C=0D +#define EFI_SW_EC_CFG_DEFAULT 0x0000000D=0D +#define EFI_SW_EC_PWD_INVALID 0x0000000E=0D +#define EFI_SW_EC_PWD_CLR_REQUEST 0x0000000F=0D +#define EFI_SW_EC_PWD_CLEARED 0x00000010=0D +#define EFI_SW_EC_EVENT_LOG_FULL 0x00000011=0D +#define EFI_SW_EC_WRITE_PROTECTED 0x00000012=0D +#define EFI_SW_EC_FV_CORRUPTED 0x00000013=0D +#define EFI_SW_EC_INCONSISTENT_MEMORY_MAP 0x00000014=0D ///@}=0D =0D //=0D --=20 2.40.1.windows.1