From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCHv2 3/6] xen: generic xadd() for ticket locks Date: Fri, 17 Apr 2015 14:13:14 +0100 Message-ID: <553106EA.1020604@citrix.com> References: <1428675597-28465-1-git-send-email-david.vrabel@citrix.com> <1428675597-28465-4-git-send-email-david.vrabel@citrix.com> <552FF12C0200007800072DCA@mail.emea.novell.com> <1429273954.25195.298.camel@citrix.com> <5530FDCB.1040003@citrix.com> <1429276188.25195.310.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yj65A-00012C-53 for xen-devel@lists.xenproject.org; Fri, 17 Apr 2015 13:13:20 +0000 In-Reply-To: <1429276188.25195.310.camel@citrix.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: xen-devel@lists.xenproject.org, Tim Deegan , Keir Fraser , Jan Beulich , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On 17/04/15 14:09, Ian Campbell wrote: > On Fri, 2015-04-17 at 13:34 +0100, David Vrabel wrote: >> >> Can you use >> >> git://xenbits.xen.org/people/dvrabel/xen.git ticketlocks-v3 git://xenbits.xen.org/people/dvrabel/xen.git ticketlock-v3 > I tried that and it built and booted just fine on both arm32 and arm64. > > I eyeballed the assembly produced via the use of __sync_fetch_and_add > (for _spin_lock only) and it is exactly what I would have written in my > own versions. > > I was using gcc 4.8.3 in both cases. For arm64 I'm pretty sure we don't > want to consider anything earlier. > > For arm32 I have also tried gcc 4.6.3 (Debian Wheezy's compiler) and it > built and booted, and eyeballing shows the same asm. I think that's the > earliest we really need to worry about. > > IOW I'm not going to bother with custom versions of these functions on > ARM. If you wanted you could drop the #ifndef xadd from > asm-arm/system.h. > > Perhaps it would be useful to add some of the info from my tests > reported above, or a reference to this mail, to the commit log? > > in either case you can add: > > Acked-by: Ian Campbell Thanks, Ian! David