From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Scott Wood <scottwood@freescale.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Scott Wood <scottwood@freescale.com>, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc/fsl-booke: Work around erratum A-006958
Date: Mon, 15 Jul 2013 11:33:22 +0530 [thread overview]
Message-ID: <87mwpojr6d.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <1373677412-24329-1-git-send-email-scottwood@freescale.com>
Scott Wood <scottwood@freescale.com> writes:
> diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
> index ae0aaea..7f0e2e5 100644
> --- a/arch/powerpc/platforms/Kconfig.cputype
> +++ b/arch/powerpc/platforms/Kconfig.cputype
> @@ -165,6 +165,17 @@ config PPC_E500MC
> such as e5500/e6500), and must be disabled for running on
> e500v1 or e500v2.
>
> +config FSL_ERRATUM_A_006958
> + bool
> + depends on PPC_E500MC && PPC64
> + default y
> + help
> + Workaround for erratum A-006958, which says that 64-bit
> + timebase reads are not atomic. The workaround is to fall back
> + to the 32-bit method of reading timebase. Note that timebase
> + is readable by userspace, so any non-vdso userspace accesses
> + will need to have the workaround applied separately.
> +
> config PPC_FPU
> bool
> default y if PPC64
I am completely new to this area, so ignore if it is silly. But how do
we expect to select this config ? Should that happen via .config ?
That seems strange, because without this change some of the configs
will surely be broken/buggy right ?. I was expecting it not be a config
entry, primarily because I haven't seem something similar on other
archs. And if there is an erratum against a cpu release, we should by
default apply this when we know we are running on those cpus right ?
Which implies this should not be a config option ?
-aneesh
next prev parent reply other threads:[~2013-07-15 6:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-13 1:03 [PATCH] powerpc/fsl-booke: Work around erratum A-006958 Scott Wood
2013-07-15 6:03 ` Aneesh Kumar K.V [this message]
2013-07-15 16:55 ` Scott Wood
2013-07-15 8:45 ` David Laight
2013-07-15 16:53 ` Scott Wood
2013-07-15 22:15 ` Scott Wood
2013-07-16 8:28 ` David Laight
2013-07-16 18:16 ` Scott Wood
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=87mwpojr6d.fsf@linux.vnet.ibm.com \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=scottwood@freescale.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).