From mboxrd@z Thu Jan 1 00:00:00 1970 From: t.figa@samsung.com (Tomasz Figa) Date: Tue, 24 Jun 2014 18:28:54 +0200 Subject: [PATCH v2] ARM: save/restore diagnostic register on Cortex-A9 suspend/resume In-Reply-To: <1403432119-1409-1-git-send-email-shawn.guo@freescale.com> References: <1403432119-1409-1-git-send-email-shawn.guo@freescale.com> Message-ID: <53A9A746.6080200@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Shawn, On 22.06.2014 12:15, Shawn Guo wrote: > The CP15 diagnostic register holds ARM errata bits on Cortex-A9, so it > needs to be saved/restored on suspend/resume. Otherwise, the > effectiveness of errata workaround gets lost together with diagnostic > register bit across suspend/resume cycle. > > The patch adds a couple of Cortex-A9 specific suspend and resume > functions to handle the diagnostic register across suspend/resume cycle. [snip] > +ENTRY(cpu_ca9mp_do_resume) > + ldmia r0!, {r4} > + mcr p15, 0, r4, c15, c0, 1 @ Diagnostic register What about platforms running in non-secure mode in which the register is read-only? Best regards, Tomasz