From: Scott Wood <scottwood@freescale.com>
To: chenhui zhao <chenhui.zhao@freescale.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [4/4] powerpc/mpc8548: Add workaround for erratum NMG_SRIO135
Date: Wed, 16 Oct 2013 18:20:03 -0500 [thread overview]
Message-ID: <20131016232003.GA27543@home.buserror.net> (raw)
In-Reply-To: <1331025056-15983-4-git-send-email-chenhui.zhao@freescale.com>
On Tue, Mar 06, 2012 at 05:10:56PM +0800, chenhui zhao wrote:
> From: chenhui zhao <chenhui.zhao@freescale.com>
>
> Issue:
> Applications using lwarx/stwcx instructions in the core to
> compete for a software lock or semaphore with a device on
> RapidIO using read atomic set, clr, inc, or dec in a similar
> manner may falsely result in both masters seeing the lock
> as "available". This could result in data corruption as
> both masters try to modify the same piece of data protected
> by the lock.
>
> Workaround:
> Set bits 13 and 29 of CCSR offset 0x01010 (EEBPCR register
> of the ECM) during initialization and leave them set
> indefinitely. This may slightly degrade overall system
> performance.
>
> Refer to SRIO39 in MPC8548 errata document.
>
> Signed-off-by: Gong Chen <g.chen@freescale.com>
> Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
> Signed-off-by: Li Yang <leoli@freescale.com>
>
> ---
> arch/powerpc/sysdev/fsl_rio.c | 44 +++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 44 insertions(+), 0 deletions(-)
[snip]
> @@ -358,6 +391,17 @@ int fsl_rio_setup(struct platform_device *dev)
> dev->dev.of_node->full_name);
> return -EFAULT;
> }
> +
> + /* Fix erratum NMG_SRIO135 */
> + if (fsl_svr_is(SVR_8548) || fsl_svr_is(SVR_8548_E)) {
> + rc = fixup_erratum_srio135(&dev->dev);
> + if (rc) {
> + dev_err(&dev->dev,
> + "Failed to fix the erratum NMG_SRIO135.");
> + return rc;
> + }
> + }
This needs to be respun based on the current tree.
-Scott
next prev parent reply other threads:[~2013-10-16 23:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 9:10 [PATCH 1/4] powerpc/85xx: Add a head file for cpu type detection Zhao Chenhui
2012-03-06 9:10 ` [PATCH 2/4] fsl_pci: Add a workaround for PCI 5 errata in MPC8548 Zhao Chenhui
2012-03-06 12:13 ` Kumar Gala
2012-03-08 11:21 ` Zhao Chenhui-B35336
2012-03-06 9:10 ` [PATCH 3/4] fsl_pci: Add a workaround for PCI 6 " Zhao Chenhui
2012-03-06 9:10 ` [PATCH 4/4] powerpc/mpc8548: Add workaround for erratum NMG_SRIO135 Zhao Chenhui
2012-03-06 9:56 ` David Laight
2013-10-16 23:20 ` Scott Wood [this message]
2013-10-17 13:36 ` [4/4] " Zhao Chenhui-B35336
2013-06-03 23:58 ` [1/4] powerpc/85xx: Add a head file for cpu type detection 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=20131016232003.GA27543@home.buserror.net \
--to=scottwood@freescale.com \
--cc=chenhui.zhao@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.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).