From: Daniel Mack <zonque@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 0/2] OMAP/GPMC: speed up NAND read access
Date: Wed, 25 Jun 2014 14:43:31 +0200 [thread overview]
Message-ID: <1403700213-16114-1-git-send-email-zonque@gmail.com> (raw)
Resending this since I got no replies on the first version.
I also fixed up the commit log of #1.
------------
I spent some time looking into boot times of AM335x platforms. One big
improvement I made came with adding support for GPMC prefetch mode,
which gave a speed-up of NAND reads of roughly factor 2.
This is what patch #1 does.
Note that this is currently limited to read operations in 8-bit mode, but
I believe it could be easily extended to 16-bit operations if anyone has
hardware to test it on. Using the engine for write mode speed
improvements should also be doable, but I didn't spend time on it yet.
That can be added as a separate patch later.
Patch #2 decreases the GPMC memory map window size from 256MiB to 16MiB.
Admittedly, I'm not quite sure about the reason, but a read from
offset 0 in this memory area will freeze U-Boot instantly if the size
is configured to 256MiB. As contents of the FIFO are accessed in a
pseudo-mode from offset 0 anyway, it doesn't really matter.
What I also did to further speed up my boot was to tweak the GPMC
parameters for the NAND chip on our boards, but that's not part of this
patch set, and probably deserves a little more cleanup.
Test results and feedback very welcome.
Thanks,
Daniel
Daniel Mack (2):
mtd: OMAP: Enable GPMC prefetch mode
ARM: omap-common: gpmp: decrease memory region size to 16MiB
arch/arm/cpu/armv7/omap-common/mem-common.c | 2 +-
doc/README.nand | 5 ++
drivers/mtd/nand/omap_gpmc.c | 115 +++++++++++++++++++++++++++-
include/linux/mtd/omap_gpmc.h | 6 +-
4 files changed, 124 insertions(+), 4 deletions(-)
--
1.9.3
next reply other threads:[~2014-06-25 12:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-25 12:43 Daniel Mack [this message]
2014-06-25 12:43 ` [U-Boot] [PATCH v2 1/2] mtd: OMAP: Enable GPMC prefetch mode Daniel Mack
2014-12-19 16:27 ` Guido Martínez
2014-12-19 16:31 ` Daniel Mack
2015-01-13 21:50 ` [U-Boot] [U-Boot,v2,1/2] " Tom Rini
2014-06-25 12:43 ` [U-Boot] [PATCH v2 2/2] ARM: omap-common: gpmp: decrease memory region size to 16MiB Daniel Mack
2014-06-25 13:00 ` [U-Boot] [PATCH v2 0/2] OMAP/GPMC: speed up NAND read access Tom Rini
2014-06-25 13:06 ` Daniel Mack
2014-06-26 6:08 ` Gupta, Pekon
2014-06-26 7:19 ` Daniel Mack
2014-07-25 10:31 ` Gupta, Pekon
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=1403700213-16114-1-git-send-email-zonque@gmail.com \
--to=zonque@gmail.com \
--cc=u-boot@lists.denx.de \
/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