From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 DED532237A4CA for ; Fri, 2 Feb 2018 21:15:58 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Feb 2018 21:21:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,453,1511856000"; d="scan'208";a="171327889" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga004.jf.intel.com with ESMTP; 02 Feb 2018 21:21:36 -0800 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 2 Feb 2018 21:21:26 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 2 Feb 2018 21:21:25 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.124]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.125]) with mapi id 14.03.0319.002; Sat, 3 Feb 2018 13:21:23 +0800 From: "Yao, Jiewen" To: "Yao, Jiewen" , Marvin H?user , "edk2-devel@lists.01.org" Thread-Topic: MinPlatformPkg/PlatformInit: FV code Thread-Index: AdOZ7dDRJ47e1o0uT++5ldvAkWh9yACMtQZQAAxKRNAAD+uEoAAHT07A Date: Sat, 3 Feb 2018 05:21:23 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AAB06FF@shsmsx102.ccr.corp.intel.com> References: <74D8A39837DF1E4DA445A8C0B3885C503AAAA932@shsmsx102.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C503AAB05B0@shsmsx102.ccr.corp.intel.com> In-Reply-To: <74D8A39837DF1E4DA445A8C0B3885C503AAB05B0@shsmsx102.ccr.corp.intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGU1Nzc2MWItOGViMC00OWY2LTg0OTUtMzBhMWE3Nzg1ZDZhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJaZFoxOElLZnF0Wk9talpJNnd1cHFRNUxVNytMUmlHd2dPN294MkFBVGZ0ejlNWFBEQnRqTWM5RmNlYyt1SnlsIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: MinPlatformPkg/PlatformInit: FV code X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2018 05:15:59 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Marvin I have filed 2 bugzilla to record this. https://bugzilla.tianocore.org/show_bug.cgi?id=3D872 https://bugzilla.tianocore.org/show_bug.cgi?id=3D871 Thank you Yao Jiewen > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ya= o, > Jiewen > Sent: Saturday, February 3, 2018 9:54 AM > To: Marvin H?user ; edk2-devel@lists.01.org > Subject: Re: [edk2] MinPlatformPkg/PlatformInit: FV code >=20 > Ah, good catch. >=20 > That is correct - it is irrelevant to PEI. To put to FV Hob is enough, I = believe. >=20 > Appreciate your careful review, which helps us clean up the code. :-) >=20 > Thank you > Yao Jiewen >=20 >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > > Marvin H?user > > Sent: Saturday, February 3, 2018 2:30 AM > > To: edk2-devel@lists.01.org; Yao, Jiewen > > Subject: Re: [edk2] MinPlatformPkg/PlatformInit: FV code > > > > Good point with the DxeCore, I didn't consider that. Though OsBoot woul= d be > > irrelevant to the PEI phase, wouldn't it be? > > > > Thanks, > > Marvin > > > > From: Yao, Jiewen [mailto:jiewen.yao@intel.com] > > Sent: Friday, February 2, 2018 1:40 PM > > To: Marvin H?user ; edk2-devel@lists.01.org > > Subject: RE: MinPlatformPkg/PlatformInit: FV code > > > > Excellent question. > > > > Comment inline. > > > > From: Marvin H?user [mailto:Marvin.Haeuser@outlook.com] > > Sent: Wednesday, January 31, 2018 1:54 AM > > To: edk2-devel@lists.01.org; Yao, Jiewe= n > > > > > Subject: MinPlatformPkg/PlatformInit: FV code > > > > Dear developers, dear Jiewen, > > > > I have been investigating the devel-MinPlatform branch of edk2-platform= s for > > educational purposes and got two questions regarding the Firmware Volum= e > > code in PlatformInitPreMem, if you do not mind. I assume the tree was t= ested, > so > > most likely I misunderstood some things. > > > > > > 1. Why is a Firmware Volume HOB built to cover the entire flash rang= e > > > (https://github.com/tianocore/edk2-platforms/blob/devel-MinPlatform/Platf= or > > > m/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c#= L3 > > 79)? Am I correct that this implies a FV spanning through the entire fl= ash > MMIO > > range, which would then imply all other FVs are contained within it? Th= is would > > make sense, however that's not what I saw in the KabylakeOpenBoardPkg > Flash > > Map, which has the NV Storage first > > > (https://github.com/tianocore/edk2-platforms/blob/devel-MinPlatform/Platf= or > > m/Intel/KabylakeOpenBoardPkg/Include/Fdf/FlashMapInclude.fdf#L25). > > > > [Jiewen] You are right. We should not use FD region for FV. Will fix it= . > > > > > > > > 1. Why are FV Info PPIs installed for the UefiBoot and the OsBoot FV= s > > > (https://github.com/tianocore/edk2-platforms/blob/devel-MinPlatform/Platf= or > > > m/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c#= L3 > > 44)? If I checked correctly, installing this PPI type will trigger PeiC= ore to > dispatch > > PEIMs in the FVs, however there are only DXE drivers in these. Why are = no FV > > HOBs installed, which are gotten by DxeCore? > > > > [Jiewen] In DxeIpl, PeiServicesFfsFindNextVolume() is used to search Dx= eCore. > > In PeiCore, PeiFfsFindNextVolume() calls FindNextCoreFvHandle() for Dxe= Core > > one by one. If PcdFrameworkCompatibilitySupport is FALSE, it returns > > &Private->Fv[Instance] directly. > > > > And Fv[Instance] is added in FirmwareVolmeInfoPpiNotifyCallback(), when > > gEfiPeiFirmwareVolumeInfo2PpiGuid is installed. > > > > So if PcdFrameworkCompatibilitySupport is FALSE, install PPI is the onl= y way to > > let PEI core discover DxeCore. > > Only if PcdFrameworkCompatibilitySupport is TRUE, install PPI is not re= quired, > > but the FindNextCoreFvHandle() will install the PPI for the HobFv. The = result is > > same. > > > > > > Thank you > > Yao Jiewen > > > > > > > > > > Thanks in advance for your time! > > > > Best regards, > > Marvin. > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel