Skip to content

imx: deal with the RNG self test of the i.MX6 boot ROM

Heiko Schocher u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Dropped Gaurav Jain <[email protected]> from Cc. The address bounced on v1 with "550 5.4.1 Recipient address rejected: Access denied". His Signed-off-by stays, it records where the code comes from.
- Disabled the option in imx6dl_mamoj_defconfig. Enabling it by default grew that board's SPL past its size limit, 241 bytes over in CI. Enabling LTO is no option, as it is already enabled.
- Added the MX6DL_MAMOJ board maintainers to Cc.
Simone CIANNI <[email protected]> is left out, that address bounces the same way with "550 5.4.1 Recipient address rejected: Access denied".

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: fsl: run the CAAM RNG self test on affected i.MX6 chipsarch/arm/include/asm/arch-imx/cpu.h configs/imx6dl_mamoj_defconfig drivers/crypto/fsl/Kconfig +4 more+187 -00 replies
2/2imx: hab: name the event left behind by the boot ROM RNG self testarch/arm/mach-imx/hab.c+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] imx: deal with the RNG self test of the i.MX6 boot ROM

The boot ROM of a few i.MX6 revisions runs its RNG self test incorrectly, which leaves a HAB warning behind on every boot and says nothing about the state of the RNG.

The first patch runs the test correctly, before anything else uses the RNG. The second one makes hab_status name the leftover event, so that the warning stops sending people looking for a fault in their own image.

Azure build is (now really) fine:
https://dev.azure.com/hs0298/hs/_build/results?buildId=215&view=results

Changes in v2:
- Dropped Gaurav Jain <[email protected]> from Cc. The address bounced on v1 with "550 5.4.1 Recipient address rejected: Access denied". His Signed-off-by stays, it records where the code comes from.
- Disabled the option in imx6dl_mamoj_defconfig. Enabling it by default grew that board's SPL past its size limit, 241 bytes over in CI. Enabling LTO is no option, as it is already enabled.
- Added the MX6DL_MAMOJ board maintainers to Cc.
Simone CIANNI <[email protected]> is left out, that address bounces the same way with "550 5.4.1 Recipient address rejected: Access denied".

Heiko Schocher (2):
crypto: fsl: run the CAAM RNG self test on affected i.MX6 chips
imx: hab: name the event left behind by the boot ROM RNG self test

 arch/arm/include/asm/arch-imx/cpu.h |   2 +
 arch/arm/mach-imx/hab.c             |  16 +++
 configs/imx6dl_mamoj_defconfig      |   1 +
 drivers/crypto/fsl/Kconfig          |  22 ++++
 drivers/crypto/fsl/Makefile         |   1 +
 drivers/crypto/fsl/jr.c             |   3 +
 drivers/crypto/fsl/jr.h             |   1 +
 drivers/crypto/fsl/rng_self_test.c  | 157 ++++++++++++++++++++++++++++
 8 files changed, 203 insertions(+)
 create mode 100644 drivers/crypto/fsl/rng_self_test.c

---
base-commit: 75df64103873fac09642860cedadaffb8cf6b2c7
branch: hab-rng-v2

Signature · 1 line
2.55.0