From: Ed Swierk <eswierk@aristanetworks.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] pci irq confusion
Date: Mon, 18 May 2009 10:24:02 -0700 [thread overview]
Message-ID: <9ae48b020905181024p15b3207fy7ea7eb62b868ec0b@mail.gmail.com> (raw)
In-Reply-To: <4A0D2A2B.7050302@redhat.com>
On Fri, May 15, 2009 at 1:39 AM, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Putting the three info sources into a table gives this picture:
>
> | qemu | lspci | driver
> ------------------------+--------+---------+----------
> 00:01.2 usb | 9 | 9 | 9
> 00:01.3 acpi | 11 | 9 | 11
> 00:03.0 xen-platform | 11 | 11 | 11
> 00:04.0 scsi | 9 | 9 | 9
> 00:05.0 virtio-blk | 11 | 10 | 10
> 00:06.0 virtio-baloon | 9 | 9 | 9
>
> Note the inconsistencies for acpi and virtio-blk. Where do they come from?
> Is that normal? Or is that something which needs fixing?
qemu's "info pci" monitor command gets the IRQ value from offset 0x3c
in the device's PCI config space, which is a useless scratch register.
Some BIOSes may write to this register the actual IRQ assigned to the
device, but many don't, and I don't know of any OS that relies on it.
IMHO this IRQ value is misleading and shouldn't be reported by qemu at
all.
lspci reads IRQ info for each device from sysfs, and represents the
IRQ on which Linux would expect to receive device interrupts if the
driver requested PCI interrupts. /proc/interrupts shows the IRQs that
have actually been associated with device drivers that requested them,
PCI or otherwise.
I'm no expert on ACPI but it appears that the Linux ACPI driver
doesn't use PCI interrupts, and is instead assigned an IRQ through
some other means; the PCI IRQ that Linux happens to associate with
device 00:01.3 is never used.
--Ed
next prev parent reply other threads:[~2009-05-18 17:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-15 8:39 [Qemu-devel] pci irq confusion Gerd Hoffmann
2009-05-18 17:24 ` Ed Swierk [this message]
2009-05-18 17:48 ` M. Warner Losh
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=9ae48b020905181024p15b3207fy7ea7eb62b868ec0b@mail.gmail.com \
--to=eswierk@aristanetworks.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.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).