From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv3 4/5] arm64: Emulate CP15 Barrier instructions
Date: Thu, 13 Nov 2014 10:34:51 +0000 [thread overview]
Message-ID: <20141113103450.GD20652@localhost> (raw)
In-Reply-To: <9hhk3372duw.fsf@e105922-lin.cambridge.arm.com>
On Fri, Nov 07, 2014 at 04:07:51PM +0000, Punit Agrawal wrote:
> Catalin Marinas <catalin.marinas@arm.com> writes:
> > On Mon, Oct 27, 2014 at 06:40:06PM +0000, Punit Agrawal wrote:
> >> diff --git a/Documentation/arm64/legacy_instructions.txt b/Documentation/arm64/legacy_instructions.txt
> >> index 5ab5861..a3b3da2 100644
> >> --- a/Documentation/arm64/legacy_instructions.txt
> >> +++ b/Documentation/arm64/legacy_instructions.txt
> >> @@ -38,3 +38,8 @@ Supported legacy instructions
> >> Node: /proc/sys/abi/swp
> >> Status: Obsolete
> >> Default: Undef (0)
> >> +
> >> +* CP15 Barriers
> >> +Node: /proc/sys/abi/cp15_barrier
> >> +Status: Deprecated
> >> +Default: Emulate (1)
> >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> >> index 6ae8079..2f7026e 100644
> >> --- a/arch/arm64/Kconfig
> >> +++ b/arch/arm64/Kconfig
> >> @@ -199,6 +199,21 @@ config SWP_EMULATION
> >>
> >> If unsure, say N
> >>
> >> +config CP15_BARRIER_EMULATION
> >> + bool "Emulate CP15 Barrier instructions"
> >> + help
> >> + The CP15 barrier instructions - CP15ISB, CP15DSB, and
> >> + CP15DMB - are deprecated in ARMv8 (and ARMv7). It is
> >> + strongly recommended to use the ISB, DSB, and DMB
> >> + instructions instead.
> >> +
> >> + Say Y here to enable software emulation of these
> >> + instructions for AArch32 userspace code. When this option is
> >> + enabled, CP15 barrier usage is traced which can help
> >> + identify software that needs updating.
> >> +
> >> + If unsure, say N
> >> +
> >> endif
> >
> > default y (I think we had a discussion in private whether deprecated
> > should default to y and obsolete to y or n but I don't remember the
> > conclusion; it's worth adding it to the Documentation/ file).
>
> Based on the outcome of the discussion, I've documented the runtime
> defaults ('undef' for obsolete and 'emulation' for deprecated instructions)
> in the previous patch (3/5).
>
> As for Kconfig, the conclusion was to keep them off by default. The
> rationale was that they can be enabled quite easily and would form
> another way to communicate that certain features are deprecated and
> software might need updating.
Sounds fine.
--
Catalin
next prev parent reply other threads:[~2014-11-13 10:34 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 18:40 [PATCHv3 0/5] Legacy instruction emulation for arm64 Punit Agrawal
2014-10-27 18:40 ` [PATCHv3 1/5] arm64: Add support for hooks to handle undefined instructions Punit Agrawal
2014-11-05 11:27 ` Catalin Marinas
2014-11-06 12:20 ` Punit Agrawal
2014-10-27 18:40 ` Punit Agrawal
2014-10-29 14:26 ` Punit Agrawal
2014-10-27 18:40 ` [PATCHv3 2/5] arm64: Add AArch32 instruction set condition code checks Punit Agrawal
2014-10-29 15:21 ` Russell King - ARM Linux
2014-10-29 16:54 ` Punit Agrawal
2014-11-05 16:14 ` Catalin Marinas
2014-11-05 16:19 ` Will Deacon
2014-11-05 11:28 ` Catalin Marinas
2014-10-27 18:40 ` [PATCHv3 3/5] arm64: Port SWP/SWPB emulation support from arm Punit Agrawal
2014-11-05 11:47 ` Catalin Marinas
2014-11-07 18:15 ` Punit Agrawal
2014-10-27 18:40 ` [PATCHv3 4/5] arm64: Emulate CP15 Barrier instructions Punit Agrawal
2014-11-05 13:05 ` Catalin Marinas
2014-11-07 16:07 ` Punit Agrawal
2014-11-13 10:34 ` Catalin Marinas [this message]
2014-11-05 14:51 ` Catalin Marinas
2014-11-07 13:03 ` Punit Agrawal
2014-10-27 18:40 ` [PATCHv3 5/5] arm64: Trace emulation of AArch32 legacy instructions Punit Agrawal
2014-11-05 14:46 ` Catalin Marinas
2014-11-05 15:05 ` Steven Rostedt
2014-11-05 15:52 ` Catalin Marinas
2014-11-10 18:27 ` Will Deacon
2014-11-12 11:31 ` Punit Agrawal
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=20141113103450.GD20652@localhost \
--to=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.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).