linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Mark Brown <broonie@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	Eric Biederman <ebiederm@xmission.com>,
	Kees Cook <keescook@chromium.org>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	Szabolcs Nagy <szabolcs.nagy@arm.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 0/4] arm64: Add AT_HWCAP3
Date: Wed, 06 Jul 2022 11:08:55 +0100	[thread overview]
Message-ID: <933dd93bedf07883a62f59805dc28ca9@kernel.org> (raw)
In-Reply-To: <YsR6n+AxQM289EMq@sirena.org.uk>

On 2022-07-05 18:53, Mark Brown wrote:
> On Mon, Jun 20, 2022 at 01:54:47PM +0100, Mark Brown wrote:
>> Currently for arm64 we expose hwcaps to userspace using the low 32 
>> bits
>> of AT_HWCAP and AT_HWCAP2. Due to the ever expanding capabilties of 
>> the
>> architecture we have now allocated all the available bits in this 
>> scheme
>> so we need to expand, either using the higher bits or adding a new
>> AT_HWCAP3. Discussions with glibc developers suggested that AT_HWCAP3
>> would be cleaner for them so the series adopts that approach.
> 
> This discussion appears to have ground to a halt.  Szabolcs prefers
> AT_HWCAP3, Catalin using the high bits of AT_HWCAP2 for now and nobody
> else said anything.  I don't have strong preferences either way but
> wonder if it's worth defining AT_HWCAP3 even if we start allocating 
> more
> bits from AT_HWCAP2 so that it's got more time to percolate through
> libcs and so on before it's actually needed.
> 
> What should we do here?

I really don't like the idea of adding a new HWCAP when we still
have free bits lying around. We should use that first, and only
add HWCAP3 once we are at (or close enough to) the limit.

That's assuming that there is no breakage with using these spare
bits. If something is at risk, I'd be good to spell it out.

         M.
-- 
Jazz is not dead. It just smells funny...

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

  parent reply	other threads:[~2022-07-06 10:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-20 12:54 [PATCH v2 0/4] arm64: Add AT_HWCAP3 Mark Brown
2022-06-20 12:54 ` [PATCH v2 1/4] arm64/cpufeature: Store elf_hwcaps as an array rather than unsigned long Mark Brown
2022-06-28 14:21   ` Will Deacon
2022-06-28 15:06     ` Mark Brown
2022-06-29 10:01       ` Szabolcs Nagy
2022-06-29 11:44         ` Mark Brown
2022-06-29 12:06           ` Szabolcs Nagy
2022-06-29 13:55         ` Catalin Marinas
2022-06-29 15:07           ` Mark Brown
2022-06-20 12:54 ` [PATCH v2 2/4] elf: Allow architectures to provide AT_HWCAP3 Mark Brown
2022-06-20 12:54 ` [PATCH v2 3/4] arm64/cpufeature: Support AT_HWCAP3 Mark Brown
2022-06-20 12:54 ` [PATCH v2 4/4] arm64/hwcap: Support FEAT_EBF16 Mark Brown
2022-07-05 17:53 ` [PATCH v2 0/4] arm64: Add AT_HWCAP3 Mark Brown
2022-07-06  9:02   ` Szabolcs Nagy
2022-07-06 10:08   ` Marc Zyngier [this message]
2022-07-06 13:48     ` 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=933dd93bedf07883a62f59805dc28ca9@kernel.org \
    --to=maz@kernel.org \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=ebiederm@xmission.com \
    --cc=keescook@chromium.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=suzuki.poulose@arm.com \
    --cc=szabolcs.nagy@arm.com \
    --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;
as well as URLs for NNTP newsgroup(s).