Hi, Balbi, > -----Original Message----- > From: Felipe Balbi [mailto:felipe.balbi@xxxxxxxxxxxxxxx] > Sent: Wednesday, December 07, 2016 5:11 PM > To: Jerry Huang <jerry.huang@xxxxxxx>; stern@xxxxxxxxxxxxxxxxxxx; > linux-usb@xxxxxxxxxxxxxxx; Mathias Nyman > <mathias.nyman@xxxxxxxxxxxxxxx>; Arnd Bergmann <arnd@xxxxxxxx> > Cc: Sriram Dash <sriram.dash@xxxxxxx>; Greg Kroah-Hartman > <gregkh@xxxxxxxxxxxxxxxxxxx> > Subject: RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7 > > > Hi, > > Jerry Huang <jerry.huang@xxxxxxx> writes: > >> Jerry Huang <jerry.huang@xxxxxxx> writes: > >> > Hi, Balbi, > >> > Sorry for later responding. > >> > I tested Linux 4.8, 4.7, 4.6 and 4.5, has the same issue: > >> > [ 0.756166] xhci-hcd: probe of xhci-hcd.0.auto failed with error -5 > >> > > >> > Then I found one patch (dwc3 initiated xhci probe problem in arm64 > >> > 4.4 > >> kernel due to DMA setup) as below link, and I applied this patch to > >> Linux-4.5, the USB3.0 worked well! Therefore I applied this patch to > >> Linux-4.9-rc7, and the USB3.0 works well, too! Which used > >> of_dma_configure(&xhci->dev, > >> dwc->dev->of_node) to set dma. > >> > https://patches.linaro.org/patch/65892/ > >> > > >> > However, in Linux-4.9-rc8, I found these 6 patches applied: > >> > https://patchwork.kernel.org/patch/9434163/ > >> > https://patchwork.kernel.org/patch/9434155/ > >> > https://patchwork.kernel.org/patch/9434131/ > >> > https://patchwork.kernel.org/patch/9434165/ > >> > https://patchwork.kernel.org/patch/9434167/ > >> > https://patchwork.kernel.org/patch/9434133/ > >> > and the commit ID are: > >> > 9863f279c1d48e366a179e76683247f239b30975 > >> > 0abcfafea32452f1d07901320efa8c17470dbeed > >> > ec3a36d441f2adcb8a0d3f6534ac488f2202c87a > >> > e9d10c536b26732d38d59fa3639b85bcd819837e > >> > 60478aead82d761c71a2a402b3fd2817af9e57ac > >> > 21f57eb38129042d2910d1e9b5fd36f3eea93637 > >> > > >> > And I got the below error when I attached one USB3.0 disk (Just > >> > USB2.0 > >> disk can work). From above 6 patches, it seems remove > >> dma_set_coherent_mask from file drivers/usb/dwc3/host.c. > >> > > >> > usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd > >> > [ 16.224264] usb 4-1: device descriptor read/8, error -61 > >> > [ 16.336179] usb 4-1: new SuperSpeed USB device number 2 using xhci- > >> hcd > >> > [ 16.360257] usb 4-1: device descriptor read/8, error -61 > >> > [ 16.652196] usb 4-1: new SuperSpeed USB device number 3 using xhci- > >> hcd > >> > [ 16.676256] usb 4-1: device descriptor read/8, error -61 > >> > [ 16.788179] usb 4-1: new SuperSpeed USB device number 3 using xhci- > >> hcd > >> > [ 16.812255] usb 4-1: device descriptor read/8, error -61 > >> > > >> > So, how to handle this issue? > >> > >> oh, it's the DMA thing. We have patches going to next for this. Arnd, > >> do you know if next has all missing pieces? There was something > >> pending on XHCI IIRC, right? > > So, there are some patches for this issue? Where can I find it? I need these > patches for my work. > > https://lkml.org/lkml/2016/11/17/339 You means these below 6 patches? They have been applied to Linux-4.9-rc8. Based on Linux-4.9-rc8, I got the error when I connect USB3.0 disk to board (USB2.0 disk works well): [ 16.360257] usb 4-1: device descriptor read/8, error -61 So, I think all these 6 patches did not set the USB3.0 DMA coherent correctly, and we need another patch to handle it. All these patches can't be opened on lkml website, but I found them on patchwork. [PATCH v5 1/6] usb: separate out sysdev pointer from usb_bus (https://lkml.org/lkml/2016/11/17/349) [PATCH v5 2/6] usb: chipidea: use bus->sysdev for DMA configuration (https://lkml.org/lkml/2016/11/17/340 ) [PATCH v5 3/6] usb: ehci: fsl: use bus->sysdev for DMA configuration (https://lkml.org/lkml/2016/11/17/334) [PATCH v5 4/6] usb: xhci: use bus->sysdev for DMA configuration (https://lkml.org/lkml/2016/11/17/348 ) [PATCH v5 5/6] usb: dwc3: use bus->sysdev for DMA configuration (https://lkml.org/lkml/2016/11/17/347) [PATCH v5 6/6] usb: dwc3: Do not set dma coherent mask - LKML.ORG (https://lkml.org/lkml/2016/11/17/337) On patchwork.kernel.org: https://patchwork.kernel.org/patch/9434163/ https://patchwork.kernel.org/patch/9434155/ https://patchwork.kernel.org/patch/9434131/ https://patchwork.kernel.org/patch/9434165/ https://patchwork.kernel.org/patch/9434167/ https://patchwork.kernel.org/patch/9434133/ the commit ID for them: 9863f279c1d48e366a179e76683247f239b30975 0abcfafea32452f1d07901320efa8c17470dbeed ec3a36d441f2adcb8a0d3f6534ac488f2202c87a e9d10c536b26732d38d59fa3639b85bcd819837e 60478aead82d761c71a2a402b3fd2817af9e57ac 21f57eb38129042d2910d1e9b5fd36f3eea93637 > -- > balbi -- 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