[PATCH v2 0/1] coreboot CFR firmware attributes
From: Sean Rhodes
Date: Thu Jul 09 2026 - 08:50:30 EST
Hi,
This adds a firmware-attributes driver for coreboot CFR tables.
Changes since v1:
- Add explicit includes for the helper APIs used by the driver.
- Use __free(kfree) and no_free_ptr() for EFI name allocation.
- Use isascii() for EFI variable name validation.
- Convert the EFI write path mutex to scoped_guard().
- Rename the label/current-value parser to avoid default-value ambiguity.
- Use devm_kzalloc() and devm_mutex_init() for the driver state.
- Clarify that -EOPNOTSUPP after a successful EFI write is the
reboot-required path.
Tested on Star Labs Lite GLKR, firmware 26.07, Linux 6.17.0-35-generic:
loaded coreboot_table and coreboot-cfr as test modules, verified
firmware-attributes sysfs exposure, fwupd BIOS settings enumeration, and
the reboot-required write path with debug_level.
Thanks,
Sean
Sean Rhodes (1):
platform/x86: Add coreboot CFR firmware attributes
MAINTAINERS | 6 +
drivers/firmware/google/coreboot_table.h | 45 --
drivers/platform/x86/Kconfig | 13 +
drivers/platform/x86/Makefile | 1 +
drivers/platform/x86/coreboot-cfr.c | 986 +++++++++++++++++++++++
include/linux/coreboot.h | 147 ++++
6 files changed, 1153 insertions(+), 45 deletions(-)
create mode 100644 drivers/platform/x86/coreboot-cfr.c