From: David Brownell <david-b@pacbell.net>
To: "Remy Bohmer" <linux@bohmer.net>
Cc: "Haavard Skinnemoen" <hskinnemoen@atmel.com>,
akpm@linux-foundation.org, LKML <linux-kernel@vger.kernel.org>,
"David Brownell" <dbrownell@users.sourceforge.net>,
"Nicolas Ferre" <nicolas.ferre@rfo.atmel.com>,
"Andrew Victor" <linux@maxim.org.za>,
"john stultz" <johnstul@us.ibm.com>,
"Thomas Gleixner" <tglx@linutronix.de>
Subject: Re: [PATCH] atmel_tc clocksource/clockevent code
Date: Tue, 4 Mar 2008 12:47:50 -0800 [thread overview]
Message-ID: <200803041247.50877.david-b@pacbell.net> (raw)
In-Reply-To: <3efb10970803041142l4a03dbb9uf11651d4cc7dde96@mail.gmail.com>
On Tuesday 04 March 2008, Remy Bohmer wrote:
> > +/* For now, we always use the 32K clock ... this optimizes for NO_HZ,
> > + * because using one of the divided clocks would usually mean the
> > + * tick rate can never be less than several dozen Hz (vs 0.5 Hz).
> > + *
> > + * A divided clock could be good for high resolution timers, since
> > + * 30.5 usec resolution can seem "low".
>
> I want to comment on that.
>
> I noticed that on rm9200 the timer interrupt handler itself can cost
> about 50us to more than 100usec in itself (measured through ETM
> trace), combined with a worst case interrupt latency of about 75us.
Could you elaborate on where that 50-100 usec gets spent? Does
the same issue happpen with the $SUBJECT patch (if you tweak the
clocksource ratings to use its clockevents on rm9200)?
I'd not think the timer IRQ logic accounts for much of that time,
and the rest of the instruction cycles would seem to be either
in genirq or gentime. Unless the issue is that accessing that
particular hardware is slow, with clockdomain crossing etc ...
or that AT91 has way too many handlers sitting on IRQ-1.
If it's a gentime or genirq issue, that's somewhat amenable to
fixing ... and it would also impact the $SUBJECT patch both on
other AT91 ARM9 cores and on the AVR32 AP7 cores.
> So, a higher resolution than 30usec is useless on these cores, and
> setting timers on a frequency that high will just choke the processor
> in only handling timers...
Should the min_delta_ns be increased in at91rm9200_time.c then?
Right now, as you probably recall, it's at the lowest value
needed for correctness: a smidgeon over two ticks (~ 72 nsec).
- Dave
next prev parent reply other threads:[~2008-03-04 20:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-04 13:07 [PATCH] atmel_tc library Haavard Skinnemoen
2008-03-04 13:07 ` [PATCH] atmel_tc clocksource/clockevent code Haavard Skinnemoen
2008-03-04 19:42 ` Remy Bohmer
2008-03-04 20:47 ` David Brownell [this message]
2008-03-05 11:17 ` Remy Bohmer
2008-03-05 13:06 ` David Brownell
2008-03-05 16:45 ` Thomas Gleixner
2008-03-05 21:14 ` David Brownell
2008-03-05 22:35 ` Remy Bohmer
2008-03-05 22:52 ` Thomas Gleixner
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=200803041247.50877.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=akpm@linux-foundation.org \
--cc=dbrownell@users.sourceforge.net \
--cc=hskinnemoen@atmel.com \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@bohmer.net \
--cc=linux@maxim.org.za \
--cc=nicolas.ferre@rfo.atmel.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®