Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755935AbdGKNzp (ORCPT ); Tue, 11 Jul 2017 09:55:45 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:36611 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755513AbdGKNzm (ORCPT ); Tue, 11 Jul 2017 09:55:42 -0400 Date: Tue, 11 Jul 2017 06:55:28 -0700 From: Christoph Hellwig To: Will Deacon Cc: Palmer Dabbelt , hch@infradead.org, peterz@infradead.org, mingo@redhat.com, sfr@canb.auug.org.au, nicolas.dichtel@6wind.com, tklauser@distanz.ch, james.hogan@imgtec.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, mathieu.desnoyers@efficios.com Subject: Re: [PATCH 8/9] RISC-V: User-facing API Message-ID: <20170711135528.GA11417@infradead.org> References: <20170706154512.GD15574@arm.com> <20170711132215.GD13977@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170711132215.GD13977@arm.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 665 Lines: 13 On Tue, Jul 11, 2017 at 02:22:15PM +0100, Will Deacon wrote: > The problem is that by supporting these hypothetical designs that can't do > atomics, you hurt sensible designs that *can* do the atomics because you > force them to take an additional indirection that could otherwise be > avoided. Agreed. But the new patchset seems to remove it already, so I guess we're fine on the kernel side. Now we just need to make sure the glibc API doesn't use any indirections. Note that it might make sense to emit these for very low end nommu designs. Maybe even running Linux, but in that case they'll just need a special non-standard ABI for very limited use cases.