From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: masami.hiramatsu@linaro.org, takahiro.akashi@linaro.org,
pbrobinson@redhat.com, richard@hughsie.com,
Alexander Graf <agraf@csgraf.de>,
u-boot@lists.denx.de
Subject: Re: [PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications
Date: Tue, 29 Jun 2021 10:56:57 +0300 [thread overview]
Message-ID: <YNrSSTiMRqKGHTaj@enceladus> (raw)
In-Reply-To: <bd5cf1e5-5334-d6e6-9693-d60b813a27f6@gmx.de>
> > + if (IS_ENABLED(CONFIG_EFI_IGNORE_OSINDICATIONS))
[...]
> > + return true;
> > +
> > + size = sizeof(os_indications);
> > + ret = efi_get_variable_int(L"OsIndications", &efi_global_variable_guid,
> > + NULL, &size, &os_indications, NULL);
> > + if (ret == EFI_SUCCESS &&
> > + (os_indications
> > + & EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED))
>
> The bit EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED must be
> cleared in OsIndications after successfully applying the capsule. See
> related patch
Yea I noticed that as well while I was coding this and meant to sent a patch
afterwards. You've already done that,so let me go have a look!
>
> [PATCH 1/1] efi_loader: fix set_capsule_result()
> https://lists.denx.de/pipermail/u-boot/2021-June/453111.html
>
> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>
> > + return true;
> > +
> > + return false;
> > +}
> > +
> > /**
> > * efi_launch_capsule - launch capsules
> > *
> > @@ -958,20 +985,13 @@ efi_status_t __weak efi_load_capsule_drivers(void)
> > */
> > efi_status_t efi_launch_capsules(void)
> > {
> > - u64 os_indications;
> > - efi_uintn_t size;
> > struct efi_capsule_header *capsule = NULL;
> > u16 **files;
> > unsigned int nfiles, index, i;
> > u16 variable_name16[12];
> > efi_status_t ret;
> >
> > - size = sizeof(os_indications);
> > - ret = efi_get_variable_int(L"OsIndications", &efi_global_variable_guid,
> > - NULL, &size, &os_indications, NULL);
> > - if (ret != EFI_SUCCESS ||
> > - !(os_indications
> > - & EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED))
> > + if (!check_run_capsules())
> > return EFI_SUCCESS;
> >
> > index = get_last_capsule();
> >
>
next prev parent reply other threads:[~2021-06-29 7:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-29 4:55 [PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications Ilias Apalodimas
2021-06-29 7:43 ` Heinrich Schuchardt
2021-06-29 7:56 ` Ilias Apalodimas [this message]
2021-06-29 12:41 ` AKASHI Takahiro
2021-06-29 12:45 ` Ilias Apalodimas
2021-06-29 13:04 ` AKASHI Takahiro
2021-06-29 13:40 ` Ilias Apalodimas
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=YNrSSTiMRqKGHTaj@enceladus \
--to=ilias.apalodimas@linaro.org \
--cc=agraf@csgraf.de \
--cc=masami.hiramatsu@linaro.org \
--cc=pbrobinson@redhat.com \
--cc=richard@hughsie.com \
--cc=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/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