[PATCHv1] Add Intel Stratix10 service layer binding

2018-01-23 Thread richard . gong
From: Richard Gong Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard processor system (HPS) and Secure Device Manager (SDM). When the FPGA is configured from HPS, there needs to be a way for HPS to notify SDM the location and size of the configuration data. Then SDM will

[PATCHv1] dt-bindings: misc: add Intel Stratix10 service layer binding

2018-01-23 Thread richard . gong
From: Richard Gong Add a device tree binding for the Intel Stratix10 service layer driver Signed-off-by: Richard Gong --- .../devicetree/bindings/misc/intel-service.txt | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc

[PATCHv1] Add Intel Stratix10 service layer driver

2018-01-25 Thread richard . gong
From: Richard Gong Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard processor system (HPS) and Secure Device Manager (SDM). SDM is the hardware which does the FPGA configuration, QSPI, Crypto and warm reset. When the FPGA is configured from HPS, there needs to be a way

[PATCHv1] driver: misc: add Intel Stratix10 service layer driver

2018-01-25 Thread richard . gong
From: Richard Gong Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard processor system (HPS) and Secure Device Manager (SDM). SDM is the hardware which does the FPGA configuration, QSPI, Crypto and warm reset. When the FPGA is configured from HPS, there needs to be a way

Re: [PATCHv1] dt-bindings: misc: add Intel Stratix10 service layer binding

2018-02-01 Thread Richard Gong
On 01/30/2018 10:57 AM, Rob Herring wrote: On Tue, Jan 23, 2018 at 01:25:02PM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Add a device tree binding for the Intel Stratix10 service layer driver Signed-off-by: Richard Gong --- .../devicetree/bindings/misc/intel

Re: [PATCHv1] Add Intel Stratix10 service layer driver

2018-01-29 Thread Richard Gong
Hi Greg, Many thanks for your reviews. On 01/25/2018 10:53 AM, Greg KH wrote: On Thu, Jan 25, 2018 at 10:39:03AM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard processor system (HPS) and Secure Device

[PATCHv11 0/8] Add Intel Stratix10 FPGA manager and service layer

2018-11-13 Thread richard . gong
From: Richard Gong This is the 11th submission of Intel Stratix10 service layer and FPGA manager driver patches. Starting from 10th submission Stratix10 service layer driver .c file is moved to drivers/firmware, header files is moved to include/linux/firmware/intel. And other firmware interface

[PATCHv5 5/8] arm64: dts: stratix10: add fpga manager and region

2018-05-24 Thread richard . gong
From: Alan Tull Add the Stratix10 FPGA manager and a FPGA region to the device tree. Signed-off-by: Alan Tull Signed-off-by: Richard Gong --- v2: this patch is added in patch set version 2 v3: change to put fpga_mgr node under firmware/svc node v4: s/fpga-mgr@0/fpga-mgr/ to remove

[PATCHv5 1/8] dt-bindings, firmware: add Intel Stratix10 service layer binding

2018-05-24 Thread richard . gong
From: Richard Gong Add a device tree binding for the Intel Stratix10 service layer driver Signed-off-by: Richard Gong Signed-off-by: Alan Tull Reviewed-by: Rob Herring --- v2: Change to put service layer driver node under the firmware node Change compatible to "intel, stratix10-sv

[PATCHv5 8/8] Documentation: driver-api: add stratix10 service layer

2018-05-24 Thread richard . gong
From: Richard Gong Add new file stratix10-svc.rst Add stratix10-svc.rst to driver-api/index.rst Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v5: this patch is added in patch set version 5 --- Documentation/driver-api/index.rst | 1 + Documentation/driver-api/stratix10

[PATCHv5 0/8] Add Intel Stratix10 FPGA manager and service layer

2018-05-24 Thread richard . gong
From: Richard Gong This is the 5th submission of Intel stratix10 service layer patches. Intel Stratix10 FPGA manager, which is 1st Stratix10 service layer client, is included in this submission. Stratix10 service layer patches have been reviewed internally by Alan Tull and other colleagues at

[PATCHv5 6/8] fpga: add intel stratix10 soc fpga manager driver

2018-05-24 Thread richard . gong
From: Alan Tull Add driver for reconfiguring Intel Stratix10 SoC FPGA devices. This driver communicates through the Intel Service Driver which does communication with privileged hardware (that does the FPGA programming) through a secure mailbox. Signed-off-by: Alan Tull Signed-off-by: Richard

[PATCHv5 7/8] defconfig: enable fpga and service layer

2018-05-24 Thread richard . gong
From: Richard Gong Enable fpga framework, Stratix 10 SoC FPGA manager and Stratix10 Service Layer Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v2: this patch is added in patch set version 2 v3: no change v4: s/CONFIG_INTEL_SERVICE/CONFIG_STRATIX10_SERVICE/ add

[PATCHv5 3/8] driver, misc: add Intel Stratix10 service layer driver

