Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752139AbdGFPpP (ORCPT ); Thu, 6 Jul 2017 11:45:15 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39532 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751989AbdGFPpN (ORCPT ); Thu, 6 Jul 2017 11:45:13 -0400 Date: Thu, 6 Jul 2017 16:45:13 +0100 From: Will Deacon To: Christoph Hellwig Cc: Palmer Dabbelt , peterz@infradead.org, mingo@redhat.com, mcgrof@kernel.org, viro@zeniv.linux.org.uk, sfr@canb.auug.org.au, nicolas.dichtel@6wind.com, rmk+kernel@armlinux.org.uk, msalter@redhat.com, tklauser@distanz.ch, james.hogan@imgtec.com, paul.gortmaker@windriver.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, albert@sifive.com, patches@groups.riscv.org, mathieu.desnoyers@efficios.com Subject: Re: [PATCH 8/9] RISC-V: User-facing API Message-ID: <20170706154512.GD15574@arm.com> References: <20170704195102.3974-1-palmer@dabbelt.com> <20170704195102.3974-9-palmer@dabbelt.com> <20170706020141.GA1965@infradead.org> <20170706085503.GA15053@arm.com> <20170706153427.GA30746@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170706153427.GA30746@infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 634 Lines: 14 On Thu, Jul 06, 2017 at 08:34:27AM -0700, Christoph Hellwig wrote: > On Thu, Jul 06, 2017 at 09:55:03AM +0100, Will Deacon wrote: > > Agreed on the indirection; it feels like this is something that should be in > > the vDSO, which could use the cmpxchg instruction if it's available, or > > otherwise just uses plain loads and stores. > > Even that seems like a lot of indirection for something that is in > the critical fast path for synchronization. I really can't understand > how a new ISA / ABI could even come up with an idea as stupid as making > essential synchronization primitives optional. No disagreement there! Will