From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan O'Donoghue Date: Fri, 26 Jan 2018 02:09:10 +0000 Subject: [U-Boot] [PATCH] crypto/fsl: instantiate all rng state handles In-Reply-To: <20180125131117.21077-1-lukas.auer@aisec.fraunhofer.de> References: <20180125131117.21077-1-lukas.auer@aisec.fraunhofer.de> Message-ID: <534abb50-925f-0809-e048-07486bb474d3@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 25/01/18 13:11, Lukas Auer wrote: > Extend the instantiate_rng() function and the corresponding CAAM job > descriptor to instantiate all RNG state handles. This moves the RNG > instantiation code in line with the CAAM kernel driver. > > Previously, only the first state handle was instantiated. The second one > was instantiated by the CAAM kernel driver. This works if the kernel > runs in secure mode, but fails in non-secure mode since the kernel > driver uses DEC0 directly instead of over the job ring interface. > Instantiating all RNG state handles in u-boot removes the need for using > DEC0 in the kernel driver, making it possible to use the CAAM in > non-secure mode. > > Signed-off-by: Lukas Auer So Lukas this patch along with my series for the job-ring ownership means we can drop detection of TrustZone in the Linux CAAM driver. Tested-by: Bryan O'Donoghue