2018-05-24 Thread richard . gong
From: Richard Gong Some features of the Intel Stratix10 SoC require a level of privilege higher than the kernel is granted. Such secure features include FPGA programming. In terms of the ARMv8 architecture, the kernel runs at Exception Level 1 (EL1), access to the features requires Exception

[PATCHv5 4/8] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding

2018-05-24 Thread richard . gong
From: Alan Tull Add a Device Tree binding for the Intel Stratix10 SoC FPGA manager. Signed-off-by: Alan Tull Signed-off-by: Richard Gong Reviewed-by: Rob Herring --- v2: this patch is added in patch set version 2 v3: change to put fpga_mgr node under firmware/svc node v4: s/fpga-mgr@0/fpga

[PATCHv5 2/8] arm64: dts: stratix10: add stratix10 service driver binding to base dtsi

2018-05-24 Thread richard . gong
From: Richard Gong Add Intel Stratix10 service layer to the device tree Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v2: Change to put service layer driver node under the firmware node Change compatible to "intel, stratix10-svc" v3: No change v4: s/service driver

[PATCHv10 0/8] Add Intel Stratix10 FPGA manager and service layer

2018-11-06 Thread richard . gong
From: Richard Gong This is the 10th submission of Intel Stratix10 service layer and FPGA manager driver patches. In this submission I have moved Stratix10 service layer driver .c file to drivers/firmware and header files to include/linux/firmware/intel. I have added Stratix10 service layer

[PATCHv10 2/8] arm64: dts: stratix10: add stratix10 service driver binding to base dtsi

2018-11-06 Thread richard . gong
From: Richard Gong Add Intel Stratix10 service layer to the device tree Signed-off-by: Richard Gong Signed-off-by: Alan Tull Acked-by: Moritz Fischer --- v2: change to put service layer driver node under the firmware node change compatible to "intel, stratix10-svc" v3: no ch

[PATCHv7 8/9] Documentation: driver-api: add stratix10 service layer

2018-07-18 Thread richard . gong
From: Richard Gong Add new file stratix10-svc.rst Add stratix10-svc.rst to driver-api/index.rst Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v5: this patch is added in patch set version 5 v6: no change v7: no change --- Documentation/driver-api/index.rst | 1

[PATCHv7 6/9] fpga: add intel stratix10 soc fpga manager driver

2018-07-18 Thread richard . gong
From: Alan Tull Add driver for reconfiguring Intel Stratix10 SoC FPGA devices. This driver communicates through the Intel Service Driver which does communication with privileged hardware (that does the FPGA programming) through a secure mailbox. Signed-off-by: Alan Tull Signed-off-by: Richard

[PATCHv7 5/9] arm64: dts: stratix10: add fpga manager and region

2018-07-18 Thread richard . gong
From: Alan Tull Add the Stratix10 FPGA manager and a FPGA region to the device tree. Signed-off-by: Alan Tull Signed-off-by: Richard Gong --- v2: this patch is added in patch set version 2 v3: change to put fpga_mgr node under firmware/svc node v4: s/fpga-mgr@0/fpga-mgr/ to remove

Re: [PATCHv5 1/7] firmware: stratix10-svc: reset COMMAND_RECONFIG_FLAG_PARTIAL to 0

