Hans-Christian Armingeon
2006-Apr-28 14:40 UTC
[Xen-devel] kernel oops with driver domains: usb ohci Fatal DMA error! Please use ''swiotlb=force''
Hi, I am havong trouble exporting a pci device to a domU. The kernel oopses quite early at boot. How can I fix this? Many thanks in advance, Johnny [509110.561082] PCI: Enabling device 0000:03:00.0 (0000 -> 0002) [509110.577818] ohci_hcd 0000:03:00.0: OHCI Host Controller [509110.578090] ohci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 1 [509110.578105] ohci_hcd 0000:03:00.0: irq 20, io mem 0xfeafc000 [509110.634919] usb usb1: configuration #1 chosen from 1 choice [509110.634947] hub 1-0:1.0: USB hub found [509110.634985] hub 1-0:1.0: 3 ports detected [509110.736386] PCI: Enabling device 0000:03:00.1 (0000 -> 0002) [509110.744485] ohci_hcd 0000:03:00.1: OHCI Host Controller [509110.744530] ohci_hcd 0000:03:00.1: new USB bus registered, assigned bus number 2 [509110.744540] ohci_hcd 0000:03:00.1: irq 20, io mem 0xfeafd000 [509110.794899] usb usb2: configuration #1 chosen from 1 choice [509110.794920] hub 2-0:1.0: USB hub found [509110.794945] hub 2-0:1.0: 3 ports detected [509111.024323] usb 1-2: new full speed USB device using ohci_hcd and address 2 [509111.024333] Fatal DMA error! Please use ''swiotlb=force'' [509111.024344] ----------- [cut here ] --------- [please bite here ] --------- [509111.024347] Kernel BUG at arch/x86_64/kernel/../../i386/kernel/pci-dma-xen.c:309 [509111.024353] invalid opcode: 0000 [1] [509111.024357] CPU 0 [509111.024359] Modules linked in: ohci_hcd usbcore unix 8250 serial_core [509111.024367] Pid: 1422, comm: khubd Tainted: GF 2.6.16-xen-20060428.5-xen0 #1 [509111.024371] RIP: e030:[<ffffffff8010f680>] <ffffffff8010f680>{dma_map_single+347} [509111.024382] RSP: e02b:ffff88001eb17bc8 EFLAGS: 00010296 [509111.024386] RAX: 000000000000003f RBX: ffff88001fa35240 RCX: 0000000000001c3b [509111.024391] RDX: ffffffffff578000 RSI: 0000000000001c3b RDI: ffffffff803b2840 [509111.024395] RBP: 000000018b59f240 R08: 0000000000000000 R09: 0000000000001988 [509111.024399] R10: 000000000000003d R11: 0000000000000005 R12: 0000000000000008 [509111.024403] R13: ffff880001a10870 R14: ffff88001ee4dad4 R15: 0000000000000010 [509111.024410] FS: 00002ad34d8996d0(0000) GS:ffffffff804eb000(0000) knlGS:0000000000000000 [509111.024414] CS: e033 DS: 0000 ES: 0000 [509111.024418] Process khubd (pid: 1422, threadinfo ffff88001eb16000, task ffff88001ee36800) [509111.024422] Stack: ffff88001ee4dac0 ffff88001ee4dac0 0000000000000000 ffff88001fe1e800 [509111.024429] ffff88001fe1e048 ffffffff8801cabe ffffffffffffe404 ffffffff801247d5 [509111.024437] 0000000000001bfc 0000000000001bfc [509111.024441] Call Trace: <ffffffff8801cabe>{:usbcore:hcd_submit_urb+1613} [509111.024463] <ffffffff801247d5>{__call_console_drivers+65} <ffffffff80124a4b>{release_console_sem+311} [509111.024475] <ffffffff8012546a>{vprintk+583} <ffffffff8801d038>{:usbcore:timeout_kill+0} [509111.024492] <ffffffff8801d57c>{:usbcore:usb_start_wait_urb+70} <ffffffff801254ee>{printk+78} [509111.024510] <ffffffff8801d81f>{:usbcore:usb_control_msg+193} <ffffffff88018e41>{:usbcore:hub_port_init+556} [509111.024535] <ffffffff8801a93b>{:usbcore:hub_thread+1561} <ffffffff80135850>{autoremove_wake_function+0} [509111.024554] <ffffffff801354ac>{keventd_create_kthread+0} <ffffffff8801a322>{:usbcore:hub_thread+0} [509111.024569] <ffffffff801354ac>{keventd_create_kthread+0} <ffffffff801355fe>{kthread+205} [509111.024578] <ffffffff8010af2e>{child_rip+8} <ffffffff801354ac>{keventd_create_kthread+0} [509111.024587] <ffffffff80135531>{kthread+0} <ffffffff8010af26>{child_rip+0} [509111.024595] [509111.024595] Code: 0f 0b 68 8a f4 35 80 c2 35 01 5a 5b 48 89 e8 5d 41 5c 41 5d [509111.024609] RIP <ffffffff8010f680>{dma_map_single+347} RSP <ffff88001eb17bc8> [509111.024617] <7>pnp: the driver ''parport_pc'' has been registered _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Muli Ben-Yehuda
2006-May-01 11:12 UTC
Re: [Xen-devel] kernel oops with driver domains: usb ohci Fatal DMA error! Please use ''swiotlb=force''
On Fri, Apr 28, 2006 at 04:40:27PM +0200, Hans-Christian Armingeon wrote:> Hi, > > I am havong trouble exporting a pci device to a domU. > The kernel oopses quite early at boot. > > How can I fix this?Try passing swiotlb=force on the command line.> [509111.024333] Fatal DMA error! Please use ''swiotlb=force'' > [509111.024344] ----------- [cut here ] --------- [please bite here ] --------- > [509111.024347] Kernel BUG at arch/x86_64/kernel/../../i386/kernel/pci-dma-xen.c:309Cheers, Muli _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hans-Christian Armingeon
2006-May-06 23:03 UTC
Re: [Xen-devel] kernel oops with driver domains: usb ohci Fatal DMA error! Please use ''swiotlb=force''
Hi, I still have problems. Am Montag, 1. Mai 2006 13:12 schrieb Muli Ben-Yehuda:> On Fri, Apr 28, 2006 at 04:40:27PM +0200, Hans-Christian Armingeon wrote: > > Hi, > > > > I am havong trouble exporting a pci device to a domU. > > The kernel oopses quite early at boot. > > > > How can I fix this? > > Try passing swiotlb=force on the command line.When I add extra="swiotlb=force" to the domain configuration, I get this error. [ 0.000000] Bootdata ok (command line is ip=192.168.5.51:1.2.3.4:192.168.5.15:255.255.255.0::eth0:off root=/dev/sda1 ro swiotlb=force) [ 0.000000] Linux version 2.6.16-xen-20060428.5-xen0 (root@polydeuces) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu4)) #1 Fri Apr 28 15:07:47 CEST 2006 [ 406.712143] No mptable found. [ 406.716994] Built 1 zonelists [ 406.717000] Kernel command line: ip=192.168.5.51:1.2.3.4:192.168.5.15:255.255.255.0::eth0:off root=/dev/sda1 ro swiotlb=force [ 406.718765] Initializing CPU#0 [ 406.718891] PID hash table entries: 4096 (order: 12, 131072 bytes) [ 406.719014] Xen reported: 2189.786 MHz processor. [ 406.720589] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 406.721453] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 406.879058] ----------- [cut here ] --------- [please bite here ] --------- [ 406.879070] Kernel BUG at lib/../arch/i386/kernel/swiotlb.c:152 [ 406.879075] invalid opcode: 0000 [1] [ 406.879079] CPU 0 [ 406.879081] Modules linked in: [ 406.879085] Pid: 0, comm: swapper Not tainted 2.6.16-xen-20060428.5-xen0 #1 [ 406.879089] RIP: e030:[<ffffffff80243e03>] <ffffffff80243e03>{swiotlb_init_with_default_size+147} [ 406.879101] RSP: e02b:ffffffff804fff80 EFLAGS: 00010282 [ 406.879105] RAX: 00000000fffffff4 RBX: 0000000004000000 RCX: 000000000000000e [ 406.879109] RDX: ffffffffff578000 RSI: 0000000000000001 RDI: ffffffff804fff00 [ 406.879113] RBP: 0000000000000000 R08: ffffffff804fff30 R09: 0000000000004000 [ 406.879117] R10: 0000000000007ff0 R11: ffffffff804b4354 R12: 0000000000000000 [ 406.879122] R13: ffffffff8034127b R14: 0000000000000000 R15: ffff880000000000 [ 406.879129] FS: 0000000000000000(0000) GS:ffffffff804eb000(0000) knlGS:0000000000000000 [ 406.879132] CS: e033 DS: 0000 ES: 0000 [ 406.879136] Process swapper (pid: 0, threadinfo ffffffff804fe000, task ffffffff803adc00) [ 406.879139] Stack: 0000000000000094 ffffffff80114112 ffff880000000000 ffffffff8050b3ff [ 406.879147] 0000000000020000 0000000000000000 0000000000000000 0000000000000000 [ 406.879153] 0000000000000000 0000000000000000 [ 406.879156] Call Trace: <ffffffff80114112>{pci_swiotlb_init+6} <ffffffff8050b3ff>{mem_init+127} [ 406.879170] <ffffffff8050161a>{start_kernel+321} <ffffffff805010de>{_sinittext+222} [ 406.879181] [ 406.879182] Code: 0f 0b 68 17 33 37 80 c2 98 00 48 8b 3d dc 53 27 00 be 80 00 [ 406.879195] RIP <ffffffff80243e03>{swiotlb_init_with_default_size+147} RSP <ffffffff804fff80> [ 406.879203] <0>Kernel panic - not syncing: Attempted to kill the idle task! I added the same Option to the dom0 kernel. Is that neccessary? Johnny> > > [509111.024333] Fatal DMA error! Please use ''swiotlb=force'' > > [509111.024344] ----------- [cut here ] --------- [please bite here ] --------- > > [509111.024347] Kernel BUG at arch/x86_64/kernel/../../i386/kernel/pci-dma-xen.c:309 > > Cheers, > Muli > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hans-Christian Armingeon
2006-May-06 23:13 UTC
Re: [Xen-devel] kernel oops with driver domains: usb ohci Fatal DMA error! Please use ''swiotlb=force''
Hi, I managed to fix the problems. I had to remove swiotlb=force from dom0 kernel, and add it to domU kernel. Thank you very much, Johnny Am Montag, 1. Mai 2006 13:12 schrieb Muli Ben-Yehuda:> [...]_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel