-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: ele: rng: get random number from ELE
TEE_GenerateRandom() supported by ELE get random command on imx93 & imx91. Issues in the ELE FW have been found when both, secure and non-secure worlds are communicating with ELE. To prevent any issue, rely on RNG software in OPTEE. The compilation of hw_get_random_bytes() is conditioned by CFG_WITH_SOFTWARE_PRNG. Set CFG_WITH_SOFTWARE_PRNG=y by default. With CFG_WITH_SOFTWARE_PRNG enabled in OP-TEE, ELE will not be used in OP-TEE at runtime and Linux can access the ELE without conflicts. Signed-off-by: Clement Faure <[email protected]> Signed-off-by: Olivier Masse <[email protected]> Signed-off-by: Sahil Malhotra <[email protected]>
- Loading branch information
Showing
2 changed files
with
71 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ifeq ($(CFG_IMX_ELE),y) | ||
|
||
# Issues in the ELE FW prevent OPTEE and Kernel from using | ||
# the RNG concurrently at runtime. To prevent any issue, | ||
# use the software RNG instead in OPTEE. | ||
# But with Kernel ELE driver disabled, Runtime ELE RNG | ||
# generation can be done. | ||
CFG_WITH_SOFTWARE_PRNG ?= y | ||
endif # CFG_IMX_ELE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters