linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Antipov <dmitry.antipov@linaro.org>
To: Andrew Richardson <chardson@umich.edu>
Cc: John Stultz <john.stultz@linaro.org>,
	linaro-dev@lists.linaro.org, linux-omap@vger.kernel.org
Subject: Re: Minimum timing resolution in Ubuntu/Linaro on the PandaBoard ES
Date: Wed, 08 Feb 2012 05:55:22 -0800	[thread overview]
Message-ID: <4F327ECA.4040105@linaro.org> (raw)
In-Reply-To: <51DAA6EF-1C3B-4964-8447-893D295E51A1@umich.edu>

On 02/08/2012 01:32 AM, Andrew Richardson wrote:

> Do you recommend using "Get linaro image tools: method 2 (source code)"
> ( http://releases.linaro.org/12.01/ubuntu/leb-panda/ ) and building the
> kernel myself?

Unfortunately this is the only way. In theory, there are clocksource=
boot option, and sysfs interface under /sys/devices/system/clocksource,
but, IIUC, there is no way to compile the kernel with both 32K and MPU
timers support and then select one of them for the default clock source
at the boot time or when the system is running.

> It seems to me that we would want to disable some of the power-saving
> changes that have been made, such as this timer, and possibly configure
> other settings like cache behavior, though I have no idea
> how they're currently set. I have a bunch of docs from ARM on power and
> cache config, but I haven't messed around with them as I'm not sure where
> to start. My best guess is that I would have to rebuild the kernel to
> start handling that configuration myself. Is that true?

If you're seriously concerned on the optimization for the particular
workload, you definitely should.

> Some people ( http://groups.google.com/group/pandaboard/browse_thread/thread/a18fa3514d130720 )
> have mentioned enabling line fill and prefetching to speed up memcpy
> operations, which also seems  useful. Is this also a kernel-level setting?

Sure. Caching (and it's relationship to real memory speed) is a hard topic.
For the starting point, try:

1. Read http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka13544.html
    (this is for A8, but should be more or less applicable to A9);

2. Run 'dmesg | grep -i cache' and check for the something similar to:

    L310 cache controller enabled
    l2x0: 16 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x7e470000, Cache size: 1048576 B

3. Read http://infocenter.arm.com/help/topic/com.arm.doc.ddi0246f/DDI0246F_l2c310_r3p2_trm.pdf
    and realize the meaning of these AUX_CTRL bits;

4. Read arch/arm/mach-omap2/omap4-common.c and arch/arm/mm/cache-l2x0.c, try to play
    with 'aux_ctrl' bits within omap_l2_cache_init() and check whether it affects your
    workload. Note this may cause kernel crash and/or prevent the system from booting at all.

Dmitry

  reply	other threads:[~2012-02-08 13:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4F31A91B.8080106@umich.edu>
2012-02-08  5:21 ` Minimum timing resolution in Ubuntu/Linaro on the PandaBoard ES Dmitry Antipov
     [not found]   ` <4F32063F.1020607-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-02-08  9:32     ` Andrew Richardson
2012-02-08 13:55       ` Dmitry Antipov [this message]
2012-02-08 14:21         ` Andrew Richardson
2012-02-08 17:05       ` John Stultz
2012-02-08 17:08       ` John Stultz
2012-02-08 18:19         ` Turgis, Frederic
2012-02-08 16:58     ` John Stultz
2012-02-10  0:56   ` Ming Lei

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=4F327ECA.4040105@linaro.org \
    --to=dmitry.antipov@linaro.org \
    --cc=chardson@umich.edu \
    --cc=john.stultz@linaro.org \
    --cc=linaro-dev@lists.linaro.org \
    --cc=linux-omap@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).