public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Martin <Dave.Martin@arm.com>
To: Mark Brown <broonie@kernel.org>
Cc: Catalin Marinas <Catalin.Marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH] arm64/signal: Don't assume that TIF_SVE means we saved SVE state
Date: Tue, 23 Jan 2024 15:15:27 +0000	[thread overview]
Message-ID: <Za/YD/0a5Mn4IOAk@e133380.arm.com> (raw)
In-Reply-To: <Zaq1y9XpmzTsXDp8@finisterre.sirena.org.uk>

On Fri, Jan 19, 2024 at 05:47:55PM +0000, Mark Brown wrote:
> On Fri, Jan 19, 2024 at 04:31:13PM +0000, Dave Martin wrote:
> > On Fri, Jan 19, 2024 at 12:29:13PM +0000, Mark Brown wrote:
> 
> > > When we are in a syscall we will only save the FPSIMD subset even though
> > > the task still has access to the full register set, and on context switch
> 
> > (Pedantic nit: "A even if B" (= "A applies even in that subset of cases
> > where B"), instead of "A even though B" (= "A applies notwithstanding
> > that it is always the case that B") (?)  If the SVE trapping were
> > ripped out altogether, it would be a different and rather simpler
> > story...)
> 
> I really can't follow what you're trying to say here.  I'm not sure I
> where the bit about "always" comes from here?

The sentence seemed to me to be lacking some context, but I still
haven't fully familiarised myself with the changes to the code...

If it's what you intended to write and nobody else is confused, it's
probably good.


> > If the historical meanings of TIF_SVE have been split up (which seems a
> > good idea), does that resolve all of the "bare"
> > test_thread_flag(TIF_SVE) that were still there?
> 
> There's a couple more, but this is all of them in the signal handling
> code - I should have one or two more patches.  Most of the usage is
> actually checking the trapping and therefore fine.

I see, I guess this area needs keeping an eye on generally, but if there
are no more cases considered urgent then I guess that's fine for now
(modulo other patches in flight).

Cheers
---Dave

  reply	other threads:[~2024-01-23 15:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-19 12:29 [PATCH] arm64/signal: Don't assume that TIF_SVE means we saved SVE state Mark Brown
2024-01-19 16:31 ` Dave Martin
2024-01-19 17:47   ` Mark Brown
2024-01-23 15:15     ` Dave Martin [this message]
2024-01-23 18:55       ` Mark Brown
2024-01-30 11:51 ` Will Deacon
2024-01-30 14:09   ` Mark Brown
2024-01-30 14:44     ` Dave Martin
2024-01-30 14:53       ` Mark Brown
2024-01-30 15:47         ` Dave Martin
2024-01-30 15:42       ` Mark Brown

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=Za/YD/0a5Mn4IOAk@e133380.arm.com \
    --to=dave.martin@arm.com \
    --cc=Catalin.Marinas@arm.com \
    --cc=broonie@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --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