From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: eric.dong@intel.com) Received: from mga09.intel.com (mga09.intel.com []) by groups.io with SMTP; Wed, 31 Jul 2019 00:35:07 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jul 2019 00:35:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,329,1559545200"; d="scan'208";a="166298871" Received: from ydong10-win10.ccr.corp.intel.com ([10.239.158.133]) by orsmga008.jf.intel.com with ESMTP; 31 Jul 2019 00:35:06 -0700 From: "Dong, Eric" To: devel@edk2.groups.io Cc: Ray Ni , Laszlo Ersek Subject: [Patch 2/2] UefiCpuPkg/PiSmmCpuDxeSmm: Default avoid print. Date: Wed, 31 Jul 2019 15:35:02 +0800 Message-Id: <20190731073502.24640-3-eric.dong@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20190731073502.24640-1-eric.dong@intel.com> References: <20190731073502.24640-1-eric.dong@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1984 Current debug message brings much restriction for the platform which use this driver. For PEI and DXE phase, platform mush link base DebugLib (without using any pei/dxe services, even for its dependent libraries). This patch default disable this debug message, only open it when need to debug the related code. Signed-off-by: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek --- UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c b/UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c index 2cfc61b2c6..b8cbc3a9d1 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c @@ -1,7 +1,7 @@ /** @file Code for Processor S3 restoration -Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -90,7 +90,9 @@ UINT8 mApHltLoopCodeTemplate[] = { 0xEB, 0xFC // jmp $-2 }; +GLOBAL_REMOVE_IF_UNREFERENCED CHAR16 *mRegisterTypeStr[] = {L"MSR", L"CR", L"MMIO", L"CACHE", L"SEMAP", L"INVALID" }; +#define DEBUG_AP_MSG 0 /** Sync up the MTRR values for all processors. @@ -209,7 +211,7 @@ ProgramProcessorRegister ( ApLocation->Core * CpuStatus->MaxThreadCount + ApLocation->Thread; DEBUG (( - DEBUG_INFO, + DEBUG_AP_MSG, "Processor = %lu, Entry Index %lu, Type = %s!\n", (UINT64)ThreadIndex, (UINT64)Index, -- 2.21.0.windows.1