public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
	Shuah Khan <shuah@kernel.org>,
	David Spickett <David.Spickett@arm.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH 1/3] arm64/fpsimd: Ensure SME storage is allocated after SVE VL changes
Date: Thu, 20 Jul 2023 13:27:10 +0100	[thread overview]
Message-ID: <3ce4fc14-bd43-47e9-aa37-59bb3cd5d051@sirena.org.uk> (raw)
In-Reply-To: <20230720105235.GD11034@willie-the-truck>


[-- Attachment #1.1: Type: text/plain, Size: 781 bytes --]

On Thu, Jul 20, 2023 at 11:52:36AM +0100, Will Deacon wrote:
> On Thu, Jul 13, 2023 at 09:06:04PM +0100, Mark Brown wrote:

> > Since the ABI does not specify that changing the SVE vector length disturbs
> > SME state, and since SVE code may not be aware of SME code in the process,
> > we shouldn't simply discard any ZA state. Instead immediately reallocate
> > the storage for SVE if SME is active, and disable SME if we change the SVE
> > vector length while there is no SME state active.

> What is the advantage of keep the old behaviour in this case? In other
> words, if it's acceptable to reallocate the state when SME is active, why
> not just reallocate in all cases?

It was minimising the changes to the status quo given how attached
people often are to these things.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2023-07-20 12:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-13 20:06 [PATCH 0/3] arm64/fpsimd: Fix use after free in SME when changing SVE VL Mark Brown
2023-07-13 20:06 ` [PATCH 1/3] arm64/fpsimd: Ensure SME storage is allocated after SVE VL changes Mark Brown
2023-07-17 11:19   ` David Spickett
2023-07-20 10:52   ` Will Deacon
2023-07-20 12:27     ` Mark Brown [this message]
2023-07-13 20:06 ` [PATCH 2/3] kselftest/arm64: Add a test case for SVE VL changes with SME active Mark Brown
2023-07-13 20:06 ` [PATCH 3/3] kselftest/arm64: Validate that changing one VL type does not affect another 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=3ce4fc14-bd43-47e9-aa37-59bb3cd5d051@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=David.Spickett@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=shuah@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