From: Brian Norris <computersforpeace@gmail.com>
To: Han Xu <b45815@freescale.com>
Cc: linux-mtd@lists.infradead.org, frank.li@freescale.com,
han.xu@freescale.com
Subject: Re: [PATCH v4 01/10] mtd: spi-nor: fsl-quadspi: dynamically map memory space for AHB read
Date: Thu, 6 Aug 2015 10:09:56 -0700 [thread overview]
Message-ID: <20150806170956.GT10676@google.com> (raw)
In-Reply-To: <1438701922-26916-1-git-send-email-b45815@freescale.com>
On Tue, Aug 04, 2015 at 10:25:22AM -0500, Han Xu wrote:
> From: Han Xu <han.xu@freescale.com>
>
> QSPI may failed to map enough memory (256MB) for AHB read in
> previous implementation, especially in 3G/1G memory layout kernel.
> Dynamically map memory to avoid such issue.
>
> This implementation generally map QUADSPI_MAX_IOMAP (default 4MB) memory
> for AHB read, it should be enough for common scenarios, and the side
> effect (0.6% performance drop) is minor.
>
> Previous implementation
>
> root@imx6qdlsolo:~# dd if=/dev/mtd0 of=/dev/null bs=1K count=32K
> 32768+0 records in
> 32768+0 records out
> 33554432 bytes (34 MB) copied, 2.16006 s, 15.5 MB/s
>
> root@imx6qdlsolo:~# dd if=/dev/mtd0 of=/dev/null bs=32M count=1
> 1+0 records in
> 1+0 records out
> 33554432 bytes (34 MB) copied, 1.43149 s, 23.4 MB/s
>
> After applied the patch
>
> root@imx6qdlsolo:~# dd if=/dev/mtd0 of=/dev/null bs=1K count=32K
> 32768+0 records in
> 32768+0 records out
> 33554432 bytes (34 MB) copied, 2.1743 s, 15.4 MB/s
>
> root@imx6qdlsolo:~# dd if=/dev/mtd0 of=/dev/null bs=32M count=1
> 1+0 records in
> 1+0 records out
> 33554432 bytes (34 MB) copied, 1.43158 s, 23.4 MB/s
>
> Signed-off-by: Han Xu <han.xu@freescale.com>
> Signed-off-by: Frank Li <Frank.Li@freescale.com>
> ---
>
> Change from v3 to v4:
> According to Brian's comments,
> - introduce a new macro QUADSPI_MIN_IOMAP instead of SZ_4M
> - reduce the duplicated computation for offset
> - reintroduce the devm_request_mem_region()
>
> Change from v2 to v3:
> Resend whole serial patch
>
> Change from v1 to v2:
> rebase to last l2-mtd
Thanks, pushed the series to l2-mtd.git, with a few whitespace fixups.
Brian
prev parent reply other threads:[~2015-08-06 17:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-04 15:25 [PATCH v4 01/10] mtd: spi-nor: fsl-quadspi: dynamically map memory space for AHB read Han Xu
2015-08-06 17:09 ` 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=20150806170956.GT10676@google.com \
--to=computersforpeace@gmail.com \
--cc=b45815@freescale.com \
--cc=frank.li@freescale.com \
--cc=han.xu@freescale.com \
--cc=linux-mtd@lists.infradead.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 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.