Re: Missing USB XHCI and EHCI reset for kexec

2014-06-07 Thread Alan Stern
On Sun, 8 Jun 2014, Benjamin Herrenschmidt wrote: > Looking at the code a bit more ... that xhci_shutdown() worries me. > > It basically just whacks xhci_halt() and optionally reset() but nothing > is done that I can see to ensure that we aren't concurrently > doing things like queuing URBs, poll

Re: Missing USB XHCI and EHCI reset for kexec

2014-06-07 Thread Benjamin Herrenschmidt
On Sat, 2014-06-07 at 11:40 -0400, Alan Stern wrote: > The current xhci-hcd driver includes a quirk flag (XHCI_SPURIOS_WAKEUP) > that causes the shutdown routine to reset the controller. It wasn't > meant for fixing kexec problems, but I bet you could use it for that > purpose. > > In additio

Re: Missing USB XHCI and EHCI reset for kexec

2014-06-07 Thread Benjamin Herrenschmidt
On Sat, 2014-06-07 at 11:40 -0400, Alan Stern wrote: > The current xhci-hcd driver includes a quirk flag (XHCI_SPURIOS_WAKEUP) > that causes the shutdown routine to reset the controller. It wasn't > meant for fixing kexec problems, but I bet you could use it for that > purpose. > > In addition

Re: Missing USB XHCI and EHCI reset for kexec

2014-06-07 Thread Alan Stern
[Added Mathias to CC: list] On Sat, 7 Jun 2014, Benjamin Herrenschmidt wrote: > I'm trying to kexec from our OPAL FW bootloader (3.10.23 based) to a > fedora 3.14.3 on a new machine and am still seeing the above. > > A reset brings the chip back. > > Do we have any resolution here ? It looks l

Re: Missing USB XHCI and EHCI reset for kexec

