From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 2C57081DC7 for ; Sun, 13 Nov 2016 17:40:52 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP; 13 Nov 2016 17:40:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,487,1473145200"; d="scan'208";a="1084739695" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by fmsmga002.fm.intel.com with ESMTP; 13 Nov 2016 17:40:56 -0800 Received: from orsmsx115.amr.corp.intel.com (10.22.240.11) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 13 Nov 2016 17:40:55 -0800 Received: from orsmsx113.amr.corp.intel.com ([169.254.9.250]) by ORSMSX115.amr.corp.intel.com ([10.22.240.11]) with mapi id 14.03.0248.002; Sun, 13 Nov 2016 17:40:55 -0800 From: "Kinney, Michael D" To: "Yao, Jiewen" , "Zeng, Star" , "edk2-devel@lists.01.org" , "Kinney, Michael D" CC: "Yao, Jiewen" , "Gao, Liming" , "Zeng, Star" Thread-Topic: [PATCH] MdeModulePkg DxeCore: Show error message on unaligned FvImage issue Thread-Index: AQHSPhZw/Pdbuj1/CECNNss6COSQzaDXs0BA Date: Mon, 14 Nov 2016 01:40:55 +0000 Message-ID: References: <1478843939-23164-1-git-send-email-star.zeng@intel.com> <0C09AFA07DD0434D9E2A0C6AEB048310395B315F@shsmsx102.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C50386CFE0D@shsmsx102.ccr.corp.intel.com> In-Reply-To: <74D8A39837DF1E4DA445A8C0B3885C50386CFE0D@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzM2N2Q2NjctMTBjYy00MzgxLTljZmYtMzY2NDg5NDA0NTU0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InIzdThBRFwvTkw4NDhtRER1VDRVNVwvTXR6MHpPaVJ2VGFlTG1WbHZ3OSttST0ifQ== x-originating-ip: [10.22.254.138] MIME-Version: 1.0 Subject: Re: [PATCH] MdeModulePkg DxeCore: Show error message on unaligned FvImage issue X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 01:40:52 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Jiewen, Do you think it would be a good idea to add a similar DEBUG() message in the HobLib when an FV HOBs are created? There are=20 other ways FV HOBs can be created, so I think the DEBUG() message in this patch is very important, but getting a message when the an FV HOB is created will make fixing the issue easier. Thanks, Mike > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ya= o, > Jiewen > Sent: Sunday, November 13, 2016 5:28 PM > To: Zeng, Star ; edk2-devel@lists.01.org > Cc: Yao, Jiewen ; Gao, Liming ; Zeng, > Star > Subject: Re: [edk2] [PATCH] MdeModulePkg DxeCore: Show error message on u= naligned > FvImage issue >=20 > Reviewed-by: jiewen.yao@intel.com >=20 > > > > > > -----Original Message----- > > From: Zeng, Star > > Sent: Friday, November 11, 2016 1:59 PM > > To: edk2-devel@lists.01.org > > Cc: Zeng, Star ; Yao, Jiewen ; > > Gao, Liming > > Subject: [PATCH] MdeModulePkg DxeCore: Show error message on > > unaligned FvImage issue > > > > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D205 > > > > Cc: Jiewen Yao > > Cc: Liming Gao > > Contributed-under: TianoCore Contribution Agreement 1.0 > > Signed-off-by: Star Zeng > > --- > > MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c | 9 ++++++++- > > 1 file changed, 8 insertions(+), 1 deletion(-) > > > > diff --git a/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c > > b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c > > index f031ef110c19..bc7b34140f84 100644 > > --- a/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c > > +++ b/MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.c > > @@ -4,7 +4,7 @@ > > It consumes FV HOBs and creates read-only Firmare Volume Block > > protocol > > instances for each of them. > > > > -Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
> > +Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
> > This program and the accompanying materials are licensed and made > > available under the terms and conditions of the BSD License which > > accompanies this distribution. The full text of the license may be fou= nd at > > @@ -495,6 +495,13 @@ ProduceFVBProtocolOnBuffer ( > > // > > // FvImage buffer is not at its required alignment. > > // > > + DEBUG (( > > + DEBUG_ERROR, > > + "Unaligned FvImage found at 0x%lx:0x%lx, the required > > alignment is 0x%x\n", > > + BaseAddress, > > + Length, > > + FvAlignment > > + )); > > return EFI_VOLUME_CORRUPTED; > > } > > } > > -- > > 2.7.0.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel