Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M671c-00017K-8k for qemu-devel@nongnu.org; Mon, 18 May 2009 13:53:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M671X-0000zj-7c for qemu-devel@nongnu.org; Mon, 18 May 2009 13:53:20 -0400 Received: from [199.232.76.173] (port=55136 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M671X-0000za-4V for qemu-devel@nongnu.org; Mon, 18 May 2009 13:53:15 -0400 Received: from bsdimp.com ([199.45.160.85]:52341 helo=harmony.bsdimp.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M671W-0003ob-D9 for qemu-devel@nongnu.org; Mon, 18 May 2009 13:53:14 -0400 Date: Mon, 18 May 2009 11:48:47 -0600 (MDT) Message-Id: <20090518.114847.-1543904051.imp@bsdimp.com> Subject: Re: [Qemu-devel] pci irq confusion From: "M. Warner Losh" In-Reply-To: <9ae48b020905181024p15b3207fy7ea7eb62b868ec0b@mail.gmail.com> References: <4A0D2A2B.7050302@redhat.com> <9ae48b020905181024p15b3207fy7ea7eb62b868ec0b@mail.gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eswierk@aristanetworks.com Cc: kraxel@redhat.com, qemu-devel@nongnu.org In message: <9ae48b020905181024p15b3207fy7ea7eb62b868ec0b@mail.gmail.co= m> Ed Swierk writes: : On Fri, May 15, 2009 at 1:39 AM, Gerd Hoffmann wr= ote: : > Putting the three info sources into a table gives this picture: : > : > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0qemu =A0| =A0ls= pci =A0| =A0driver : > ------------------------+--------+---------+---------- : > 00:01.2 =A0usb =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A09 =A0 | =A0 =A0 9 =A0= | =A0 =A0 9 : > 00:01.3 =A0acpi =A0 =A0 =A0 =A0 =A0 | =A0 11 =A0 | =A0 =A0 9 =A0 | = =A0 =A011 : > 00:03.0 =A0xen-platform =A0 | =A0 11 =A0 | =A0 =A011 =A0 | =A0 =A01= 1 : > 00:04.0 =A0scsi =A0 =A0 =A0 =A0 =A0 | =A0 =A09 =A0 | =A0 =A0 9 =A0 = | =A0 =A0 9 : > 00:05.0 =A0virtio-blk =A0 =A0 | =A0 11 =A0 | =A0 =A010 =A0 | =A0 =A0= 10 : > 00:06.0 =A0virtio-baloon =A0| =A0 =A09 =A0 | =A0 =A0 9 =A0 | =A0 =A0= 9 : > : > Note the inconsistencies for acpi and virtio-blk. =A0Where do they = come from? : > =A0Is that normal? =A0Or 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 a= t : all. I know that all the BSDs (and I thought Linux) require the scratch register to be correct, if it isn't 0xff... Warner