mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Catalin Marinas <catalin.marinas@arm.com>
To: Ryan Roberts <ryan.roberts@arm.com>
Cc: Will Deacon <will@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Linu Cherian <linu.cherian@arm.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 5/6] arm64: cpufeature: Track BBML3 exclusions with erratum options
Date: Tue, 24 Nov 2026 11:19:51 +0000	[thread overview]
Message-ID: <awVy1ybf70OgllXN@arm.com> (raw)
In-Reply-To: <7f466d97-64f4-4b63-ad78-fef11bbbb919@arm.com>

On Sun, Nov 22, 2026 at 09:08:05AM +0000, Ryan Roberts wrote:
> On 18/11/2026 17:59, Catalin Marinas wrote:
> > On Fri, Nov 13, 2026 at 02:50:19PM +0000, Ryan Roberts wrote:
> >> Several CPUs implementing the BBML3 no-abort semantics advertise only
> >> BBML2, but cannot safely use those semantics because of hardware errata.
> >> Omitting their MIDRs from the allow list hides the reason for the
> >> exclusion and makes the relevant workarounds difficult to track.
> >>
> >> Add a default-enabled Kconfig option for each of the following errata,
> >> and include the affected CPUs in the BBML3 allow list only when the
> >> corresponding workaround is disabled:
> >>
> >>   3043240  Cortex-X925
> >>   3043263  Cortex-X4
> >>   3053180  Neoverse-V3 and Neoverse-V3AE
> >>   3683289  C1-Ultra and C1-Premium
> >>   3696239  Cortex-X3
> >>   3696242  Neoverse-V2
> >>   3696244  Cortex-A710 and Cortex-X2
> >>   3696250  Neoverse-N2
> >>   3696285  Neoverse-V1
> >>   4196850  C2-Ultra
> > 
> > I'm not sure what the benefit of this is. These CPUs are not listed in
> > the BBML3 capable list anyway, so the patch adds them but gated by a
> > Kconfig option, default y. Is it only an elaborate way to tell people
> > why we couldn't enable BBML3 support for them? Maybe the documentation
> > part is sufficient.
> 
> I'm just trying to make it very clear why certain CPUs are not in the list. With
> the exception of A510, in general, Arm-designed CPUs that advertise BBML2 are
> also BBML3 compliant and should therefore be in this list. But some of the CPUs
> have BBML2 errata which prevent them from being in the list.
> 
> The information is all very scattered internally, and I've personally had to do
> the exercise 3 times now, of figuring out which CPUs are excluded from the list
> because they haven't been added yet vs which are excluded because of an erratum.
> 
> Perhaps it would be simpler just to create a file in Documentation/arch/arm64 to
> track this and add a comment next to the midr list referring to it? I don't mind
> how we do it, but I do think it's valuable to capture the info somehow.

I agree it's worth recording. I'd just put a comment above
supports_bbml3_list[] listing the excluded CPUs with their erratum
numbers and keep the N/A entries in silicon-errata.rst (as you did in
patches 1 and 2). The errata is the same, live-lock, so you might as
well include that in the comment.

The Kconfig options don't add much. These CPUs have never been in the
list, so the only thing =n does is enable BBML3 on hardware with an open
erratum.

-- 
Catalin

  reply	other threads:[~2026-11-24 11:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13 14:50 [PATCH v1 0/6] arm64: BBML3 errata workarounds and cleanup Ryan Roberts
2026-11-13 14:50 ` [PATCH v1 1/6] arm64: cpufeature: Remove Neoverse-V3/AE from the BBML3 allow list Ryan Roberts
2026-11-23  9:20   ` Linu Cherian
2026-11-13 14:50 ` [PATCH v1 2/6] arm64: cpufeature: Remove Cortex-X4 " Ryan Roberts
2026-11-13 14:50 ` [PATCH v1 3/6] arm64: cputype: Add Cortex-A320 definitions Ryan Roberts
2026-11-18 18:33   ` Catalin Marinas
2026-11-13 14:50 ` [PATCH v1 4/6] arm64: cputype: Add C2-Ultra definitions Ryan Roberts
2026-11-24 11:20   ` Catalin Marinas
2026-11-13 14:50 ` [PATCH v1 5/6] arm64: cpufeature: Track BBML3 exclusions with erratum options Ryan Roberts
2026-11-18 17:59   ` Catalin Marinas
2026-11-22  9:08     ` Ryan Roberts
2026-11-24 11:19       ` Catalin Marinas [this message]
2026-11-13 14:50 ` [PATCH v1 6/6] arm64: cpufeature: Enable BBML3 on Cortex-A320, A520 and A720 Ryan Roberts
2026-11-18 18:34   ` Catalin Marinas
2026-11-18 18:27 ` (subset) [PATCH v1 0/6] arm64: BBML3 errata workarounds and cleanup Catalin Marinas

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=awVy1ybf70OgllXN@arm.com \
    --to=catalin.marinas@arm.com \
    --cc=linu.cherian@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=ryan.roberts@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

all inboxes | Powered by JetHome®