Commits
Steve Cornelius committed e0f7d41a2eb
MLKU-25-3 crypto: caam - add Secure Memory support This is a squash of the following i.MX BSP commits (rel_imx_4.19.35_1.1.0_rc2) 1. ae8175a3f1be ("MLK-9710-10 Add CCM defs for FIFO_STORE instruction") 2. 9512280d066b ("MLK-9769-11 Add SM register defs, and expanded driver-private storage.") 3. a9dc44de8150 ("MLK-9769-10 Add Blob command bitdefs.") 4. 8f6a17b41917 ("ENGR00289885 [iMX6Q] Add Secure Memory and SECVIO support.") 5. c7d4f9db1077 ("MLK-9710-11 Add internal key cover and external blob export/import to prototype SM-API") 6. 568e449edfca ("MLK-9710-12 Adapt sm_test as a black-key handling example") 7. f42f12d9cb19 ("MLK-9710-13 Correct size in BLOB_OVERHEAD definition") 8. 022fc2b33f57 ("MLK-9710-14 Un-pad cache sizes for blob export/import") 9. 8d3e8c3c4dc1 ("MLK-9710-15 Correct size of padded key buffers") 10. 997fb2ff88ec ("MLK-9710-5 Unregister Secure Memory platform device upon shutdown") 11. 5316249198ee ("MLK-10897-1 ARM: imx7d: Add CAAM support for i.mx7d") 12. 07566f42a4ec ("MLK-11103 Missing register in Secure memory configuration v1") 13. 3004636304e1 ("MLK-12302 caam: Secure Memory platform device creation crashes") 14. 0e6ed5a819f7 ("MLK-13779 crypto: caam - initialize kslock spinlock") 15. b1254b6b5f52 ("Add missing NULL checks in CAAM sm") 16. 61f57509bc9a ("MLK-17992: caam: sm: Fix compilation warnings") 17. 41cf3d4c580c ("MLK-15473-1: crypto: caam: Add CAAM driver support for iMX8 soc family") 18. bb8742481209 ("MLK-17253-1: crypto: caam: Fix computation of SM pages addresses") 19. 308796dfae3b ("MLK-17253-2: crypto: caam: Use correct memory function for Secure Memory") 20. ba2cb6b5fb10 ("MLK-17732-2: SM store: Support iMX8QX and iMX8QM") 21. de710d376af6 ("MLK-17674-1: sm_store remove CONFIG_OF") 22. cfcae647434e ("MLK-17674-2: CAAM SM : get base address from device tree") 23. f49ebbd5eefa ("MLK-17992: caam: sm: Fix compilation warnings") 24. 345ead4338b9 ("MLK-17841: crypto: caam: Correct bugs in Secure Memory") 25. c17811f3fffc ("MLK-18082: crypto: caam: sm: Fix encap/decap function to handle errors") 26. 41bcba1d4c9b ("MLK-18082: crypto: caam: sm: Fix descriptor running functions") 27. b7385ab94784 ("MLK-20204: drivers: crypto: caam: sm: Remove deadcode") 28. 1d749430cb63 ("MLK-20204: drivers: crypto: caam: sm: test: Dealloc keyslot properly") 29. 6a5c2d9d358f ("crypto: caam - lower SM test verbosity") 30. 1a6bc92c0c87 ("MLK-21617: crypto: caam - update SM test error handling") Signed-off-by: Dan Douglass <dan.douglass@nxp.com> Signed-off-by: Victoria Milhoan <vicki.milhoan@freescale.com> Signed-off-by: Steve Cornelius <steve.cornelius@nxp.com> Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com> Signed-off-by: Radu Solea <radu.solea@nxp.com> Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com> Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com> Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com> that have been reworked: 4. -make SM depend on JR -enable SM, SECVIO only on i.MX SoCs -fix resource leak - add off_node_put() where needed Split commit in three: 1 - SNVS/SECVIO driver 2 - Secure Memory driver 3 - DT changes 11. Clock handling dropped - logic already upstream. 17. Keep only Secure Memory related changes. Changes related to page 0 registers have been added previously. Other changes are dropped. 21. Always use first jr in ctrlpriv->jr[] array to access registers in page 0 (aliased in jr page), irrespective of SCU presence. Signed-off-by: Horia Geantă <horia.geanta@nxp.com>