mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Renaud Barbier <Renaud.Barbier@ametek.com>
To: Barebox List <barebox@lists.infradead.org>
Subject: LS1021A performance
Date: Thu, 30 Mar 2023 11:34:02 +0000	[thread overview]
Message-ID: <BL0PR07MB5665003604A904B8AFBEB466EC8E9@BL0PR07MB5665.namprd07.prod.outlook.com> (raw)

Hello,
I am looking into the performance of the LS1021A between Linux and Barebox and a PPC P1014

I noticed the following on md5sum calculation on 1MB file;

On Barebox, md5sum of a 1MB file in memory:
barebox@LS1021A-IOT Board:/ time md5sum /file
27a45e1d2fc461638aafce09b6397841  /file
time: 494ms

The DDR is cacheable:
barebox:/ mmuinfo 0x80000000
PAR result for 0x80000000:
 privileged read: 0x8000005c
  Physical Address [31:12]: 0x80000000
  Reserved [11]:            0x0
  Not Outer Shareable [10]: 0x0
  Non-Secure [9]:           0x0
  Impl. def. [8]:           0x0
  Shareable [7]:            0x0
  Inner mem. attr. [6:4]:   0x5 (0b101 Write-Back, Write-Allocate)
  Outer mem. attr. [3:2]:   0x3 (0b11 Write-Back, no Write-Allocate)
  SuperSection [1]:         0x0
  Failure [0]:              0x0
 privileged write: 0x8000005c
  Physical Address [31:12]: 0x80000000
  Reserved [11]:            0x0
  Not Outer Shareable [10]: 0x0
  Non-Secure [9]:           0x0
  Impl. def. [8]:           0x0
  Shareable [7]:            0x0
  Inner mem. attr. [6:4]:   0x5 (0b101 Write-Back, Write-Allocate)
  Outer mem. attr. [3:2]:   0x3 (0b11 Write-Back, no Write-Allocate)
  SuperSection [1]:         0x0
  Failure [0]:              0x0


On a Freescale P1014 (PPC)with Barebox:
time md5sum self1
f168af3541bc7109150e6be2f6c8cde4  self1
time: 57ms

On Linux:
[root@openware]# time md5sum /tmp/mtd0
26d8158619e5791859519654557aeeba  /tmp/mtd0

real    0m0.029s
user    0m0.025s
sys     0m0.001s

This is almost a 20 fold difference.

>From my In-Circuit-Emulator, the cache is enabled on both Linux and Barebox. My guess it that it comes down how the MMU is used.
Any input on how to speed up the boot loader would be appreciated.

Cheers,
Renaud





             reply	other threads:[~2023-03-30 11:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-30 11:34 Renaud Barbier [this message]
2023-03-30 11:45 ` Ahmad Fatoum
2023-03-30 13:31   ` Renaud Barbier
2023-03-30 14:17     ` Lucas Stach
2023-03-30 15:17       ` Renaud Barbier

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=BL0PR07MB5665003604A904B8AFBEB466EC8E9@BL0PR07MB5665.namprd07.prod.outlook.com \
    --to=renaud.barbier@ametek.com \
    --cc=barebox@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox