u-boot/drivers/fpga
Neal Frager 749cbcfeac fpga: zynqmppl: fix fpga loads command for unencrypted use case
When using the fpga loads command, the driver is passing the AES encryption
key address is all cases.  However, for the authenticated, but not encrypted
use case, there is no AES encryption key, and this value is 0.

When AES encryption is not used on the fpga bitstream, the pmufw assumes that
the AES key address is a bitstream size value like what is used by the
unsecure fpga load command.

To fix the problem, this patch checks to see if the AES key address is zero.
If the AES key address is zero, it means that AES is not being used on the
bitstream and the bitstream size should be passed instead.  Thus, matching
the fpga load functionality.

Signed-off-by: Neal Frager <neal.frager@amd.com>
Acked-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Link: https://lore.kernel.org/r/20230214131959.40298-1-neal.frager@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
2023-03-09 13:15:00 +01:00
..
ACEX1K.c global: Migrate CONFIG_FPGA_DELAY to CFG 2022-12-23 10:09:42 -05:00
altera.c fpga: altera: Use logging feature instead of FPGA_DEBUG 2022-10-10 12:28:08 +02:00
cyclon2.c global: Migrate CONFIG_FPGA_DELAY to CFG 2022-12-23 10:09:42 -05:00
fpga-uclass.c dm: fpga: Introduce new uclass 2022-10-05 08:43:53 +02:00
fpga.c fpga: Migrate CONFIG_MAX_FPGA_DEVICES to Kconfig 2023-01-20 12:27:06 -05:00
intel_sdm_mb.c cyclic: Use schedule() instead of WATCHDOG_RESET() 2022-09-18 10:26:33 +02:00
ivm_core.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Kconfig arm64: zynqmp: Add missing ZYNQMP_FIRMWARE dependencies 2023-03-09 13:14:59 +01:00
lattice.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Makefile dm: fpga: Introduce new uclass 2022-10-05 08:43:53 +02:00
sandbox.c dm: fpga: Introduce new uclass 2022-10-05 08:43:53 +02:00
socfpga.c WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
socfpga_arria10.c misc: fs_loader: Add function to get the chosen loader 2023-01-12 14:06:15 -05:00
socfpga_gen5.c arm: socfpga: Convert system manager from struct to defines 2020-01-07 14:38:33 +01:00
spartan2.c global: Migrate CONFIG_FPGA_DELAY to CFG 2022-12-23 10:09:42 -05:00
spartan3.c global: Migrate CONFIG_FPGA_DELAY to CFG 2022-12-23 10:09:42 -05:00
stratixII.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
stratixv.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
versalpl.c fpga: xilinx: pass compatible flags to load() callback 2022-07-26 09:34:21 +02:00
virtex2.c global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
xilinx.c fpga: xilinx: pass compatible flags to load() callback 2022-07-26 09:34:21 +02:00
zynqmppl.c fpga: zynqmppl: fix fpga loads command for unencrypted use case 2023-03-09 13:15:00 +01:00
zynqpl.c global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00