Date: Sun, 23 Feb 2020 16:53:35 +0000 From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 205549] bhyve pci passthru stops working after guest is restarted Message-ID: <bug-205549-27103-173pkiQDuv@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-205549-27103@https.bugs.freebsd.org/bugzilla/> References: <bug-205549-27103@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205549 Sebastian Stroniewski-Wojtczak <sebastian.stroniewskiwojtczak@gmail.com> ch= anged: What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian.stroniewskiwojtcz | |ak@gmail.com --- Comment #18 from Sebastian Stroniewski-Wojtczak <sebastian.stroniewskiw= ojtczak@gmail.com> --- Something is wrong with passthru for USB. I've used "devctl" to detach xHCI for separate USB controller and attached = it back to ppt. Afterward, I've setup properly my linux bhyve and start it. Af= ter few seconds xHCI stops working, nonetheless, simple device was available for short time. Linux inside bhyve side: [ 945.768655] hub 2-1:1.0: USB hub found [ 945.770089] hub 2-1:1.0: 4 ports detected [ 945.925221] usb 1-1.3: new full-speed USB device number 3 using xhci_hcd [ 946.036378] usb 1-1.3: New USB device found, idVendor=3D2a03, idProduct= =3D0043, bcdDevice=3D 0.01 [ 946.036380] usb 1-1.3: New USB device strings: Mfr=3D1, Product=3D2, SerialNumber=3D220 [ 946.036381] usb 1-1.3: Product: Arduino Uno [ 946.036382] usb 1-1.3: Manufacturer: Arduino Srl=20=20=20=20=20=20=20=20= =20=20=20=20 [ 946.036382] usb 1-1.3: SerialNumber: 95536333830351513160 [ 946.042136] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device [ 965.696484] xhci_hcd 0000:00:06.0: xHCI host not responding to stop endp= oint command. [ 965.696517] xhci_hcd 0000:00:06.0: xHCI host controller not responding, assume dead [ 965.696541] xhci_hcd 0000:00:06.0: HC died; cleaning up [ 965.696858] cdc_acm 1-1.3:1.0: acm_port_activate - usb_submit_urb(ctrl i= rq) failed [ 965.698578] usb 1-1: USB disconnect, device number 2 [ 965.698581] usb 1-1.3: USB disconnect, device number 3 [ 965.698671] usb 2-1: USB disconnect, device number 2 20 seconds Linux need to detach xHCI device. Next thing I've tried was to unbind and bind my device echo -n "0000:00:06.0" | tee /sys/bus/pci/drivers/xhci_hcd/unbind sleep 5 echo -n "0000:00:06.0" | tee /sys/bus/pci/drivers/xhci_hcd/bind That helps only for few seconds (20s). I can't talk with any USB devices through bhyve passthru. Before vm start: 10421b21 00100006 0c033000 00000010 f7c00004 00000000 00000000 00000000=20 00000000 00000000 00000000 84881043 00000000 00000050 00000000 00000113=20 After vm xHCI crash, restart/poweroff vm does not resolve issue (bind/unbind also failed): 0421b21 00100406 0c033000 00000010 f7c00004 00000000 00000000 00000000=20 00000000 00000000 00000000 84881043 00000000 00000050 00000000 00000113=20 It seemd that only VMM is affected. Once I detach my ppt to none device and= set driver to xhci I'm getting access to any devices on xhci, switch it back to= ppt or even clearing data does not help either. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205549-27103-173pkiQDuv>