Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1641700
| From | Sabrina Dubroca <sd@queasysnail.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 08/10] efi/x86: Move EFI BGRT init code to early init code |
| Date | 2017-05-15 15:50 +0200 |
| Message-ID | <tHoxP-pi-11@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <t5GFt-1cI-53@gated-at.bofh.it> <tGOum-1Wb-3@gated-at.bofh.it> <tHjHR-5H0-29@gated-at.bofh.it> <tHmcH-7ob-27@gated-at.bofh.it> <tHo4O-fL-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2017-05-15, 21:18:35 +0800, Dave Young wrote:
> On 05/15/17 at 01:10pm, Sabrina Dubroca wrote:
> > 2017-05-15, 16:37:40 +0800, Dave Young wrote:
> > > diff --git a/arch/x86/platform/efi/efi-bgrt.c b/arch/x86/platform/efi/efi-bgrt.c
> > > index 04ca876..b986e26 100644
> > > --- a/arch/x86/platform/efi/efi-bgrt.c
> > > +++ b/arch/x86/platform/efi/efi-bgrt.c
> > > @@ -36,6 +36,9 @@ void __init efi_bgrt_init(struct acpi_table_header *table)
> > > if (acpi_disabled)
> > > return;
> > >
> > > + if (!efi_enabled(EFI_CONFIG_TABLES))
>
> A better version should be checking EFI_BOOT, could you retest with
> below instead? If it works I can send a patch with your Tested-by:
> if (!efi_enabled(EFI_BOOT))
Yes, that works. Thanks for the fix :)
> > > + return;
> > > +
> > > if (table->length < sizeof(bgrt_tab)) {
> > > pr_notice("Ignoring BGRT: invalid length %u (expected %zu)\n",
> > > table->length, sizeof(bgrt_tab));
> > >
> >
> > --
> > Sabrina
>
> Thanks
> Dave
--
Sabrina
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 08/10] efi/x86: Move EFI BGRT init code to early init code Sabrina Dubroca <sd@queasysnail.net> - 2017-05-14 01:20 +0200
Re: [PATCH 08/10] efi/x86: Move EFI BGRT init code to early init code Dave Young <dyoung@redhat.com> - 2017-05-15 10:40 +0200
Re: [PATCH 08/10] efi/x86: Move EFI BGRT init code to early init code Sabrina Dubroca <sd@queasysnail.net> - 2017-05-15 13:20 +0200
Re: [PATCH 08/10] efi/x86: Move EFI BGRT init code to early init code Dave Young <dyoung@redhat.com> - 2017-05-15 15:20 +0200
Re: [PATCH 08/10] efi/x86: Move EFI BGRT init code to early init code Sabrina Dubroca <sd@queasysnail.net> - 2017-05-15 15:50 +0200
csiph-web