From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH 3/4] xen: arm: add barrier before sev in smp_spin_table_cpu_up Date: Mon, 17 Mar 2014 14:43:42 +0000 Message-ID: <53270A1E.6060906@linaro.org> References: <1395064315.18221.26.camel@kazak.uk.xensource.com> <1395064352-2128-3-git-send-email-ian.campbell@citrix.com> <53270436.6010605@linaro.org> <1395067195.18221.29.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: <1395067195.18221.29.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: Ian Campbell Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 03/17/2014 02:39 PM, Ian Campbell wrote: >>> 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. >> >> Would it be better to add dsb in the sev() macro? > > ARM32 has a dsb_sev macro, maybe we should do the same for ARM64. Do we really need to rename the macro? From what I understand, most of the time sev => dsb before. I think we can hide it in sev() macro. Regards, -- Julien Grall