Received: from list by lists.gnu.org with archive (Exim 4.71) id 1f1Try-0005NB-4H for mharc-grub-devel@gnu.org; Thu, 29 Mar 2018 05:29:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1Tru-0005JI-Qc for grub-devel@gnu.org; Thu, 29 Mar 2018 05:29:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1Trr-0005a0-K9 for grub-devel@gnu.org; Thu, 29 Mar 2018 05:29:14 -0400 Received: from prv3-mh.provo.novell.com ([137.65.250.26]:37797) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f1Trr-0005ZG-Bc for grub-devel@gnu.org; Thu, 29 Mar 2018 05:29:11 -0400 Received: from mazu (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by prv3-mh.provo.novell.com with ESMTP (TLS encrypted); Thu, 29 Mar 2018 03:29:04 -0600 Date: Thu, 29 Mar 2018 17:29:01 +0800 From: Michael Chang To: The development of GNU GRUB Cc: mike.travis@hpe.com, Tony Ernst , Daniel Kiper Subject: Re: [PATCH 1/1] Fix PCIe LER when GRUB2 accesses non-enabled MMIO data from VGA Message-ID: <20180329092901.4epfxvesctcwnizp@mazu> Mail-Followup-To: The development of GNU GRUB , mike.travis@hpe.com, Tony Ernst , Daniel Kiper References: <20180328164217.055369533@stormcage.americas.sgi.com> <20180328164217.181868854@stormcage.americas.sgi.com> <20180329090251.GA8512@router-fw-old.local.net-space.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180329090251.GA8512@router-fw-old.local.net-space.pl> User-Agent: NeoMutt/20170421 (1.8.2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 137.65.250.26 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2018 09:29:16 -0000 On Thu, Mar 29, 2018 at 11:02:51AM +0200, Daniel Kiper wrote: > On Wed, Mar 28, 2018 at 11:42:18AM -0500, mike.travis@hpe.com wrote: > > A GPU inserted into a PCIe I/O slot disappears during system startup. > > The problem centers around GRUB and a specific VGA init function in > > efi_uga.c. This causes an LER (link error recorvery) because the MMIO > > memory has not been enabled before attempting access. > > > > The fix is to add the same coding used in other VGA drivers, specifically > > to add a check to insure that it is indeed a VGA controller. And then > > enable the MMIO address space with the specific bits. > > > > Signed-off-by: Mike Travis > > Reviewed-by: Michael Chang > > Reviewed-by: Daniel Kiper > > Well, please do not add somebody RB tag if he/she did not explicitly > asked you to do that. And even in that case I was not able to look at > this patch in advance. So, my RB should not be here. Additionally, in > this situation I would like to ask if Michael approved his RB? We did have discussion about the patch before it was submitted upstream but I did not ask for RB as well. > > Anyway, patch LGTM except one nitpick. I will apply the patch, in a week or > so, with Michael's RB if I get confirmation that he approved it earlier. As I did not ask for it, it has to be removed. Thanks for notifying this. Michael > > > --- > > v1:change class to subclass, remove parens around "enable mem" code > > --- > > grub-2.02/grub-core/video/efi_uga.c | 15 ++++++++++++--- > > 1 file changed, 12 insertions(+), 3 deletions(-) > > > > Index: grub-2.02/grub-core/video/efi_uga.c > > =================================================================== > > --- grub-2.02.orig/grub-core/video/efi_uga.c > > +++ grub-2.02/grub-core/video/efi_uga.c > > @@ -95,9 +95,18 @@ find_card (grub_pci_device_t dev, grub_p > > { > > struct find_framebuf_ctx *ctx = data; > > grub_pci_address_t addr; > > + grub_pci_address_t rcaddr; > > This line should be together with the addr. I will fix it before > committing the patch. > > Thank you for doing the work. > > Daniel > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel