Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4531079ybz; Tue, 21 Apr 2020 02:15:47 -0700 (PDT) X-Google-Smtp-Source: APiQypIIy9FoHh7M2H6D9ar0ZHhxt5d1WHyp4fnHBlxbwSdfy1GQvrpY1VR8GtihheFIRu+4MQ42 X-Received: by 2002:a05:6402:d0a:: with SMTP id eb10mr780311edb.60.1587460547222; Tue, 21 Apr 2020 02:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587460547; cv=none; d=google.com; s=arc-20160816; b=iH4OQ5YpESooezwzuhCmLxfbj+2z3KEI7fRAF3PwpcSlibJhbA5mx6qDUtCgQ77Nt8 51LrJnvSOEHc5SOxF8JX+h6OVOAceDZQBcmfoB3YeTrTbNrGBbcwsiv3Gl5EtSDoCif7 4KisDQLtdFo7t8r5MbbwkvpvYTrjJ82Kzm4fi3Moa4Vq/Iy6jkPQVdOEIIKsPdLxDyZI agvivurfouxWS8dfcBbaeafByHigqEG2pmvjMUncXYgtx1iEr8HyUo+i5hXnzgMSECDn KtEmVVeXEpOtsbDngvOFjkxynasgYskrML+mOBcn2/syNKoODuoQmphcfZf5rkqEURs2 1QYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YO6F5ObedfU/G1cBVZlRZ9Tclj+oI0shB5VAVt4/Ej0=; b=NzevmlxpyZH7grVtYJr3d2Gm6PZSyeNcNrKs3qUKNiBqpX0SN8RRyypCwjk/aE17De a78J1XW7mnq/dUECt+WyIQ/tkszqDNUWDq6dEKigiU5s8Fi1MJ5iK2oA8GqfU/y8vRG9 VHmT9WzEExUEx/qzQM9GEPN6I22vYV5i2Can/4l2/4cmBzFKMKco8qWkI5iWbE7AyaHY 9bGIblGpyzgYDGzHqHTrtZCWuSB1JdXY1zAM6PrJygis0tU1nv4ROH1kpFqXNi7ct/mo R+T3f1ddWIeDgW5yJ/KkrsTCdo9eQY3EK80jJHNEMm6yTpY++IQ35/eS1qg/rMPNEfTZ OBbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=P1A59HSH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si1171155edr.550.2020.04.21.02.15.23; Tue, 21 Apr 2020 02:15:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=P1A59HSH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728453AbgDUJNf (ORCPT + 99 others); Tue, 21 Apr 2020 05:13:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726018AbgDUJNe (ORCPT ); Tue, 21 Apr 2020 05:13:34 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DE18C061A0F; Tue, 21 Apr 2020 02:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=YO6F5ObedfU/G1cBVZlRZ9Tclj+oI0shB5VAVt4/Ej0=; b=P1A59HSHX8OqJP5aEdGeiV/B2 v103CRxWtRZHmqa7NbuMTVDo44ZOmpRq6I05Ol6Qfmk/yPKSw46jyurTZX1KULRynoTJ7DDXfMahT ugzkH5msRllUA5/+9l7CtYY3E1Bi+tcQNSXhvvAU9cp1ya9Fqw8E+bJW/lc+8jbvfEnzcR+jDk9Tr h6eRjjHdbTlY7Ru4qvHMbf/Jx82P+r29op4ZbmdIDi1H9XLtzQlS7iweG7kPStFXjUaZfYafW9oJk q+JXPHTb/cQGKUlhwKX0wRzQ7Xz2naV1pjv9KhcBx58LwqJxxdeUBMFKJGiF5abHjK110/9F+T1s2 uasQ9fr8g==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:41518) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jQoxi-0000Ux-OB; Tue, 21 Apr 2020 10:13:03 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jQoxc-0006uR-F0; Tue, 21 Apr 2020 10:12:56 +0100 Date: Tue, 21 Apr 2020 10:12:56 +0100 From: Russell King - ARM Linux admin To: Al Viro , Will Deacon Cc: Linus Torvalds , Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Dave Airlie , Daniel Vetter , Andrew Morton , Kees Cook , Peter Anvin , Linux Kernel Mailing List , linuxppc-dev , Linux-MM , linux-arch , intel-gfx@lists.freedesktop.org Subject: Re: [PATCH v2 5/5] uaccess: Rename user_access_begin/end() to user_full_access_begin/end() Message-ID: <20200421091256.GA25745@shell.armlinux.org.uk> References: <36e43241c7f043a24b5069e78c6a7edd11043be5.1585898438.git.christophe.leroy@c-s.fr> <42da416106d5c1cf92bda1e058434fe240b35f44.1585898438.git.christophe.leroy@c-s.fr> <20200403205205.GK23230@ZenIV.linux.org.uk> <20200421024919.GA23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200421024919.GA23230@ZenIV.linux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2020 at 03:49:19AM +0100, Al Viro wrote: > The only source I'd been able to find speeks of >= 60 cycles > (and possibly much more) for non-pipelined coprocessor instructions; > the list of such does contain loads and stores to a bunch of registers. > However, the register in question (p15/c3) has only store mentioned there, > so loads might be cheap; no obvious reasons for those to be slow. > That's a question to arm folks, I'm afraid... rmk? I have no information on that; instruction timings are not defined at architecture level (architecture reference manual), nor do I find information in the CPU technical reference manual (which would be specific to the CPU). Instruction timings tend to be implementation dependent. I've always consulted Will Deacon when I've needed to know whether an instruction is expensive or not. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up