Am Montag, den 29.02.2016, 18:07 +0100 schrieb Joerg Roedel: > On Mon, Feb 29, 2016 at 10:36:07AM -0500, Alan Stern wrote: > > > > The lines added by the patch were never executed. This means that > > dev->archdata.iommu is getting set to NULL some place other than > > unlink_domain_info(). I have no idea where that would be. > > > > Joerg, can you suggest any possibilities? > Hmm, looks like the domain is removed from the device before the > driver > is unbound. Can you please try the attached diff? > It seems that this patch solve the problem. This is the kernel log with your patch together with the one from alan. pciehp 0000:06:03.0:pcie24: Card not present on Slot(3) pciehp 0000:00:1c.4:pcie04: Card not present on Slot(4) pciehp 0000:00:1c.4:pcie04: slot(4): Link Down event ehci-pci 0000:0b:00.2: USB bus 7 deregistered pciehp 0000:00:1c.4:pcie04: Link Down event ignored on slot(4): already powering off ohci-pci 0000:0b:00.1: HC died; cleaning up ohci-pci 0000:0b:00.1: remove, state 4 usb usb6: USB disconnect, device number 1 ohci-pci 0000:0b:00.1: USB bus 6 deregistered ohci-pci 0000:0b:00.0: HC died; cleaning up ohci-pci 0000:0b:00.0: remove, state 4 usb usb5: USB disconnect, device number 1 ohci-pci 0000:0b:00.0: USB bus 5 deregistered pciehp 0000:09:03.0:pcie24: unloading service driver pciehp pciehp 0000:09:03.0:pcie24: Timeout on hotplug command 0x1038 (issued 45628 msec ago) pciehp 0000:09:03.0:pcie24: pcie_do_write_cmd: no response from device iommu: Removing device 0000:0b:00.0 from group 20 pci 0000:0b:00.0: unlink_domain_info CPU: 0 PID: 157 Comm: kworker/0:2 Not tainted 4.5.0-rc6-dirty #11 Hardware name: Dell Inc. XPS 2720/05R2TK , BIOS A12 09/21/2015 Workqueue: pciehp-3 pciehp_power_thread 0000000000000000 ffff880469c1bb88 ffffffff80558bbb ffff880443898980 ffff880447797000 ffff880469c1bbc0 ffffffff8063691c 0000000000000286 ffff8804477972e0 0000000000000003 ffff880447797098 0000000000000000 Call Trace: [<ffffffff80558bbb>] dump_stack+0x4d/0x72 [<ffffffff8063691c>] __dmar_remove_one_dev_info+0x20c/0x220 [<ffffffff80636c67>] dmar_remove_one_dev_info.isra.55+0x27/0x40 [<ffffffff80636dc3>] device_notifier+0x43/0x80 [<ffffffff802950aa>] notifier_call_chain+0x4a/0x70 [<ffffffff80295427>] __blocking_notifier_call_chain+0x47/0x60 [<ffffffff80295456>] blocking_notifier_call_chain+0x16/0x20 [<ffffffff8072fe83>] device_del+0x173/0x240 [<ffffffff805866f7>] pci_remove_bus_device+0x77/0xf0 [<ffffffff805866b1>] pci_remove_bus_device+0x31/0xf0 [<ffffffff805866b1>] pci_remove_bus_device+0x31/0xf0 [<ffffffff805866b1>] pci_remove_bus_device+0x31/0xf0 [<ffffffff8058678a>] pci_stop_and_remove_bus_device+0x1a/0x20 [<ffffffff8059ed1b>] pciehp_unconfigure_device+0x9b/0x180 [<ffffffff8059e823>] pciehp_disable_slot+0x43/0xb0 [<ffffffff8059e91d>] pciehp_power_thread+0x8d/0xb0 [<ffffffff8028e9e0>] process_one_work+0x140/0x3e0 [<ffffffff8028ecce>] worker_thread+0x4e/0x480 [<ffffffff8028ec80>] ? process_one_work+0x3e0/0x3e0 [<ffffffff8028ec80>] ? process_one_work+0x3e0/0x3e0 [<ffffffff802942e9>] kthread+0xc9/0xe0 [<ffffffff80294220>] ? kthread_create_on_node+0x180/0x180 [<ffffffff80b7bfef>] ret_from_fork+0x3f/0x70 [<ffffffff80294220>] ? kthread_create_on_node+0x180/0x180 iommu: Removing device 0000:0b:00.1 from group 20 pci 0000:0b:00.1: unlink_domain_info CPU: 0 PID: 157 Comm: kworker/0:2 Not tainted 4.5.0-rc6-dirty #11 Hardware name: Dell Inc. XPS 2720/05R2TK , BIOS A12 09/21/2015 Workqueue: pciehp-3 pciehp_power_thread 0000000000000000 ffff880469c1bb88 ffffffff80558bbb ffff88042a8c0c40 ffff880447796000 ffff880469c1bbc0 ffffffff8063691c 0000000000000286 ffff8804477962e0 0000000000000003 ffff880447796098 0000000000000000 Call Trace: [<ffffffff80558bbb>] dump_stack+0x4d/0x72 [<ffffffff8063691c>] __dmar_remove_one_dev_info+0x20c/0x220 [<ffffffff80636c67>] dmar_remove_one_dev_info.isra.55+0x27/0x40 [<ffffffff80636dc3>] device_notifier+0x43/0x80 [<ffffffff802950aa>] notifier_call_chain+0x4a/0x70 [<ffffffff80295427>] __blocking_notifier_call_chain+0x47/0x60 [<ffffffff80295456>] blocking_notifier_call_chain+0x16/0x20 [<ffffffff8072fe83>] device_del+0x173/0x240 [<ffffffff805866f7>] pci_remove_bus_device+0x77/0xf0 [<ffffffff805866b1>] pci_remove_bus_device+0x31/0xf0 [<ffffffff805866b1>] pci_remove_bus_device+0x31/0xf0 [<ffffffff805866b1>] pci_remove_bus_device+0x31/0xf0 [<ffffffff8058678a>] pci_stop_and_remove_bus_device+0x1a/0x20 [<ffffffff8059ed1b>] pciehp_unconfigure_device+0x9b/0x180 [<ffffffff8059e823>] pciehp_disable_slot+0x43/0xb0 [<ffffffff8059e91d>] pciehp_power_thread+0x8d/0xb0 [<ffffffff8028e9e0>] process_one_work+0x140/0x3e0 [<ffffffff8028ecce>] worker_thread+0x4e/0x480 [<ffffffff8028ec80>] ? process_one_work+0x3e0/0x3e0 [<ffffffff8028ec80>] ? process_one_work+0x3e0/0x3e0 [<ffffffff802942e9>] kthread+0xc9/0xe0 [<ffffffff80294220>] ? kthread_create_on_node+0x180/0x180 [<ffffffff80b7bfef>] ret_from_fork+0x3f/0x70 [<ffffffff80294220>] ? kthread_create_on_node+0x180/0x180 iommu: Removing device 0000:0b:00.2 from group 20 pci 0000:0b:00.2: unlink_domain_info CPU: 0 PID: 157 Comm: kworker/0:2 Not tainted 4.5.0-rc6-dirty #11 Hardware name: Dell Inc. XPS 2720/05R2TK , BIOS A12 09/21/2015 Workqueue: pciehp-3 pciehp_power_thread 0000000000000000 ffff880469c1bb88 ffffffff80558bbb ffff880436a36fc0 ffff88046458f000 ffff880469c1bbc0 ffffffff8063691c 0000000000000286 ffff88046458f2e0 0000000000000003 ffff88046458f098 0000000000000000 Call Trace: [<ffffffff80558bbb>] dump_stack+0x4d/0x72 [<ffffffff8063691c>] __dmar_remove_one_dev_info+0x20c/0x220 [<ffffffff80636c67>] dmar_remove_one_dev_info.isra.55+0x27/0x40 [<ffffffff80636dc3>] device_notifier+0x43/0x80 [<ffffffff802950aa>] notifier_call_chain+0x4a/0x70 [<ffffffff80295427>] __blocking_notifier_call_chain+0x47/0x60 [<ffffffff80295456>] blocking_notifier_call_chain+0x16/0x20 [<ffffffff8072fe83>] device_del+0x173/0x240 [<ffffffff805866f7>] pci_remove_bus_device+0x77/0xf0 [<ffffffff805866b1>] pci_remove_bus_device+0x31/0xf0 [<ffffffff805866b1>] pci_remove_bus_device+0x31/0xf0 [<ffffffff805866b1>] pci_remove_bus_device+0x31/0xf0 [<ffffffff8058678a>] pci_stop_and_remove_bus_device+0x1a/0x20 [<ffffffff8059ed1b>] pciehp_unconfigure_device+0x9b/0x180 [<ffffffff8059e823>] pciehp_disable_slot+0x43/0xb0 [<ffffffff8059e91d>] pciehp_power_thread+0x8d/0xb0 [<ffffffff8028e9e0>] process_one_work+0x140/0x3e0 [<ffffffff8028ecce>] worker_thread+0x4e/0x480 [<ffffffff8028ec80>] ? process_one_work+0x3e0/0x3e0 [<ffffffff8028ec80>] ? process_one_work+0x3e0/0x3e0 [<ffffffff802942e9>] kthread+0xc9/0xe0 [<ffffffff80294220>] ? kthread_create_on_node+0x180/0x180 [<ffffffff80b7bfef>] ret_from_fork+0x3f/0x70 [<ffffffff80294220>] ? kthread_create_on_node+0x180/0x180 pci_bus 0000:0b: busn_res: [bus 0b] is released iommu: Removing device 0000:0a:00.0 from group 20 pci_bus 0000:0a: busn_res: [bus 0a-0b] is released iommu: Removing device 0000:09:03.0 from group 20 pci_bus 0000:09: busn_res: [bus 09-32] is released iommu: Removing device 0000:08:00.0 from group 20 pciehp 0000:06:06.0:pcie24: unloading service driver pciehp pciehp 0000:06:06.0:pcie24: Timeout on hotplug command 0x1038 (issued 49253 msec ago) pciehp 0000:06:06.0:pcie24: pcie_do_write_cmd: no response from device pciehp 0000:06:05.0:pcie24: unloading service driver pciehp pciehp 0000:06:05.0:pcie24: Timeout on hotplug command 0x1038 (issued 49255 msec ago) pciehp 0000:06:05.0:pcie24: pcie_do_write_cmd: no response from device pciehp 0000:06:04.0:pcie24: unloading service driver pciehp pciehp 0000:06:04.0:pcie24: Timeout on hotplug command 0x1038 (issued 49257 msec ago) pciehp 0000:06:04.0:pcie24: pcie_do_write_cmd: no response from device pciehp 0000:06:03.0:pcie24: unloading service driver pciehp pciehp 0000:06:03.0:pcie24: Timeout on hotplug command 0x1038 (issued 49258 msec ago) pciehp 0000:06:03.0:pcie24: pcie_do_write_cmd: no response from device pciehp 0000:06:00.0:pcie24: unloading service driver pciehp pciehp 0000:06:00.0:pcie24: Timeout on hotplug command 0x1038 (issued 49260 msec ago) pciehp 0000:06:00.0:pcie24: pcie_do_write_cmd: no response from device pci_bus 0000:07: busn_res: [bus 07] is released iommu: Removing device 0000:06:00.0 from group 19 pci_bus 0000:08: busn_res: [bus 08-32] is released iommu: Removing device 0000:06:03.0 from group 20 pci_bus 0000:33: busn_res: [bus 33-3b] is released iommu: Removing device 0000:06:04.0 from group 21 pci_bus 0000:3c: busn_res: [bus 3c] is released iommu: Removing device 0000:06:05.0 from group 22 pci_bus 0000:3d: busn_res: [bus 3d] is released iommu: Removing device 0000:06:06.0 from group 23 pci_bus 0000:06: busn_res: [bus 06-3d] is released iommu: Removing device 0000:05:00.0 from group 18 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html