All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: Shaohua Li <shaohua.li@intel.com>
Cc: Lee Howard <faxguy@howardsilvan.com>, linux-acpi@vger.kernel.org
Subject: Re: controlling ACPI IRQ routing
Date: Sat, 29 Dec 2007 03:39:48 -0500	[thread overview]
Message-ID: <200712290339.48354.lenb@kernel.org> (raw)
In-Reply-To: <1198821979.20548.9.camel@sli10-desk.sh.intel.com>

On Friday 28 December 2007 01:06, Shaohua Li wrote:
> 
> On Thu, 2007-12-27 at 21:29 -0800, Lee Howard wrote:
> > Shaohua Li wrote:
> > > In IOAPIC mode, interrupt priority isn't related with the pin (in your
> > > case, irq 16 or 19), but the vector of the pin. How vector of a pin is
> > > allocated is quite random. Usually driver who calls pci_enable_device
> > > earier will get a lower priority vector.
> > 
> > You used the words "random" and "usually".  Could you elaborate on
> > the 
> > randomness and when usually doesn't apply?
> > 
> > So the means to prioritize a driver is to see that it gets installed 
> > earlier?  There is no other mechanism to "reserve" pin vector 
> > allocations for a specific device or driver?

> Currently vector is allocated when pci_enable_device is called. So which
> vector is allocated depends on how many drivers already called the
> routine. The first vector is 0x31, later higher priority (higher) vector
> will be allocated. In latest kernel, a vector of a irq could be variable
> when irq affinity is set, so it's much complex. There is no existing
> method to reserve a vector for a device.

1000 interrupts/second isn't a lot on modern hardware.
Indeed, many linux distros run with 1000 clock ticks/second today.

I don't understand why interrupt priority has anything to do
with what you are seeing.  To notice such a thing, you'd have
to have a lot of competing interrupts firing at the same time
and the messages queued up inside the LAPIC and the processor
spending a large % of its time in interrupt context.
(does top(1) say that you're running a large %sys?)

What is the total interrupt rate on the system when this
device is doing 1000/second?

Are there multiple cores on the system?  If so,
are the interrupts bound to certain cores or is
irqbalance running?

-Len


  reply	other threads:[~2007-12-29  8:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-27 22:00 controlling ACPI IRQ routing Lee Howard
2007-12-28  4:05 ` Shaohua Li
2007-12-28  5:29   ` Lee Howard
2007-12-28  6:06     ` Shaohua Li
2007-12-29  8:39       ` Len Brown [this message]
2007-12-29 18:40         ` Lee Howard
2008-01-02 14:11           ` Dominique Michel
2008-01-05  5:51             ` Len Brown
2008-01-06 16:38               ` Lee Howard
2008-01-08 16:49                 ` Chuck Ebbert
2008-01-03  0:04       ` Lee Howard
2008-01-05  5:48         ` Len Brown
2008-01-02 23:59   ` Lee Howard

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=200712290339.48354.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=faxguy@howardsilvan.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=shaohua.li@intel.com \
    /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.