Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751385AbcKGAOX (ORCPT ); Sun, 6 Nov 2016 19:14:23 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34884 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbcKGAOP (ORCPT ); Sun, 6 Nov 2016 19:14:15 -0500 From: Moritz Fischer To: linux-kernel@vger.kernel.org Cc: moritz.fischer.private@gmail.com, atull@opensource.altera.com, michal.simek@xilinx.com, soren.brinkmann@xilinx.com, linux-arm-kernel@lists.infradead.org, julia@ni.com, Moritz Fischer Subject: [PATCH 0/4] fpga mgr: Add support for capabilities & encrypted bistreams Date: Sun, 6 Nov 2016 17:13:22 -0700 Message-Id: <20161107001326.7395-1-moritz.fischer@ettus.com> X-Mailer: git-send-email 2.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1455 Lines: 33 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(-) -- 2.10.0