Skip to content

fpga mgr: Add support for capabilities & encrypted bistreams

Moritz Fischer linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fpga mgr: Introduce FPGA capabilitiesdrivers/fpga/fpga-mgr.c drivers/fpga/socfpga.c drivers/fpga/zynq-fpga.c +1 more+71 -74 replies
2/4fpga mgr: Expose FPGA capabilities to userland via sysfsDocumentation/ABI/testing/sysfs-class-fpga-manager drivers/fpga/fpga-mgr.c include/linux/fpga/fpga-mgr.h+38 -01 reply
3/4fpga mgr: zynq: Add support for encrypted bitstreamsdrivers/fpga/fpga-mgr.c drivers/fpga/zynq-fpga.c include/linux/fpga/fpga-mgr.h+28 -24 replies
4/4fpga mgr: socfpga: Expose support for encrypted bitstreamsdrivers/fpga/socfpga.c+1 -01 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAlan Tull
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] fpga mgr: Add support for capabilities & encrypted bistreams

This patchset introduces FPGA capabilities, to model what operations an FPGA Manager low level driver supports.
Exposing them via sysfs allows userland to make smart decisions which FPGA to deploy an image to in case there are multiple FPGAs with different capabilities available.

As an example of a capability: Support for encrypted bitstreams to Zynq & SocFPGA. Please note that [4/4] is separate as I couldn't find info on how encrypted bitstreams work on socfpga platforms, however Alan mentioned during an offline discussion it should 'just work'.

On Zynq using the HMAC & AES units in the devcfg peripheral only work when the system has been booted in Secure Mode, otherwise the boot rom will disable them. The FPGA manager capability will only get exposed if available.

Thanks,

Moritz

Moritz Fischer (4):
fpga mgr: Introduce FPGA capabilities
fpga mgr: Expose FPGA capabilities to userland via sysfs fpga mgr: zynq: Add support for encrypted bitstreams fpga mgr: socfpga: Expose support for encrypted bitstreams

 Documentation/ABI/testing/sysfs-class-fpga-manager | 16 +++++++
 drivers/fpga/fpga-mgr.c                            | 42 ++++++++++++++++++
 drivers/fpga/socfpga.c                             | 11 ++---
 drivers/fpga/zynq-fpga.c                           | 28 ++++++++++--
 include/linux/fpga/fpga-mgr.h                      | 50 +++++++++++++++++++++-
 5 files changed, 138 insertions(+), 9 deletions(-)
Signature · 1 line
2.10.0