Re: [PATCHv1 0/4] Extend FPGA manager and region drivers for

From: Richard Gong
Date: Mon Nov 16 2020 - 08:41:16 EST



Hi Yilun,

On 11/15/20 8:41 PM, Xu Yilun wrote:
On Thu, Nov 12, 2020 at 12:06:39PM -0600, richard.gong@xxxxxxxxxxxxxxx wrote:
From: Richard Gong <richard.gong@xxxxxxxxx>

The customer wants to verify that a FPGA bitstream can be started properly
before saving the bitstream to the QSPI flash memory.

The customer sends the bitstream via FPGA framework and overlay, the
firmware will authenticate the bitstream but not program the bitstream to
device. If the authentication passes, the bitstream will be programmed into
QSPI flash and will be expected to boot without issues.

So when we have successfully reprogramed region with the
FPGA_MGR_BITSTREM_AUTHENTICATION flag, the bitstream in QSPI flash is
updated but not activated, we need an FPGA reboot to activate it, is it?


Correct. If the authentication passes, the bitstream will be programmed into QSPI flash and will be expected to boot without issues.

Thanks,
Yilun


Extend FPGA manager and region drivers to support the bitstream
authentication feature.

Richard Gong (4):
fpga: fpga-mgr: add FPGA_MGR_BITSTREM_AUTHENTICATION flag
fpga: of-fpga-region: add authenticate-fpga-config property
dt-bindings: fpga: add authenticate-fpga-config property
fpga: stratix10-soc: entend driver for bitstream authentication

Documentation/devicetree/bindings/fpga/fpga-region.txt | 1 +
drivers/fpga/of-fpga-region.c | 3 +++
drivers/fpga/stratix10-soc.c | 5 ++++-
include/linux/fpga/fpga-mgr.h | 3 +++
4 files changed, 11 insertions(+), 1 deletion(-)

--
2.7.4