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

Fw update smi2 #511

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Fw update smi2 #511

merged 3 commits into from
Jul 4, 2024

Conversation

krystian-hebel
Copy link
Contributor

@krystian-hebel krystian-hebel commented May 24, 2024

Depends on Dasharo/edk2#133

src/drivers/smmstore/store.c Show resolved Hide resolved
src/drivers/smmstore/smi.c Outdated Show resolved Hide resolved
src/drivers/smmstore/store.c Outdated Show resolved Hide resolved
src/drivers/efi/capsules.c Outdated Show resolved Hide resolved
src/include/smmstore.h Outdated Show resolved Hide resolved
src/drivers/smmstore/store.c Outdated Show resolved Hide resolved
src/include/smmstore.h Outdated Show resolved Hide resolved
Documentation/drivers/smmstorev2.md Outdated Show resolved Hide resolved
src/drivers/smmstore/store.c Outdated Show resolved Hide resolved
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 <krystian.hebel@3mdeb.com>
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 <krystian.hebel@3mdeb.com>
This commit adds a description of capsule update commands implemented
in SMMSTORE in previous patches.

Change-Id: I94761d18be567e5302d1a836f09f0a7eecb4fb00
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
@SergiiDmytruk SergiiDmytruk merged commit 36de968 into uefi-capsules Jul 4, 2024
1 check passed
@SergiiDmytruk SergiiDmytruk deleted the fw_update_smi2 branch July 4, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants