From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15845C54FCC for ; Tue, 21 Apr 2020 18:34:29 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id ABE122068F for ; Tue, 21 Apr 2020 18:34:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="EN4eMrfR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABE122068F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 097038E0005; Tue, 21 Apr 2020 14:34:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 04E8F8E0003; Tue, 21 Apr 2020 14:34:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA02A8E0005; Tue, 21 Apr 2020 14:34:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0005.hostedemail.com [216.40.44.5]) by kanga.kvack.org (Postfix) with ESMTP id D13488E0003 for ; Tue, 21 Apr 2020 14:34:27 -0400 (EDT) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 8C81F1EF3 for ; Tue, 21 Apr 2020 18:34:27 +0000 (UTC) X-FDA: 76732712574.08.wave27_9c33f5429263 X-HE-Tag: wave27_9c33f5429263 X-Filterd-Recvd-Size: 4777 Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by imf30.hostedemail.com (Postfix) with ESMTP for ; Tue, 21 Apr 2020 18:34:26 +0000 (UTC) Received: by mail-lf1-f66.google.com with SMTP id 131so11903446lfh.11 for ; Tue, 21 Apr 2020 11:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h2Sxsn5oS4nqpkBX5BqB24mfzH+Rga+VCB+qgnhYUWk=; b=EN4eMrfRCQ2BTajrHemVrZRGdfNv+VjF0Hxxcl6iPzUIc4bkpVZwbpHp6Y8qjqbOly NQiQcxT3IZhkG8k/a9SX63SzMRhr6smIcOvnSUCBWIYLh5jNRcmyHxwhZdGgJqJWyNtZ yrajiBGrLqcdHIip5S59MA6DWpMQ2o4gnwtCo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h2Sxsn5oS4nqpkBX5BqB24mfzH+Rga+VCB+qgnhYUWk=; b=sirGzRlaNYFkPjoLqXt5gmYSu727DIRUzcwr2CXt78WYssFZYDZgwzIUCLPs9YMAql tvXIeSXM1SsxdwFIejmcnCLUFICGZgWbETYAWMV+iCqv1SWSRMRa4aClWHy0gJqsayRT 5lQ2448E+yM9Mz8aTOUOwUB1UZvCtAAG24cvdMYciIM3+N8qNebYTisaiDIv9bZdwIWr 2vZizzNWLHhAks8/MYI5hoyHYbMkgdHPoPAVpZBcSaYqtvBWoDIbYBfeGKkuhFVUA01u ci84JH7eTempNxlXC4P1DjSqqDMW/VRId/qU73hfYfmCgfmJEgj9KeId4sRM3wH6Ns0D +hHQ== X-Gm-Message-State: AGi0PuYPBEPx/qLv0mqHDxTgwPQfwjR6AWZuzmkqR23a1z0a1qBKVMfR xjUKFT1YoWQPomm77TEecwL9BH7C+4c= X-Google-Smtp-Source: APiQypLH8oWwE5C/6dh/k43vMFrVSAYY0IId9z+Mrrt/WPUeClA8iEnNo6Lpu5Fy8c6G0Gtr3AAyjw== X-Received: by 2002:a05:6512:10c9:: with SMTP id k9mr14584973lfg.183.1587494064116; Tue, 21 Apr 2020 11:34:24 -0700 (PDT) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id i3sm2484957ljg.82.2020.04.21.11.34.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Apr 2020 11:34:22 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id z26so15039382ljz.11 for ; Tue, 21 Apr 2020 11:34:21 -0700 (PDT) X-Received: by 2002:a2e:8512:: with SMTP id j18mr9624239lji.201.1587494060836; Tue, 21 Apr 2020 11:34:20 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20200421024919.GA23230@ZenIV.linux.org.uk> From: Linus Torvalds Date: Tue, 21 Apr 2020 11:34:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 5/5] uaccess: Rename user_access_begin/end() to user_full_access_begin/end() To: Al Viro Cc: 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, Russell King Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Apr 20, 2020 at 7:49 PM Al Viro wrote: > > The only source I'd been able to find speaks 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? _If_ it turns out to be expensive, is there any reason we couldn't just cache the value in general? That's what x86 tends to do with expensive system registers. One example would be "msr_misc_features_shadow". But maybe that's something to worry about when/if it turns out to actually be a problem? Linus