From: Julien Grall <julien.grall@linaro.org>
To: Suriyan Ramasami <suriyan.r@gmail.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Tim Deegan <tim@xen.org>, Ian Campbell <Ian.Campbell@citrix.com>,
xen-devel@lists.xen.org
Subject: Re: [ARM:PATCH v2 1/1] Pass the timer clock-frequency to DOM0
Date: Sun, 13 Apr 2014 21:20:27 +0100 [thread overview]
Message-ID: <534AF18B.7060703@linaro.org> (raw)
In-Reply-To: <CANoR_OASAABgf_PBkm6XkLfaHTpkf8usihO9AZbeDBi9RJce7Q@mail.gmail.com>
Hello,
On 13/04/14 20:28, Suriyan Ramasami wrote:
> On Fri, Apr 11, 2014 at 9:32 AM, Julien Grall <julien.grall@linaro.org> wrote:
>> Hello,
>>
>> On 04/11/2014 05:05 PM, Suriyan Ramasami wrote:
>>> On Tue, Apr 1, 2014 at 4:12 AM, Ian Campbell <Ian.Campbell@citrix.com> wrote:
>>>> On Fri, 2014-03-28 at 14:04 +0000, Julien Grall wrote:
>>>>> That made me think that this is the only board with this issue. I would
>>>>> definitely prefer to fix the clock frequency in U-boot. The bootloader
>>>>> should respect the ARM ARM (see B.8.1.1):
>>>>>
>>>>> "The CNTFRQ register is UNKNOWN at reset, and therefore the counter
>>>>> frequency must written to CNTFRQ as part
>>>>> of the system boot process."
>>>>
>>>> Yes, Suriyan, please exhaust this avenue of attack (fixing u-boot on the
>>>> platform) first.
>>>>
>>> Thank you gentlemen for your comments.
>>> The problem with this board is that the uboot is not entered in secure
>>> mode, and hence the mcr indstruction to set the ARCH timer frequency
>>> cannot be executed in u-boot.
>>
>> If so, what is the state of the CPU when it jumps to U-boot?
>> The CPU has to be either in secure mode or hyp mode.
>> AFAIK, if it's NS you won't be able to go in hyp mode, unless crash the
>> CPU...
>>
> The CPU is in HYP mode when it jumps to U-boot.
I'm lost...
From my understanding (i.e what I read on the web). For your case you
use a modified U-boot/SPL, right?
If so, without this modification, in which state U-boot is booting? What
are the CPU states along the different bl (1,2)?
Did you try this u-boot:
https://github.com/medicalwei/u-boot-odroidxu-hyp? FYI I don't have any
odroid XU. I'm trying to understand
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-04-13 20:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-27 3:54 [ARM:PATCH v2 1/1] Pass the timer clock-frequency to DOM0 Suriyan Ramasami
2014-03-27 21:48 ` Julien Grall
2014-03-27 22:16 ` Suriyan Ramasami
2014-03-28 14:04 ` Julien Grall
2014-04-01 11:12 ` Ian Campbell
2014-04-11 16:05 ` Suriyan Ramasami
2014-04-11 16:32 ` Julien Grall
2014-04-13 19:28 ` Suriyan Ramasami
2014-04-13 20:20 ` Julien Grall [this message]
2014-04-13 20:48 ` Suriyan Ramasami
2014-04-13 21:40 ` Julien Grall
2014-04-13 22:55 ` Suriyan Ramasami
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=534AF18B.7060703@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=suriyan.r@gmail.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.