From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: edk2-devel@lists.01.org
Cc: leif.lindholm@linaro.org, michael.d.kinney@intel.com,
jiewen.yao@intel.com, star.zeng@intel.com,
Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH 0/5] MdeModulePkg ArmPkg: support for persistent capsules and progress reporting
Date: Thu, 7 Jun 2018 13:08:07 +0200 [thread overview]
Message-ID: <20180607110812.26778-1-ard.biesheuvel@linaro.org> (raw)
This is the delta of code required to implement PersistAcrossReset on ARM
systems, and to wire up the capsule handling routines in a way that makes
the new progress reporting code do something meaningful on such platforms.
Patch #1 ensures that the capsule data which is preserved in DRAM across
a reboot is written back to main memory before attempting to access it
with the caches off.
Patch #2 modifies the logic in DxeCapsuleLibFmp so it can deal with a
platform that chooses to call ProcessCapsules() only a single time after
EndOfDxe.
Patch #3 updates DxeCapsuleLibFmp so it does not pass down the progress
indication callback if its own attempt to invoke it has already failed.
Patch #4 updates ArmPkg's generic PlatformBootManagerLib implementation
to only call ProcessCapsules() after the [potentially non-trusted]
console is up and running, to ensure that firmware update progress can
be reported to the user.
Patch #5 modifies ArmSmcPsciResetSystemLib to emulate a proper warm reboot
by reentering PEI with interrupts, MMU and caches enabled. This works
around the lack of an architected warm reboot in most current implementations.
(The PSCI spec does cover warm reboot, but it was added recently and most
secure firmware implementations haven't caught up yet)
Note that these patches apply on top of Mike's pending changes to
DxeCapsuleLibFmp implementing progress reporting.
Ard Biesheuvel (5):
MdeModulePkg/CapsulePei: clean Dcache before consuming capsule data
MdeModulePkg/DxeCapsuleLibFmp: permit ProcessCapsules () to be called
once
MdeModulePkg/DxeCapsuleLibFmp: pass progress callback only if it works
ArmPkg/PlatformBootManagerLib: call ProcessCapsules() only once
ArmPkg/ArmSmcPsciResetSystemLib: implement fallback for warm reboot
ArmPkg/ArmPkg.dec | 4 ++++
.../ArmSmcPsciResetSystemLib.c | 21 +++++++++++++++++--
.../ArmSmcPsciResetSystemLib.inf | 9 ++++++++
.../PlatformBootManagerLib/PlatformBm.c | 15 -------------
.../Library/DxeCapsuleLibFmp/DxeCapsuleLib.c | 13 +++++++++---
.../DxeCapsuleLibFmp/DxeCapsuleProcessLib.c | 20 +++++++++++-------
.../Universal/CapsulePei/CapsulePei.inf | 1 +
.../CapsulePei/Common/CapsuleCoalesce.c | 10 +++++++++
8 files changed, 65 insertions(+), 28 deletions(-)
--
2.17.0
next reply other threads:[~2018-06-07 11:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-07 11:08 Ard Biesheuvel [this message]
2018-06-07 11:08 ` [PATCH 1/5] MdeModulePkg/CapsulePei: clean Dcache before consuming capsule data Ard Biesheuvel
2018-06-08 2:53 ` Zeng, Star
2018-06-08 6:06 ` Ard Biesheuvel
2018-06-08 6:21 ` Zeng, Star
2018-06-08 6:24 ` Ard Biesheuvel
2018-06-07 11:08 ` [PATCH 2/5] MdeModulePkg/DxeCapsuleLibFmp: permit ProcessCapsules () to be called once Ard Biesheuvel
2018-06-08 2:57 ` Zeng, Star
2018-06-08 6:29 ` Ard Biesheuvel
2018-06-07 11:08 ` [PATCH 3/5] MdeModulePkg/DxeCapsuleLibFmp: pass progress callback only if it works Ard Biesheuvel
2018-06-07 11:08 ` [PATCH 4/5] ArmPkg/PlatformBootManagerLib: call ProcessCapsules() only once Ard Biesheuvel
2018-06-07 15:04 ` Leif Lindholm
2018-06-07 11:08 ` [PATCH 5/5] ArmPkg/ArmSmcPsciResetSystemLib: implement fallback for warm reboot Ard Biesheuvel
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-list 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=20180607110812.26778-1-ard.biesheuvel@linaro.org \
--to=devel@edk2.groups.io \
/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