coreboot/Documentation/drivers
Krystian Hebel 0cc0e6996c drivers/smmstore: allow full flash access for capsule updates
With DRIVERS_EFI_UPDATE_CAPSULES enabled and when at least one capsule
was found, SMMSTORE SMI handler can use commands with the highest
bit (0x80) set to access the whole flash instead of just the SMMSTORE
region. The rest of the interface is identical to regular SMMSTORE v2
except for a new call to control full flash access.

The added call saves information about the availability of capsules in
SMM memory. The call is ignored when run more than once, meaning there
should be no way of enabling full flash handling after it was disabled
and vice versa. The call should always be made by the firmware to lock
further calls, so that an OS could not gain full flash access. This is
done on entry to BS_POST_DEVICE after capsules are obtained in
BS_DEV_INIT.

Change-Id: I7f3dbfa965b9dcbade8b2f06a5bd2ac1345c7972
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83424
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-04-23 14:13:14 +00:00
..
cbfs_smbios.md Documentation/drivers/cbfs_smbios.md: Describe CBFS serial number 2022-10-17 13:58:23 +00:00
cfr.md Fix up CFR's open issues 2024-12-30 21:27:36 +00:00
cfr_internal.md CFR: add dependencies based on specific option values 2025-02-07 21:59:24 +00:00
dptf.md Documentation/drivers: ensure pages have only one top-level heading 2022-09-23 14:07:43 +00:00
dt_entries.md Documentation: Add wake source info to device tree documentation 2022-12-13 18:50:54 +00:00
index.md drivers/option: Add forms in cbtables 2024-12-18 18:16:51 +00:00
ipmi_kcs.md drivers/ipmi: prepare for adding more interfaces 2022-10-02 22:01:50 +00:00
retimer.md Documentation/drivers: ensure pages have only one top-level heading 2022-09-23 14:07:43 +00:00
smmstore.md Documentation/drivers/smmstore: Fix dead link 2025-01-10 08:41:19 +00:00
smmstorev2.md drivers/smmstore: allow full flash access for capsule updates 2025-04-23 14:13:14 +00:00
soundwire.md device/mipi: Move to drivers/mipi 2021-08-26 15:18:45 +00:00