From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=e0J8mLtV; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.244.80, mailfrom: abner.chang@amd.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D0faOv9AD6SKSbqBQ76xceE/zM4uypFIDx09SQXvPAc=; b=e0J8mLtVfEydk4RTHuhYYljYQma5ndEMX8POxHHe4554IAYo6wM4JWfNJ9fXIsNIePOUAZ9ONBj3/feIN1qiHrn6kBGdxaJ4LdnYk4AJxIR5KZuo7edOb2OfnvSJUmkE0J0I5ZpmZinMxvOCLAmaShcJvj+rNJrmLG4Yxi5qYmc= 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 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 (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 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 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" To: CC: Michael D Kinney , Liming Gao , Zhiguang Liu , "Nickle Wang" , Igor Kulchytskyy , Isaac Oram , Abdul Lateef Attar , Tinh Nguyen Subject: [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> X-Mailer: git-send-email 2.37.1.windows.1 MIME-Version: 1.0 Return-Path: Abner.Chang@amd.com 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: BCL: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-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(346002)(136003)(376002)(39860400002)(396003)(451199021)(36840700001)(40470700004)(46966006)(36756003)(8936002)(2876002)(8676002)(40460700003)(5660300002)(2906002)(82310400005)(86362001)(40480700001)(478600001)(7696005)(6666004)(54906003)(16526019)(186003)(2616005)(36860700001)(1076003)(70586007)(70206006)(26005)(41300700001)(356005)(82740400003)(316002)(83380400001)(81166007)(6916009)(4326008)(47076005)(426003)(336012)(36900700001);DIR:OUT;SFP:1101; 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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 --- 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