From: Tom Rini Date: Mon, 7 May 2018 20:44:37 -0400 Subject: [U-Boot] [U-Boot, v2, 1/3] arm: psci: save context id for cpu_on PSCI command In-Reply-To: <1523866404-10884-1-git-send-email-patrick.delaunay@st.com> References: <1523866404-10884-1-git-send-email-patrick.delaunay@st.com> Message-ID: <20180508004437.GC12235@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 16, 2018 at 10:13:22AM +0200, Patrick Delaunay wrote: > Save and use the 3rd parameter of PSCI CPU_ON request: context_id. > > The context_id parameter is only meaningful to the caller. > U-Boot PSCI preserves a copy of the value passed in this parameter. > Following wakeup from a powerdown state, U-BOOT PSCI places > this value in R0 when it first enters the OS. > > NB: this context id is not (yet?) used by Linux but it is mandatory > to be PSCI compliant. > > update armv7 psci functions: > - psci_save_target_pc(): keep for backward compatibility with > current platform (only save PC and force context id to 0) > => should be removed when all platform migrate to the new API > > - psci_save(): new API to use by ARMv7 platform with PSCI, > save pc (= entry_point_address) and context_id > > Signed-off-by: Patrick Delaunay > Reviewed-by: Stephen Warren > Reviewed-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: