]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: stratix10-svc: add FCS polling command
authorAng Tien Sung <tien.sung.ang@intel.com>
Mon, 11 Jul 2022 22:31:36 +0000 (17:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jul 2022 14:55:09 +0000 (16:55 +0200)
commit091685974394d13946f1b660aaf454c76c1c2272
tree46a61b4489980cbad470e66bf2557f237c9376bf
parenta54818c28126df5bae2c2178eef9c36024502ea0
firmware: stratix10-svc: add FCS polling command

Introduce a new SMC command INTEL_SIP_SMC_FUNCID_SERVICE_COMPLETED
that polls if a previous asynchronous command was completed. This
SMC command is used by the new FPGA Crypto Service (FCS).
A basic example is that the FCS sends an AES data encryption
call to the secure device manager(SDM) and waits for the completion
of the operation by continuously polling the results with the new
command.

Signed-off-by: Ang Tien Sung <tien.sung.ang@intel.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lore.kernel.org/r/20220711223140.2307945-2-dinguyen@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/stratix10-svc.c
include/linux/firmware/intel/stratix10-smc.h
include/linux/firmware/intel/stratix10-svc-client.h