From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkH9v-0003Y6-9s for qemu-devel@nongnu.org; Thu, 19 Mar 2009 08:15:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkH9q-0003Wz-NI for qemu-devel@nongnu.org; Thu, 19 Mar 2009 08:15:38 -0400 Received: from [199.232.76.173] (port=58173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkH9q-0003Ws-Cy for qemu-devel@nongnu.org; Thu, 19 Mar 2009 08:15:34 -0400 Received: from wf-out-1314.google.com ([209.85.200.172]:40978) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LkH9p-0006qb-TD for qemu-devel@nongnu.org; Thu, 19 Mar 2009 08:15:34 -0400 Received: by wf-out-1314.google.com with SMTP id 29so616935wff.4 for ; Thu, 19 Mar 2009 05:15:32 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 19 Mar 2009 17:45:32 +0530 Message-ID: From: rukhsana ansari Content-Type: multipart/alternative; boundary=000e0cd30470b66cd9046577c111 Subject: [Qemu-devel] IRQ assignment problem for Net and virtio devices with QEMU 0.10.0 and coreboot v2 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --000e0cd30470b66cd9046577c111 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, Software used : qemu-0.10.0, coreboot-v2, filo(latest svn version), fedora9 image Problem encountered: qemu boots Fedora9 image successfully. However, the ethernet interface isn't up and dmesg shows an irq problem. Things tried out: I've tried pci=biosirq and problems still remains. I've also patched with the qemu bios patch (0.9.1) available at: http://www.mail-archive.com/coreboot@coreboot.org/msg01771.html However, I haven't applied the other patches that are meant for 0.9 and available at ttp://www.coreboot.org/QEMU_Build_Tutorial#Building_Qemu because of the code difference with 0.10.0 Any help is greatly appreciated. === The following is an edited version of dmesg that shows an irq problem: ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker PCI: No IRQ known for interrupt pin A of device 0000:00:03.0. Please try using pci=biosirq. eth0: RealTek RTL-8029 found at 0x1000, IRQ 0, 52:54:00:12:34:56. PCI: No IRQ known for interrupt pin A of device 0000:00:04.0. Please try using pci=biosirq. IRQ handler type mismatch for IRQ 0 current handler: timer Pid: 490, comm: modprobe Not tainted 2.6.25-14.fc9.i686 #1 [] setup_irq+0x19a/0x1b2 [] ? vp_interrupt+0x0/0x9a [virtio_pci] [] request_irq+0xc8/0xe6 [] virtio_pci_probe+0x138/0x193 [virtio_pci] [] pci_device_probe+0x39/0x59 [] driver_probe_device+0xa0/0x136 [] __driver_attach+0x79/0xaf [] bus_for_each_dev+0x3b/0x63 [] driver_attach+0x14/0x16 [] ? __driver_attach+0x0/0xaf [] bus_add_driver+0x9d/0x1ba [] driver_register+0x47/0xa7 [] __pci_register_driver+0x35/0x64 [] virtio_pci_init+0x28/0x3d [virtio_pci] [] sys_init_module+0x17be/0x18f6 [] ? selinux_file_permission+0x100/0x106 [] ? security_file_permission+0xf/0x11 [] ? sys_read+0x3b/0x60 [] syscall_call+0x7/0xb ======================= virtio-pci: probe of 0000:00:04.0 failed with error -16 --- IRQ handler type mismatch for IRQ 0 current handler: timer Pid: 1524, comm: NetworkManager Not tainted 2.6.25-14.fc9.i686 #1 [] setup_irq+0x19a/0x1b2 [] ? ei_interrupt+0x0/0xa [8390] [] request_irq+0xc8/0xe6 [] ne2k_pci_open+0x1c/0x79 [ne2k_pci] [] dev_open+0x46/0x7e [] dev_change_flags+0x9f/0x152 [] do_setlink+0x211/0x2c3 [] rtnl_setlink+0xe2/0xe6 [] ? rtnl_setlink+0x0/0xe6 [] rtnetlink_rcv_msg+0x1a0/0x1ba [] ? rtnetlink_rcv_msg+0x0/0x1ba [] netlink_rcv_skb+0x30/0x86 [] rtnetlink_rcv+0x1c/0x24 [] netlink_unicast+0x1b1/0x20f [] netlink_sendmsg+0x255/0x262 [] sock_sendmsg+0xde/0xf9 [] ? autoremove_wake_function+0x0/0x33 [] ? autoremove_wake_function+0x0/0x33 [] ? socket_has_perm+0x53/0x5d [] ? copy_from_user+0x39/0x121 [] ? verify_iovec+0x40/0x6f [] sys_sendmsg+0x13f/0x192 [] ? sys_recvmsg+0x116/0x17b [] ? copy_to_user+0x3b/0x10a [] ? move_addr_to_user+0x56/0x6e [] ? sys_getsockname+0x59/0x76 [] ? _spin_unlock_bh+0xe/0x10 [] ? release_sock+0x80/0x88 [] ? sock_setsockopt+0x506/0x510 [] ? selinux_socket_setsockopt+0x2d/0x32 [] sys_socketcall+0x16b/0x188 [] syscall_call+0x7/0xb = ====================== cat /proc/interrupts shows - CPU0 0: 154394 XT-PIC-XT timer 1: 221 XT-PIC-XT i8042 2: 0 XT-PIC-XT cascade 4: 4 XT-PIC-XT 12: 111 XT-PIC-XT i8042 14: 5125 XT-PIC-XT ata_piix 15: 753 XT-PIC-XT ata_piix NMI: 0 Non-maskable interrupts LOC: 102 Local timer interrupts RES: 0 Rescheduling interrupts CAL: 0 function call interrupts TLB: 0 TLB shootdowns TRM: 0 Thermal event interrupts SPU: 0 Spurious interrupts ERR: 0 MIS: 0 Thanks, -Rukhsana -- -Rukhsana --000e0cd30470b66cd9046577c111 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

Software used :
qemu-0.10.0, coreboot-v2, filo(latest svn ver= sion), fedora9 image

Problem encountered:
qemu boots Fedora9 imag= e successfully. However, the ethernet interface isn't up and dmesg show= s an irq problem.

Things tried out:
I've tried pci=3Dbiosirq and problems still re= mains.
I've also patched with the qemu bios patch (0.9.1) available = at:
http://www.mail-archive.com/coreboot@coreboot.org= /msg01771.html
However, I haven't applied the other patches that are meant for 0.9 and= available at
ttp://www.coreboot.org=
/QEMU_Build_Tutorial#Building_Qemu

because of the code differen= ce with 0.10.0

Any help is greatl= y appreciated.


=3D=3D=3D
=A0
The follo= wing is an edited version of dmesg that shows an irq problem:

ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
PCI:= No IRQ known for interrupt pin A of device 0000:00:03.0. Please try using = pci=3Dbiosirq.
eth0: RealTek RTL-8029 found at 0x1000, IRQ 0, 52:54:00:1= 2:34:56.
PCI: No IRQ known for interrupt pin A of device 0000:00:04.0. Please try us= ing pci=3Dbiosirq.
IRQ handler type mismatch for IRQ 0
current handle= r: timer
Pid: 490, comm: modprobe Not tainted 2.6.25-14.fc9.i686 #1
=A0[<c045cae6>] setup_irq+0x19a/0x1b2
=A0[<c48ec2fe>] ? vp_i= nterrupt+0x0/0x9a [virtio_pci]
=A0[<c045cbc6>] request_irq+0xc8/0x= e6
=A0[<c48ec53a>] virtio_pci_probe+0x138/0x193 [virtio_pci]
= =A0[<c04feac9>] pci_device_probe+0x39/0x59
=A0[<c0562826>] driver_probe_device+0xa0/0x136
=A0[<c0562935>= ;] __driver_attach+0x79/0xaf
=A0[<c05621d3>] bus_for_each_dev+0x3b= /0x63
=A0[<c05626cb>] driver_attach+0x14/0x16
=A0[<c05628bc&= gt;] ? __driver_attach+0x0/0xaf
=A0[<c0561ba4>] bus_add_driver+0x9d/0x1ba
=A0[<c0562ab8>] dr= iver_register+0x47/0xa7
=A0[<c04fec75>] __pci_register_driver+0x35= /
0x64
=A0[<c480e028>] virtio_pci_i= nit+0x28/0x3d [virtio_pci]
=A0[<c0446f93>] sys_init_module+0x17be/0x18f6
=A0[<c04d3577>] ? selinux_file_permission+0x100/0x106
=A0[<c04c= c41c>] ? security_file_permission+0xf/0x11
=A0[<c04835e1>] ? sy= s_read+0x3b/0x60
=A0[<c0405bf2>] syscall_call+0x7/0xb
=A0=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
virtio-pci: probe of 0000:00:04.0 failed with error -16

---
IRQ h= andler type mismatch for IRQ 0
current handler: timer
Pid: 1524, comm= : NetworkManager Not tainted 2.6.25-14.fc9.i686 #1
=A0[<c045cae6>]= setup_irq+0x19a/0x1b2
=A0[<c488ff10>] ? ei_interrupt+0x0/0xa [8390]
=A0[<c045cbc6>= ] request_irq+0xc8/0xe6
=A0[<c48e8447>] ne2k_pci_open+0x1c/0x79 [n= e2k_pci]
=A0[<c05baccf>] dev_open+0x46/0x7e
=A0[<c05ba84e>= ;] dev_change_flags+0x9f/0x152
=A0[<c05c12f6>] do_setlink+0x211/0x2c3
=A0[<c05c148a>] rtnl_= setlink+0xe2/0xe6
=A0[<c05c13a8>] ? rtnl_setlink+0x0/0xe6
=A0[&= lt;c05c231f>] rtnetlink_rcv_msg+0x1a0/0x1ba
=A0[<c05c217f>] ? r= tnetlink_rcv_msg+0x0/0x1ba
=A0[<c05cf18e>] netlink_rcv_skb+0x30/0x86
=A0[<c05c2177>] rt= netlink_rcv+0x1c/0x24
=A0[<c05cecb8>] netlink_unicast+0x1b1/0x20f<= br>=A0[<c05cef6b>] netlink_sendmsg+0x255/0x262
=A0[<c05afda0>= ;] sock_sendmsg+0xde/0xf9
=A0[<c04387e7>] ? autoremove_wake_function+0x0/0x33
=A0[<c04387= e7>] ? autoremove_wake_function+0x0/0x33
=A0[<c04cf49e>] ? sock= et_has_perm+0x53/0x5d
=A0[<c04f5874>] ? copy_from_user+0x39/0x121<= br> =A0[<c05b6309>] ? verify_iovec+0x40/0x6f
=A0[<c05afefa>] sys_sendmsg+0x13f/0x192
=A0[<c05b08e7>] ? sy= s_recvmsg+0x116/0x17b
=A0[<c04f5997>] ? copy_to_user+0x3b/0x10a=A0[<c05b07b9>] ? move_addr_to_user+0x56/0x6e
=A0[<c05b0aef>= ;] ? sys_getsockname+0x59/0x76
=A0[<c062bb5a>] ? _spin_unlock_bh+0xe/0x10
=A0[<c05b18b2>] ?= release_sock+0x80/0x88
=A0[<c05b2f92>] ? sock_setsockopt+0x506/0x= 510
=A0[<c04d2097>] ? selinux_socket_setsockopt+0x2d/0x32
=A0[&= lt;c05b0deb>] sys_socketcall+0x16b/0x188
=A0[<c0405bf2>] syscall_call+0x7/0xb
=A0=3D
=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
cat /proc/interrupts sh= ows - =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 CPU0=A0=A0=A0=A0=A0=A0
=A0 0:=A0= =A0=A0=A0 154394=A0=A0=A0 XT-PIC-XT=A0=A0=A0=A0=A0=A0=A0 timer
=A0 1:=A0= =A0=A0=A0=A0=A0=A0 221=A0=A0=A0 XT-PIC-XT=A0=A0=A0=A0=A0=A0=A0 i8042
=A0 2:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0 XT-PIC-XT=A0=A0=A0=A0=A0=A0=A0= cascade
=A0 4:=A0=A0=A0=A0=A0=A0=A0=A0=A0 4=A0=A0=A0 XT-PIC-XT=A0=A0=A0= =A0=A0
=A012:=A0=A0=A0=A0=A0=A0=A0 111=A0=A0=A0 XT-PIC-XT=A0=A0=A0=A0= =A0=A0=A0 i8042
=A014:=A0=A0=A0=A0=A0=A0 5125=A0=A0=A0 XT-PIC-XT=A0=A0= =A0=A0=A0=A0=A0 ata_piix
=A015:=A0=A0=A0=A0=A0=A0=A0 753=A0=A0=A0 XT-PIC= -XT=A0=A0=A0=A0=A0=A0=A0 ata_piix
NMI:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0 Non-maskable interrupts
LOC:=A0= =A0=A0=A0=A0=A0=A0 102=A0=A0 Local timer interrupts
RES:=A0=A0=A0=A0=A0= =A0=A0=A0=A0 0=A0=A0 Rescheduling interrupts
CAL:=A0=A0=A0=A0=A0=A0=A0= =A0=A0 0=A0=A0 function call interrupts
TLB:=A0=A0=A0=A0=A0=A0=A0=A0=A0 = 0=A0=A0 TLB shootdowns
TRM:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0 Thermal e= vent interrupts
SPU:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0 Spurious interrupts
ERR:=A0=A0= =A0=A0=A0=A0=A0=A0=A0 0
MIS:=A0=A0=A0=A0=A0=A0=A0=A0=A0 0


Thanks,
-Rukhsana


--
-Rukhsana
--000e0cd30470b66cd9046577c111--