Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland@arm.com>
To: Gavin Shan <gshan@redhat.com>
Cc: Linu Cherian <linu.cherian@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will@kernel.org>,
	Ryan Roberts <ryan.roberts@arm.com>,
	Kevin Brodsky <kevin.brodsky@arm.com>,
	Anshuman Khandual <anshuman.khandual@arm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 3/6] arm64: cpufeature: Extend bbml2_noabort support list
Date: Wed, 22 Jul 2026 12:37:19 +0100	[thread overview]
Message-ID: <amCrY9wdc_1JMUdw@J2N7QTR9R3> (raw)
In-Reply-To: <671d0b1e-65f1-461a-aec8-a031c40245bc@redhat.com>

On Thu, Jul 16, 2026 at 10:00:40AM +1000, Gavin Shan wrote:
> On 7/15/26 3:34 PM, Linu Cherian wrote:
> > C1-Ultra and C1-Premium both suffer from erratum 3683289,
> > where Break-Before-Make must be followed to avoid a livelock.
> > For both CPUs, the erratum is fixed from r1p1.
> > Hence we do not enable BBML2_NOABORT for CPU revisions <= r1p0.

> > @@ -2152,6 +2152,16 @@ bool cpu_supports_bbml2_noabort(void)
> >   		MIDR_ALL_VERSIONS(MIDR_NVIDIA_OLYMPUS),
> >   		MIDR_ALL_VERSIONS(MIDR_AMPERE1),
> >   		MIDR_ALL_VERSIONS(MIDR_AMPERE1A),
> > +		MIDR_ALL_VERSIONS(MIDR_CORTEX_A520AE),
> > +		MIDR_ALL_VERSIONS(MIDR_CORTEX_A715),
> > +		MIDR_ALL_VERSIONS(MIDR_CORTEX_A720AE),
> > +		MIDR_ALL_VERSIONS(MIDR_CORTEX_A725),
> > +		MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N3),
> > +		MIDR_ALL_VERSIONS(MIDR_C1_NANO),
> > +		MIDR_ALL_VERSIONS(MIDR_C1_PRO),
> > +		/* Erratum 3683289 fixed in r1p1 */
> > +		MIDR_REV_RANGE(MIDR_C1_ULTRA, 1, 1, 0xf),
> > +		MIDR_REV_RANGE(MIDR_C1_PREMIUM, 1, 1, 0xf),
> 
> The revisions for C1_ULTRA and C1_PREMIUM have been limited to
> r1p1 to r1p15. How about r2p0 and the revisions after that? We
> probably won't get a chance to hit the ceiling? :-)

Yes, those should be:

	MIDR_RANGE(MIDR_C1_ULTRA, 1, 1, 0xf, 0xf),
	MIDR_RANGE(MIDR_C1_PREMIUM, 1, 1, 0xf, 0xf),

In general, MIDR_REV_RANGE() doesn't make much sense and should be
removed. I have a patch for that hidden in some other MIDR cleanup, so
I'll go revive that shortly...

Mark.


  reply	other threads:[~2026-07-22 11:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-15  5:34 [PATCH v3 0/6] Add BBML3 cpu feature Linu Cherian
2026-07-15  5:34 ` [PATCH v3 1/6] arm64: cputype: Add Cortex-A520AE definitions Linu Cherian
2026-07-15 23:56   ` Gavin Shan
2026-07-15  5:34 ` [PATCH v3 2/6] arm64: cputype: Add C1-Nano definitions Linu Cherian
2026-07-15 23:57   ` Gavin Shan
2026-07-15  5:34 ` [PATCH v3 3/6] arm64: cpufeature: Extend bbml2_noabort support list Linu Cherian
2026-07-15  6:06   ` Anshuman Khandual
2026-07-16  0:00   ` Gavin Shan
2026-07-22 11:37     ` Mark Rutland [this message]
2026-07-15  5:34 ` [PATCH v3 4/6] arm64: sysreg: Add BBM_3 Linu Cherian
2026-07-15  5:59   ` Anshuman Khandual
2026-07-16  0:01   ` Gavin Shan
2026-07-15  5:34 ` [PATCH v3 5/6] arm64: cpufeature: Rename BBML2_NOABORT as BBML3 Linu Cherian
2026-07-15  6:29   ` Anshuman Khandual
2026-07-15 23:54   ` Gavin Shan
2026-07-22 14:01     ` Linu Cherian
2026-07-15  5:34 ` [PATCH v3 6/6] arm64: cpufeature: Detect BBML3 based on ID_AA64MMFR2_EL1.BBM Linu Cherian
2026-07-15  6:40   ` Anshuman Khandual
2026-07-15 23:55   ` Gavin Shan

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=amCrY9wdc_1JMUdw@J2N7QTR9R3 \
    --to=mark.rutland@arm.com \
    --cc=anshuman.khandual@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=gshan@redhat.com \
    --cc=kevin.brodsky@arm.com \
    --cc=linu.cherian@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ryan.roberts@arm.com \
    --cc=suzuki.poulose@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