Revert "drivers/crypto/fsl: assign job-rings to
PATCH 1/1 Revert "drivers/crypto/fsl: assign job-rings to
Quoted 21 lines
Commit
22191ac35344("drivers/crypto/fsl: assign job-rings to
non-TrustZone") breaks HABv4 encrypted boot support in the
following i.MX devices:
- i.MX6UL
- i.MX7S
- i.MX7D
- i.MX7ULP
For preparing a HABv4 encrypted boot image it's necessary to encapsulate the generated DEK in a blob. In devices listed above the blob generation function takes into consideration the Job Ring TrustZone ownership configuration (JROWN_NS) and can be only decapsulated by the same configuration. The ROM code expects DEK blobs encapsulated by the Secure World environments which commonly haveJROWN_NS= 0.
As U-Boot is running in Secure World we must haveJROWN_NS= 0 so the blobs generated bydek_blobtool can be decapsulated by the ROM code.
Job-rings assignment is now handled in OP-TEE OS, this commit can be safely reverted.
https://github.com/OP-TEE/optee_os/pull/2986
This reverts commit22191ac353445ad8fafc5a78aefcd94e78963041.
Quoted 3 lines
Signed-off-by Breno Lima <[email protected]>Reviewed-by Fabio Estevam <[email protected]>Acked-by Bryan O'Donoghue <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================