Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Zm8WH-0005a9-Li for mharc-grub-devel@gnu.org; Tue, 13 Oct 2015 18:58:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm8VK-0004w8-6O for grub-devel@gnu.org; Tue, 13 Oct 2015 18:57:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm8VF-00017k-6W for grub-devel@gnu.org; Tue, 13 Oct 2015 18:57:10 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:39869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm8VF-00017R-09 for grub-devel@gnu.org; Tue, 13 Oct 2015 18:57:05 -0400 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t9DMv2LL023543 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Oct 2015 22:57:02 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t9DMv2Uh015543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 13 Oct 2015 22:57:02 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t9DMv2ac021980; Tue, 13 Oct 2015 22:57:02 GMT Received: from olila.local.net-space.pl (/10.175.169.67) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 13 Oct 2015 15:57:01 -0700 Date: Wed, 14 Oct 2015 00:56:57 +0200 From: Daniel Kiper To: Laszlo Ersek Subject: Re: [grub PATCH] efinet: disable MNP background polling Message-ID: <20151013225657.GN6226@olila.local.net-space.pl> References: <20151001.182655.371384337.d.hatayama@jp.fujitsu.com> <560D1E07.3090902@redhat.com> <20151013214919.GA6140@router-fw-old.local.net-space.pl> <561D83E9.6050703@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <561D83E9.6050703@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 Cc: grub-devel@gnu.org, arvidjaar@gmail.com, edk2-devel-01 , HATAYAMA Daisuke , glin@suse.com, seth.goldberg@oracle.com, Mark Salter X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2015 22:57:11 -0000 On Wed, Oct 14, 2015 at 12:21:29AM +0200, Laszlo Ersek wrote: > On 10/13/15 23:49, Daniel Kiper wrote: [...] > > Taking into account above and sentences in UEFI spec (v2.5) like "Once the > > remote image is successfully loaded, it may utilize the EFI_PXE_BASE_CODE_PROTOCOL > > interfaces, or even the EFI_SIMPLE_NETWORK_PROTOCOL interfaces, to continue > > the remote process." I have a feeling that UEFI spec is very imprecise how > > to use SNP. I have not seen any single word saying that there are any constraints > > on SNP usage (am I missing something?). I heard about that in our internal > > discussions but I was not convinced that it is true until I have seen your > > email with all details. So, now I think that UEFI spec should have special > > paragraph saying how to play with SNP. What do you think about that? > > I think that a request for clarification should be filed with the USWG, > or at least raised on edk2-devel :) I will take care of it. Hmmm... If firmware do not conform to spec then firmware should be fixed not spec. Anyway, I will take a look and we will see what (if any) should be done. > > By the way, I saw that other boot loaders like PXELINUX or iPXE use SNP. > > Do you suggest that all of them should be rewritten to avoid issues with > > this protocol? > > I don't know these projects overly well :), but I wouldn't suggest such > an indiscriminate rewrite for each. The main incentive for thinking > about MNP at all is that the exclusive open of SNP, which *should* work, > hangs various proprietary UEFI implementations. > > When Mark Salter pinged me on IRC quite a few months back about the > original grub problem, the first thing that I recommended (although > clearly not immediately -- I had to research the spec) was the exclusive > open. Mark went ahead and implemented that, and grub started working on > the UEFI platform we had. (Then he contributed the patch(es) to upstream.) > > The exclusive open is a valid (and simple) thing to do, according to the > UEFI spec. So the alternative to the elaborate MNP(SB) patch is to debug I have the same feeling since I started work on this issue. > and fix the UEFI implementations on which the current (otherwise This is firmware guys work. I think that we can try to convince some of them to fix what should be fixed. > spec-conformant) grub code -- the exclusive open -- exposes a hang / > crash etc. > > The people who are likely most interested in either fixing those > problematic UEFI implementations, *or* in converting the various open > source projects to MNP(SB), should be those that want to run the latter > on the former. :) Hatayama-san is certainly at liberty to solve the > issue either way. I think that we should push people who write firmware which do not conform UEFI spec. Otherwise they will not care more and more and we will have more and more problems (not only related to network stack). Daniel