From: Brian Norris <computersforpeace@gmail.com>
To: "Andrew E. Mileski" <andrewm@isoar.ca>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>,
linux-mtd <linux-mtd@lists.infradead.org>,
Scott Branden <sbranden@broadcom.com>
Subject: Re: Hang on reboot in nand_get_device()
Date: Mon, 9 Nov 2015 11:16:38 -0800 [thread overview]
Message-ID: <20151109191638.GH12143@google.com> (raw)
In-Reply-To: <5640E95D.5060405@isoar.ca>
On Mon, Nov 09, 2015 at 01:43:41PM -0500, Andrew E. Mileski wrote:
> On 2015-11-06 13:00, Brian Norris wrote:
> >On Thu, Jul 02, 2015 at 03:21:48PM -0400, Andrew E. Mileski wrote:
> >>I'm experiencing a hang on reboot with a Freescale P1022 PowerPC system, with a
> >>dual chip-select NAND part (specified in the device tree as two
> >>separate devices), and kernel v4.0.6.
> >
> >Which driver?
>
> Sorry, I wasn't specific enough: fsl_elbc_nand.c
>
> Currently using the 4.2.0 Linux kernel version, and the problem persists.
>
> I've actually made a small hack to it to enable software ECC, but it
> isn't fit for distribution.
>
> The stock driver is rather ugly in my opinion, and makes some overly
> broad assumptions about the hardware; the driver really is only
> intended to support hardware ECC. I've taken a few stabs at
> cleaning-up the stock driver, but they all end-up being complete
> re-writes (for multi-die support), which is a bit more than I can
> chew.
>
> The driver otherwise is usable as-is, albeit with only hardware ECC
> (that is insufficient for many modern NAND devices), and exhibits
> the same problem.
Yikes, I wish I hadn't actually taken a closer look at that driver :(
It could really use some rewrites for proper multi-chip/multi-die
support.
...
> >Anyway, if the above looks OK, I can send a proper patch and get your
> >'Tested-by's.
> >
> >Brian
>
> That seems to work too! Thanks!
Great! I'll review Boris's suggestions to see if there's a better
option.
Brian
prev parent reply other threads:[~2015-11-09 19:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 19:21 Hang on reboot in nand_get_device() Andrew E. Mileski
2015-11-06 18:00 ` Brian Norris
2015-11-06 18:59 ` Boris Brezillon
2015-11-09 19:46 ` Brian Norris
2015-11-09 19:56 ` Andrew E. Mileski
2015-11-09 20:49 ` Scott Branden
2015-11-09 20:55 ` Boris Brezillon
2015-11-09 21:36 ` Boris Brezillon
2015-11-09 21:44 ` Brian Norris
2015-11-09 21:51 ` Scott Branden
2015-11-10 0:22 ` Brian Norris
2015-11-09 18:43 ` Andrew E. Mileski
2015-11-09 19:16 ` Brian Norris [this message]
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=20151109191638.GH12143@google.com \
--to=computersforpeace@gmail.com \
--cc=andrewm@isoar.ca \
--cc=boris.brezillon@free-electrons.com \
--cc=linux-mtd@lists.infradead.org \
--cc=sbranden@broadcom.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.