2021-02-15 Thread Richard Gong
Hi Tom, On 2/13/21 9:44 AM, Tom Rix wrote: On 2/9/21 2:20 PM, richard.g...@linux.intel.com wrote: From: Richard Gong Clean up COMMAND_RECONFIG_FLAG_PARTIAL flag by resetting it to 0, which aligns with the firmware settings. Fixes: 36847f9e3e56 ("firmware: stratix10-svc: correct rec

[PATCHv2 2/7] arm64: dts: stratix10: add service driver binding to base dtsi

2018-03-01 Thread richard . gong
From: Richard Gong Add Intel Stratix10 service layer to the device tree Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v2: Change to put service layer driver node under the firmware node Change compatible to "intel, stratix10-svc" --- arch/arm64/boot/

[PATCHv2 5/7] arm64: dts: stratix10: add fpga manager and region

2018-03-01 Thread richard . gong
From: Alan Tull Add the Stratix10 FPGA manager and a FPGA region to the device tree. Signed-off-by: Alan Tull --- v2: this patch is added in patch set version 2 --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/bo

[PATCHv2 6/7] fpga: add intel stratix10 soc fpga manager driver

2018-03-01 Thread richard . gong
From: Alan Tull Add driver for reconfiguring Intel Stratix10 SoC FPGA devices. This driver communicates through the Intel Service Driver which does communication with privileged hardware (that does the FPGA programming) through a secure mailbox. Signed-off-by: Alan Tull --- v2: this patch is ad

[PATCHv2 1/7] dt-bindings, firmware: add Intel Stratix10 service layer binding

2018-03-01 Thread richard . gong
From: Richard Gong Add a device tree binding for the Intel Stratix10 service layer driver Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v2: Change to put service layer driver node under the firmware node Change compatible to "intel, stratix10-svc" --- .../binding

[PATCHv2 4/7] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding

2018-03-01 Thread richard . gong
From: Alan Tull Add a Device Tree binding for the Intel Stratix10 SoC FPGA manager. Signed-off-by: Alan Tull --- v2: this patch is added in patch set version 2 --- .../devicetree/bindings/fpga/intel-stratix10-soc-fpga-mgr.txt | 10 ++ 1 file changed, 10 insertions(+) create mode 1006

[PATCHv2 7/7] defconfig: enable fpga and service layer

2018-03-01 Thread richard . gong
From: Richard Gong Enable fpga framework, Stratix 10 SoC FPGA manager, and Intel Service Layer Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v2: this patch is added in patch set version 2 --- arch/arm64/configs/defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a

[PATCHv2 3/7] driver, misc: add Intel Stratix10 service layer driver

2018-03-01 Thread richard . gong
From: Richard Gong Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard processor system (HPS) and Secure Device Manager (SDM). SDM is the hardware which does the FPGA configuration, QSPI, Crypto and warm reset. When the FPGA is configured from HPS, there needs to be a way

[PATCHv2 0/7] Add Intel Stratix10 FPGA manager and service layer

2018-03-01 Thread richard . gong
From: Richard Gong This is the 2nd submission of Intel service layer patches. Intel Stratix10 FPGA manager, which is 1st service layer client, is included in this submission. Service layer patches have been reviewed internally by Alan Tull and other colleagues at Intel. Intel Stratix10 SoC is

[PATCHv3 1/7] dt-bindings, firmware: add Intel Stratix10 service layer binding

2018-03-27 Thread richard . gong
From: Richard Gong Add a device tree binding for the Intel Stratix10 service layer driver Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v2: Change to put service layer driver node under the firmware node Change compatible to "intel, stratix10-svc" v3:

[PATCHv3 0/7] Add Intel Stratix10 FPGA manager and service layer

2018-03-27 Thread richard . gong
From: Richard Gong This is the 3rd submission of Intel service layer patches. Intel Stratix10 FPGA manager, which is 1st service layer client, is included in this submission. Service layer patches have been reviewed internally by Alan Tull and other colleagues at Intel. Intel Stratix10 SoC is

[PATCHv3 2/7] arm64: dts: stratix10: add service driver binding to base dtsi

2018-03-27 Thread richard . gong
From: Richard Gong Add Intel Stratix10 service layer to the device tree Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v2: Change to put service layer driver node under the firmware node Change compatible to "intel, stratix10-svc" v3: No change --- arch/arm64/boot/

[PATCHv3 3/7] driver, misc: add Intel Stratix10 service layer driver

2018-03-27 Thread richard . gong
From: Richard Gong Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard processor system (HPS) and Secure Device Manager (SDM). SDM is the hardware which does the FPGA configuration, QSPI, Crypto and warm reset. In order to configure the FPGA from HPS, there needs to be a

[PATCHv3 7/7] defconfig: enable fpga and service layer

2018-03-27 Thread richard . gong
From: Richard Gong Enable fpga framework, Stratix 10 SoC FPGA manager, and Intel Service Layer Signed-off-by: Richard Gong Signed-off-by: Alan Tull --- v2: this patch is added in patch set version 2 v3: no change --- arch/arm64/configs/defconfig | 5 + 1 file changed, 5 insertions

[PATCHv3 6/7] fpga: add intel stratix10 soc fpga manager driver

2018-03-27 Thread richard . gong
From: Alan Tull Add driver for reconfiguring Intel Stratix10 SoC FPGA devices. This driver communicates through the Intel Service Driver which does communication with privileged hardware (that does the FPGA programming) through a secure mailbox. Signed-off-by: Alan Tull --- v2: this patch is ad

[PATCHv3 4/7] dt-bindings: fpga: add Stratix10 SoC FPGA manager binding

2018-03-27 Thread richard . gong
From: Alan Tull Add a Device Tree binding for the Intel Stratix10 SoC FPGA manager. Signed-off-by: Alan Tull --- v2: this patch is added in patch set version 2 v3: change to put fpga_mgr node under firmware/svc node --- .../bindings/fpga/intel-stratix10-soc-fpga-mgr.txt | 17 +

[PATCHv3 5/7] arm64: dts: stratix10: add fpga manager and region

2018-03-27 Thread richard . gong
From: Alan Tull Add the Stratix10 FPGA manager and a FPGA region to the device tree. Signed-off-by: Alan Tull --- v2: this patch is added in patch set version 2 v3: change to put fpga_mgr node under firmware/svc node --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 12 1 fi

[PATCHv2] arm64: defconfig: enable fpga and service layer

2019-02-04 Thread richard . gong
From: Richard Gong Enable FPGA framework, Intel Stratix10 SoC FPGA manager, Stratix10 service layer, and Altera Freeze Bridge drivers. Intel Stratix10 service layer driver was added with commit 7ca5ce896524 ("firmware: add Intel Stratix10 service layer driver"). Intel Stratix10 ser

[PATCHv1] fpga: mgr: add FPGA configuration log

2019-04-02 Thread richard . gong
From: Richard Gong Add a log for user to know FPGA configuration is successful Signed-off-by: Richard Gong --- drivers/fpga/fpga-mgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c index c386681..559e046 100644 --- a/drivers/fpga/fpga

Re: [PATCHv1] fpga: mgr: add FPGA configuration log

2019-04-03 Thread Richard Gong
Hi Moritz, On 4/3/19 9:20 AM, Moritz Fischer wrote: Hi Richard, On Tue, Apr 02, 2019 at 05:25:43PM -0500, richard.g...@linux.intel.com wrote: From: Richard Gong Add a log for user to know FPGA configuration is successful Signed-off-by: Richard Gong --- drivers/fpga/fpga-mgr.c | 1 + 1

[PATCHv1 2/6] dt-bindings, firmware: add Intel Stratix10 remote system update binding

2019-04-09 Thread richard . gong
From: Richard Gong Add a device tree binding for the Intel Stratix10 remote system update (RSU) driver Signed-off-by: Richard Gong Reviewed-by: Alan Tull --- .../bindings/firmware/intel,stratix10-rsu.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644

[PATCHv1 0/6] add Intel Stratix10 remote system update driver

2019-04-09 Thread richard . gong
From: Richard Gong This is the 1st submission of Intel Stratix10 remote system update (RSU) driver, which includes 6 patches below: patch #1 - extend Intel Stratix10 service layer to support RSU notify feature. patch #2 - add Intel Stratix10 remote system

[PATCHv1 1/6] firmware: stratix10-svc: add to support RSU notify

2019-04-09 Thread richard . gong
From: Richard Gong Extend Intel Stratix10 service layer to support RSU notify feature. RSU is used to provide our customers with protection against loading bad bitstream onto their devices when those devices are booting from flash RSU notify provides users with an API to notify the firmware of

[PATCHv1 3/6] arm64: dts: stratix10: add remote system update

2019-04-09 Thread richard . gong
From: Richard Gong Add Intel Stratix10 remote system update to the device tree Signed-off-by: Richard Gong Reviewed-by: Alan Tull --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b

[PATCHv1 4/6] firmware: add Intel Stratix10 remote system update driver

2019-04-09 Thread richard . gong
From: Richard Gong The Intel Remote System Update (RSU) driver exposes interfaces access through the Intel Service Layer to user space via sysfs interface. The RSU interfaces report and control some of the optional RSU features on Intel Stratix 10 SoC. The RSU feature provides a way for

[PATCHv1 6/6] MAINTAINERS: add maintainer for Intel Stratix10 FW drivers

2019-04-09 Thread richard . gong
From: Richard Gong Add myself as maintainer for the newly created Intel Stratix10 firmware drivers. Signed-off-by: Richard Gong Reviewed-by: Alan Tull --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4cf3cbf..d7054f5 100644 --- a

[PATCHv1 5/6] firmware: rsu: document sysfs interface

2019-04-09 Thread richard . gong
From: Richard Gong Describe Intel Stratix10 Remote System Update (RSU) device attributes Signed-off-by: Richard Gong Reviewed-by: Alan Tull --- .../testing/sysfs-devices-platform-stratix10-rsu | 78 ++ 1 file changed, 78 insertions(+) create mode 100644 Documentation

[PATCHv3] firmware: stratix10-svc: reset COMMAND_RECONFIG_FLAG_PARTIAL to 0

2021-02-23 Thread richard . gong
From: Richard Gong Clean up COMMAND_RECONFIG_FLAG_PARTIAL flag by resetting it to 0, which aligns with the firmware settings. Cc: # 5.9+ Fixes: 36847f9e3e56 ("firmware: stratix10-svc: correct reconfig flag and timeout values") Signed-off-by: Richard Gong --- v3: correct the missi

Re: [PATCHv4 5/6] dt-bindings: fpga: add authenticate-fpga-config property

2021-02-02 Thread Richard Gong
Hi Moritz, On 2/1/21 10:27 PM, Moritz Fischer wrote: On Mon, Feb 01, 2021 at 09:21:58AM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Add authenticate-fpga-config property for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed

[PATCHv4 2/6] firmware: stratix10-svc: extend SVC driver to get the firmware version

2021-02-01 Thread richard . gong
From: Richard Gong Extend Intel service layer driver to get the firmware version running at FPGA device. Therefore FPGA manager driver, one of Intel service layer driver's client, can decide whether to handle the newly added bitstream authentication function based on the retrieved fir

[PATCHv4 4/6] fpga: of-fpga-region: add authenticate-fpga-config property

2021-02-01 Thread richard . gong
From: Richard Gong Add authenticate-fpga-config property to support FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed-off-by: Richard Gong --- v4: add additional checks to make sure *only* authenticate v3: no change v2: changed in alphabetical

[PATCHv4 5/6] dt-bindings: fpga: add authenticate-fpga-config property

2021-02-01 Thread richard . gong
From: Richard Gong Add authenticate-fpga-config property for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed-off-by: Richard Gong --- v4: explain authenticate-fpga-config flag further v3: no change v2: put authenticate-fpga-config above partial

[PATCHv4 1/6] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2021-02-01 Thread richard . gong
From: Richard Gong Add COMMAND_AUTHENTICATE_BITSTREAM command flag for new added bitstream authentication feature. Authenticating a bitstream is to make sure a signed bitstream has the valid signatures. Except for the actual configuration of the device, the bitstream authentication works the

[PATCHv4 6/6] fpga: stratix10-soc: extend driver for bitstream authentication

2021-02-01 Thread richard . gong
From: Richard Gong Extend FPGA manager driver to support FPGA bitstream authentication on Intel SocFPGA platforms. Signed-off-by: Richard Gong --- v4: s/FPGA_MGR_BITSTREM_AUTHENTICATION/FPGA_MGR_BITSTREAM_AUTHENTICATE v3: add handle to retriev the firmware version to keep driver back

[PATCHv4 3/6] fpga: fpga-mgr: add FPGA_MGR_BITSTREAM_AUTHENTICATE flag

2021-02-01 Thread richard . gong
From: Richard Gong Add FPGA_MGR_BITSTREAM_AUTHENTICATE flag for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Except for the actual configuration of the device, the authentication works the same way as FPGA configuration does. If the authentication

[PATCHv4 0/6] Extend Intel service layer, FPGA manager and region

2021-02-01 Thread richard . gong
From: Richard Gong This is 4th submission of Intel service layer and FPGA patches. This submission includes additional changes for Intel service layer driver to get the firmware version running at FPGA SoC device. Then FPGA manager driver, one of Intel service layer driver's client, can d

[PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-02-09 Thread richard . gong
From: Richard Gong This is 5th submission of Intel service layer and FPGA patches, which includes the missing standalone patch in the 4th submission. This submission includes additional changes for Intel service layer driver to get the firmware version running at FPGA SoC device. Then FPGA

[PATCHv5 6/7] dt-bindings: fpga: add authenticate-fpga-config property

2021-02-09 Thread richard . gong
From: Richard Gong Add authenticate-fpga-config property for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed-off-by: Richard Gong --- v5: rewrite the description to highlight two things with authenticate-fpga-config flag v4: explain

[PATCHv5 1/7] firmware: stratix10-svc: reset COMMAND_RECONFIG_FLAG_PARTIAL to 0

2021-02-09 Thread richard . gong
From: Richard Gong Clean up COMMAND_RECONFIG_FLAG_PARTIAL flag by resetting it to 0, which aligns with the firmware settings. Fixes: 36847f9e3e56 ("firmware: stratix10-svc: correct reconfig flag and timeout values") Signed-off-by: Richard Gong --- v5: new add, add the missing standa

[PATCHv5 2/7] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2021-02-09 Thread richard . gong
From: Richard Gong Add COMMAND_AUTHENTICATE_BITSTREAM command flag for new added bitstream authentication feature. Authenticating a bitstream is to make sure a signed bitstream has the valid signatures. Except for the actual configuration of the device, the bitstream authentication works the

[PATCHv5 3/7] firmware: stratix10-svc: extend SVC driver to get the firmware version

2021-02-09 Thread richard . gong
From: Richard Gong Extend Intel service layer driver to get the firmware version running at FPGA device. Therefore FPGA manager driver, one of Intel service layer driver's client, can decide whether to handle the newly added bitstream authentication function based on the retrieved fir

[PATCHv5 7/7] fpga: stratix10-soc: extend driver for bitstream authentication

2021-02-09 Thread richard . gong
From: Richard Gong Extend FPGA manager driver to support FPGA bitstream authentication on Intel SocFPGA platforms. Signed-off-by: Richard Gong --- v5: no change v4: s/FPGA_MGR_BITSTREM_AUTHENTICATION/FPGA_MGR_BITSTREAM_AUTHENTICATE v3: add handle to retriev the firmware version to keep driver

[PATCHv5 4/7] fpga: fpga-mgr: add FPGA_MGR_BITSTREAM_AUTHENTICATE flag

2021-02-09 Thread richard . gong
From: Richard Gong Add FPGA_MGR_BITSTREAM_AUTHENTICATE flag for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Except for the actual configuration of the device, the authentication works the same way as FPGA configuration does. If the authentication

[PATCHv5 5/7] fpga: of-fpga-region: add authenticate-fpga-config property

2021-02-09 Thread richard . gong
From: Richard Gong Add authenticate-fpga-config property to support FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed-off-by: Richard Gong --- v5: no change v4: add additional checks to make sure *only* authenticate v3: no change v2: changed in

Re: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-02-25 Thread Richard Gong
-f...@vger.kernel.org; linux-kernel@vger.kernel.org Cc: Gong, Richard Subject: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region From: Richard Gong This is 5th submission of Intel service layer and FPGA patches, which includes the missing standalone patch in the 4th submission

Re: [PATCHv2] fpga: stratix10-soc: remove the pre-set reconfiguration condition

2020-06-01 Thread Richard Gong
Hi Moritz, On 5/31/20 2:49 PM, Moritz Fischer wrote: On Fri, May 29, 2020 at 08:15:15AM -0500, Richard Gong wrote: Hi Moritz, Sorry for asking. When you get chance, can you review my version 2 patch submitted on 05/15/20? Regards, Richard On 5/15/20 9:35 AM, richard.g...@linux.intel.com

[PATCHv1 0/2] add Intel SoCFPGA crypto service driver

2020-08-11 Thread richard . gong
From: Richard Gong I followed the process to register or request a valid IOCTL number/letter, but I got the delivery failure status notification. Cypto service driver and service layer driver patches have been reviewed internally by colleagues at Intel. Intel SoCFPGA is composed of a 64 bit

[PATCHv1 1/2] firmware: stratix10-svc: extend svc to support new crypto features

2020-08-11 Thread richard . gong
From: Richard Gong Extend Intel service layer driver to support new crypto services on Intel SoCFPGA platforms. The crypto services include security certificate, image boot validation, security key cancellation, get provision data, random number generation, advance encrtption standard (AES

[PATCHv1 2/2] crypto: add Intel SoCFPGA crypto service driver

2020-08-11 Thread richard . gong
From: Richard Gong Add Intel FPGA crypto service (FCS) driver to support new crypto services on Intel SoCFPGA platforms. The crypto services include security certificate, image boot validation, security key cancellation, get provision data, random number generation, advance encrtption standard

Re: [PATCHv1 2/2] crypto: add Intel SoCFPGA crypto service driver

2020-08-12 Thread Richard Gong
I will move them to drivers/misc. Regards, Richard On 8/11/20 7:34 PM, Herbert Xu wrote: On Tue, Aug 11, 2020 at 08:56:22AM -0500, richard.g...@linux.intel.com wrote: From: Richard Gong Add Intel FPGA crypto service (FCS) driver to support new crypto services on Intel SoCFPGA platforms

Re: [PATCH] firmware: stratix10-svc: build only on 64-bit ARM

2021-03-24 Thread Richard Gong
tristate "Intel Stratix10 Service Layer" - depends on ARCH_INTEL_SOCFPGA && HAVE_ARM_SMCCC + depends on ARCH_INTEL_SOCFPGA && ARM64 && HAVE_ARM_SMCCC default n help Intel Stratix10 service layer runs at privileged exception level, Acked-by: Richard Gong Regards, Richard

Re: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-03-19 Thread Richard Gong
, 2021 4:20 PM To: m...@kernel.org; t...@redhat.com; gre...@linuxfoundation.org; linux-f...@vger.kernel.org; linux-kernel@vger.kernel.org Cc: Gong, Richard Subject: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region From: Richard Gong This is 5th submission of Intel service layer

[PATCH] A patch for Intel service layer driver

2021-03-30 Thread richard . gong
From: Richard Gong Hi Greg, Please take this stratix10-svc patch, which has been reviewed on the mailing list and applied cleanly on current linux-next and char-misc-testing. Thanks, Richard Richard Gong (1): firmware: stratix10-svc: extend SVC driver to get the firmware version drivers

[PATCH] firmware: stratix10-svc: extend SVC driver to get the firmware version

2021-03-30 Thread richard . gong
From: Richard Gong Extend Intel service layer driver to get the firmware version running at FPGA device. Therefore FPGA manager driver, one of Intel service layer driver's client, can decide whether to handle the newly added bitstream authentication function based on the retrieved fir

Re: [PATCH] firmware: stratix10-svc: extend SVC driver to get the firmware version

2021-03-30 Thread Richard Gong
Hi David, On 3/30/21 9:19 AM, David Laight wrote: From: richard.g...@linux.intel.com Sent: 30 March 2021 15:33 Extend Intel service layer driver to get the firmware version running at FPGA device. Therefore FPGA manager driver, one of Intel service layer driver's client, can decide whether t

Re: [PATCH] firmware: stratix10-svc: extend SVC driver to get the firmware version

2021-03-30 Thread Richard Gong
Hi Moritz, On 3/30/21 11:15 AM, Moritz Fischer wrote: Hi Richard, On Tue, Mar 30, 2021 at 09:33:05AM -0500, richard.g...@linux.intel.com wrote: From: Richard Gong Extend Intel service layer driver to get the firmware version running at FPGA device. Therefore FPGA manager driver, one of

Re: FW: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-03-21 Thread Richard Gong
Hi Tom, On 3/19/21 4:22 PM, Richard Gong wrote: Hi Moritz, Thanks for approving the 1st patch of my version 5 patchest, which submitted on 02/09/21. This change e23bd83368af ("firmware: stratix10-svc: fix kernel-doc markups") This patch e23bd83368af is not from my versi

Re: [PATCH] firmware: stratix10-svc: build only on 64-bit ARM

2021-03-22 Thread Richard Gong
On 3/22/21 3:26 AM, Krzysztof Kozlowski wrote: On 21/03/2021 22:09, Arnd Bergmann wrote: On Sun, Mar 21, 2021 at 7:46 PM Krzysztof Kozlowski wrote: The Stratix10 service layer and RCU drivers are useful only on Stratix10, so on ARMv8. Compile testing the RCU driver on 32-bit ARM fails:

Re: [PATCH] firmware: stratix10-svc: build only on 64-bit ARM

2021-03-22 Thread Richard Gong
On 3/22/21 7:41 AM, Krzysztof Kozlowski wrote: On 22/03/2021 13:58, Richard Gong wrote: On 3/22/21 3:26 AM, Krzysztof Kozlowski wrote: On 21/03/2021 22:09, Arnd Bergmann wrote: On Sun, Mar 21, 2021 at 7:46 PM Krzysztof Kozlowski wrote: The Stratix10 service layer and RCU drivers are

Re: FW: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-03-22 Thread Richard Gong
Hi Tom, On 3/22/21 8:53 AM, Tom Rix wrote: On 3/21/21 2:05 PM, Richard Gong wrote: Hi Tom >> On 3/19/21 4:22 PM, Richard Gong wrote: Hi Moritz, Thanks for approving the 1st patch of my version 5 patchest, which submitted on 02/09/21. This change e23bd83368af (&qu

Re: [PATCH] MAINTAINERS: add self as reviewer to INTEL STRATIX10 FIRMWARE DRIVERS

2021-03-29 Thread Richard Gong
diff --git a/MAINTAINERS b/MAINTAINERS index 67b104202602..00828de0a7bc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9266,6 +9266,7 @@ F:tools/power/x86/intel-speed-select/ INTEL STRATIX10 FIRMWARE DRIVERS M:Richard Gong +R: Tom RixL: linux-kernel@vger.kernel.or

Re: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-04-12 Thread Richard Gong
-kernel@vger.kernel.org Cc: Gong, Richard Subject: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region From: Richard Gong This is 5th submission of Intel service layer and FPGA patches, which includes the missing standalone patch in the 4th submission. This submission includes

Re: [PATCHv1 3/4] dt-bindings: fpga: add authenticate-fpga-config property

2020-11-17 Thread Richard Gong
On 11/16/20 8:24 PM, Xu Yilun wrote: On Mon, Nov 16, 2020 at 08:14:52AM -0600, Richard Gong wrote: Hi Yilun, On 11/15/20 8:47 PM, Xu Yilun wrote: On Sun, Nov 15, 2020 at 11:21:06AM -0800, Moritz Fischer wrote: Hi Richard, On Thu, Nov 12, 2020 at 12:06:42PM -0600, richard.g

Re: [PATCHv1 3/4] dt-bindings: fpga: add authenticate-fpga-config property

2020-11-18 Thread Richard Gong
On 11/17/20 11:47 PM, Xu Yilun wrote: On Tue, Nov 17, 2020 at 09:39:55AM -0600, Richard Gong wrote: On 11/16/20 8:24 PM, Xu Yilun wrote: On Mon, Nov 16, 2020 at 08:14:52AM -0600, Richard Gong wrote: Hi Yilun, On 11/15/20 8:47 PM, Xu Yilun wrote: On Sun, Nov 15, 2020 at 11:21:06AM

[PATCHv2 2/5] fpga: fpga-mgr: add FPGA_MGR_BITSTREM_AUTHENTICATION flag

2020-11-18 Thread richard . gong
From: Richard Gong Add FPGA_MGR_BITSTREM_AUTHENTICATION flag for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Except for the actual configuration of the device, the authentication works the same way as FPGA configuration does. If the authentication

[PATCHv2 1/5] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2020-11-18 Thread richard . gong
From: Richard Gong Add COMMAND_AUTHENTICATE_BITSTREAM command flag for new added bitstream authentication feature. Authenticating a bistream is to make sure a signed bitstream has the valid signatures. Except for the actual configuration of the device, the bitstream authentication works the

[PATCHv2 3/5] fpga: of-fpga-region: add authenticate-fpga-config property

2020-11-18 Thread richard . gong
From: Richard Gong Add authenticate-fpga-config property to support FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed-off-by: Richard Gong --- v2: changed in alphabetical order --- drivers/fpga/of-fpga-region.c | 3 +++ 1 file changed, 3

[PATCHv2 4/5] dt-bindings: fpga: add authenticate-fpga-config property

2020-11-18 Thread richard . gong
From: Richard Gong Add authenticate-fpga-config property for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed-off-by: Richard Gong --- v2: put authenticate-fpga-config above partial-fpga-config update commit messages --- Documentation

[PATCHv2 5/5] fpga: stratix10-soc: extend driver for bitstream authentication

2020-11-18 Thread richard . gong
From: Richard Gong Extend FPGA manager driver to support FPGA bitstream authentication on Intel SocFPGA platforms. Signed-off-by: Richard Gong --- v2: use flag defined in stratix10-svc driver --- drivers/fpga/stratix10-soc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/fpga

[PATCHv2 0/5] Extend Intel service layer, FPGA manager and region

2020-11-18 Thread richard . gong
From: Richard Gong This is 2nd submission of Intel service layer and FPGA patches. The customer wants to verify that a FPGA bitstream can be started properly before saving the bitstream to the QSPI flash memory. Bitstream authentication makes sure a signed bitstream has valid signatures. The

Re: [PATCHv2 1/5] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2020-11-18 Thread Richard Gong
Hi Moritz, On 11/18/20 9:30 AM, Moritz Fischer wrote: On Wed, Nov 18, 2020 at 08:29:09AM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Add COMMAND_AUTHENTICATE_BITSTREAM command flag for new added bitstream authentication feature. Authenticating a bistream is to make sure a

Re: [PATCHv2 1/5] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2020-11-30 Thread Richard Gong
Hi Moritz, Sorry for late reply, I was out last week. On 11/21/20 7:10 PM, Moritz Fischer wrote: Richard, On Wed, Nov 18, 2020 at 12:16:09PM -0600, Richard Gong wrote: -#define COMMAND_RECONFIG_FLAG_PARTIAL 1 +#define COMMAND_RECONFIG_FLAG_PARTIAL 0 +#define

Re: [PATCHv2 1/5] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2020-12-01 Thread Richard Gong
Hi Moritz, On 11/30/20 10:31 PM, Moritz Fischer wrote: Hi Richard, On Mon, Nov 30, 2020 at 12:55:44PM -0600, Richard Gong wrote: Hi Moritz, Sorry for late reply, I was out last week. No worries, usually I'm late with replies ;-) On 11/21/20 7:10 PM, Moritz Fischer wrote: Richard

Re: [PATCHv2 1/5] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2020-12-01 Thread Richard Gong
Hi Moritz, On 12/1/20 1:19 PM, Moritz Fischer wrote: Hi Richard, On Tue, Dec 01, 2020 at 01:30:16PM -0600, Richard Gong wrote: Can U-Boot determine whether it's the new or old flow? Can you set a different compatible value in your device-tree, to disambiguate behaviors? The boot fl

Re: [PATCHv3 1/6] firmware: stratix10-svc: add COMMAND_AUTHENTICATE_BITSTREAM flag

2021-01-26 Thread Richard Gong
Hi Tom, On 1/25/21 4:56 PM, Tom Rix wrote: On 1/25/21 12:56 PM, richard.g...@linux.intel.com wrote: From: Richard Gong Add COMMAND_AUTHENTICATE_BITSTREAM command flag for new added bitstream authentication feature. Authenticating a bitstream is to make sure a signed bitstream has the valid

Re: [PATCHv3 2/6] firmware: stratix10-svc: extend SVC driver to get the firmware version

2021-01-26 Thread Richard Gong
Hi Moritz, Thanks for your reviews! On 1/25/21 11:01 PM, Moritz Fischer wrote: Hi Richard, On Mon, Jan 25, 2021 at 02:56:24PM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Extend Intel service layer driver to get the firmware version running at FPGA device. Therefore FPGA

Re: [PATCHv3 3/6] fpga: fpga-mgr: add FPGA_MGR_BITSTREM_AUTHENTICATION flag

2021-01-26 Thread Richard Gong
Hi Moritz, On 1/25/21 11:04 PM, Moritz Fischer wrote: On Mon, Jan 25, 2021 at 02:56:25PM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Add FPGA_MGR_BITSTREM_AUTHENTICATION flag for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures

Re: [PATCHv3 5/6] dt-bindings: fpga: add authenticate-fpga-config property

2021-01-26 Thread Richard Gong
On 1/25/21 11:05 PM, Moritz Fischer wrote: On Mon, Jan 25, 2021 at 02:56:27PM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Add authenticate-fpga-config property for FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures. Signed-off-by

Re: [PATCHv3 4/6] fpga: of-fpga-region: add authenticate-fpga-config property

2021-01-26 Thread Richard Gong
Hi Moritz, On 1/25/21 11:10 PM, Moritz Fischer wrote: On Mon, Jan 25, 2021 at 02:56:26PM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Add authenticate-fpga-config property to support FPGA bitstream authentication, which makes sure a signed bitstream has valid signatures

  1   2   3   >