public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alessandro Rubini <rubini-list@gnudd.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Performance problems with gunzip
Date: Fri, 22 Jan 2010 16:45:11 +0100	[thread overview]
Message-ID: <20100122154511.GA13051@morgana.gnudd.com> (raw)
In-Reply-To: <m2vdeucgk7.fsf@ohwell.denx.de>

> I fear this is not as easy as flipping a bit in a register.  Depending
> on the platform caches tend to be tied to the MMU, so enabling the
> caches require setting up correct data structures for the MMU to work.
> That's the non-trivial work.

Not that difficult, either. You just need to fill the top-level
page table for 1MB sections (4096 sections = 16k bytes, which must
be aligned on a 16k boundary).

> Apart from that, there is CONFIG_CMD_CACHE which builds
> common/cmd_cache.c.  I see that at least two PXA250 platforms enable
> this, so maybe simply try that?

I think it's always disabled on arm, for the mmu reason.

> Maybe you can reap the code from their repository.  If you do, please
> post it here ;)

Or I can cook an RFC patch later, after redoing the 8815 patches.
I was just considering trying it these days, as I've done the same
on another straight-on-iron project and it's not that difficult.

/alessandro

  reply	other threads:[~2010-01-22 15:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22 14:03 [U-Boot] Performance problems with gunzip A. Geisreiter
2010-01-22 14:45 ` Detlev Zundel
2010-01-22 14:57   ` A. Geisreiter
2010-01-22 15:20     ` Detlev Zundel
2010-01-22 15:45       ` Alessandro Rubini [this message]
2010-01-22 16:03         ` Detlev Zundel
2010-01-23  1:33           ` Alessandro Rubini
2010-01-25  9:10       ` A. Geisreiter

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=20100122154511.GA13051@morgana.gnudd.com \
    --to=rubini-list@gnudd.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