mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: vj <vicencb@gmail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 00/14] archosg9: add support for tablet
Date: Fri, 12 Oct 2012 03:12:47 +0200	[thread overview]
Message-ID: <CAAMcf8BuDaP5uDd36=WhNS_5k2ZgW0WZtdpJqMT=7g5aEjeB5Q@mail.gmail.com> (raw)
In-Reply-To: <20121010093223.GX27665@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 3538 bytes --]

On Wed, Oct 10, 2012 at 11:32 AM, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> On Wed, Oct 10, 2012 at 10:57:12AM +0200, vj wrote:
>> On Wed, Oct 10, 2012 at 9:40 AM, Sascha Hauer <s.hauer@pengutronix.de> wrote:
>> > On Tue, Oct 09, 2012 at 12:55:10AM +0200, Vicente wrote:
>> >> This patch series is the same as before except for:
>> >>  [PATCH 03/13] ARM: ensure irqs are disabled
>> >>     imported irq handling from linux
>> >>  [PATCH 07/13] uimage: improve transfer speed
>> >>     solved a compile warning
>> >
>> > I applied most of this series, please check the result in the -next
>> > branch.
>> >
>>
>> I'll check this week
>
> Thanks.

The -next branch works "out-of-the-box".
So exiting from barebox leaving the interrupts enabled is not critical.

>
>> > Of course haven't applied this one
>> >
>>
>> It wasn't meant to be applied
>
> I know, just thought I'd mention it anyway
>
>>
>> >>   omap4: add usb boot source
>> >>   bootm: close open files
>> >
>> >>   uimage: improve transfer speed
>> >
>> > Haven't applied this one as you haven't answered my question how
>> > much improvement (and on which media) we get.
>>
>> Yes, it's answered, see:
>> http://lists.infradead.org/pipermail/barebox/2012-October/010208.html
>
> Ups, missed that. That's really a huge speed gain. I wonder why this
> happens. Maybe the overhead of request/release sdram region is
> significant with MMU disabled. Could you play with the BUFSIZ parameter
> to see if there's a good compromise between speeding up your transfer
> and still sensible buffer sizes?

Here are the results:
13133*PAGE_SIZE: Transferred 53789775 bytes in 3.326 seconds at 15.419 MBps
   64*PAGE_SIZE: Transferred 53789775 bytes in 3.478 seconds at 14.748 MBps
   32*PAGE_SIZE: Transferred 53789775 bytes in 3.655 seconds at 14.031 MBps
   16*PAGE_SIZE: Transferred 53789775 bytes in 3.987 seconds at 12.865 MBps
    8*PAGE_SIZE: Transferred 53789775 bytes in 4.540 seconds at 11.297 MBps
    4*PAGE_SIZE: Transferred 53789775 bytes in 5.876 seconds at  8.729 MBps
    2*PAGE_SIZE: Transferred 53789775 bytes in 8.249 seconds at  6.218 MBps
Note: 13133 is reading the file at once.

>
> BTW I wonder if it would be possible to use the MMU in your setup. We
> have a 1:1 flat mapping which should be no problem for the ROM code.
> You probably would have to use dma_alloc_coherent to allocate the
> buffers which are used for USB transfers.

Tested with MMU enabled having the buffers on local stack: fail
with buffers allocated with xzalloc: fail
with dma_alloc_coherent: fail
all of them freezes when calling the ROM function
omap4_usbboot_pdata.io->write(...)
also tried this initcalls, all with same result:
core_initcall(omap4_usbboot_init);
postmmu_initcall(omap4_usbboot_init);

Why it doesn't work? I don't know. But if anybody wants to investigate attached
is the ROM code which is placed at offset 0x00030000. The entry points used by
barebox are:
omap4_usbboot_pdata.io->init  : 0x000340e3
omap4_usbboot_pdata.io->read  : 0x00034289
omap4_usbboot_pdata.io->write : 0x00034259
omap4_usbboot_pdata.io->close : 0x00034075
omap4_usbboot_pdata.io->config: 0x000342bb
which surely are wrong because aren't dword aligned! I'm lost.

>
> Sascha
>
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: rom.bin.gz --]
[-- Type: application/x-gzip, Size: 22953 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-10-12  1:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-08 22:55 Vicente
2012-10-08 22:55 ` [PATCH 01/14] twl6030: add debug info Vicente
2012-10-08 22:55 ` [PATCH 02/14] omap4: add rename definitions to match datasheet Vicente
2012-10-08 22:55 ` [PATCH 03/14] ARM: import irq handling from linux Vicente
2012-10-08 22:55 ` [PATCH 04/14] ARM: ensure irqs are disabled Vicente
2012-10-08 22:55 ` [PATCH 05/14] omap: revert gpiolib Vicente
2012-10-08 22:55 ` [PATCH 06/14] omap4: add usb boot source Vicente
2012-10-08 22:55 ` [PATCH 07/14] bootm: close open files Vicente
2012-10-08 22:55 ` [PATCH 08/14] uimage: improve transfer speed Vicente
2012-10-08 22:55 ` [PATCH 09/14] fs: improve robustness Vicente
2012-10-08 22:55 ` [PATCH 10/14] omap4: add support for booting cpu from usb Vicente
2012-10-08 22:55 ` [PATCH 11/14] omap4: add serial communications over usb boot Vicente
2012-10-08 22:55 ` [PATCH 12/14] omap4: add filesystem support " Vicente
2012-10-08 22:55 ` [PATCH 13/14] omap4: add support for loading second stage from usb Vicente
2012-10-08 22:55 ` [PATCH 14/14] Add support for Archos G9 tablet Vicente
2012-10-19 11:10   ` Jan Weitzel
2012-10-21  1:00     ` vj
2012-10-22  6:50       ` Jan Weitzel
2012-10-10  7:40 ` [PATCH 00/14] archosg9: add support for tablet Sascha Hauer
     [not found]   ` <CAAMcf8D0Xn6aWztkD=8dnv3P1qxNgxSV-2Q37kGOaRsOQE7xVA@mail.gmail.com>
2012-10-10  9:32     ` Sascha Hauer
2012-10-12  1:12       ` vj [this message]
     [not found]       ` <CAAMcf8CLimKWZddBfctSCct0wOJOk7tgTJpM7m_w8h5dOQRt1Q@mail.gmail.com>
2012-10-12  8:39         ` Sascha Hauer

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='CAAMcf8BuDaP5uDd36=WhNS_5k2ZgW0WZtdpJqMT=7g5aEjeB5Q@mail.gmail.com' \
    --to=vicencb@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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