From: Scott Wood <scottwood@freescale.com>
To: Anthony Foiani <tkil@scrye.com>
Cc: linuxppc-dev@lists.ozlabs.org, Shaohui.Xie@freescale.com
Subject: Re: SATA hang on 8315E triggered by heavy flash write?
Date: Tue, 21 May 2013 16:44:03 -0500 [thread overview]
Message-ID: <1369172643.1374.15@scott-Lenovo-G560> (raw)
In-Reply-To: <gsj1oirve.fsf@dworkin.scrye.com> (from tkil@scrye.com on Wed May 15 03:12:21 2013)
On 05/15/2013 03:12:21 AM, Anthony Foiani wrote:
> At this point, /dev/sda is pretty much unusable, and I have to do at
> least a reboot to recover. (I don't recall if I had to do a power
> cycle at this point, though.)
>=20
> I suspect that it is related to errata eLBC-A001 (from MPC8315E Chip
> Errata, Rev. 3, 09/2011):
>=20
> eLBC-A001:
>=20
> Simultaneous FCM and GPCM or UPM operation may erroneously trigger
> bus monitor timeout
>=20
> Description: Devices: MPC8315E, MPC8314E
> When the FCM is in the middle of a long transaction, such as NAND
> erase or write, another transaction on the GPCM or UPM triggers the
> bus monitor to start immediately for the GPCM or UPM, even though
> the GPCM or UPM is still waiting for the FCM to finish and has not
> yet started its transaction. If the bus monitor timeout value is not
> programmed for a sufficiently large value, the local bus monitor may
> time out. This timeout corrupts the current NAND Flash operation and
> terminate the GPCM or UPM operation.
>=20
> Impact: Local bus monitor may time out unexpectedly and corrupt the
> NAND transaction.
>=20
> Workaround: Set the local bus monitor timeout value to the maximum
> by setting LBCR[BMT] =3D 0 and LBCR[BMTPS] =3D 0xF.
>=20
> Fix plan: No plans to fix
>=20
> But it seems that erratum is already fixed:
>=20
> http://patchwork.ozlabs.org/patch/96339/
> (git patch d08e44570e)
>=20
> Am I reading that correctly?
Yes, that erratum has been worked around.
> (I'm already writing only one flash
> sector at a time, but it might be that even a single 0x10000-byte
> sector takes long enough to trigger the issue.)
I don't think this erratum is relevant. Unlike NAND, NOR flash does =20
not involve holding the localbus for extended periods of time. I also =20
don't see how it would interact with SATA, which is separate from the =20
localbus. Are you seeing any errors on the localbus, or just on SATA?
> I also verified that
> I have the relevant property in my device tree:
>=20
> localbus@e0005000 {
> ...
> compatible =3D "fsl,mpc8315-elbc", "fsl,elbc", "simple-bus";
>=20
> So, my questions are:
>=20
> 1. Is anyone else seeing something like this?
>=20
> 2. Is there an obvious way for our code to detect that we're in the
> middle of error recovery, so we can not write to the disk until
> recovery is complete?
>=20
> 3. Is there any chance that the 1.5Gbps limiting code might have
> exacerbated the problems?
>=20
> 4. Should I open a support request with Freescale, or if someone from
> Freescale is already reading this, could you look to see if anyone
> else has reported it?
Hopefully Shaohui (our SATA person) can answer these. If you don't get =20
an answer, go ahead and open an official support request.
-Scott=
next prev parent reply other threads:[~2013-05-21 21:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-15 8:12 SATA hang on 8315E triggered by heavy flash write? Anthony Foiani
2013-05-21 21:44 ` Scott Wood [this message]
2013-05-22 4:16 ` Anthony Foiani
2013-05-22 6:15 ` Xie Shaohui-B21989
2013-05-23 5:52 ` Anthony Foiani
2013-05-23 6:04 ` Xie Shaohui-B21989
2013-05-23 15:10 ` Anthony Foiani
2013-05-23 15:49 ` Anthony Foiani
2013-05-27 7:50 ` Xie Shaohui-B21989
2013-05-28 0:29 ` Anthony Foiani
2013-05-30 7:32 ` Xie Shaohui-B21989
2013-06-01 4:24 ` Anthony Foiani
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=1369172643.1374.15@scott-Lenovo-G560 \
--to=scottwood@freescale.com \
--cc=Shaohui.Xie@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=tkil@scrye.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