From: Thomas Gleixner <tglx@linutronix.de>
To: "Schaefer Dr, Frank-Rene ()" <fschaef9@visteon.com>
Cc: linux-kernel@vger.kernel.org
Subject: RE: Interrupt Latencies
Date: Thu, 24 Feb 2011 13:18:05 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.00.1102241304250.2701@localhost6.localdomain6> (raw)
In-Reply-To: <060E4307CE6CA14BB4F7B4A25ECA052904BB7841@VEUMBV03.vistcorp.ad.visteon.com>
Frank,
On Thu, 24 Feb 2011, Schaefer Dr, Frank-Rene () wrote:
> In response to Thomas Gleixner:
>
> > Interrupt latency depends on various factors:
> >
> > - Interrupt disabled code regions
> Could you tell us how this could be detected or measured?
> Is there a central place, where we could toggle a pin to
> see when interrupts are enabled/disabled?
ftrace allows you to analyse that.
> > - Concurrent interrupts and the ordering of handling
> We are only considering the best times that we measure.
Ok.
> > - Deep idle states
> You mean 'suspend' or some type of CPU sleep. Could you elaborate?
> We do not suspend. This should also only be the case for the
> first chunk that is transmitted. But the latencies remain
> over longer time spans.
NOHZ idle can push the cpu into deeper power states (C2/C3). But there
are also BIOSes which do agressive power management behind the kernels
back.
Turn off CONFIG_NOHZ and add "processor.max_cstate=1" to the kernel
command line. You might also try "idle=poll" for a test.
> > - Bus contention
> Nothing else is running.
That does not guarantee anything. Think DMA.
> > How is that interrupt connected to the CPU/chipset?
> The port is part of the chipset connected internally
> via PCI.
>
> > Which driver(s) is/are involved ?
> http://lxr.free-electrons.com/source/drivers/gpio/pl061.c
>
> > How is the pin OUT accessed from the driver?
> gpio_set_value(Pin, Value);
>
> we measured the delay and could find that it was in the range
> of some nano seconds.
Is the SPI controller part of the chipset or comes the interrupt via
one of the GPIOs as well?
Thanks,
tglx
next prev parent reply other threads:[~2011-02-24 12:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-22 9:35 Schaefer Dr, Frank-Rene ()
2011-02-22 12:33 ` Clemens Ladisch
2011-02-24 8:01 ` Schaefer Dr, Frank-Rene ()
2011-02-24 12:18 ` Thomas Gleixner [this message]
2011-02-22 14:39 ` Thomas Gleixner
2011-02-22 16:10 ` Schaefer Dr, Frank-Rene ()
2011-02-22 17:17 ` 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=alpine.LFD.2.00.1102241304250.2701@localhost6.localdomain6 \
--to=tglx@linutronix.de \
--cc=fschaef9@visteon.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®