All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: patches@linaro.org, Tim Deegan <tim@xen.org>,
	ian.campbell@citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH] xen/arm: Set up Versatile Express timer frequency to 24 Mhz
Date: Mon, 24 Jun 2013 16:58:44 +0100	[thread overview]
Message-ID: <51C86CB4.5030903@linaro.org> (raw)
In-Reply-To: <alpine.DEB.2.02.1306241546260.4782@kaball.uk.xensource.com>

On 06/24/2013 03:52 PM, Stefano Stabellini wrote:

> On Mon, 24 Jun 2013, Tim Deegan wrote:
>> At 14:10 +0100 on 24 Jun (1372083058), Julien Grall wrote:
>>> On TC2, the timer frequency was set to 100 Mhz which slows down the whole
>>> platform.
>>> When Linux is running on bare metal, the frequency is 24 Mhz.
>>>
>>> "sleep 60" in dom0 takes:
>>>   - 4 mins with a frequency equals to 100 Mhz
>>>   - 1 min with a frequency equals to 24 Mhz
>>>
>>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
>>
>> Is this a problem with the vexpress (e.g. the timer runs at 24MHz
>> regardless of this setting, which would explain the otherwise odd
>> numbers you give above), or just that linux code assumes the timer is
>> always 24MHz?
>>
>> If it's the latter, I think it needs to be fixed on the linux side.  Xen
>> can't let the guest OS dictate things like this, since we might want to
>> run two guests with different OSes.  Also, if linux changes its choice,
>> we'd have trouble with old and new linux running together.
> 
> Linux gets the frequency from:
> 
> 1) device tree
> 2) the arch timer register
> 
> in this order.
> Either way it should work.
> 
> Could it be that Xen is failing to set the frequency on the versatile
> express? Therefore the hardware is running the timer at a different
> frequency than Xen is expecting it to?



Lots of place in the DTS and the board configuration use a frequency of
24Mhz.
On the arndale, the timer frequency is 24Mhz, why do we need 100Mhz on
the versatile express?

It seems U-boot uses SP810 to modify the clock frequency on the
versatile express but I can't find documentation about the different
registers.

-- 
Julien

  reply	other threads:[~2013-06-24 15:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-24 13:10 [PATCH] xen/arm: Set up Versatile Express timer frequency to 24 Mhz Julien Grall
2013-06-24 13:51 ` Tim Deegan
2013-06-24 14:52   ` Stefano Stabellini
2013-06-24 15:58     ` Julien Grall [this message]
2013-06-24 16:26       ` Stefano Stabellini
2013-06-25 15:31   ` Ian Campbell
2013-06-25 15:46     ` Julien Grall
2013-06-25 16:30       ` Ian Campbell
2013-06-26  0:05       ` Sengul Thomas
2013-06-26  8:31         ` Tim Deegan
2013-06-26 10:24           ` Stefano Stabellini
2013-06-26 10:52             ` Tim Deegan
2013-06-26 11:10               ` Julien Grall
2013-06-26 11:39                 ` Ian Campbell
2013-06-26 12:38                   ` Julien Grall
2013-06-26 12:41                     ` Tim Deegan

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=51C86CB4.5030903@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=patches@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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.