From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web12.746.1641517399797902034 for ; Thu, 06 Jan 2022 17:03:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MVq8iBUM; spf=pass (domain: gmail.com, ip: 209.85.215.172, mailfrom: kuqin12@gmail.com) Received: by mail-pg1-f172.google.com with SMTP id z30so571097pge.4 for ; Thu, 06 Jan 2022 17:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7Vdztw6/uskmWwk8gDNIzWvB9boYasQgb2FC4ROvsNU=; b=MVq8iBUMbrUiq5RxwT0jvImIIrcM2e8l21/TxJosXm9dVWIUY3u0bWENHiQzjLiWbl 0lNVUai383Fx3O5ivHGhsUGvHwOIzwSRnFO55NU/FCbvEhEw6PktQwc+DGFiW4UljOmC xeQGufuKmf8OVW6eKg7OtWHddYLoc0gl4KlSIuvL6f7Pk7FlP8E4D4d+bV6vukA68SO1 sF+NT+Bye38An8J8VJrVPVrGDI4XdMd9Z3tpp2G2UrpgXENl3PashheEa3Ye98HmesuP 0g4OgKRZDQYTsCdq2ewfkVicQcw4/TvDR5WHPGxR8CtxZxxZ6KU1yDPLr32nk8HGnrF3 ro1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7Vdztw6/uskmWwk8gDNIzWvB9boYasQgb2FC4ROvsNU=; b=DO5VNsu8bVLF7azKsw+VkigaWwHP+RBdQkiNAGVnmCRlt+tiPlUgEmsuyf6Spq7R1C IpnB9skHCW26YUJWgYRvtrxHpVzoSGjlI2sSydtrmo2kbRw0eiB0PZv8AMDsuPbQZW0g oJbmm8xIM18KU1oeCVf9oxHIyHWRgovJAmra5TrWB5Jlp8w8A+Z0mGPVszs+lX9uARv+ 1Ll9EViYGEhnw/trjt7VJT7Zid2RI+LKFljxQey1tWM5XqsYm50rCc9rI6tWwsf+zC06 L92FhW7n7/V2L+S3YK+GSK03U9YQ5rD2q1/xdcP/tOIC7XKPmnSigL0j28H2EWXh5LGw shmQ== X-Gm-Message-State: AOAM530fywf2L26LyNFFL7t3djZ/zt+f2qxOYEGKB6AXX8U1sRHAJcPe XQnK3YWaAMWQvmdemyq2iEMWmijVppU= X-Google-Smtp-Source: ABdhPJwRvsP0vwcKsH8FNswK29gZpAe5Xio1uBDpqf2ooU0gpc+vOHUxeG/Q5SJNLzuUHjx28HD08A== X-Received: by 2002:a63:7318:: with SMTP id o24mr3487500pgc.194.1641517399267; Thu, 06 Jan 2022 17:03:19 -0800 (PST) Return-Path: Received: from localhost.localdomain ([50.35.74.198]) by smtp.gmail.com with ESMTPSA id n14sm2907385pgd.80.2022.01.06.17.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 17:03:18 -0800 (PST) From: "Kun Qin" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v1 2/2] MdePkg: MmCommunication: Add new Host Software class Error Codes to MdePkg Date: Thu, 6 Jan 2022 17:03:06 -0800 Message-Id: <20220107010306.1253-3-kuqin12@gmail.com> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20220107010306.1253-1-kuqin12@gmail.com> References: <20220107010306.1253-1-kuqin12@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3794 This change introduces two new error code definitions under Host Software class. The new error code definitions will cover system reboot events under the conditions of memory type information change and software asserts when system did not enable system halts. 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 | 42 ++++++++++---------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/MdePkg/Include/Pi/PiStatusCode.h b/MdePkg/Include/Pi/PiStatusCode.h index ef2aea7364bc..6a1c9cc30f52 100644 --- a/MdePkg/Include/Pi/PiStatusCode.h +++ b/MdePkg/Include/Pi/PiStatusCode.h @@ -965,26 +965,28 @@ typedef struct { /// These are shared by all subclasses. /// ///@{ -#define EFI_SW_EC_NON_SPECIFIC 0x00000000 -#define EFI_SW_EC_LOAD_ERROR 0x00000001 -#define EFI_SW_EC_INVALID_PARAMETER 0x00000002 -#define EFI_SW_EC_UNSUPPORTED 0x00000003 -#define EFI_SW_EC_INVALID_BUFFER 0x00000004 -#define EFI_SW_EC_OUT_OF_RESOURCES 0x00000005 -#define EFI_SW_EC_ABORTED 0x00000006 -#define EFI_SW_EC_ILLEGAL_SOFTWARE_STATE 0x00000007 -#define EFI_SW_EC_ILLEGAL_HARDWARE_STATE 0x00000008 -#define EFI_SW_EC_START_ERROR 0x00000009 -#define EFI_SW_EC_BAD_DATE_TIME 0x0000000A -#define EFI_SW_EC_CFG_INVALID 0x0000000B -#define EFI_SW_EC_CFG_CLR_REQUEST 0x0000000C -#define EFI_SW_EC_CFG_DEFAULT 0x0000000D -#define EFI_SW_EC_PWD_INVALID 0x0000000E -#define EFI_SW_EC_PWD_CLR_REQUEST 0x0000000F -#define EFI_SW_EC_PWD_CLEARED 0x00000010 -#define EFI_SW_EC_EVENT_LOG_FULL 0x00000011 -#define EFI_SW_EC_WRITE_PROTECTED 0x00000012 -#define EFI_SW_EC_FV_CORRUPTED 0x00000013 +#define EFI_SW_EC_NON_SPECIFIC 0x00000000 +#define EFI_SW_EC_LOAD_ERROR 0x00000001 +#define EFI_SW_EC_INVALID_PARAMETER 0x00000002 +#define EFI_SW_EC_UNSUPPORTED 0x00000003 +#define EFI_SW_EC_INVALID_BUFFER 0x00000004 +#define EFI_SW_EC_OUT_OF_RESOURCES 0x00000005 +#define EFI_SW_EC_ABORTED 0x00000006 +#define EFI_SW_EC_ILLEGAL_SOFTWARE_STATE 0x00000007 +#define EFI_SW_EC_ILLEGAL_HARDWARE_STATE 0x00000008 +#define EFI_SW_EC_START_ERROR 0x00000009 +#define EFI_SW_EC_BAD_DATE_TIME 0x0000000A +#define EFI_SW_EC_CFG_INVALID 0x0000000B +#define EFI_SW_EC_CFG_CLR_REQUEST 0x0000000C +#define EFI_SW_EC_CFG_DEFAULT 0x0000000D +#define EFI_SW_EC_PWD_INVALID 0x0000000E +#define EFI_SW_EC_PWD_CLR_REQUEST 0x0000000F +#define EFI_SW_EC_PWD_CLEARED 0x00000010 +#define EFI_SW_EC_EVENT_LOG_FULL 0x00000011 +#define EFI_SW_EC_WRITE_PROTECTED 0x00000012 +#define EFI_SW_EC_FV_CORRUPTED 0x00000013 +#define EFI_SW_EC_MEMORY_TYPE_INFORMATION_CHANGE 0x00000014 +#define EFI_SW_EC_RELEASE_ASSERT 0x00000015 ///@} // -- 2.34.1.windows.1