public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland@arm.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Christian Brauner <brauner@kernel.org>,
	Al Viro <viro@zeniv.linux.org.uk>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	the arch/x86 maintainers <x86@kernel.org>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: FYI: path walking optimizations pending for 6.11
Date: Tue, 9 Jul 2024 11:04:00 +0100	[thread overview]
Message-ID: <Zo0LECcBUElkHPGs@J2N7QTR9R3> (raw)
In-Reply-To: <CAHk-=whHvMbfL2ov1MRbT9QfebO2d6-xXi1ynznCCi-k_m6Q0w@mail.gmail.com>

Hi Linus,

On Wed, Jun 19, 2024 at 01:25:02PM -0700, Linus Torvalds wrote:
> I've pushed out four branches based on 6.10-rc4, because I think it's
> pretty ready. But I'll rebase them if people have commentary that
> needs addressing, so don't treat them as some kind of stable base yet.
> My plan is to merge them during the next merge window unless somebody
> screams.
> 
> The branches are:
> 
> arm64-uaccess:
>     arm64: access_ok() optimization
>     arm64: start using 'asm goto' for put_user()
>     arm64: start using 'asm goto' for get_user() when available

> runtime-constants:
>     arm64: add 'runtime constant' support
>     runtime constants: add x86 architecture support
>     runtime constants: add default dummy infrastructure
>     vfs: dcache: move hashlen_hash() from callers into d_hash()

Apologies, the arm64 branches/patches have been on my TODO list for
review/test/benchmark for the last couple of weeks, but I haven't had
both the time and machine availability to do so.

Looking at the arm64 runtime constants patch, I see there's a redundant
store in __runtime_fixup_16(), which I think is just a leftover from
applying the last roudn or feedback:

+/* 16-bit immediate for wide move (movz and movk) in bits 5..20 */
+static inline void __runtime_fixup_16(__le32 *p, unsigned int val)
+{
+	u32 insn = le32_to_cpu(*p);
+	insn &= 0xffe0001f;
+	insn |= (val & 0xffff) << 5;
+	*p = insn;
+	*p = cpu_to_le32(insn);
+}

... i.e. the first assignment to '*p' should go; the compiler should be
smart enough to elide it entirely, but it shouldn't be there.

For the sake of review, would you be happy to post the uaccess and
runtime-constants patches to the list again? I think there might be some
remaining issues with (real) PAN and we might need to do a bit more
preparatory work there.

Mark.


  parent reply	other threads:[~2024-07-09 10:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-19 20:25 FYI: path walking optimizations pending for 6.11 Linus Torvalds
2024-06-19 20:45 ` Matthew Wilcox
2024-06-19 22:08   ` Linus Torvalds
2024-06-20 18:53     ` Kent Overstreet
2024-06-21 20:04     ` Matthew Wilcox
2024-06-21 20:53       ` Linus Torvalds
2024-06-20  7:53 ` Arnd Bergmann
2024-06-20 17:25   ` Linus Torvalds
2024-07-09 10:04 ` Mark Rutland [this message]
2024-07-09 14:28   ` Linus Torvalds
2024-07-09 16:24     ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zo0LECcBUElkHPGs@J2N7QTR9R3 \
    --to=mark.rutland@arm.com \
    --cc=brauner@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox