From: Sander Eikelenboom Subject: pci passthrough xhci host controller Date: Wed, 15 Sep 2010 23:09:35 +0200 Message-ID: <1262837074.20100915230935@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Hi Konrad, I have changed my setup a bit, using my old workstation as a xen test platf= orm at the moment. I'm now running: - Xen-unstable xen_changeset : Fri Sep 10 19:06:33 20= 10 +0100 22132:3985fea87987 - Dom0: pvops stable-2.6.32.x last commit b297cdac0373625d3cd0e6f2b3= 93570dcf2edba6 - DomU: Own merge of: -linus 2.6.36(-rc4) tree last commit 9c03f1622af051004416= dd3e24d8a0fa31e34178 -your pci-front 0.6 tree - Only one domU is running (copy of the one i used before on the other mach= ine) - Only one pci-e xhci hostcontroller is passed through (02:00.0) - domU is booted with only iommu-soft What happens: - domU boots fine, pci device is present, lsusb shows the card, but th= e grab util can't find the grabber on /dev/video0 - The app keeps on trying .. - What i do see is a continuing stream of suspected kmemleaks in the d= omU Any more debug info/output can of course be generated ... -- Sander unreferenced object 0xffff88002d7004c0 (size 32): comm "swapper", pid 1, jiffies 4294667951 (age 931.016s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc_node+0xf/0x11 [] get_one_free_irq_cfg+0x1a/0x46 [] arch_init_chip_data+0x1a/0x3a [] irq_to_desc_alloc_node+0x168/0x199 [] xen_allocate_pirq+0x7e/0x110 [] xen_setup_msi_irqs+0xec/0x17e [] pci_enable_msix+0x3b1/0x3c2 [] xhci_run+0x108/0x520 [] usb_add_hcd+0x34f/0x62e [] usb_hcd_pci_probe+0x23d/0x35b [] local_pci_probe+0x48/0x91 [] pci_device_probe+0x5f/0x89 [] driver_probe_device+0xb2/0x16d [] __driver_attach+0x5c/0x7f security:~# cat /sys/kernel/debug/kmemleak unreferenced object 0xffff88002fc025c0 (size 64): comm "swapper", pid 1, jiffies 4294667307 (age 934.525s) hex dump (first 32 bytes): f8 0c 00 00 00 00 00 00 ff 0c 00 00 00 00 00 00 ................ a5 38 a8 81 ff ff ff ff 00 00 00 80 00 00 00 00 .8.............. backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc+0xf/0x11 [] __request_region+0x53/0x18b [] pci_direct_probe+0x3c/0x276 [] pci_arch_init+0xe/0x69 [] do_one_initcall+0x7c/0x15c [] kernel_init+0x158/0x1e2 [] kernel_thread_helper+0x4/0x10 [] 0xffffffffffffffff unreferenced object 0xffff88002fc02600 (size 64): comm "swapper", pid 1, jiffies 4294667307 (age 934.525s) hex dump (first 32 bytes): f8 0c 00 00 00 00 00 00 fb 0c 00 00 00 00 00 00 ................ af 38 a8 81 ff ff ff ff 00 00 00 80 00 00 00 00 .8.............. backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc+0xf/0x11 [] __request_region+0x53/0x18b [] pci_direct_probe+0x14f/0x276 [] pci_arch_init+0xe/0x69 [] do_one_initcall+0x7c/0x15c [] kernel_init+0x158/0x1e2 [] kernel_thread_helper+0x4/0x10 [] 0xffffffffffffffff unreferenced object 0xffff88002fc02640 (size 64): comm "swapper", pid 1, jiffies 4294667307 (age 934.525s) hex dump (first 32 bytes): 00 c0 00 00 00 00 00 00 ff cf 00 00 00 00 00 00 ................ af 38 a8 81 ff ff ff ff 00 00 00 80 00 00 00 00 .8.............. backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc+0xf/0x11 [] __request_region+0x53/0x18b [] pci_direct_probe+0x17b/0x276 [] pci_arch_init+0xe/0x69 [] do_one_initcall+0x7c/0x15c [] kernel_init+0x158/0x1e2 [] kernel_thread_helper+0x4/0x10 [] 0xffffffffffffffff unreferenced object 0xffff88002d700460 (size 32): comm "swapper", pid 1, jiffies 4294667948 (age 933.884s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc_node+0xf/0x11 [] get_one_free_irq_cfg+0x1a/0x46 [] arch_init_chip_data+0x1a/0x3a [] irq_to_desc_alloc_node+0x168/0x199 [] xen_allocate_pirq+0x7e/0x110 [] xen_pcifront_enable_irq+0x4b/0x7a [] pcibios_enable_device+0x29/0x2d [] do_pci_enable_device+0x28/0x40 [] __pci_enable_device_flags+0x55/0x69 [] pci_enable_device+0xe/0x10 [] usb_hcd_pci_probe+0x42/0x35b [] local_pci_probe+0x48/0x91 [] pci_device_probe+0x5f/0x89 [] driver_probe_device+0xb2/0x16d unreferenced object 0xffff88002d7002a0 (size 32): comm "swapper", pid 1, jiffies 4294667951 (age 933.918s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc_node+0xf/0x11 [] get_one_free_irq_cfg+0x1a/0x46 [] arch_init_chip_data+0x1a/0x3a [] irq_to_desc_alloc_node+0x168/0x199 [] xen_allocate_pirq+0x7e/0x110 [] xen_setup_msi_irqs+0xec/0x17e [] pci_enable_msix+0x3b1/0x3c2 [] xhci_run+0x108/0x520 [] usb_add_hcd+0x34f/0x62e [] usb_hcd_pci_probe+0x23d/0x35b [] local_pci_probe+0x48/0x91 [] pci_device_probe+0x5f/0x89 [] driver_probe_device+0xb2/0x16d [] __driver_attach+0x5c/0x7f unreferenced object 0xffff88002d7004c0 (size 32): comm "swapper", pid 1, jiffies 4294667951 (age 933.918s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc_node+0xf/0x11 [] get_one_free_irq_cfg+0x1a/0x46 [] arch_init_chip_data+0x1a/0x3a [] irq_to_desc_alloc_node+0x168/0x199 [] xen_allocate_pirq+0x7e/0x110 [] xen_setup_msi_irqs+0xec/0x17e [] pci_enable_msix+0x3b1/0x3c2 [] xhci_run+0x108/0x520 [] usb_add_hcd+0x34f/0x62e [] usb_hcd_pci_probe+0x23d/0x35b [] local_pci_probe+0x48/0x91 [] pci_device_probe+0x5f/0x89 [] driver_probe_device+0xb2/0x16d [] __driver_attach+0x5c/0x7f security:~# cat /sys/kernel/debug/kmemleak unreferenced object 0xffff88002fc025c0 (size 64): comm "swapper", pid 1, jiffies 4294667307 (age 935.641s) hex dump (first 32 bytes): f8 0c 00 00 00 00 00 00 ff 0c 00 00 00 00 00 00 ................ a5 38 a8 81 ff ff ff ff 00 00 00 80 00 00 00 00 .8.............. backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc+0xf/0x11 [] __request_region+0x53/0x18b [] pci_direct_probe+0x3c/0x276 [] pci_arch_init+0xe/0x69 [] do_one_initcall+0x7c/0x15c [] kernel_init+0x158/0x1e2 [] kernel_thread_helper+0x4/0x10 [] 0xffffffffffffffff unreferenced object 0xffff88002fc02600 (size 64): comm "swapper", pid 1, jiffies 4294667307 (age 935.641s) hex dump (first 32 bytes): f8 0c 00 00 00 00 00 00 fb 0c 00 00 00 00 00 00 ................ af 38 a8 81 ff ff ff ff 00 00 00 80 00 00 00 00 .8.............. backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc+0xf/0x11 [] __request_region+0x53/0x18b [] pci_direct_probe+0x14f/0x276 [] pci_arch_init+0xe/0x69 [] do_one_initcall+0x7c/0x15c [] kernel_init+0x158/0x1e2 [] kernel_thread_helper+0x4/0x10 [] 0xffffffffffffffff unreferenced object 0xffff88002fc02640 (size 64): comm "swapper", pid 1, jiffies 4294667307 (age 935.641s) hex dump (first 32 bytes): 00 c0 00 00 00 00 00 00 ff cf 00 00 00 00 00 00 ................ af 38 a8 81 ff ff ff ff 00 00 00 80 00 00 00 00 .8.............. backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc+0xf/0x11 [] __request_region+0x53/0x18b [] pci_direct_probe+0x17b/0x276 [] pci_arch_init+0xe/0x69 [] do_one_initcall+0x7c/0x15c [] kernel_init+0x158/0x1e2 [] kernel_thread_helper+0x4/0x10 [] 0xffffffffffffffff unreferenced object 0xffff88002d700460 (size 32): comm "swapper", pid 1, jiffies 4294667948 (age 935.008s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc_node+0xf/0x11 [] get_one_free_irq_cfg+0x1a/0x46 [] arch_init_chip_data+0x1a/0x3a [] irq_to_desc_alloc_node+0x168/0x199 [] xen_allocate_pirq+0x7e/0x110 [] xen_pcifront_enable_irq+0x4b/0x7a [] pcibios_enable_device+0x29/0x2d [] do_pci_enable_device+0x28/0x40 [] __pci_enable_device_flags+0x55/0x69 [] pci_enable_device+0xe/0x10 [] usb_hcd_pci_probe+0x42/0x35b [] local_pci_probe+0x48/0x91 [] pci_device_probe+0x5f/0x89 [] driver_probe_device+0xb2/0x16d unreferenced object 0xffff88002d7002a0 (size 32): comm "swapper", pid 1, jiffies 4294667951 (age 935.035s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc_node+0xf/0x11 [] get_one_free_irq_cfg+0x1a/0x46 [] arch_init_chip_data+0x1a/0x3a [] irq_to_desc_alloc_node+0x168/0x199 [] xen_allocate_pirq+0x7e/0x110 [] xen_setup_msi_irqs+0xec/0x17e [] pci_enable_msix+0x3b1/0x3c2 [] xhci_run+0x108/0x520 [] usb_add_hcd+0x34f/0x62e [] usb_hcd_pci_probe+0x23d/0x35b [] local_pci_probe+0x48/0x91 [] pci_device_probe+0x5f/0x89 [] driver_probe_device+0xb2/0x16d [] __driver_attach+0x5c/0x7f unreferenced object 0xffff88002d7004c0 (size 32): comm "swapper", pid 1, jiffies 4294667951 (age 935.035s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmemleak_alloc+0x21/0x3e [] __kmalloc+0x1c1/0x1eb [] kzalloc_node+0xf/0x11 [] get_one_free_irq_cfg+0x1a/0x46 [] arch_init_chip_data+0x1a/0x3a [] irq_to_desc_alloc_node+0x168/0x199 [] xen_allocate_pirq+0x7e/0x110 [] xen_setup_msi_irqs+0xec/0x17e [] pci_enable_msix+0x3b1/0x3c2 [] xhci_run+0x108/0x520 [] usb_add_hcd+0x34f/0x62e [] usb_hcd_pci_probe+0x23d/0x35b [] local_pci_probe+0x48/0x91 [] pci_device_probe+0x5f/0x89 [] driver_probe_device+0xb2/0x16d [] __driver_attach+0x5c/0x7f lspci domU: 02:00.0 USB Controller [0c03]: NEC Corporation Device [1033:0194] (rev 03) = (prog-if 30) Subsystem: Micro-Star International Co., Ltd. Device [1462:4257] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-= Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=3Dfast >TAbort- SERR- TAbort- SERR- Capabilities: [140] Device Serial Number ff-ff-ff-ff-ff-ff-ff-ff Capabilities: [150] #18 Kernel driver in use: pciback