Re: [gentoo-user] USB ports reset/restart
On Tuesday, March 6, 2018 9:20:36 PM CET the...@sys-concept.com wrote: > On 03/06/2018 03:11 AM, Neil Bothwick wrote: > > On Mon, 5 Mar 2018 18:40:08 -0700, the...@sys-concept.com wrote: > >> Is there a way to reinitialize USB ports without restarting the > >> computer? > >> > >> Two of my USB 3 ports stop working. > > > > Can you rmmod xhci_pci and xhci_hcd then modprobe xhci_pci? > > > > If that helps, it's a software issue, otherwise it may be a hardware > > fault that needs a reset. I too have found USB3 to be less than reliable. > > I don't think I could do it; xhci_pci and xhci_hcd are compiled into the > kernel (not as module). Change the options and see if that works? > I know that if I restart the box the USB-3 will start working. > The box has an uptime 130 days and is my main server. IOW, you haven't patched your main server against any threads in the past 6+ months. -- Joost
Re: [gentoo-user] USB ports reset/restart
On 03/05/2018 08:40 PM, the...@sys-concept.com wrote: Is there a way to reinitialize USB ports without restarting the computer? You can issue an FLR/function level reset if the hardware supports it. I am not sure how to do this but I know it is done when one assigns a device to a VM.
Re: [gentoo-user] USB ports reset/restart
On 03/06/2018 03:11 AM, Neil Bothwick wrote: > On Mon, 5 Mar 2018 18:40:08 -0700, the...@sys-concept.com wrote: > >> Is there a way to reinitialize USB ports without restarting the >> computer? >> >> Two of my USB 3 ports stop working. > > Can you rmmod xhci_pci and xhci_hcd then modprobe xhci_pci? > > If that helps, it's a software issue, otherwise it may be a hardware > fault that needs a reset. I too have found USB3 to be less than reliable. I don't think I could do it; xhci_pci and xhci_hcd are compiled into the kernel (not as module). I know that if I restart the box the USB-3 will start working. The box has an uptime 130 days and is my main server. -- Thelma
Re: [gentoo-user] USB ports reset/restart
On Mon, 5 Mar 2018 18:40:08 -0700, the...@sys-concept.com wrote: > Is there a way to reinitialize USB ports without restarting the > computer? > > Two of my USB 3 ports stop working. Can you rmmod xhci_pci and xhci_hcd then modprobe xhci_pci? If that helps, it's a software issue, otherwise it may be a hardware fault that needs a reset. I too have found USB3 to be less than reliable. -- Neil Bothwick It's no use crying over spilt milk -- it only makes it salty for the cat. pgp41Iuw5I7YR.pgp Description: OpenPGP digital signature
Re: [gentoo-user] USB ports reset/restart
On Mon, Mar 5, 2018 at 10:44 PM, wrote: > On 03/05/2018 09:33 PM, R0b0t1 wrote: >> On Mon, Mar 5, 2018 at 9:41 PM, wrote: >>> On 03/05/2018 07:33 PM, R0b0t1 wrote: On Mon, Mar 5, 2018 at 7:40 PM, wrote: > Is there a way to reinitialize USB ports without restarting the computer? > > Two of my USB 3 ports stop working. > > lsusb -t > /: Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M > /: Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M > /: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M > /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M > /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M > /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M > /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M > |__ Port 3: Dev 13, If 0, Class=Human Interface Device, > Driver=usbhid, 12M > /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M > |__ Port 4: Dev 2, If 0, Class=Human Interface Device, > Driver=usbhid, 12M > |__ Port 4: Dev 2, If 1, Class=Human Interface Device, > Driver=usbhid, 12M > |__ Port 4: Dev 2, If 2, Class=Human Interface Device, > Driver=usbhid, 12M > /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M > /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M > /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M > How do you know they've stopped working? Are there notices in dmesg? Some devices do not work well on USB3 ports. Cheers, R0b0t1 >>> >>> dmesg is not showing anything. >>> I have an usb extension cord pluged-in to the back of the computer "blue >>> usb port" (I think the color blue designates USB-3), there are two of >>> them. >>> My usb stick was working OK on one, but it stopped. I pluged the USB >>> extension cord to the other port; so it was working for a while. Now >>> the second one stop working as well. >>> >>> When I connect my USB stick to the extension cable the "dmesg" is not >>> showing any output. >>> >> >> I've had this happen, but it wasn't reproducible. Is the drive >> (sd[a-z]) still left on your filesystem? > > df -h > Filesystem Size Used Avail Use% Mounted on > /dev/sda374G 17G 54G 24% / > tmpfs 1.6G 1.4M 1.6G 1% /run > dev 10M 0 10M 0% /dev > shm 7.9G 36M 7.8G 1% /dev/shm > cgroup_root 10M 0 10M 0% /sys/fs/cgroup > /dev/sda4 925G 409G 469G 47% /home > /dev/sda5 828G 620G 166G 79% /home2 > /dev/sda130M 23M 6.0M 79% /boot > none7.9G 0 7.9G 0% /run/user/1000 > Sorry, I meant under /dev - is the last drive you plugged in still there despite having been removed?
Re: [gentoo-user] USB ports reset/restart
On 03/05/2018 09:33 PM, R0b0t1 wrote: > On Mon, Mar 5, 2018 at 9:41 PM, wrote: >> On 03/05/2018 07:33 PM, R0b0t1 wrote: >>> On Mon, Mar 5, 2018 at 7:40 PM, wrote: Is there a way to reinitialize USB ports without restarting the computer? Two of my USB 3 ports stop working. lsusb -t /: Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M /: Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M /: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M |__ Port 3: Dev 13, If 0, Class=Human Interface Device, Driver=usbhid, 12M /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M |__ Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 4: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 4: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M >>> >>> How do you know they've stopped working? Are there notices in dmesg? >>> Some devices do not work well on USB3 ports. >>> >>> Cheers, >>> R0b0t1 >> >> dmesg is not showing anything. >> I have an usb extension cord pluged-in to the back of the computer "blue >> usb port" (I think the color blue designates USB-3), there are two of >> them. >> My usb stick was working OK on one, but it stopped. I pluged the USB >> extension cord to the other port; so it was working for a while. Now >> the second one stop working as well. >> >> When I connect my USB stick to the extension cable the "dmesg" is not >> showing any output. >> > > I've had this happen, but it wasn't reproducible. Is the drive > (sd[a-z]) still left on your filesystem? df -h Filesystem Size Used Avail Use% Mounted on /dev/sda374G 17G 54G 24% / tmpfs 1.6G 1.4M 1.6G 1% /run dev 10M 0 10M 0% /dev shm 7.9G 36M 7.8G 1% /dev/shm cgroup_root 10M 0 10M 0% /sys/fs/cgroup /dev/sda4 925G 409G 469G 47% /home /dev/sda5 828G 620G 166G 79% /home2 /dev/sda130M 23M 6.0M 79% /boot none7.9G 0 7.9G 0% /run/user/1000 -- Thelma
Re: [gentoo-user] USB ports reset/restart
On Mon, Mar 5, 2018 at 9:41 PM, wrote: > On 03/05/2018 07:33 PM, R0b0t1 wrote: >> On Mon, Mar 5, 2018 at 7:40 PM, wrote: >>> Is there a way to reinitialize USB ports without restarting the computer? >>> >>> Two of my USB 3 ports stop working. >>> >>> lsusb -t >>> /: Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M >>> /: Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M >>> /: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M >>> /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M >>> /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M >>> /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M >>> /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M >>> |__ Port 3: Dev 13, If 0, Class=Human Interface Device, >>> Driver=usbhid, 12M >>> /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M >>> |__ Port 4: Dev 2, If 0, Class=Human Interface Device, >>> Driver=usbhid, 12M >>> |__ Port 4: Dev 2, If 1, Class=Human Interface Device, >>> Driver=usbhid, 12M >>> |__ Port 4: Dev 2, If 2, Class=Human Interface Device, >>> Driver=usbhid, 12M >>> /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M >>> /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M >>> /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M >>> >> >> How do you know they've stopped working? Are there notices in dmesg? >> Some devices do not work well on USB3 ports. >> >> Cheers, >> R0b0t1 > > dmesg is not showing anything. > I have an usb extension cord pluged-in to the back of the computer "blue > usb port" (I think the color blue designates USB-3), there are two of > them. > My usb stick was working OK on one, but it stopped. I pluged the USB > extension cord to the other port; so it was working for a while. Now > the second one stop working as well. > > When I connect my USB stick to the extension cable the "dmesg" is not > showing any output. > I've had this happen, but it wasn't reproducible. Is the drive (sd[a-z]) still left on your filesystem?
Re: [gentoo-user] USB ports reset/restart
On 03/05/2018 07:33 PM, R0b0t1 wrote: > On Mon, Mar 5, 2018 at 7:40 PM, wrote: >> Is there a way to reinitialize USB ports without restarting the computer? >> >> Two of my USB 3 ports stop working. >> >> lsusb -t >> /: Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M >> /: Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M >> /: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M >> /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M >> /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M >> /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M >> /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M >> |__ Port 3: Dev 13, If 0, Class=Human Interface Device, >> Driver=usbhid, 12M >> /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M >> |__ Port 4: Dev 2, If 0, Class=Human Interface Device, >> Driver=usbhid, 12M >> |__ Port 4: Dev 2, If 1, Class=Human Interface Device, >> Driver=usbhid, 12M >> |__ Port 4: Dev 2, If 2, Class=Human Interface Device, >> Driver=usbhid, 12M >> /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M >> /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M >> /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M >> > > How do you know they've stopped working? Are there notices in dmesg? > Some devices do not work well on USB3 ports. > > Cheers, > R0b0t1 dmesg is not showing anything. I have an usb extension cord pluged-in to the back of the computer "blue usb port" (I think the color blue designates USB-3), there are two of them. My usb stick was working OK on one, but it stopped. I pluged the USB extension cord to the other port; so it was working for a while. Now the second one stop working as well. When I connect my USB stick to the extension cable the "dmesg" is not showing any output. -- Thelma
Re: [gentoo-user] USB ports reset/restart
On Mon, Mar 5, 2018 at 7:40 PM, wrote: > Is there a way to reinitialize USB ports without restarting the computer? > > Two of my USB 3 ports stop working. > > lsusb -t > /: Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M > /: Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M > /: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M > /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M > /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M > /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M > /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M > |__ Port 3: Dev 13, If 0, Class=Human Interface Device, > Driver=usbhid, 12M > /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M > |__ Port 4: Dev 2, If 0, Class=Human Interface Device, > Driver=usbhid, 12M > |__ Port 4: Dev 2, If 1, Class=Human Interface Device, > Driver=usbhid, 12M > |__ Port 4: Dev 2, If 2, Class=Human Interface Device, > Driver=usbhid, 12M > /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M > /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M > /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M > How do you know they've stopped working? Are there notices in dmesg? Some devices do not work well on USB3 ports. Cheers, R0b0t1
[gentoo-user] USB ports reset/restart
Is there a way to reinitialize USB ports without restarting the computer? Two of my USB 3 ports stop working. lsusb -t /: Bus 11.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M /: Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M /: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M |__ Port 3: Dev 13, If 0, Class=Human Interface Device, Driver=usbhid, 12M /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M |__ Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 4: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M |__ Port 4: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M -- Thelma