mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] firmware: Add boot information to sysfs
@ 2022-02-01  5:04 Joel Stanley
  2022-02-01  5:05 ` [PATCH 1/2] firmware: Add boot information sysfs Joel Stanley
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joel Stanley @ 2022-02-01  5:04 UTC (permalink / raw)
  To: Arnd Bergmann, Andrew Jeffery, Greg Kroah-Hartman, Rafael J . Wysocki
  Cc: linux-kernel, linux-arm-kernel, linux-aspeed

This is the second iteration of this idea. The first used socinfo
custom attribute groups, but Arnd suggested we make this something
standardised under /sys/firmware instead:

 http://lore.kernel.org/all/CAK8P3a3MRf0aGt1drkgsuZyBbeoy+S7Ha18SBM01q+3f33oL+Q@mail.gmail.com

Some ARM systems have a firmware that provides a hardware root of
trust. It's useful for the system to know how this root of trust has
been configured, so provide a standardised interface that expose this
information to userspace.

This is implemented as a sysfs attribute group registration to be called
at boot, with the properties described in the ABI document.

Alternatively we could put the properties in the driver core, and have
platforms register callbacks for each supported property. This would
make it harder to insert non-standard properties, with the trade off of
more code to selectively show supported properties.

An user of the properties is provided in the second patch.

Joel Stanley (2):
  firmware: Add boot information sysfs
  ARM: aspeed: Add secure boot controller support

 .../ABI/testing/sysfs-firmware-bootinfo       | 43 ++++++++++
 drivers/base/firmware.c                       | 14 ++++
 drivers/soc/aspeed/aspeed-socinfo.c           | 84 ++++++++++++++++++-
 include/linux/firmware_bootinfo.h             |  8 ++
 4 files changed, 148 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/ABI/testing/sysfs-firmware-bootinfo
 create mode 100644 include/linux/firmware_bootinfo.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-03 11:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01  5:04 [PATCH 0/2] firmware: Add boot information to sysfs Joel Stanley
2022-02-01  5:05 ` [PATCH 1/2] firmware: Add boot information sysfs Joel Stanley
2022-02-01  5:05 ` [PATCH 2/2] ARM: aspeed: Add secure boot controller support Joel Stanley
2022-02-01  8:41   ` Greg Kroah-Hartman
2022-02-03 11:39     ` Joel Stanley
2022-02-01  8:42 ` [PATCH 0/2] firmware: Add boot information to sysfs Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®