From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YksEh-0003tb-M7 for mharc-grub-devel@gnu.org; Wed, 22 Apr 2015 06:50:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YksEe-0003rX-UR for grub-devel@gnu.org; Wed, 22 Apr 2015 06:50:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YksEa-0001Bv-Lc for grub-devel@gnu.org; Wed, 22 Apr 2015 06:50:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YksEa-0001Bl-HK for grub-devel@gnu.org; Wed, 22 Apr 2015 06:50:24 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id CA2325F; Wed, 22 Apr 2015 10:50:23 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-80.ams2.redhat.com [10.36.116.80]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3MAoJ6C009368; Wed, 22 Apr 2015 06:50:21 -0400 Message-ID: <55377CEB.5010501@redhat.com> Date: Wed, 22 Apr 2015 12:50:19 +0200 From: Laszlo Ersek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Michael Chang Subject: Re: [edk2] [PATCH 2/2] efinet: fix lost packets due to active MNP instances References: <1429430471-7229-1-git-send-email-arvidjaar@gmail.com> <1429430471-7229-2-git-send-email-arvidjaar@gmail.com> <20150420063000.GA19089@linux-dsax.tai.apac.novell.com> <20150421061254.GA19491@linux-dsax.tai.apac.novell.com> <20150421064934.GB19491@linux-dsax.tai.apac.novell.com> <553642D9.8040500@redhat.com> <20150422095747.GA31573@linux-dsax.tai.apac.novell.com> In-Reply-To: <20150422095747.GA31573@linux-dsax.tai.apac.novell.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Andrei Borzenkov , grub-devel@gnu.org, edk2-devel@lists.sourceforge.net, mmazur@kernel.pl 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: Wed, 22 Apr 2015 10:50:30 -0000 On 04/22/15 11:57, Michael Chang wrote: > On Tue, Apr 21, 2015 at 02:30:17PM +0200, Laszlo Ersek wrote: >> On 04/21/15 08:49, Michael Chang wrote: >>> On Tue, Apr 21, 2015 at 02:12:54PM +0800, Michael Chang wrote: >> >>>> 3. Even I can add the card open earler before hadling the dhcpv6 >>>> packets, it will freeze at grub_efi_open_protocol if the option in use >>>> is GRUB_EFI_OPEN_PROTOCOL_BY_EXCLUSIVE. I was actually using >>>> GRUB_EFI_OPEN_PROTOCOL_GET_PROTOCOL in the entire test and am running >>>> out of idea how to deal with that diversity. >> >>> For #3, I'm not trying to get the log from OVMF .. >> >> I guess that's "now trying", not "not trying". >> >> Pass >> >> -debugcon file:debug.log -global isa-debugcon.iobase=0x402 >> >> to QEMU, for saving the debug log. >> >> Also, the debug log mask is set in PcdDebugPrintErrorLevel in the DSC >> files. For the meaning of the individual bits, see >> "MdePkg/Include/Library/DebugLib.h". > > Hi Laszlo, > > Please check attachment. Oh... I didn't mean I could help with this problem, using the log file. I'm not that familiar with grub in the first place, and I don't really have the time for this right now. I just mentioned the options because I wasn't sure what was blocking your attempt to get the debug log from OVMF. I assumed that if you had the log, you'd know what to look for. > debug-exclusive.log: open SNP with exclusive, IPv6 PXE booting fails in > grub2 and falls into grub rescue mode immediately. (no freeze). > > debug-no-exclusive.log: open without exclusive, IPv6 PXE booting succeed > into normal mode and can see the boot menu. > > I didn't see freeze this time, maybe because I rebuilt OVMF from different > version. > > The debug mask bits was set to > gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8040404F > > (added version + net to default mask). > > But interestingly, I didn't see much difference in the logs, probably > debug output not really enabled ? The debug mask can only enable debug messages that already exist in the code. If there's some kind of crash and you'd like to track the way there closely, you'll probably have to add a bunch of DEBUGs yourself, to the network drivers in edk2. Thanks Laszlo