crypto/fsl: add RNG support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest6 patches 0 repliesNew
- v3 posting 3/30 of 6 patches 0 repliesSuperseded
- v3 posting 2/30 of 6 patches 0 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 posting 1/3 | 6 patches | 0 replies | Superseded | |
| v2 | 6 patches | 0 replies | Superseded | |
| v1 | 4 patches | 0 replies | Superseded |
Changes in v4 from the cover letter
- use private data instead of platform data in RNG driver, thanks Heinrich
- align end address of any invalidate/flush_dcache_range(), thanks Heinrich
- because we do the alignment ourself, use memalign() again (instead of malloc_cache_aligned())
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | crypto/fsl: make SEC%u status line consistentdrivers/ | +7 | 0 replies | |
| 2/6 | crypto/fsl: export caam_get_era()drivers/ include/ | +11 | 0 replies | |
| 3/6 | crypto/fsl: support newer SEC modulesdrivers/ include/ | +54 | 0 replies | |
| 4/6 | crypto/fsl: don't regenerate secure keysdrivers/ drivers/ drivers/ +1 more | +9 | 0 replies | |
| 5/6 | crypto/fsl: instantiate the RNG with prediciton resistancedrivers/ drivers/ drivers/ +2 more | +79 | 0 replies | |
| 6/6 | crypto/fsl: add RNG supportdrivers/ drivers/ drivers/ +3 more | +125 | 1 reply |
Reviews trailers per patch
4 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Horia Geant? | Heinrich Schuchardt |
|---|---|---|
| 1/6 | R-b | |
| 2/6 | R-b | |
| 3/6 | R-b | |
| 4/6 | R-b | |
| 5/6 | ||
| 6/6 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/6] crypto/fsl: add RNG support
First, improve the compatibility on newer Era CAAMs. These introduced new version registers. Secondly, add RNG support for the CAAM. This way we get random number generator support for EFI for free and KASLR will work with ARM64 kernels booted with bootefi.
Changes since v3:
- use private data instead of platform data in RNG driver, thanks Heinrich
- align end address of any invalidate/flush_dcache_range(), thanks Heinrich
- because we do the alignment ourself, use memalign() again (instead of malloc_cache_aligned())
Changes since v2:
- fix descriptor size of the deinstantiate descriptor
- use malloc_cache_aligned() instead of memalign(ARCH_DMA_MINALIGN..)
- don't check the RDSTA_PR() bit
- fix memcpy() length
- flush the dcache where the rng job description resides
Changes since v1:
- instantiate RNG with prediction resistance
- add annotation for caam_get_era()
- fix all prints to match u-boots status lines
- remove superfluous #ifdef CONFIG_DM_RNG
- changed kconfig help text
Michael Walle (6):
crypto/fsl: make SEC%u status line consistent crypto/fsl: export caam_get_era()
crypto/fsl: support newer SEC modules crypto/fsl: don't regenerate secure keys crypto/fsl: instantiate the RNG with prediciton resistance crypto/fsl: add RNG support
drivers/crypto/fsl/Kconfig | 14 +++++ drivers/crypto/fsl/Makefile | 1 + drivers/crypto/fsl/desc.h | 2 + drivers/crypto/fsl/jobdesc.c | 26 +++++++- drivers/crypto/fsl/jobdesc.h | 7 ++- drivers/crypto/fsl/jr.c | 111 +++++++++++++++++++++++++++++------ drivers/crypto/fsl/rng.c | 88 +++++++++++++++++++++++++++ drivers/crypto/fsl/sec.c | 10 +++- include/fsl_sec.h | 61 +++++++++++++++---- 9 files changed, 285 insertions(+), 35 deletions(-) create mode 100644 drivers/crypto/fsl/rng.c
Signature · 1 line
2.20.1