linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] arm: zynq: Fix system clock with multi_v7_defconfig
Date: Sat, 11 Apr 2015 00:42:13 +0200	[thread overview]
Message-ID: <6604961.5ESoH44gK3@wuerfel> (raw)
In-Reply-To: <9ba39554-1587-42c6-977e-e4da896cf9c8@BN1BFFO11FD051.protection.gbl>

On Friday 10 April 2015 15:15:11 S?ren Brinkmann wrote:
> On Fri, 2015-04-10 at 10:59PM +0200, Arnd Bergmann wrote:
> > On Friday 10 April 2015 13:41:34 S?ren Brinkmann wrote:
> > > On Fri, 2015-04-10 at 10:04PM +0200, Arnd Bergmann wrote:
> > > > I've just had another idea: how about introducing a new compatible string
> > > > for the global timer that gets used for timers that have their frequency
> > > > tied to the CPU (alternatively a bool property in that node). This can
> > > > be checked by the clocksource driver, which will then be able to either
> > > > skip the device if cpufreq is in use, or implement a more sophisticated
> > > > workaround.
> > > 
> > > If this is the only available clocksource, you'd still want to use it
> > > though. A bad clocksource is still better than none. But I guess that
> > > would just mean to lie in the DT.
> > 
> > On zynq, you always have a local time, right?
> 
> Yes, we have the cadence_ttc as clocksource.

I was thinking of the generic ARM timer (drivers/clocksource/arm_arch_timer.c),
but I forgot that this was only introduced with Cortex-A7/A15 while Zynq is
based on the older Cortex-A9.

> > If we get a platform that has no reliable clocksource, it's probably
> > time to implement scaling in the global timer driver.
> 
> IIRC, the person submitting the driver for the arm_gt said something
> like that those days: https://lkml.org/lkml/2013/5/8/250
> No clue what the current status of that is today though.

I see. Well, I'm not making it your problem, since you have another
timer to use, but I guess it will get fixed eventually. This kind of
bug tends to get duplicated across chips from multiple vendors.

	Arnd

  reply	other threads:[~2015-04-10 22:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23  1:39 [PATCH v2] arm: zynq: Fix system clock with multi_v7_defconfig Ola Jeppsson
2015-03-23  6:55 ` Michal Simek
2015-03-23  7:05 ` Michal Simek
2015-04-10 13:44   ` Arnd Bergmann
2015-04-10 15:09     ` Ola Jeppsson
2015-04-10 20:04       ` Arnd Bergmann
2015-04-10 20:41         ` Sören Brinkmann
2015-04-10 20:59           ` Arnd Bergmann
2015-04-10 22:15             ` Sören Brinkmann
2015-04-10 22:42               ` Arnd Bergmann [this message]
2015-04-10 16:02 ` Sören Brinkmann

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=6604961.5ESoH44gK3@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.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).