From: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org>
To: Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
Cc: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Anatolij Gustschin <agust-ynQEQJNshbs@public.gmane.org>,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH RFT] spi: mpc512x-psc: Refactor to use core message parsing
Date: Thu, 27 Mar 2014 18:24:16 +0100 [thread overview]
Message-ID: <20140327172416.GW3998@book.gsilab.sittig.org> (raw)
In-Reply-To: <1395932757.17331.1.camel@phoenix>
On Thu, 2014-03-27 at 23:05 +0800, Axel Lin wrote:
>
> Refactor to use default implementation of transfer_one_message() which provides
> standard handling of delays and chip select management.
>
> Signed-off-by: Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
> ---
> Hi Gerhard and Anatolij,
> I don't have this h/w. I'd appreciate if you can test this patch.
>
> Thanks,
> Axel
although the change appears to work (LCD and SPI flash remain
operational), it dramatically reduces throughput (increase of
transfer time from 10 to 150 seconds)
before:
root@ac14xx:~# uname -srm
Linux 3.14.0-rc8-00011-gf217c44ebd41 ppc
root@ac14xx:~# time wc /dev/mtd6
23 68 16777216 /dev/mtd6
real 0m 9.87s
user 0m 0.68s
sys 0m 0.17s
root@ac14xx:~# time dd if=/dev/mtd6 of=/dev/null bs=1024
16384+0 records in
16384+0 records out
real 0m 10.11s
user 0m 0.04s
sys 0m 0.55s
after:
root@ac14xx:~# uname -srm
Linux 3.14.0-rc8-00012-gc47c572ff209 ppc
root@ac14xx:~# time wc /dev/mtd6
23 68 16777216 /dev/mtd6
real 2m 34.97s
user 0m 0.00s
sys 0m 0.94s
root@ac14xx:~# time dd if=/dev/mtd6 of=/dev/null bs=1024
16384+0 records in
16384+0 records out
real 3m 17.11s
user 0m 0.00s
sys 0m 0.91s
can you reproduce this on other hardware? the change looks
innocent, and the core routine looks straight forward -- is some
expensive diagnostics enabled ATM during transition to common
logic?
virtually yours
Gerhard Sittig
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office-ynQEQJNshbs@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-03-27 17:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-27 15:05 [PATCH RFT] spi: mpc512x-psc: Refactor to use core message parsing Axel Lin
2014-03-27 17:24 ` Gerhard Sittig [this message]
[not found] ` <20140327172416.GW3998-kDjWylLy9wD0K7fsECOQyeGNnDKD8DIp@public.gmane.org>
2014-03-27 18:20 ` Mark Brown
[not found] ` <20140327182049.GT30768-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-03-29 14:18 ` Gerhard Sittig
[not found] ` <20140329141851.GB2775-kDjWylLy9wD0K7fsECOQyeGNnDKD8DIp@public.gmane.org>
2014-03-31 7:54 ` Gerhard Sittig
[not found] ` <20140331075403.GF2775-kDjWylLy9wD0K7fsECOQyeGNnDKD8DIp@public.gmane.org>
2014-03-31 9:41 ` Mark Brown
2014-03-29 15:09 ` Gerhard Sittig
[not found] ` <20140329150910.GC2775-kDjWylLy9wD0K7fsECOQyeGNnDKD8DIp@public.gmane.org>
2014-03-30 0:30 ` Mark Brown
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=20140327172416.GW3998@book.gsilab.sittig.org \
--to=gsi-ynqeqjnshbs@public.gmane.org \
--cc=agust-ynQEQJNshbs@public.gmane.org \
--cc=axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.