From: Mark Mason <mason@postdiluvian.org>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: Scott Wood <scottwood@freescale.com>, linuxppc-dev@lists.ozlabs.org
Subject: Re: MPC831x (and others?) NAND erase performance improvements
Date: Wed, 8 Dec 2010 14:26:16 -0500 [thread overview]
Message-ID: <20101208192616.GA24560@postdiluvian.org> (raw)
In-Reply-To: <OF349DC945.8BC48D34-ONC12577F3.00601D94-C12577F3.00605153@transmode.se>
Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:
> Scott Wood <scottwood@freescale.com> wrote on 2010/12/08 18:18:39:
> >
> > On Wed, 8 Dec 2010 08:59:49 +0100
> > Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:
> >
> > > >
> > > > On Mon, 6 Dec 2010 22:15:54 -0500
> > > > Mark Mason <mason@postdiluvian.org> wrote:
> > > >
> > > > > A few months ago I ran into some performance problems involving
> > > > > UBI/NAND erases holding other devices off the LBC on an MPC8315. I
> > > > > found a solution for this, which worked well, at least with the
> > > > > hardware I was working with. I suspect the same problem affects other
> > > > > PPCs, probably including multicore devices, and maybe other
> > > > > architectures as well.
> > > > >
> > > > > I don't have experience with similar NAND controllers on other
> > > > > devices, so I'd like to explain what I found and see if someone who's
> > > > > more familiar with the family and/or driver can tell if this is
> > > > > useful.
> > > > >
> > > > > The problem cropped up when there was a lot of traffic to the NAND
> > > > > (Samsung K9WAGU08U1B-PIB0), with the NAND being on the LBC along with
> > > > > a video chip that needed constant and prompt attention.
> > > >
> > > > If you attach NAND to the LBC, you should not attach anything else to
> > > > it which is latency-sensitive.
> > >
> > > This "feature" makes the LBC useless to us. Is there some workaround or plan
> > > to address this limitation?
> >
> > Complain to your support or sales contact.
> >
> > I've complained about it in the past, and got a "but pins are a limited
> > resource!" response. They need to hear that it's a problem from
> > customers.
>
> Done, lets see what I get in return. I think this problem will be
> a major obstacle for our next generation boards which will be NAND
> based.
It was a big problem, and a big surprise, for me too. The next
generation of a couple of the chips on the bus have pcie, but those
are noticably more expensive.
Another problem I ran into was that the DMA performance from a
non-incrementing address was abysmal, PIO turned out to be
significantly faster. I guess internally the bus does an entire
cacheline transfer for every word read from a fixed address, or
something like that. I was doing DMA from a device that had only six
address bits, it should have been in the middle of the bus with the
bottom address pins not connected, which would have allowed
incrementing address DMA. The transfer speed wasn't so much of a
problem, but the longer transfers meant that there was that much less
bus bandwidth for the other devices, so we wound up sacrificing CPU to
get more bus bandwidth.
next prev parent reply other threads:[~2010-12-08 19:26 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-07 3:15 MPC831x (and others?) NAND erase performance improvements Mark Mason
2010-12-07 9:00 ` David Laight
2010-12-07 18:23 ` Mark Mason
2010-12-07 20:51 ` Scott Wood
2010-12-07 23:24 ` Mark Mason
2010-12-08 0:37 ` Scott Wood
2010-12-08 7:59 ` Joakim Tjernlund
2010-12-08 17:18 ` Scott Wood
2010-12-08 17:32 ` Joakim Tjernlund
2010-12-08 19:26 ` Mark Mason [this message]
2010-12-08 19:57 ` Joakim Tjernlund
2010-12-08 19:59 ` Scott Wood
2010-12-08 20:11 ` Joakim Tjernlund
2010-12-08 20:25 ` Scott Wood
2010-12-08 21:26 ` Joakim Tjernlund
2010-12-08 22:02 ` Mark Mason
2010-12-08 22:25 ` Scott Wood
2010-12-09 0:16 ` Joakim Tjernlund
2010-12-10 12:39 ` Joakim Tjernlund
2010-12-10 17:56 ` Scott Wood
2010-12-11 9:14 ` Joakim Tjernlund
2010-12-13 8:33 ` David Laight
2010-12-13 10:32 ` Joakim Tjernlund
2010-12-13 17:33 ` Scott Wood
2010-12-13 17:41 ` Joakim Tjernlund
2010-12-13 17:51 ` Scott Wood
2010-12-13 19:30 ` Joakim Tjernlund
2010-12-13 19:49 ` Scott Wood
2010-12-13 22:28 ` Joakim Tjernlund
2010-12-08 22:05 ` Scott Wood
2010-12-10 8:47 ` Andre Schwarz
2010-12-10 8:56 ` Joakim Tjernlund
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=20101208192616.GA24560@postdiluvian.org \
--to=mason@postdiluvian.org \
--cc=joakim.tjernlund@transmode.se \
--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 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.