From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 29 Nov 2016 13:02:39 -0500 Subject: [U-Boot] armv7: psci: cpu_off: flush D-Cache before disable D-Cache In-Reply-To: <1479814869-24180-1-git-send-email-peng.fan@nxp.com> References: <1479814869-24180-1-git-send-email-peng.fan@nxp.com> Message-ID: <20161129180239.GH2546@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Nov 22, 2016 at 07:41:09PM +0800, Peng Fan wrote: > Before disable cache, need to first flush cache. > > There maybe dirty data in D-Cache before disable D-Cache. > After disable D-Cache, the first store instructions in > psci_v7_flush_dcache_all will directly store registers > {r4-r5, r7, r9-r11, lr} to memory. > If there is dirty data before disable D-Cache, > psci_v7_flush_dcache_all will flush data to memory, > and may overwrite the memory that hold the registers > {r4-r5, r7, r9-r11, lr}. > > So before disable cache, first flush D-Cache. > > Signed-off-by: Peng Fan > Cc: Albert Aribaud > Cc: Chen-Yu Tsai > Cc: Hans de Goede > Cc: Hongbo Zhang > Cc: York Sun > Cc: Marc Zyngier > Cc: Tom Rini 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: Digital signature URL: