Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support updates via UEFI capsules #509

Open
wants to merge 20 commits into
base: dasharo
Choose a base branch
from
Open

Conversation

src/drivers/efi/capsules.c Outdated Show resolved Hide resolved
src/drivers/efi/capsules.c Outdated Show resolved Hide resolved
src/drivers/efi/capsules.c Outdated Show resolved Hide resolved
src/drivers/efi/capsules.c Outdated Show resolved Hide resolved
src/drivers/efi/capsules.c Outdated Show resolved Hide resolved
src/drivers/efi/capsules.c Outdated Show resolved Hide resolved
src/drivers/efi/capsules.c Outdated Show resolved Hide resolved
src/drivers/efi/Kconfig Outdated Show resolved Hide resolved
src/drivers/efi/capsules.c Outdated Show resolved Hide resolved
src/drivers/efi/capsules.c Show resolved Hide resolved
Base automatically changed from pae_map to dasharo June 13, 2024 16:02
@SergiiDmytruk SergiiDmytruk force-pushed the uefi-capsules branch 3 times, most recently from c588ab4 to 7668529 Compare June 14, 2024 14:06
configs/config.msi_ms7d25_ddr4 Outdated Show resolved Hide resolved
src/drivers/efi/Kconfig Outdated Show resolved Hide resolved
@SergiiDmytruk SergiiDmytruk changed the base branch from dasharo to esrt June 24, 2024 17:25
krystian-hebel
krystian-hebel previously approved these changes Jun 26, 2024
@SergiiDmytruk
Copy link
Member Author

Fixed GUID of CapsuleUpdate* variables and an issue with coalesced capsule overwriting cbmem.

SergiiDmytruk and others added 16 commits October 8, 2024 01:24
Change-Id: I30058c4b4d43ef622bddfe69892d02ffffc039db
Signed-off-by: Sergii Dmytruk <[email protected]>
Change-Id: Ic7dbdc044ea7cd799eb29800a8245e67c67b90d1
Signed-off-by: Krystian Hebel <[email protected]>
Signed-off-by: Sergii Dmytruk <[email protected]>
With DRIVERS_EFI_UPDATE_CAPSULES enabled, SMMSTORE SMI handler can use
commands with highest bit (0x80) set to access whole flash instead of
just the SMMSTORE region. The rest of interface is identical to regular
SMMSTORE v2.

Change-Id: I7f3dbfa965b9dcbade8b2f06a5bd2ac1345c7972
Signed-off-by: Krystian Hebel <[email protected]>
This adds a call to SMMSTORE that saves information about availability
of capsules in SMM memory. This new call is ignored when run more than
once, which means that there should be no way of enabling full flash
handling after it was disabled and vice versa.

The call should be always made by the firmware to lock further calls,
otherwise OS could gain full flash access. This is done on entry to
BS_POST_DEVICE, after capsules are obtained in BS_DEV_INIT.

Change-Id: I3dc175ea313aae1edae304520595b82db7206cbb
Signed-off-by: Krystian Hebel <[email protected]>
This commit adds a description of capsule update commands implemented
in SMMSTORE in previous patches.

Change-Id: I94761d18be567e5302d1a836f09f0a7eecb4fb00
Signed-off-by: Krystian Hebel <[email protected]>
This requires version of EDK2 in use to understand those defines, but
the build isn't affected negatively if they aren't handled.  Upstream
EDK2 understands only CAPSULE_SUPPORT at the moment.

Change-Id: I1c684cb8929842a5d3c4b06e8a9c0a748470ea41
Signed-off-by: Sergii Dmytruk <[email protected]>
Change-Id: Ia72cff286f2dd4399d7874c1defe114ef8d95f33
Signed-off-by: Sergii Dmytruk <[email protected]>
Add CONFIG_EXT_BIOS_FILL_UP to make BIOS region include everything
preceding it in the flash.

Change-Id: I885252a488bd35fc3afef571e6178642a059f883
Signed-off-by: Sergii Dmytruk <[email protected]>
UEFI board variants use UEFI variables directly instead of using them
through options API.  More importantly, be consistent with Z690-A.

Change-Id: I283b2198dbbb81baebf84d2eff33c0cd238b118d
Signed-off-by: Sergii Dmytruk <[email protected]>
Allows specifying how many performance/efficiency cores should run and
whether hyper-threading is enabled.

Change-Id: I540305af30be59652429f44d58f094aed549e9d1
Signed-off-by: Sergii Dmytruk <[email protected]>
Change-Id: I0e309d79cf4d58e8f5d7468c74eb2281ea4f9857
Signed-off-by: Sergii Dmytruk <[email protected]>
ms7d25 and ms7e06 contain the same microcode.

Signed-off-by: Sergii Dmytruk <[email protected]>
This version is necessary to enable testing capsule updates first
introduced for these boards.

Change-Id: I9d709c08cf771b5ddecdda936d7507c7f81016a5
Signed-off-by: Sergii Dmytruk <[email protected]>
This is real release candidate for these releases.

Change-Id: I6b48ca82f6fc756b6032ef0695309db06328251f
Signed-off-by: Sergii Dmytruk <[email protected]>
Change-Id: I02687d504f50007463c3813c8a5c9d5604f4ba2b
Signed-off-by: Sergii Dmytruk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants