[PATCH v1 07/12] fpga: expose sec-mgr update status

2020-09-04 Thread Russ Weight
Extend the Intel Security Manager class driver to include an update/status sysfs node that can be polled and read to monitor the progress of an ongoing secure update. Sysfs_notify() is used to signal transitions between different phases of the update process. Signed-off-by: Russ Weight Reviewed

[PATCH v1 08/12] fpga: expose sec-mgr update errors

2020-09-04 Thread Russ Weight
Extend Intel Security Manager class driver to include an update/error sysfs node that can be read for error information when a secure update fails. Signed-off-by: Russ Weight Reviewed-by: Wu Hao --- .../ABI/testing/sysfs-class-ifpga-sec-mgr | 17 ++ drivers/fpga/ifpga-sec-mgr.c

[PATCH v1 06/12] fpga: add max10 secure update functions

2020-09-04 Thread Russ Weight
Extend the MAX10 BMC Security Engine driver to include the functions that enable secure updates of BMC images, FPGA images, etc. Signed-off-by: Russ Weight Reviewed-by: Wu Hao --- drivers/fpga/intel-m10-bmc-secure.c | 272 +++- include/linux/mfd/intel-m10-bmc.h | 101

[PATCH v1 10/12] fpga: enable sec-mgr update cancel

2020-09-04 Thread Russ Weight
. Signed-off-by: Russ Weight --- .../ABI/testing/sysfs-class-ifpga-sec-mgr | 10 drivers/fpga/ifpga-sec-mgr.c | 59 +-- include/linux/fpga/ifpga-sec-mgr.h| 1 + 3 files changed, 66 insertions(+), 4 deletions(-) diff --git a/Documentation/ABI

[PATCH v1 11/12] fpga: expose hardware error info in sysfs

2020-09-04 Thread Russ Weight
feature. This data is treated as opaque by the class driver. It is left to user-space software or support personnel to interpret this data. Signed-off-by: Russ Weight Reviewed-by: Wu Hao --- .../ABI/testing/sysfs-class-ifpga-sec-mgr | 14 +++ drivers/fpga/ifpga-sec-mgr.c

[PATCH v1 12/12] fpga: add max10 get_hw_errinfo callback func

2020-09-04 Thread Russ Weight
Extend the MAX10 BMC Security Engine driver to include a function that returns 64 bits of additional HW specific data for errors that require additional information. This callback function enables the hw_errinfo sysfs node in the Intel Security Manager class driver. Signed-off-by: Russ Weight

[PATCH v1 09/12] fpga: expose sec-mgr update size

2020-09-04 Thread Russ Weight
it will be signaled by sysfs_notify() on each state change. +What: /sys/class/ifpga_sec_mgr/ifpga_secX/update/remaining_size +Date: Sep 2020 +KernelVersion: 5.10 +Contact: Russ Weight +Description: Read-only. Returns the size of data that remains to +

[PATCH v1 01/12] fpga: fpga security manager class driver

2020-09-04 Thread Russ Weight
provides sysfs interfaces for displaying root entry hashes, canceled code signing keys and flash counts. Signed-off-by: Russ Weight Signed-off-by: Xu Yilun --- .../ABI/testing/sysfs-class-ifpga-sec-mgr | 75 MAINTAINERS | 8 + drivers/fpga/Kconfig

[PATCH v1 04/12] fpga: expose max10 canceled keys in sysfs

2020-09-04 Thread Russ Weight
Extend the MAX10 BMC Security Engine driver to provide a handler to expose the canceled code signing key (CSK) bit vectors. These use the standard bitmap list format (e.g. 1,2-6,9). Signed-off-by: Russ Weight Reviewed-by: Wu Hao --- drivers/fpga/intel-m10-bmc-secure.c | 60

[PATCH v1 03/12] fpga: expose max10 flash update counts in sysfs

2020-09-04 Thread Russ Weight
Extend the MAX10 BMC Security Engine driver to provide a handler to expose the flash update count for the FPGA user image. Signed-off-by: Russ Weight Reviewed-by: Wu Hao --- drivers/fpga/intel-m10-bmc-secure.c | 32 + 1 file changed, 32 insertions(+) diff --git a

Re: [PATCH v1 02/12] fpga: create intel max10 bmc security engine

2020-09-04 Thread Russ Weight
On 9/4/20 5:01 PM, Randy Dunlap wrote: On 9/4/20 4:52 PM, Russ Weight wrote: diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index 97c0a6cc2ba7..0f0bed68e618 100644 --- a/drivers/fpga/Kconfig +++ b/drivers/fpga/Kconfig @@ -244,4 +244,15 @@ config IFPGA_SEC_MGR region and

Re: [PATCH v1 01/12] fpga: fpga security manager class driver

2020-09-04 Thread Russ Weight
On 9/4/20 5:23 PM, Moritz Fischer wrote: Hi Russ, On Fri, Sep 04, 2020 at 04:52:54PM -0700, Russ Weight wrote: Create the Intel Security Manager class driver. The security manager provides interfaces to manage secure updates for the FPGA and BMC images that are stored in FLASH. The driver

Re: [PATCH v5 1/7] fpga: sec-mgr: intel fpga security manager class driver

2020-10-27 Thread Russ Weight
GA and BMC images that are stored in FLASH. The driver can >> also be used to update root entry hashes and to cancel code >> signing keys. >> >> This patch creates the class driver and provides sysfs >> interfaces for displaying root entry hashes, canceled code

[PATCH v5 2/7] fpga: sec-mgr: enable secure updates

2020-10-20 Thread Russ Weight
cause a secure update to occur. The write of the filename will return immediately, and the update will begin in the context of a kernel worker thread. This tool utilizes the request_firmware framework, which requires that the image file reside under /lib/firmware. Signed-off-by: Russ Weight

[PATCH v5 6/7] fpga: sec-mgr: enable cancel of secure update

2020-10-20 Thread Russ Weight
. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v5: - No change v4: - Changed from "Intel FPGA Security Manager" to FPGA Security Manager" and removed unnecessary references to "Intel". - Changed: iops -> sops, imgr -> smgr, IFPGA_ -> FPGA_, if

[PATCH v5 1/7] fpga: sec-mgr: intel fpga security manager class driver

2020-10-20 Thread Russ Weight
provides sysfs interfaces for displaying root entry hashes, canceled code signing keys and flash counts. Signed-off-by: Russ Weight Signed-off-by: Xu Yilun Reviewed-by: Tom Rix --- v5: - Added the devm_fpga_sec_mgr_unregister() function, following recent changes to the fpga_manager

[PATCH v5 7/7] fpga: sec-mgr: expose hardware error info

2020-10-20 Thread Russ Weight
feature. This data is treated as opaque by the class driver. It is left to user-space software or support personnel to interpret this data. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v5: v4: - Changed from "Intel FPGA Security Manager" to FPGA Security Manager"

[PATCH v5 4/7] fpga: sec-mgr: expose sec-mgr update errors

2020-10-20 Thread Russ Weight
Extend the FPGA Security Manager class driver to include an update/error sysfs node that can be read for error information when a secure update fails. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v5: - Use new function sysfs_emit() in the error_show() function v4: - Changed from

[PATCH v5 5/7] fpga: sec-mgr: expose sec-mgr update size

2020-10-20 Thread Russ Weight
ing the current as it will be signaled by sysfs_notify() on each state change. +What: /sys/class/fpga_sec_mgr/fpga_secX/update/remaining_size +Date: Oct 2020 +KernelVersion: 5.11 +Contact: Russ Weight +Description: Read-only. Re

[PATCH v5 3/7] fpga: sec-mgr: expose sec-mgr update status

2020-10-20 Thread Russ Weight
Extend the FPGA Security Manager class driver to include an update/status sysfs node that can be polled and read to monitor the progress of an ongoing secure update. Sysfs_notify() is used to signal transitions between different phases of the update process. Signed-off-by: Russ Weight Reviewed

[PATCH v5 0/7] FPGA Security Manager Class Driver

2020-10-20 Thread Russ Weight
ng" - Added sec_error() function (similar to sec_progress()) - Removed references to bmc_flash_count & smbus_flash_count (not supported) - Removed typedefs for imgr ops - Removed explicit value assignments in enums - Other minor code cleanup per review comments Russ Weight (7): fpg

Re: [PATCH v5 1/7] fpga: sec-mgr: intel fpga security manager class driver

2020-10-20 Thread Russ Weight
I see that I need to remove "intel" from the subject line on this patch. I'll take care of that. I still have an outstanding question about treating a class-driver as a managed resource of the parent device. I'm reposting the question inline. On 10/20/20 5:16 PM, Russ Weight

Re: [PATCH v5 1/7] fpga: sec-mgr: intel fpga security manager class driver

2020-10-28 Thread Russ Weight
patch creates the class driver and provides sysfs >>>> interfaces for displaying root entry hashes, canceled code >>>> signing keys and flash counts. >>>> >>>> Signed-off-by: Russ Weight >>>> Signed-off-by: Xu Yilun >>>> Re

Re: [PATCH v5 1/7] fpga: sec-mgr: intel fpga security manager class driver

2020-10-26 Thread Russ Weight
On 10/25/20 12:12 PM, Moritz Fischer wrote: > Hi Russ, > > On Tue, Oct 20, 2020 at 05:31:12PM -0700, Russ Weight wrote: >> I see that I need to remove "intel" from the subject line on this patch. >> I'll take care of that. >> >> I still have an ou

[PATCH v5 4/6] fpga: m10bmc-sec: expose max10 canceled keys in sysfs

2020-11-13 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to provide sysfs files to expose the canceled code signing key (CSK) bit vectors. These use the standard bitmap list format (e.g. 1,2-6,9). Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v5: - No change v4: - Moved sysfs files for displaying

[PATCH v5 3/6] fpga: m10bmc-sec: expose max10 flash update count

2020-11-13 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to provide a sysfs file to expose the flash update count for the FPGA user image. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v5: - Renamed sysfs node user_flash_count to flash_count and updated the sysfs documentation accordingly. v4

[PATCH v5 5/6] fpga: m10bmc-sec: add max10 secure update functions

2020-11-13 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to include the functions that enable secure updates of BMC images, FPGA images, etc. Signed-off-by: Russ Weight --- v5: - No change v4: - No change v3: - Changed: iops -> sops, imgr -> smgr, IFPGA_ -> FPGA_, ifpga_ to fpga_ - Changed &

[PATCH v5 2/6] fpga: m10bmc-sec: create max10 bmc secure update driver

2020-11-13 Thread Russ Weight
images. This patch creates the MAX10 BMC Secure Update driver and provides sysfs files for displaying the current root entry hashes for the FPGA static region, the FPGA PR region, and the MAX10 BMC. Signed-off-by: Russ Weight --- v5: - No change v4: - Moved sysfs files for displaying the root

[PATCH v5 1/6] mfd: intel-m10-bmc: support for MAX10 BMC Secure Updates

2020-11-13 Thread Russ Weight
Add macros and definitions required by the MAX10 BMC Secure Update driver. Signed-off-by: Russ Weight Acked-by: Lee Jones --- v5: - Renamed USER_FLASH_COUNT to STAGING_FLASH_COUNT v4: - No change v3: - Changed "MAX10 BMC Secure Engine driver" to "MAX10 BMC Secure

[PATCH v5 6/6] fpga: m10bmc-sec: add max10 get_hw_errinfo callback func

2020-11-13 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to include a function that returns 64 bits of additional HW specific data for errors that require additional information. This callback function enables the hw_errinfo sysfs node in the Intel Security Manager class driver. Signed-off-by: Russ Weight

[PATCH v5 0/6] Intel MAX10 BMC Secure Update Driver

2020-11-13 Thread Russ Weight
ucture - Implemented HW_ERRINFO_POISON for m10bmc_sec_hw_errinfo() to ensure that corresponding bits are set to 1 if we are unable to read the doorbell or auth_result registers. - Added comments and additional code cleanup per V1 review. Russ Weight (6): mfd: intel-m10-bmc: support for

[PATCH v6 0/7] FPGA Security Manager Class Driver

2020-11-05 Thread Russ Weight
le" to "reading" - Added sec_error() function (similar to sec_progress()) - Removed references to bmc_flash_count & smbus_flash_count (not supported) - Removed typedefs for imgr ops - Removed explicit value assignments in enums - Other minor code cleanup per review comm

[PATCH v6 1/7] fpga: sec-mgr: fpga security manager class driver

2020-11-05 Thread Russ Weight
file and is decoded by the HW/FW secure update engine. Signed-off-by: Russ Weight Signed-off-by: Xu Yilun Reviewed-by: Tom Rix --- v6: - Removed sysfs support and documentation for the display of the flash count, root entry hashes, and code-signing-key cancelation vectors. v5: - Added

[PATCH v6 6/7] fpga: sec-mgr: enable cancel of secure update

2020-11-05 Thread Russ Weight
. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v6: - No change v5: - No change v4: - Changed from "Intel FPGA Security Manager" to FPGA Security Manager" and removed unnecessary references to "Intel". - Changed: iops -> sops, imgr -> smgr, IFPG

[PATCH v6 2/7] fpga: sec-mgr: enable secure updates

2020-11-05 Thread Russ Weight
cause a secure update to occur. The write of the filename will return immediately, and the update will begin in the context of a kernel worker thread. This tool utilizes the request_firmware framework, which requires that the image file reside under /lib/firmware. Signed-off-by: Russ Weight

[PATCH v6 5/7] fpga: sec-mgr: expose sec-mgr update size

2020-11-05 Thread Russ Weight
turns a string describing the current as it will be signaled by sysfs_notify() on each state change. +What: /sys/class/fpga_sec_mgr/fpga_secX/update/remaining_size +Date: Oct 2020 +KernelVersion: 5.11 +Contact: Russ Weight +Description: Re

[PATCH v6 3/7] fpga: sec-mgr: expose sec-mgr update status

2020-11-05 Thread Russ Weight
Extend the FPGA Security Manager class driver to include an update/status sysfs node that can be polled and read to monitor the progress of an ongoing secure update. Sysfs_notify() is used to signal transitions between different phases of the update process. Signed-off-by: Russ Weight Reviewed

[PATCH v6 7/7] fpga: sec-mgr: expose hardware error info

2020-11-05 Thread Russ Weight
feature. This data is treated as opaque by the class driver. It is left to user-space software or support personnel to interpret this data. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v6: - No change v5: - No change v4: - Changed from "Intel FPGA Security Manager" to FPG

[PATCH v6 4/7] fpga: sec-mgr: expose sec-mgr update errors

2020-11-05 Thread Russ Weight
Extend the FPGA Security Manager class driver to include an update/error sysfs node that can be read for error information when a secure update fails. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v6: - No change v5: - Use new function sysfs_emit() in the error_show() function v4

[PATCH v4 3/6] fpga: m10bmc-sec: expose max10 flash update count

2020-11-05 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to provide a sysfs file to expose the flash update count for the FPGA user image. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v4: - Moved the sysfs file for displaying the flash count from the FPGA Security Manager class driver to here

[PATCH v4 5/6] fpga: m10bmc-sec: add max10 secure update functions

2020-11-05 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to include the functions that enable secure updates of BMC images, FPGA images, etc. Signed-off-by: Russ Weight --- v4: - No change v3: - Changed: iops -> sops, imgr -> smgr, IFPGA_ -> FPGA_, ifpga_ to fpga_ - Changed "MAX10 BMC

[PATCH v4 2/6] fpga: m10bmc-sec: create max10 bmc secure update driver

