From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: Ard Biesheuvel <ardb@kernel.org>,
Shawn Guo <shawn.guo@linaro.org>,
Atish Patra <atish.patra@wdc.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Steve McIntyre <steve@einval.com>
Cc: Rob Clark <robdclark@gmail.com>,
linux-efi <linux-efi@vger.kernel.org>,
Jeffrey Hugo <jhugo@codeaurora.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Leif Lindholm <leif@nuviainc.com>,
linux-arm-msm <linux-arm-msm@vger.kernel.org>
Subject: Re: [PATCH] efi: stub: override RT_PROP table supported mask based on EFI variable
Date: Tue, 16 Mar 2021 08:42:38 +0100 [thread overview]
Message-ID: <81899e5a-ab6d-69a2-c172-535300b3ce02@gmx.de> (raw)
In-Reply-To: <CAMj1kXE1mZm2jYwv80FNVh0m6wHEWqq14+jQWnJSUThnX4Eedw@mail.gmail.com>
On 3/15/21 2:07 PM, Ard Biesheuvel wrote:
> On Mon, 15 Mar 2021 at 04:11, Shawn Guo <shawn.guo@linaro.org> wrote:
>>
>> On Tue, Mar 09, 2021 at 07:47:25PM +0100, Ard Biesheuvel wrote:
>>> On Tue, 9 Mar 2021 at 19:10, Rob Clark <robdclark@gmail.com> wrote:
>>>>
> ...
>>>> fwiw, the valid use-case for ACPI boot on these things is for distro
>>>> installer.. it might not be the shiny accelerated experience, but you
>>>> want to be able to get thru the installer and then install updates to
>>>> get latest kernel/dtb/etc
>>>>
>>>> it is a small use-case, but kinda an important step ;-)
>>>>
>>>
>>> That is a fair point. However, as I understand it, we need this to work around
>>> - the need to pass efi=novamap
>>> - broken poweroff on Flex5g
>>
>> One more: broken EFI variable runtime services on all Snapdragon laptops
>>
>> It's been another pain of running debian-installer (d-i) on these
>> laptops, where EFI NV variables are just stored on UFS disk. So after
>> Linux takes over the control of UFS, EFI NV variable runtime services
>> then become out of service. Currently, we have to apply a hack [1] on
>> d-i grub-installer to get around the issue, and it's been the only
>> remaining out-of-tree patch we have to carry for d-i. With this nice
>> `OverrideSupported` support, we will be able to drop that hack
>> completely.
>>
>>>
>>> So an installer either needs to set the EFI variable, or pass
>>> efi=novamap on the first boot. Note that there are no arm64 EFI
>>> systems known where efi=novamap causes problems. In fact, I would
>>> prefer to stop using SetVirtualAddressMap() altogether, as it does not
>>> provide any benefit whatsoever. So perhaps we should make efi=novamap
>>> the default and be done with it.
>>>
>>> Broken poweroff is hardly a showstopper for an installer, given that
>>> we cannot even install GRUB correctly.
>>>
>>> In summary, I am more than happy to collaborate constructively on this
>>> (which is why I wrote the patch), but I don't think we're at a point
>>> yet where this is the only thing standing in our way when it comes to
>>> a smooth out-of-the-box Linux installation experience.
>>
>> There might be more to be done for getting a smooth Linux installation
>> experience. But IMHO, this `OverrideSupported` thing is definitely
>> a big step to that.
>>
>
> So the problem here seems to be that grub-install (or efibootmgr)
> tolerates efivarfs being absent entirely, but bails out if it exists
> but gives an error when trying to access it, right?
>
> This is not only a problem on Snapdragon systems afaik - most Uboot
> based arm64 systems booting via EFI are affected by this as well.
>
> So it would be good if we could align with those folks, and maybe the
> ones working on RISC-V as well, to see if we can get some consensus
> around taking this approach.
>
> For the folks newly cc'ed on this thread: full version here
> https://lore.kernel.org/linux-arm-msm/20210306113519.294287-1-ardb@kernel.org/
>
> Note that I am both the author of the patch, and the maintainer
> pushing back on it. Please chime in if you think there are reasons why
> we want this, something like this or nothing like this.
>
Hello Ard,
looking at this thread it is hard to understand why this patch should be
needed.
If an UEFI application does not want to consume a service, it can do so
without having to manipulate the RT properties table.
Which UEFI applications are broken? Why can't they be fixed instead of
patching the kernel?
Can we have complete descriptions of the deficiencies of the involved
applications. I saw GRUB and the Debian installer mentioned in the
thread. Are there others?
Best regards
Heinrich
next prev parent reply other threads:[~2021-03-16 7:43 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-06 11:35 [PATCH] efi: stub: override RT_PROP table supported mask based on EFI variable Ard Biesheuvel
2021-03-07 11:02 ` Shawn Guo
2021-03-08 13:34 ` Ard Biesheuvel
2021-03-09 3:22 ` Shawn Guo
2021-03-09 8:51 ` Ard Biesheuvel
2021-03-09 18:13 ` Rob Clark
2021-03-09 18:47 ` Ard Biesheuvel
2021-03-09 21:19 ` Rob Clark
2021-03-15 3:11 ` Shawn Guo
2021-03-15 13:07 ` Ard Biesheuvel
2021-03-16 7:42 ` Heinrich Schuchardt [this message]
2021-03-16 7:52 ` Ard Biesheuvel
2021-03-16 8:04 ` Ilias Apalodimas
2021-03-16 8:14 ` Ard Biesheuvel
2021-03-16 8:27 ` Ilias Apalodimas
2021-03-16 7:52 ` Shawn Guo
2021-03-16 7:57 ` Ard Biesheuvel
2021-03-16 9:06 ` Shawn Guo
2021-03-16 9:33 ` Ard Biesheuvel
2021-03-17 6:36 ` Shawn Guo
2021-03-17 6:58 ` Ard Biesheuvel
2021-03-16 9:33 ` Ilias Apalodimas
2021-03-16 13:25 ` Heinrich Schuchardt
2021-03-16 14:06 ` Ard Biesheuvel
2021-03-16 14:45 ` Heinrich Schuchardt
2021-03-16 14:55 ` Ard Biesheuvel
2021-03-16 16:06 ` Heinrich Schuchardt
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=81899e5a-ab6d-69a2-c172-535300b3ce02@gmx.de \
--to=xypron.glpk@gmx.de \
--cc=ardb@kernel.org \
--cc=atish.patra@wdc.com \
--cc=bjorn.andersson@linaro.org \
--cc=ilias.apalodimas@linaro.org \
--cc=jhugo@codeaurora.org \
--cc=leif@nuviainc.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=robdclark@gmail.com \
--cc=shawn.guo@linaro.org \
--cc=steve@einval.com \
/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