From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Junghans Date: Tue, 23 Jul 2019 15:29:47 +0200 Subject: [U-Boot] [PATCH v1] colibri_imx7: boot kernel in secure mode In-Reply-To: References: <20190703135028.19271-1-igor.opaniuk@gmail.com> <17581901.uQAkiBOlJB@crypto> Message-ID: <1835430.kAbxSAgpiI@crypto> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Igor, thanks for your comments! Is there any solution, patch or workaround I can try to power on the 2nd CPU core in secure mode with mainline kernel? Thanks and best regards Tobias > I'm afraid you're right. > Just after a bit of time researching and discussing with Stefan, seems > that we need to introduce two different wrappers for booting the > mainline kernel and downstream NXP kernel. > > * NXP kernel has legacy code to enable all cores, which works only when > running in secure mode. > * Mainline kernel, as you said before, does use PSCI for this, which > is provided by U-boot (which adds proper psci nodes to the linux > dtb on-fly before transferring control to the linux kernel entry point). > When we try to load it in secure mode, it continues running on the same > Secure PL1, and communication using SMC calling convention doesn't make > sense at this case.