2020-11-05 Thread Russ Weight
images. This patch creates the MAX10 BMC Secure Update driver and provides sysfs files for displaying the current root entry hashes for the FPGA static region, the FPGA PR region, and the MAX10 BMC. Signed-off-by: Russ Weight --- v4: - Moved sysfs files for displaying the root entry hashes (REH

[PATCH v4 0/6] Intel MAX10 BMC Secure Update Driver

2020-11-05 Thread Russ Weight
stride variable in calls to m10bmc_raw_bulk_read(). - Added m10bmc_ prefix to functions in m10bmc_iops structure - Implemented HW_ERRINFO_POISON for m10bmc_sec_hw_errinfo() to ensure that corresponding bits are set to 1 if we are unable to read the doorbell or auth_result registers. -

[PATCH v4 6/6] fpga: m10bmc-sec: add max10 get_hw_errinfo callback func

2020-11-05 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to include a function that returns 64 bits of additional HW specific data for errors that require additional information. This callback function enables the hw_errinfo sysfs node in the Intel Security Manager class driver. Signed-off-by: Russ Weight

[PATCH v4 1/6] mfd: intel-m10-bmc: support for MAX10 BMC Secure Updates

2020-11-05 Thread Russ Weight
Add macros and definitions required by the MAX10 BMC Secure Update driver. Signed-off-by: Russ Weight Acked-by: Lee Jones --- v4: - No change v3: - Changed "MAX10 BMC Secure Engine driver" to "MAX10 BMC Secure Update driver" - Removed wrapper functions (m10bm

[PATCH v4 4/6] fpga: m10bmc-sec: expose max10 canceled keys in sysfs

2020-11-05 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to provide sysfs files to expose the canceled code signing key (CSK) bit vectors. These use the standard bitmap list format (e.g. 1,2-6,9). Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v4: - Moved sysfs files for displaying the code-signing-key

Re: [PATCH v4 2/6] fpga: m10bmc-sec: create max10 bmc secure update driver

2020-11-06 Thread Russ Weight
On 11/5/20 6:23 PM, Russ Weight wrote: > Create a platform driver that can be invoked as a sub > driver for the Intel MAX10 BMC in order to support > secure updates. This sub-driver will invoke an > instance of the FPGA Security Manager class driver > in order to expose sysfs

Re: [PATCH v4 4/6] fpga: m10bmc-sec: expose max10 canceled keys in sysfs

2020-11-06 Thread Russ Weight
On 11/5/20 6:23 PM, Russ Weight wrote: > Extend the MAX10 BMC Secure Update driver to provide sysfs > files to expose the canceled code signing key (CSK) bit > vectors. These use the standard bitmap list format > (e.g. 1,2-6,9). > > Signed-off-by: Russ Weight > Reviewed-by

Re: [PATCH v1 06/12] fpga: add max10 secure update functions

2020-09-21 Thread Russ Weight
ext submission. > > On 9/4/20 4:52 PM, Russ Weight wrote: >> Extend the MAX10 BMC Security Engine driver to include >> the functions that enable secure updates of BMC images, >> FPGA images, etc. >> >> Signed-off-by: Russ Weight >> Reviewed-by: Wu H

Re: [PATCH v1 01/12] fpga: fpga security manager class driver

2020-09-10 Thread Russ Weight
On 9/10/20 2:51 PM, Tom Rix wrote: > On 9/10/20 1:22 PM, Russ Weight wrote: >> >> >> On 9/5/20 12:09 PM, Tom Rix wrote: >> >> >> >>> >>> On 9/4/20 4:52 PM, Russ Weight wrote: >>> >>>>

Re: [PATCH v1 02/12] fpga: create intel max10 bmc security engine

2020-09-14 Thread Russ Weight
On 9/5/20 1:22 PM, Tom Rix wrote: > On 9/4/20 4:52 PM, Russ Weight wrote: >> Create a platform driver that can be invoked as a sub >> driver for the Intel MAX10 BMC in order to support >> secure updates. This sub-driver will invoke an >> instance of the Intel FPGA Se

Re: [PATCH v1 02/12] fpga: create intel max10 bmc security engine

2020-09-14 Thread Russ Weight
On 9/14/20 1:48 PM, Tom Rix wrote: > On 9/14/20 12:07 PM, Russ Weight wrote: >> On 9/5/20 1:22 PM, Tom Rix wrote: >>> On 9/4/20 4:52 PM, Russ Weight wrote: >>>> Create a platform driver that can be invoked as a sub >>>> driver for the Intel MAX10 B

Re: [PATCH v1 12/12] fpga: add max10 get_hw_errinfo callback func

2020-09-24 Thread Russ Weight
On 9/6/20 10:14 AM, Tom Rix wrote: > On 9/4/20 4:53 PM, Russ Weight wrote: >> Extend the MAX10 BMC Security Engine driver to include >> a function that returns 64 bits of additional HW specific >> data for errors that require additional information. >> This ca

[PATCH v2 1/1] fpga: dfl: afu: harden port enable logic

2020-09-17 Thread Russ Weight
Port enable is not complete until ACK = 0. Change __afu_port_enable() to guarantee that the enable process is complete by polling for ACK == 0. Signed-off-by: Russ Weight --- drivers/fpga/dfl-afu-error.c | 2 +- drivers/fpga/dfl-afu-main.c | 29 + drivers/fpga/dfl

[PATCH 1/1] fpga: dfl: afu: harden port enable logic

2020-09-17 Thread Russ Weight
Port enable is not complete until ACK = 0. Change __afu_port_enable() guarantee that the enable process is complete by polling for ACK == 0. Signed-off-by: Russ Weight --- drivers/fpga/dfl-afu-error.c | 2 +- drivers/fpga/dfl-afu-main.c | 29 + drivers/fpga/dfl

Re: [PATCH v1 07/12] fpga: expose sec-mgr update status

2020-09-22 Thread Russ Weight
On 9/6/20 9:16 AM, Tom Rix wrote: > On 9/4/20 4:53 PM, Russ Weight wrote: >> Extend the Intel Security Manager class driver to >> include an update/status sysfs node that can be polled >> and read to monitor the progress of an ongoing secure >> update. Sysfs

Re: [PATCH v1 08/12] fpga: expose sec-mgr update errors

2020-09-22 Thread Russ Weight
On 9/6/20 9:27 AM, Tom Rix wrote: > On 9/4/20 4:53 PM, Russ Weight wrote: >> Extend Intel Security Manager class driver to include >> an update/error sysfs node that can be read for error >> information when a secure update fails. >> >> Signed-off-by: Ru

Re: [PATCH v1 03/12] fpga: expose max10 flash update counts in sysfs

2020-09-16 Thread Russ Weight
On 9/5/20 1:39 PM, Tom Rix wrote: > On 9/4/20 4:52 PM, Russ Weight wrote: >> Extend the MAX10 BMC Security Engine driver to provide a >> handler to expose the flash update count for the FPGA user >> image. >> >> Signed-off-by: Russ Weight >> Reviewed-by

<    1   2   3