]> xenbits.xensource.com Git - ovmf.git/commitdiff
MdePkg: Add DEBUG_MANAGEABILITY print error level
authorAbner Chang <abner.chang@amd.com>
Sun, 16 Apr 2023 07:11:21 +0000 (15:11 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 21 Apr 2023 15:42:08 +0000 (15:42 +0000)
Bug #4414

Add DEBUG_MANAGEABILITY print error lever to
output debug message of detailed manageability
related module information, such as
- RedfishPkg:
  - HTTP header/request/response
  - JSON plain text
  - Refish resource
  - Redfish Host interface information
  - Redfish credential information
  - Platform configuration to Redfish mapping
  - etc.
- ManageabilityPKg
  - Protocol payload of MCTP/PLDM/IPMI
  - Payload of transport interface transfers
  - IPMI BLOB transfer
  - etc.
- RedfishClinetPkg
  - Redfish feature driver dispatcher
  - Redfish BIOS attributes
  - Platform configuration (HII) to
    Redfish property information
  - Redfish C structure information
  - etc.

Signed-off-by: Abner Chang <abner.chang@amd.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Nickle Wang <nicklew@nvidia.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Isaac Oram <isaac.w.oram@intel.com>
Cc: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
Cc: Tinh Nguyen <tinhnguyen@os.amperecomputing.com>
MdePkg/Include/Library/DebugLib.h
MdePkg/MdePkg.dec

index 9110be2f41b394ab44cf283ee4f2382386b8f4bc..f0c9f6448794e3e5910c42559e66a0a008ddf807 100644 (file)
@@ -29,26 +29,28 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 //\r
 // Declare bits for PcdDebugPrintErrorLevel and the ErrorLevel parameter of DebugPrint()\r
 //\r
-#define DEBUG_INIT      0x00000001  // Initialization\r
-#define DEBUG_WARN      0x00000002  // Warnings\r
-#define DEBUG_LOAD      0x00000004  // Load events\r
-#define DEBUG_FS        0x00000008  // EFI File system\r
-#define DEBUG_POOL      0x00000010  // Alloc & Free (pool)\r
-#define DEBUG_PAGE      0x00000020  // Alloc & Free (page)\r
-#define DEBUG_INFO      0x00000040  // Informational debug messages\r
-#define DEBUG_DISPATCH  0x00000080  // PEI/DXE/SMM Dispatchers\r
-#define DEBUG_VARIABLE  0x00000100  // Variable\r
-#define DEBUG_BM        0x00000400  // Boot Manager\r
-#define DEBUG_BLKIO     0x00001000  // BlkIo Driver\r
-#define DEBUG_NET       0x00004000  // Network Io Driver\r
-#define DEBUG_UNDI      0x00010000  // UNDI Driver\r
-#define DEBUG_LOADFILE  0x00020000  // LoadFile\r
-#define DEBUG_EVENT     0x00080000  // Event messages\r
-#define DEBUG_GCD       0x00100000  // Global Coherency Database changes\r
-#define DEBUG_CACHE     0x00200000  // Memory range cachability changes\r
-#define DEBUG_VERBOSE   0x00400000  // Detailed debug messages that may\r
-                                    // significantly impact boot performance\r
-#define DEBUG_ERROR  0x80000000     // Error\r
+#define DEBUG_INIT      0x00000001       // Initialization\r
+#define DEBUG_WARN      0x00000002       // Warnings\r
+#define DEBUG_LOAD      0x00000004       // Load events\r
+#define DEBUG_FS        0x00000008       // EFI File system\r
+#define DEBUG_POOL      0x00000010       // Alloc & Free (pool)\r
+#define DEBUG_PAGE      0x00000020       // Alloc & Free (page)\r
+#define DEBUG_INFO      0x00000040       // Informational debug messages\r
+#define DEBUG_DISPATCH  0x00000080       // PEI/DXE/SMM Dispatchers\r
+#define DEBUG_VARIABLE  0x00000100       // Variable\r
+#define DEBUG_BM        0x00000400       // Boot Manager\r
+#define DEBUG_BLKIO     0x00001000       // BlkIo Driver\r
+#define DEBUG_NET       0x00004000       // Network Io Driver\r
+#define DEBUG_UNDI      0x00010000       // UNDI Driver\r
+#define DEBUG_LOADFILE  0x00020000       // LoadFile\r
+#define DEBUG_EVENT     0x00080000       // Event messages\r
+#define DEBUG_GCD       0x00100000       // Global Coherency Database changes\r
+#define DEBUG_CACHE     0x00200000       // Memory range cachability changes\r
+#define DEBUG_VERBOSE   0x00400000       // Detailed debug messages that may\r
+                                         // significantly impact boot performance\r
+#define DEBUG_MANAGEABILITY  0x00800000  // Detailed debug and payload message of manageability\r
+                                         // related modules, such Redfish, IPMI, MCTP and etc.\r
+#define DEBUG_ERROR  0x80000000          // Error\r
 \r
 //\r
 // Aliases of debug message mask bits\r
index e70182bf7fb37f459441a884e194ba69222c1f65..7488ccda7a00644c3024ca504601d2432e2d03b8 100644 (file)
   #  BIT20 - Global Coherency Database changes message.<BR>\r
   #  BIT21 - Memory range cachability changes message.<BR>\r
   #  BIT22 - Detailed debug message.<BR>\r
+  #  BIT23 - Manageability messages.<BR>\r
   #  BIT31 - Error message.<BR>\r
   # @Prompt Debug Message Print Level.\r
   # @Expression  0x80000002 | (gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel & 0x7F84AA00) == 0\r