linux-efi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Scott Talbert <swt@techie.net>
Cc: linux-efi <linux-efi@vger.kernel.org>
Subject: Re: Boot regression in 4.8 for Mac Pro server
Date: Thu, 12 Sep 2019 00:17:30 +0100	[thread overview]
Message-ID: <CAKv+Gu_9oeMWA0_dcBkg1s2XaR4H_axGgjQ9pWELACD9uQ-0hg@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.21.1909111635530.3954@bear.techie.net>

On Wed, 11 Sep 2019 at 21:48, Scott Talbert <swt@techie.net> wrote:
>
> Hi,
>
> I just recently discovered a boot regression that occurred starting in 4.8
> on a Mac Pro Mid-2012 server (MacPro5,1).  Yes, I realize this problem is
> over 3 years old.  Obviously, I haven't been using Linux on this hardware
> in a while.  :-)  I bisected the regression to
> 475fb4e8b2f4444d1d7b406ff3a7d21bc89a1e6f "efi / ACPI: load SSTDs from EFI
> variables".  And indeed, v5.3-rc7 will boot if I comment out the
> efivar_ssdt_load() call, as in:
>
> $ git diff
> diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
> index ad3b1f4866b3..691a8671a2ba 100644
> --- a/drivers/firmware/efi/efi.c
> +++ b/drivers/firmware/efi/efi.c
> @@ -364,8 +364,8 @@ static int __init efisubsys_init(void)
>          if (error)
>                  goto err_put;
>
> -       if (efi_enabled(EFI_RUNTIME_SERVICES))
> -               efivar_ssdt_load();
> +       //if (efi_enabled(EFI_RUNTIME_SERVICES))
> +       //      efivar_ssdt_load();
>
>          error = sysfs_create_group(efi_kobj, &efi_subsys_attr_group);
>          if (error) {
>
>
> Any thoughts on how to fix this?
>

Thanks for the report. It appears the SSDT loading code is slightly
broken, in the sense that it always iterates over all EFI variables
regardless of whether an SSDT override was actually requested on the
command line, which is silly.

I'll have a patch out shortly, and I'll put you on cc. Please test it
and report back.

      reply	other threads:[~2019-09-11 23:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-11 20:42 Boot regression in 4.8 for Mac Pro server Scott Talbert
2019-09-11 23:17 ` Ard Biesheuvel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKv+Gu_9oeMWA0_dcBkg1s2XaR4H_axGgjQ9pWELACD9uQ-0hg@mail.gmail.com \
    --to=ard.biesheuvel@linaro.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=swt@techie.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).