From: Ian Campbell Subject: [PATCH 3/4] xen: arm: add barrier before sev in smp_spin_table_cpu_up Date: Mon, 17 Mar 2014 13:52:31 +0000 Message-ID: <1395064352-2128-3-git-send-email-ian.campbell@citrix.com> References: <1395064315.18221.26.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1395064315.18221.26.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: julien.grall@linaro.org, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org This ensures that the writeq to the release address has occurred. In reality there is a dsb() in the iounmap() (in the eventual write_pte()) but make it explicit. The ARMv8 ARM recommends that sev() is usually accompanied by a dsb(), the only other uses are in the v7 spinlock code which includes a dsb() already. Signed-off-by: Ian Campbell --- v2: typos in the commit message --- xen/arch/arm/arm64/smpboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/arm/arm64/smpboot.c b/xen/arch/arm/arm64/smpboot.c index 9146476..8e2ecf2 100644 --- a/xen/arch/arm/arm64/smpboot.c +++ b/xen/arch/arm/arm64/smpboot.c @@ -36,6 +36,7 @@ static int __init smp_spin_table_cpu_up(int cpu) iounmap(release); + dsb(); /* Ensure that the write to cpu_release_addr has occurred. */ sev(); return cpu_up_send_sgi(cpu); -- 1.7.10.4