From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7AB1C21103DBF for ; Tue, 28 Aug 2018 20:27:55 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Aug 2018 20:27:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,301,1531810800"; d="scan'208";a="69905079" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga006.jf.intel.com with ESMTP; 28 Aug 2018 20:27:31 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 28 Aug 2018 20:27:31 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 28 Aug 2018 20:27:31 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.226]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.240]) with mapi id 14.03.0319.002; Wed, 29 Aug 2018 11:27:29 +0800 From: "Dong, Eric" To: "Wang, Jian J" , "edk2-devel@lists.01.org" CC: Laszlo Ersek Thread-Topic: [PATCH] UefiCpuPkg/CpuDxe: change level of DEBUG message Thread-Index: AQHUP0dq4fHO28uIIE2KMiNsQ1rcV6TWEcKA Date: Wed, 29 Aug 2018 03:27:28 +0000 Message-ID: References: <20180829032135.16156-1-jian.j.wang@intel.com> In-Reply-To: <20180829032135.16156-1-jian.j.wang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] UefiCpuPkg/CpuDxe: change level of DEBUG message X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2018 03:27:55 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Eric Dong > -----Original Message----- > From: Wang, Jian J > Sent: Wednesday, August 29, 2018 11:22 AM > To: edk2-devel@lists.01.org > Cc: Dong, Eric ; Laszlo Ersek > Subject: [PATCH] UefiCpuPkg/CpuDxe: change level of DEBUG message >=20 > It's reported the debug message in CpuDxe driver is quite annoying in boo= t > and shell, and slow down the boot process. To solve this issue, this patc= h > changes the DEBUG_INFO to DEBUG_VERBOSE. On a typical Intel real > platform, at least 16s boot time can be saved. >=20 > Cc: Eric Dong > Cc: Laszlo Ersek > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Jian J Wang > --- > UefiCpuPkg/CpuDxe/CpuDxe.c | 2 +- > UefiCpuPkg/CpuDxe/CpuPageTable.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c > index cfd4c415ae..76661cbcd9 100644 > --- a/UefiCpuPkg/CpuDxe/CpuDxe.c > +++ b/UefiCpuPkg/CpuDxe/CpuDxe.c > @@ -404,7 +404,7 @@ CpuSetMemoryAttributes ( > // to avoid unnecessary computing. > // > if (mIsFlushingGCD) { > - DEBUG((DEBUG_INFO, " Flushing GCD\n")); > + DEBUG((DEBUG_VERBOSE, " Flushing GCD\n")); > return EFI_SUCCESS; > } >=20 > diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c > b/UefiCpuPkg/CpuDxe/CpuPageTable.c > index df021798c0..609df58e3a 100644 > --- a/UefiCpuPkg/CpuDxe/CpuPageTable.c > +++ b/UefiCpuPkg/CpuDxe/CpuPageTable.c > @@ -528,7 +528,7 @@ SplitPage ( > ASSERT (SplitAttribute =3D=3D Page4K); > if (SplitAttribute =3D=3D Page4K) { > NewPageEntry =3D AllocatePagesFunc (1); > - DEBUG ((DEBUG_INFO, "Split - 0x%x\n", NewPageEntry)); > + DEBUG ((DEBUG_VERBOSE, "Split - 0x%x\n", NewPageEntry)); > if (NewPageEntry =3D=3D NULL) { > return RETURN_OUT_OF_RESOURCES; > } > @@ -549,7 +549,7 @@ SplitPage ( > ASSERT (SplitAttribute =3D=3D Page2M || SplitAttribute =3D=3D Page4K= ); > if ((SplitAttribute =3D=3D Page2M || SplitAttribute =3D=3D Page4K)) = { > NewPageEntry =3D AllocatePagesFunc (1); > - DEBUG ((DEBUG_INFO, "Split - 0x%x\n", NewPageEntry)); > + DEBUG ((DEBUG_VERBOSE, "Split - 0x%x\n", NewPageEntry)); > if (NewPageEntry =3D=3D NULL) { > return RETURN_OUT_OF_RESOURCES; > } > -- > 2.16.2.windows.1