Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6531137ybl; Wed, 15 Jan 2020 06:14:18 -0800 (PST) X-Google-Smtp-Source: APXvYqy4hhYKNqREj28FNfSDP2+A9hOHKYBWtu5h5w743HCW4TfoqybKx2qgytu52mtA9aTmBW68 X-Received: by 2002:aca:4c07:: with SMTP id z7mr21495744oia.74.1579097658186; Wed, 15 Jan 2020 06:14:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579097658; cv=none; d=google.com; s=arc-20160816; b=dVO89DSU3gXniMhcqAB79uXqg26O9vCEu878y+gIt3TnNZ36RS+LZQJtQSP7zZ+oOG 8soLx9odGtX1tjsjIyB+7/o/gt7lcyCcg/Sk3MuN2/D3yuvz31OS3qf7lRyM7BnXXaxK plPtRENc5jlQ8n4KcWC+s8BRV9TJRZi533G9QP/Hem1O9ySwh3aTNJVcOoKibgDA8yy9 s/GHDKDNFd0ONX5wHQhfyNgyklOughjb4OiufPIPSR7zr6I6HCcsJIUi79ZdpJAQwbeW ndImyQQh6J78WpjDQxxmebRqjSoeHaEFGf55aPW5x9TjA5Io0hR/QS//rSrHqfq0x2z5 gizA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jxEtPFHOYc5HN4EfSbPc62802RGp8j4kcR3lyFFk/aw=; b=EJekQ1c4xu6hmdG38/RZCuCVhiG0AyOgJZhNC+7AxZ925gQKnD00lQgDBbcyy3s25M K8v5EHRcJT6JN6FZ5RgMfLJeHEdpumZccPUzbovdXPddqTRfNWndMb0PLAEn45wzszB8 KV+Ok46HCi6B/TKLh5iGjGQXKWpeUO20n6G8lVhV0lqTEnPXrucya0JAYyvRRXLlMZMv 1X0VojdOmRPDjUbXYdeema+dtrfwYVFrhreTujK+Yx+Ax7jwEzJrBNKt0cDHlwIiFIG9 DO8WvgxScWriO3JhnVTj2iXwZbdQ1oiL3xrocatPq7TmmxhjL9vs1qJ54CVEyifm7juN AOwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24si8761276oic.260.2020.01.15.06.14.05; Wed, 15 Jan 2020 06:14:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729211AbgAOOMz (ORCPT + 99 others); Wed, 15 Jan 2020 09:12:55 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:57496 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbgAOOMz (ORCPT ); Wed, 15 Jan 2020 09:12:55 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1irjPE-008p64-U6; Wed, 15 Jan 2020 14:12:25 +0000 Date: Wed, 15 Jan 2020 14:12:24 +0000 From: Al Viro To: Arnd Bergmann Cc: Linus Torvalds , Vineet Gupta , Khalid Aziz , Andrey Konovalov , Andrew Morton , Peter Zijlstra , Christian Brauner , Kees Cook , Ingo Molnar , Aleksa Sarai , "open list:SYNOPSYS ARC ARCHITECTURE" , Linux Kernel Mailing List , linux-arch Subject: Re: [RFC 1/4] asm-generic/uaccess: don't define inline functions if noinline lib/* in use Message-ID: <20200115141224.GH8904@ZenIV.linux.org.uk> References: <20200114200846.29434-1-vgupta@synopsys.com> <20200114200846.29434-2-vgupta@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 15, 2020 at 10:08:31AM +0100, Arnd Bergmann wrote: > > I would suggest that anybody who uses asm-generic/uaccess.h needs to > > simply use the generic library version. > > Or possibly just everybody altogether: the remaining architectures that > have a custom implementation don't seem to be doing any better either. No go for s390. There you really want to access userland memory in larger chunks - it's oriented for block transfers. IIRC, the insn they are using has a costly setup phase, independent of the amount to copy, followed by reasonably fast transfer more or less linear by the size.