* [Question] Ask for arm arch timer
@ 2013-10-16 12:39 Neil Zhang
2013-10-16 12:59 ` Rob Herring
0 siblings, 1 reply; 4+ messages in thread
From: Neil Zhang @ 2013-10-16 12:39 UTC (permalink / raw)
To: rob.herring@calxeda.com; +Cc: linux-kernel@vger.kernel.org, Yu Tang, Zhou Zhu
Hi Rob,
I saw your following patch called clocksource_of_init() directly in time_init() for arm64.
My question is that what should we do if there are some Soc special work need to be done before arch timer can be used?
Thanks in advance.
commit 0583fe478a7d93be2c814b7e50d6e81c287edfe8
Author: Rob Herring <rob.herring@calxeda.com>
Date: Wed Apr 10 18:27:51 2013 -0500
ARM: convert arm/arm64 arch timer to use CLKSRC_OF init
Best Regards,
Neil Zhang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Question] Ask for arm arch timer
2013-10-16 12:39 [Question] Ask for arm arch timer Neil Zhang
@ 2013-10-16 12:59 ` Rob Herring
2013-10-16 13:20 ` Catalin Marinas
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2013-10-16 12:59 UTC (permalink / raw)
To: Neil Zhang
Cc: linux-kernel@vger.kernel.org, Yu Tang, Zhou Zhu, Catalin Marinas,
Will Deacon
[adding Will and Catalin...]
On 10/16/2013 07:39 AM, Neil Zhang wrote:
> Hi Rob,
> I saw your following patch called clocksource_of_init() directly in time_init() for arm64.
> My question is that what should we do if there are some Soc special work need to be done before arch timer can be used?
> Thanks in advance.
If the timer itself is different, then you should have a different DT
compatible string which you can use to trigger additional initialization.
Integration level initialization like enabling clocks would need
something different as no machine descriptors exist for arm64.
Another option would be do the setup in secure world or the bootloader.
Can you be more specific what initialization is needed.
Rob
> commit 0583fe478a7d93be2c814b7e50d6e81c287edfe8
> Author: Rob Herring <rob.herring@calxeda.com>
> Date: Wed Apr 10 18:27:51 2013 -0500
>
> ARM: convert arm/arm64 arch timer to use CLKSRC_OF init
>
>
> Best Regards,
> Neil Zhang
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Question] Ask for arm arch timer
2013-10-16 12:59 ` Rob Herring
@ 2013-10-16 13:20 ` Catalin Marinas
2013-10-17 1:25 ` Neil Zhang
0 siblings, 1 reply; 4+ messages in thread
From: Catalin Marinas @ 2013-10-16 13:20 UTC (permalink / raw)
To: Rob Herring
Cc: Neil Zhang, linux-kernel@vger.kernel.org, Yu Tang, Zhou Zhu,
Will Deacon
On Wed, Oct 16, 2013 at 01:59:25PM +0100, Rob Herring wrote:
> On 10/16/2013 07:39 AM, Neil Zhang wrote:
> > I saw your following patch called clocksource_of_init() directly in
> > time_init() for arm64.
> > My question is that what should we do if there are some Soc special
> > work need to be done before arch timer can be used?
> > Thanks in advance.
>
> If the timer itself is different, then you should have a different DT
> compatible string which you can use to trigger additional initialization.
>
> Integration level initialization like enabling clocks would need
> something different as no machine descriptors exist for arm64.
>
> Another option would be do the setup in secure world or the bootloader.
The generic timer should indeed be initialised in the firmware
(bootloader may not be suitable if initialisation needs to happen on
each CPU). Linux doesn't need to do other things than reading the
frequency, programming the interrupts, counters (but definitely not
SoC-specific initialisation).
> Can you be more specific what initialization is needed.
I'm interested in this as well.
--
Catalin
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [Question] Ask for arm arch timer
2013-10-16 13:20 ` Catalin Marinas
@ 2013-10-17 1:25 ` Neil Zhang
0 siblings, 0 replies; 4+ messages in thread
From: Neil Zhang @ 2013-10-17 1:25 UTC (permalink / raw)
To: Catalin Marinas, Rob Herring
Cc: linux-kernel@vger.kernel.org, Yu Tang, Zhou Zhu, Will Deacon
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 1764 bytes --]
> -----Original Message-----
> From: Catalin Marinas [mailto:catalin.marinas@arm.com]
> Sent: 2013Äê10ÔÂ16ÈÕ 21:21
> To: Rob Herring
> Cc: Neil Zhang; linux-kernel@vger.kernel.org; Yu Tang; Zhou Zhu; Will Deacon
> Subject: Re: [Question] Ask for arm arch timer
>
> On Wed, Oct 16, 2013 at 01:59:25PM +0100, Rob Herring wrote:
> > On 10/16/2013 07:39 AM, Neil Zhang wrote:
> > > I saw your following patch called clocksource_of_init() directly in
> > > time_init() for arm64.
> > > My question is that what should we do if there are some Soc special
> > > work need to be done before arch timer can be used?
> > > Thanks in advance.
> >
> > If the timer itself is different, then you should have a different DT
> > compatible string which you can use to trigger additional initialization.
> >
> > Integration level initialization like enabling clocks would need
> > something different as no machine descriptors exist for arm64.
> >
> > Another option would be do the setup in secure world or the bootloader.
>
> The generic timer should indeed be initialised in the firmware (bootloader may
> not be suitable if initialisation needs to happen on each CPU). Linux doesn't need
> to do other things than reading the frequency, programming the interrupts,
> counters (but definitely not SoC-specific initialisation).
>
> > Can you be more specific what initialization is needed.
>
> I'm interested in this as well.
Thanks Catalin and Rob!
Yes, we need to select the clk source and enable it.
Seems we need to put more and more works into firmware on arm64.
>
> --
> Catalin
Best Regards,
Neil Zhang
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-17 1:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 12:39 [Question] Ask for arm arch timer Neil Zhang
2013-10-16 12:59 ` Rob Herring
2013-10-16 13:20 ` Catalin Marinas
2013-10-17 1:25 ` Neil Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox