All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Driver for Open Profile for DICE
@ 2021-12-07 12:36 David Brazdil
  2021-12-07 12:36 ` [PATCH 1/2] dt-bindings: firmware: Add " David Brazdil
  2021-12-07 12:36 ` [PATCH 2/2] misc: dice: Add driver to forward secrets to userspace David Brazdil
  0 siblings, 2 replies; 7+ messages in thread
From: David Brazdil @ 2021-12-07 12:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Rob Herring, Jonathan Corbet, Derek Kiernan, Dragan Cvetic,
	Arnd Bergmann, David Brazdil, Hans de Goede, devicetree,
	linux-kernel, linux-doc, Andrew Scull, Will Deacon

Open Profile for DICE is a secret derivation protocol used by some
Android devices. The firmware/bootloader generates the secrets and hands
them over to Linux in a reserved memory region.

This patchset adds the corresponding DeviceTree bindings and a driver
that takes ownership of the memory region and exposes it to userspace
via a character device. It is currently under drivers/misc but perhaps
a better location would be drivers/firmware. Let me know what you think.

The patches are based on top of v5.16-rc4 and can also be found here:
  https://android-kvm.googlesource.com/linux topic/dice_v1

David Brazdil (2):
  dt-bindings: firmware: Add Open Profile for DICE
  misc: dice: Add driver to forward secrets to userspace

 .../devicetree/bindings/firmware/dice.yaml    |  51 ++++
 .../userspace-api/ioctl/ioctl-number.rst      |   1 +
 drivers/misc/Kconfig                          |   8 +
 drivers/misc/Makefile                         |   1 +
 drivers/misc/dice.c                           | 254 ++++++++++++++++++
 include/uapi/linux/dice.h                     |  14 +
 6 files changed, 329 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/firmware/dice.yaml
 create mode 100644 drivers/misc/dice.c
 create mode 100644 include/uapi/linux/dice.h

-- 
2.34.1.400.ga245620fadb-goog


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

end of thread, other threads:[~2021-12-07 18:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 12:36 [PATCH 0/2] Driver for Open Profile for DICE David Brazdil
2021-12-07 12:36 ` [PATCH 1/2] dt-bindings: firmware: Add " David Brazdil
2021-12-07 12:36 ` [PATCH 2/2] misc: dice: Add driver to forward secrets to userspace David Brazdil
2021-12-07 13:08   ` Greg Kroah-Hartman
2021-12-07 16:44     ` David Brazdil
2021-12-07 17:16       ` Greg Kroah-Hartman
2021-12-07 18:09         ` David Brazdil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.