From: "Mikołaj Lenczewski" <miko.lenczewski@arm.com>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: ryan.roberts@arm.com, yang@os.amperecomputing.com,
corbet@lwn.net, catalin.marinas@arm.com, will@kernel.org,
jean-philippe@linaro.org, robin.murphy@arm.com, joro@8bytes.org,
akpm@linux-foundation.org, ardb@kernel.org, mark.rutland@arm.com,
joey.gouly@arm.com, maz@kernel.org, james.morse@arm.com,
broonie@kernel.org, oliver.upton@linux.dev, baohua@kernel.org,
david@redhat.com, ioworker0@gmail.com, jgg@ziepe.ca,
nicolinc@nvidia.com, mshavit@google.com, jsnitsel@redhat.com,
smostafa@google.com, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev
Subject: Re: [PATCH v4 1/3] arm64: Add BBM Level 2 cpu feature
Date: Thu, 20 Mar 2025 17:13:47 +0000 [thread overview]
Message-ID: <20250320171347.GA494995@e133081.arm.com> (raw)
In-Reply-To: <952cc3ea-ca11-43a3-a8f4-36e3bbb1fa84@arm.com>
On Thu, Mar 20, 2025 at 05:11:25PM +0000, Suzuki K Poulose wrote:
> On 20/03/2025 17:09, Mikołaj Lenczewski wrote:
> > On Thu, Mar 20, 2025 at 01:24:25PM +0000, Suzuki K Poulose wrote:
> > > On 19/03/2025 15:05, Mikołaj Lenczewski wrote:
> > > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> > > > index fb8752b42ec8..3e4cc917a07e 100644
> > > > --- a/Documentation/admin-guide/kernel-parameters.txt
> > > > +++ b/Documentation/admin-guide/kernel-parameters.txt
> > > > @@ -453,6 +453,9 @@
> > > > arm64.no32bit_el0 [ARM64] Unconditionally disable the execution of
> > > > 32 bit applications.
> > > > + arm64.nobbml2 [ARM64] Unconditionally disable Break-Before-Make Level
> > > > + 2 support
> > > > +
> > > > arm64.nobti [ARM64] Unconditionally disable Branch Target
> > > > Identification support
> > > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> > > > index 940343beb3d4..49deda2b22ae 100644
> > > > --- a/arch/arm64/Kconfig
> > > > +++ b/arch/arm64/Kconfig
> > > > @@ -2057,6 +2057,17 @@ config ARM64_TLB_RANGE
> > > > The feature introduces new assembly instructions, and they were
> > > > support when binutils >= 2.30.
> > > > +config ARM64_BBML2_NOABORT
> > > > + bool "Enable support for Break-Before-Make Level 2 detection and usage"
> > > > + default y
> > > > + help
> > > > + FEAT_BBM provides detection of support levels for break-before-make
> > > > + sequences. If BBM level 2 is supported, some TLB maintenance requirements
> > > > + can be relaxed to improve performance. We additonally require the
> > > > + property that the implementation cannot ever raise TLB Conflict Aborts.
> > > > + Selecting N causes the kernel to fallback to BBM level 0 behaviour
> > > > + even if the system supports BBM level 2.
> > >
> > > minor nit: Should we mention that the feature can be disabled at runtime
> > > using a kernel parameter ?
> >
> > Yes, this sounds very reasonable, I should have thought of that. Will
> > mention the commandline parameter in the kconfig option documentation.
>
> And also may be mention this in the patch description and may be also
> add the rationale for providing this tunable.
>
> Cheers
> Suzuki
>
Will do! :)
--
Kind regards,
Mikołaj Lenczewski
next prev parent reply other threads:[~2025-03-20 17:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-19 15:05 [PATCH v4 0/3] Initial BBML2 support for contpte_convert() Mikołaj Lenczewski
2025-03-19 15:05 ` [PATCH v4 1/3] arm64: Add BBM Level 2 cpu feature Mikołaj Lenczewski
2025-03-20 13:24 ` Suzuki K Poulose
2025-03-20 17:09 ` Mikołaj Lenczewski
2025-03-20 17:11 ` Suzuki K Poulose
2025-03-20 17:13 ` Mikołaj Lenczewski [this message]
2025-03-20 13:37 ` Ard Biesheuvel
2025-03-20 14:01 ` Ryan Roberts
2025-03-20 17:06 ` Mikołaj Lenczewski
2025-03-19 15:05 ` [PATCH v4 2/3] iommu/arm: Add BBM Level 2 smmu feature Mikołaj Lenczewski
2025-03-19 15:05 ` [PATCH v4 3/3] arm64/mm: Elide tlbi in contpte_convert() under BBML2 Mikołaj Lenczewski
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=20250320171347.GA494995@e133081.arm.com \
--to=miko.lenczewski@arm.com \
--cc=akpm@linux-foundation.org \
--cc=ardb@kernel.org \
--cc=baohua@kernel.org \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=corbet@lwn.net \
--cc=david@redhat.com \
--cc=iommu@lists.linux.dev \
--cc=ioworker0@gmail.com \
--cc=james.morse@arm.com \
--cc=jean-philippe@linaro.org \
--cc=jgg@ziepe.ca \
--cc=joey.gouly@arm.com \
--cc=joro@8bytes.org \
--cc=jsnitsel@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=mshavit@google.com \
--cc=nicolinc@nvidia.com \
--cc=oliver.upton@linux.dev \
--cc=robin.murphy@arm.com \
--cc=ryan.roberts@arm.com \
--cc=smostafa@google.com \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
--cc=yang@os.amperecomputing.com \
/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).