2014-06-07 Thread Benjamin Herrenschmidt
On Tue, 2014-04-15 at 20:54 +0200, Stefani Seibold wrote: > > > > > [1.170029] xhci_hcd 0001:03:00.0: xHCI Host Controller > > > > > [1.175306] xhci_hcd 0001:03:00.0: new USB bus registered, > > > > > assigned bus number 1 > > > > > [1.212561] xhci_hcd 0001:03:00.0: Hos

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Alan Stern
On Tue, 15 Apr 2014, Stefani Seibold wrote: > > So two devices failed to initialize after the drivers were rebound: 3-4 > > and 2-2. We know that 3-4 was the mass-storage device, but I can't > > tell from this log what 2-2 was. > > > > 2-2 is a custom HID device which handles the front pane

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Stefani Seibold
Am Dienstag, den 15.04.2014, 15:14 -0400 schrieb Alan Stern: > On Tue, 15 Apr 2014, Stefani Seibold wrote: > > > > > usbcore: registered new interface driver USB-SATA-storage > > > > USB SATA Mass Storage support registered. > > > > usb 1-4: new high-speed USB device number 4 using ehci-pci > > >

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Stefani Seibold
Am Dienstag, den 15.04.2014, 15:02 -0400 schrieb Alan Stern: > On Tue, 15 Apr 2014, Stefani Seibold wrote: > > > I did a unbind and bind of the ehci-pci and ohci-pci, after this i got > > the following dmesg log: > > > > ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver > > ehci-pci: EHC

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Alan Stern
On Tue, 15 Apr 2014, Stefani Seibold wrote: > > > usbcore: registered new interface driver USB-SATA-storage > > > USB SATA Mass Storage support registered. > > > usb 1-4: new high-speed USB device number 4 using ehci-pci > > > : ports detected > > > > What driver is this? I've never heard of

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Stefani Seibold
Am Dienstag, den 15.04.2014, 15:05 -0400 schrieb Alan Stern: > On Tue, 15 Apr 2014, Stefani Seibold wrote: > > > > One other thing you can try is to increase the reset timeout in > > > drivers/usb/host/ehci-hub.c. This is under the USB_PORT_FEAT_RESET > > > case in ehci_hub_control(), around li

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Stefani Seibold
Am Dienstag, den 15.04.2014, 15:02 -0400 schrieb Alan Stern: > On Tue, 15 Apr 2014, Stefani Seibold wrote: > > > I did a unbind and bind of the ehci-pci and ohci-pci, after this i got > > the following dmesg log: > > > > ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver > > ehci-pci: EHC

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Alan Stern
On Tue, 15 Apr 2014, Stefani Seibold wrote: > > One other thing you can try is to increase the reset timeout in > > drivers/usb/host/ehci-hub.c. This is under the USB_PORT_FEAT_RESET > > case in ehci_hub_control(), around line 1225: > > > > /* > >

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Alan Stern
On Tue, 15 Apr 2014, Stefani Seibold wrote: > I did a unbind and bind of the ehci-pci and ohci-pci, after this i got > the following dmesg log: > > ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver > ehci-pci: EHCI PCI platform driver > ehci-pci :00:17.2: EHCI Host Controller > ehci-

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Stefani Seibold
Am Dienstag, den 15.04.2014, 15:49 -0300 schrieb Thadeu Lima de Souza Cascardo: > On Tue, Apr 15, 2014 at 08:42:58PM +0200, Stefani Seibold wrote: > > Am Dienstag, den 15.04.2014, 15:33 -0300 schrieb Thadeu Lima de Souza > > Cascardo: > > > On Tue, Apr 15, 2014 at 05:00:28PM +0200, stef...@seibold.

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Thadeu Lima de Souza Cascardo
On Tue, Apr 15, 2014 at 08:42:58PM +0200, Stefani Seibold wrote: > Am Dienstag, den 15.04.2014, 15:33 -0300 schrieb Thadeu Lima de Souza > Cascardo: > > On Tue, Apr 15, 2014 at 05:00:28PM +0200, stef...@seibold.net wrote: > > > > > > Zitat von Thadeu Lima de Souza Cascardo : > > > > > > >On Tue,

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Stefani Seibold
Am Dienstag, den 15.04.2014, 15:33 -0300 schrieb Thadeu Lima de Souza Cascardo: > On Tue, Apr 15, 2014 at 05:00:28PM +0200, stef...@seibold.net wrote: > > > > Zitat von Thadeu Lima de Souza Cascardo : > > > > >On Tue, Apr 15, 2014 at 12:04:17PM +0200, stef...@seibold.net wrote: > > >> > > >>Zitat

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Thadeu Lima de Souza Cascardo
On Tue, Apr 15, 2014 at 05:00:28PM +0200, stef...@seibold.net wrote: > > Zitat von Thadeu Lima de Souza Cascardo : > > >On Tue, Apr 15, 2014 at 12:04:17PM +0200, stef...@seibold.net wrote: > >> > >>Zitat von Thadeu Lima de Souza Cascardo : > >> > >>>On Mon, Apr 14, 2014 at 05:44:58PM +0200, stef.

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Stefani Seibold
Am Montag, den 14.04.2014, 13:58 -0400 schrieb Alan Stern: > On Mon, 14 Apr 2014, Stefani Seibold wrote: > > > > > An other PowerPC device which is nearly eactly the same HW but without > > > > this USB HUB works perfectly. > > > > > > Maybe you should replace that hub with a different brand. >

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Stefani Seibold
Am Montag, den 14.04.2014, 12:27 -0400 schrieb Alan Stern: > On Mon, 14 Apr 2014 stef...@seibold.net wrote: > > > Zitat von Alan Stern : > > > > > > >> <6>[ 167.936921] usb 2-2.1: new full-speed USB device number 3 > > >> using ohci-pci > > >> <6>[ 168.067890] usb 2-2.1: New USB device foun

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread stefani
Zitat von Thadeu Lima de Souza Cascardo : On Tue, Apr 15, 2014 at 12:04:17PM +0200, stef...@seibold.net wrote: Zitat von Thadeu Lima de Souza Cascardo : >On Mon, Apr 14, 2014 at 05:44:58PM +0200, stef...@seibold.net wrote: >> >>Zitat von Benjamin Herrenschmidt : >> >>>I don't know about EHCI

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread Thadeu Lima de Souza Cascardo
On Tue, Apr 15, 2014 at 12:04:17PM +0200, stef...@seibold.net wrote: > > Zitat von Thadeu Lima de Souza Cascardo : > > >On Mon, Apr 14, 2014 at 05:44:58PM +0200, stef...@seibold.net wrote: > >> > >>Zitat von Benjamin Herrenschmidt : > >> > >>>I don't know about EHCI specifically but this is a kno

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-15 Thread stefani
Zitat von Thadeu Lima de Souza Cascardo : On Mon, Apr 14, 2014 at 05:44:58PM +0200, stef...@seibold.net wrote: Zitat von Benjamin Herrenschmidt : >I don't know about EHCI specifically but this is a known issue with >XHCI, I observe similar issues on other powerpc platforms (servers) >and thi

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread Thadeu Lima de Souza Cascardo
On Mon, Apr 14, 2014 at 05:44:58PM +0200, stef...@seibold.net wrote: > > Zitat von Benjamin Herrenschmidt : > > >On Sun, 2014-04-13 at 21:22 +0200, Stefani Seibold wrote: > >>When executing a kexec kernel on a PowerPC board the new started kernel > >>will not find already enumerated USB devices d

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread Alan Stern
On Mon, 14 Apr 2014, Stefani Seibold wrote: > > > An other PowerPC device which is nearly eactly the same HW but without > > > this USB HUB works perfectly. > > > > Maybe you should replace that hub with a different brand. > > > > Thats not possible, because the Hub is soldered on the board.

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread Stefani Seibold
Am Montag, den 14.04.2014, 12:27 -0400 schrieb Alan Stern: > On Mon, 14 Apr 2014 stef...@seibold.net wrote: > > > Zitat von Alan Stern : > > > > > > >> <6>[ 167.936921] usb 2-2.1: new full-speed USB device number 3 > > >> using ohci-pci > > >> <6>[ 168.067890] usb 2-2.1: New USB device found

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread Alan Stern
On Mon, 14 Apr 2014 stef...@seibold.net wrote: > Zitat von Alan Stern : > > > >> <6>[ 167.936921] usb 2-2.1: new full-speed USB device number 3 > >> using ohci-pci > >> <6>[ 168.067890] usb 2-2.1: New USB device found, idVendor=076b, > >> idProduct=a021 > >> <6>[ 168.074871] usb 2-2.1: New

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread stefani
Zitat von Benjamin Herrenschmidt : On Sun, 2014-04-13 at 21:22 +0200, Stefani Seibold wrote: When executing a kexec kernel on a PowerPC board the new started kernel will not find already enumerated USB devices due a missing reset on the USB bus. As a work around a echo 1 >/sys/bus/pci/driver

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread stefani
Zitat von Alan Stern : <6>[ 167.936921] usb 2-2.1: new full-speed USB device number 3 using ohci-pci <6>[ 168.067890] usb 2-2.1: New USB device found, idVendor=076b, idProduct=a021 <6>[ 168.074871] usb 2-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 <6>[ 168.082226] usb 2

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread Alan Stern
On Mon, 14 Apr 2014 stef...@seibold.net wrote: > > From Alan Stern : > > > On Sun, 13 Apr 2014, Stefani Seibold wrote: > > > >> When executing a kexec kernel on a PowerPC board the new started kernel > >> will not find already enumerated USB devices due a missing reset on the > >> USB bus. > >

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread stefani
From Alan Stern : On Sun, 13 Apr 2014, Stefani Seibold wrote: When executing a kexec kernel on a PowerPC board the new started kernel will not find already enumerated USB devices due a missing reset on the USB bus. How do you know the problem is caused by a missing reset? A "echo 1 >/sys

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-14 Thread Benjamin Herrenschmidt
On Sun, 2014-04-13 at 21:22 +0200, Stefani Seibold wrote: > When executing a kexec kernel on a PowerPC board the new started kernel > will not find already enumerated USB devices due a missing reset on the > USB bus. > > As a work around a > > echo 1 >/sys/bus/pci/drivers/[ex]hci-pci/BUS-ADDRESS-

Re: Missing USB XHCI and EHCI reset for kexec

2014-04-13 Thread Alan Stern
On Sun, 13 Apr 2014, Stefani Seibold wrote: > When executing a kexec kernel on a PowerPC board the new started kernel > will not find already enumerated USB devices due a missing reset on the > USB bus. How do you know the problem is caused by a missing reset? Can you post the dmesg log from the

Missing USB XHCI and EHCI reset for kexec

2014-04-13 Thread Stefani Seibold
When executing a kexec kernel on a PowerPC board the new started kernel will not find already enumerated USB devices due a missing reset on the USB bus. As a work around a echo 1 >/sys/bus/pci/drivers/[ex]hci-pci/BUS-ADDRESS-OF-THE-HCD/reset will solve this. But this is far from beauty. My late