From nobody Sun May 19 17:22:40 2024 Delivered-To: importer@patchew.org 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+103153+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1681808696892658.6505458590625; Tue, 18 Apr 2023 02:04:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id PbUGYY1788612xybeZNugJBQ; Tue, 18 Apr 2023 02:04:56 -0700 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.80]) by mx.groups.io with SMTP id smtpd.web10.4066.1681808695346328958 for ; Tue, 18 Apr 2023 02:04:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CCafXCRsOzxypIv7Cy32tf8/YB/G0nagwlloJoF1MqjOwvAI9zzuq+GSdBJ055HHDczdp9rJGcLfK75vUI2anbFk71GC+idBMSM3iw3o7BGtMhoG2P887Q0ILopo4MXt3mwsq+ZPo56XJfMNL1+PXlymM7DRCx0VPyTgqgjJ1FPV4ea5lOaijApwmSkNYFr48sOTDUqqIN/jDZoxaQcQrpM6BDsZx6zTQrbrXBCYtsOMAVKeITOBLw2c7ifJ9sBFMKCCxraLopU+bM7XybWR+x1ITeVYaUL7cBPOPH0t3LxUpvMoG5JM//d7URl3OBVKWLpBecuyWM+Hqg4DXxruIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=D0faOv9AD6SKSbqBQ76xceE/zM4uypFIDx09SQXvPAc=; b=TLWxvzx2JU6srhwzqWvan+twH6TuaXdj3Ks82LJ+V0d75anGHFjyk/+ESnBssG49H2823ayl6gu7v49Jif6s/Qf4g4gRLcTjVN12PbArjw6cBMsJ4kLX+es0jhRDAn5gv9/x3ht1B/h5C8QK8+grEJ4GKcnYSIAyCG56ZuakSQ5X/5+IlY0AuF/W57Dbr1X+RzTxRyRswSQbCuddaHHZ0f7CglEagvGtfkCWjzZVVubaXBCk0G6EwkN7NvtmE6jbPE2xZ5tO+W2o1mJQ+5Tqp3O66Zw7zDjrXVeq9xYdpcqPJeDZc9V9mf599uBnpSSMRJKbnQfRDu947rZFayJvIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none X-Received: from BN7PR06CA0042.namprd06.prod.outlook.com (2603:10b6:408:34::19) by BL1PR12MB5221.namprd12.prod.outlook.com (2603:10b6:208:30b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 09:04:51 +0000 X-Received: from BN8NAM11FT013.eop-nam11.prod.protection.outlook.com (2603:10b6:408:34:cafe::86) by BN7PR06CA0042.outlook.office365.com (2603:10b6:408:34::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 09:04:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; 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+103153+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT013.mail.protection.outlook.com (10.13.176.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.20 via Frontend Transport; Tue, 18 Apr 2023 09:04:51 +0000 X-Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 18 Apr 2023 04:04:48 -0500 From: "Chang, Abner via groups.io" To: CC: Michael D Kinney , Liming Gao , Zhiguang Liu , "Nickle Wang" , Igor Kulchytskyy , Isaac Oram , Abdul Lateef Attar , Tinh Nguyen Subject: [edk2-devel] [PATCH] MdePkg: Add DEBUG_MANAGEABILITY print error level Date: Tue, 18 Apr 2023 17:04:11 +0800 Message-ID: <20230418090412.1838-1-abner.chang@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT013:EE_|BL1PR12MB5221:EE_ X-MS-Office365-Filtering-Correlation-Id: 5db1b87b-fc4b-4ec8-397f-08db3febf7e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: 4EpthCFuccOg5vpTrtoMenf2h/EC8GUZcOadCFxR30aYks6ANAHJEGiI020JNwyw70QEA3R9ZlB9CpRt50avCSQqShxlaXiVrQyZ0JiCavplOpJuAJO41elmJEFzEBQMyFdxtksUK9vX/aKr0qZiEVfGtP1nb7I9Q24hRT1aTxdfBrJX+dU2fosEM8Dsk6gG60F17NVLv+XhJooWJHBUVmdql6O1BtzBhp0UU1uPLe5Z8CfaeIa0M0Yn1yqoqxIz897ci6DOuDOLnk17SvV33IEaheT3jbhmqUrj/Ht2ysJPcY1DeOlxN9ZZc0xHn6b7k3Au/qKfrPfovF/2Vb+YyqXiNR21878EDGT9LyWdvRXLxISM7iFtXJh2rcOnKxGaq9z3CgiI9+opAV0+IqUaALj3D4KuEEzNlIYBlHwFNznsdEhEPLCFuztSli48g13vFVr9xzoCjJvWyopyiEJw2qiSznELvcsZ51HV3ZTJWzqR++oKw1zop+kfCSetoPGYjBVw2U7MNLOHfO5tDGBWJ4/z77HB600m5EGQapzRiHyuP+VZ3g7dIRorqVBk6pNl+RfDlVb4HNJp5JSwBIbwq0ECkdTSQmDcHFiP/kJ12H1Mw/49Eb/BZEWkPl5wmDAsINRbklChsLg0sxn4GeXzsqBAT3IG24z+Txz/3gxlAXy8yCDzzgs2Zwodm9hVCKM3m9tXraQQotjYQYOTOMAOdCUox6yJE6I0hu0nyG6BXJI= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 09:04:51.1538 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5db1b87b-fc4b-4ec8-397f-08db3febf7e4 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT013.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5221 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,abner.chang@amd.com X-Gm-Message-State: c9pkoni6ErCwyWnYRymCYLcyx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1681808696; bh=SHa8wrPYOd42JmGCkNS8Pg4JhU2fBqxwnw8fuO3EGbA=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=odlzD9FliQSDL3LM8wM+PocieeSdcKiqBEmTKipN+1XGVRA/74DHJL6Fso2JONzF7Az yEHPz9kookq9uKFFfHt1n0WKqsfijnChFXsYBXDlnEwo9aDR9KDA6hE1ibdO9AJCSSQVM cS3FiCzcyrzZPbhrJxjCN94Vlne3fCcEEvc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1681808698453100001 Content-Type: text/plain; charset="utf-8" From: Abner Chang 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 Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Nickle Wang Cc: Igor Kulchytskyy Cc: Isaac Oram Cc: Abdul Lateef Attar Cc: Tinh Nguyen Reviewed-by: Michael D Kinney --- MdePkg/MdePkg.dec | 1 + MdePkg/Include/Library/DebugLib.h | 42 ++++++++++++++++--------------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index e70182bf7fb..a7566b688d3 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -2282,6 +2282,7 @@ # BIT20 - Global Coherency Database changes message.
# BIT21 - Memory range cachability changes message.
# BIT22 - Detailed debug message.
+ # BIT23 - Manageability messages. BR> # BIT31 - Error message.
# @Prompt Debug Message Print Level. # @Expression 0x80000002 | (gEfiMdePkgTokenSpaceGuid.PcdDebugPrintError= Level & 0x7F84AA00) =3D=3D 0 diff --git a/MdePkg/Include/Library/DebugLib.h b/MdePkg/Include/Library/Deb= ugLib.h index 9110be2f41b..12de1584c41 100644 --- a/MdePkg/Include/Library/DebugLib.h +++ b/MdePkg/Include/Library/DebugLib.h @@ -29,26 +29,28 @@ SPDX-License-Identifier: BSD-2-Clause-Patent // // Declare bits for PcdDebugPrintErrorLevel and the ErrorLevel parameter o= f DebugPrint() // -#define DEBUG_INIT 0x00000001 // Initialization -#define DEBUG_WARN 0x00000002 // Warnings -#define DEBUG_LOAD 0x00000004 // Load events -#define DEBUG_FS 0x00000008 // EFI File system -#define DEBUG_POOL 0x00000010 // Alloc & Free (pool) -#define DEBUG_PAGE 0x00000020 // Alloc & Free (page) -#define DEBUG_INFO 0x00000040 // Informational debug messages -#define DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers -#define DEBUG_VARIABLE 0x00000100 // Variable -#define DEBUG_BM 0x00000400 // Boot Manager -#define DEBUG_BLKIO 0x00001000 // BlkIo Driver -#define DEBUG_NET 0x00004000 // Network Io Driver -#define DEBUG_UNDI 0x00010000 // UNDI Driver -#define DEBUG_LOADFILE 0x00020000 // LoadFile -#define DEBUG_EVENT 0x00080000 // Event messages -#define DEBUG_GCD 0x00100000 // Global Coherency Database changes -#define DEBUG_CACHE 0x00200000 // Memory range cachability changes -#define DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may - // significantly impact boot performan= ce -#define DEBUG_ERROR 0x80000000 // Error +#define DEBUG_INIT 0x00000001 // Initialization +#define DEBUG_WARN 0x00000002 // Warnings +#define DEBUG_LOAD 0x00000004 // Load events +#define DEBUG_FS 0x00000008 // EFI File system +#define DEBUG_POOL 0x00000010 // Alloc & Free (pool) +#define DEBUG_PAGE 0x00000020 // Alloc & Free (page) +#define DEBUG_INFO 0x00000040 // Informational debug messages +#define DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers +#define DEBUG_VARIABLE 0x00000100 // Variable +#define DEBUG_BM 0x00000400 // Boot Manager +#define DEBUG_BLKIO 0x00001000 // BlkIo Driver +#define DEBUG_NET 0x00004000 // Network Io Driver +#define DEBUG_UNDI 0x00010000 // UNDI Driver +#define DEBUG_LOADFILE 0x00020000 // LoadFile +#define DEBUG_EVENT 0x00080000 // Event messages +#define DEBUG_GCD 0x00100000 // Global Coherency Database chan= ges +#define DEBUG_CACHE 0x00200000 // Memory range cachability chang= es +#define DEBUG_VERBOSE 0x00400000 // Detailed debug messages that m= ay + // significantly impact boot perf= ormance +#define DEBUG_MANAGEABILITY 0x00800000 // Detailed debug and payload mes= sage of manageability + // related modules, such Redfish,= IPMI, MCTP and etc. +#define DEBUG_ERROR 0x80000000 // Error =20 // // Aliases of debug message mask bits --=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 (#103153): https://edk2.groups.io/g/devel/message/103153 Mute This Topic: https://groups.io/mt/98339907/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-