Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@arm.com>
To: Karl Mehltretter <kmehltretter@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org,
	Russell King <linux@armlinux.org.uk>,
	Will Deacon <will@kernel.org>
Subject: Re: [PATCH] arm: asid: Do not replace active_asids if already 0
Date: Tue, 4 Aug 2026 12:17:28 +0100	[thread overview]
Message-ID: <anHKSN6bXkL37maU@arm.com> (raw)
In-Reply-To: <amSFZixpR60Mrg7B@gmail.com>

On Sat, Jul 25, 2026 at 12:12:16PM +0200, Karl Mehltretter wrote:
> On Thu, Jan 04, 2018 at 06:04:05PM +0100, Catalin Marinas wrote:
> > This patch changes the xchg to cmpxchg so that the active_asids is only
> > updated if non-zero to avoid a race with an ASID roll-over on a
> > different CPU.
> > 
> > Cc: Russell King <linux@armlinux.org.uk>
> > Cc: Will Deacon <will.deacon@arm.com>
> > Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> > ---
> > 
> > This is similar to the arm64 patch [1], with the difference that non-relaxed
> > (cmp)xchg is used as per the existing code.
> > 
> > [1] http://lkml.kernel.org/r/20180104111721.33834-1-catalin.marinas at arm.com
> 
> While the arm64 patch was reviewed and merged, this patch never got any reply.
> It needs a small rebase, but the change itself still applies today.

Oh, it's been a while. Not sure whether I missed cc'ing Russell at the
time or the archive stripped the recipients (I no longer have the actual
email sent).

> Would you like to resend it ? 

If you have the setup to test, please do check and resend it to the
list. After that you can send it to Russell's patch system:

  git send-email --add-header="KernelVersion: $(git describe --abbrev=0)" --to="patches@armlinux.org.uk"

The arm64 commit was a8ffaaa060b8 ("arm64: asid: Do not replace
active_asids if already 0").

Thanks.

-- 
Catalin


      reply	other threads:[~2026-08-04 11:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-04 18:04 [PATCH] arm: asid: Do not replace active_asids if already 0 Catalin Marinas
2026-07-25 10:12 ` Karl Mehltretter
2026-08-04 11:17   ` Catalin Marinas [this message]

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=anHKSN6bXkL37maU@arm.com \
    --to=catalin.marinas@arm.com \
    --cc=kmehltretter@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux@armlinux.org.uk \
    --cc=will@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