Re: linux-stable 4.11.y – xhci probe failed because of missing patches

2017-10-10 Thread Greg KH
On Tue, Oct 10, 2017 at 02:50:48PM +0700, Tung Vuong Nguyen wrote:
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is 
> for the sole use of the intended recipient(s) and contains information that 
> is confidential and proprietary to Applied Micro Circuits Corporation or 
> its subsidiaries. It is to be used solely for the purpose of furthering the 
> parties' business relationship. All unauthorized review, use, disclosure or 
> distribution is prohibited. If you are not the intended recipient, please 
> contact the sender by reply e-mail and destroy all copies of the original 
> message.

oops, should have deleted my previous email.  I've now deleted yours, as
I should not ever respond to emails with footers like this :(
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: linux-stable 4.11.y – xhci probe failed because of missing patches

2017-10-10 Thread Greg KH
On Tue, Oct 10, 2017 at 02:50:48PM +0700, Tung Vuong Nguyen wrote:
> Hi everyone,
> 
> Since kernel 4.11, there are a list of patches from Sriram (refer
> https://lkml.org/lkml/2016/11/10/51) that change the way DMA is
> inherited from sysdev. They have been accepted and available in
> torvalds/linux.git already. Below are list the patches:

4.11 is long end-of-life, why are you still using it?  Is this an issue
with either the 4.9 or 4.13 stable kernels?

4.11 also has other major issues, I'd stay away from it, unless you like
running insecure systems :)

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: linux-stable 4.11.y – xhci probe failed because of missing patches

2017-10-10 Thread Mathias Nyman

On 10.10.2017 10:50, Tung Vuong Nguyen wrote:

Hi everyone,

Since kernel 4.11, there are a list of patches from Sriram (refer
https://lkml.org/lkml/2016/11/10/51) that change the way DMA is
inherited from sysdev. They have been accepted and available in
torvalds/linux.git already. Below are list the patches:

d64ff406e5("usb: dwc3: use bus->sysdev for DMA configuration")
8c9f2de459("usb: dwc3: Do not set dma coherent mask")
a8c06e407e("usb: separate out sysdev pointer from usb_bus")
aeb78cda51("usb: chipidea: use bus->sysdev for DMA configuration")
8123e4953f("usb: ehci: fsl: use bus->sysdev for DMA configuration")
4c39d4b949("usb: xhci: use bus->sysdev for DMA configuration")
c6b8e79306("usb: host: xhci-plat: allow sysdev to inherit from ACPI")

They should all come together.

However, in linux-stable at linux-4.11.y branch, only 2 first above
patches are included. This causes the XHCI driver is fail to probe
with below kernel message:
[7.859145] xhci-hcd: probe of xhci-hcd.0.auto failed with error -5

This causes OSes such as CentOS 7.4 which uses kernel 4.11 have USB
XHCI driver fails to work.



True, the first two dwc3 patches were accepted to (4.10).
The rest, including the xhci change got into 4.12 or later
So basically 4.11.y stable will have broken dwc3 xhci host part.

In addition to those we probably need these two as well:
bde654a55adc usb: hcd: use correct device pointer for dma ops
8b373ffc7977 usb: ehci: use bus->sysdev for DMA configuration

So complete list for 4.11.y stable would be:

a8c06e407ef9 usb: separate out sysdev pointer from usb_bus
aeb78cda5100 usb: chipidea: use bus->sysdev for DMA configuration
8123e4953fe6 usb: ehci: fsl: use bus->sysdev for DMA configuration
4c39d4b949d3 usb: xhci: use bus->sysdev for DMA configuration
8b373ffc7977 usb: ehci: use bus->sysdev for DMA configuration
bde654a55adc usb: hcd: use correct device pointer for dma ops
c6b8e79306f5 usb: host: xhci-plat: allow sysdev to inherit from ACPI

If you agree I can sent that list to stable

-Mathias
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


linux-stable 4.11.y – xhci probe failed because of missing patches

2017-10-10 Thread Tung Vuong Nguyen
Hi everyone,

Since kernel 4.11, there are a list of patches from Sriram (refer
https://lkml.org/lkml/2016/11/10/51) that change the way DMA is
inherited from sysdev. They have been accepted and available in
torvalds/linux.git already. Below are list the patches:

d64ff406e5("usb: dwc3: use bus->sysdev for DMA configuration")
8c9f2de459("usb: dwc3: Do not set dma coherent mask")
a8c06e407e("usb: separate out sysdev pointer from usb_bus")
aeb78cda51("usb: chipidea: use bus->sysdev for DMA configuration")
8123e4953f("usb: ehci: fsl: use bus->sysdev for DMA configuration")
4c39d4b949("usb: xhci: use bus->sysdev for DMA configuration")
c6b8e79306("usb: host: xhci-plat: allow sysdev to inherit from ACPI")

They should all come together.

However, in linux-stable at linux-4.11.y branch, only 2 first above
patches are included. This causes the XHCI driver is fail to probe
with below kernel message:
[7.859145] xhci-hcd: probe of xhci-hcd.0.auto failed with error -5

This causes OSes such as CentOS 7.4 which uses kernel 4.11 have USB
XHCI driver fails to work.

-- 
Best regards,
Tung

-- 
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is 
for the sole use of the intended recipient(s) and contains information that 
is confidential and proprietary to Applied Micro Circuits Corporation or 
its subsidiaries. It is to be used solely for the purpose of furthering the 
parties' business relationship. All unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message.
L3C: 8MB
   PEI114 ms
   DXE  20785 ms
   BDS  32047 ms
Total Time = 52947 ms

[0.00] Booting Linux on physical CPU 0x0
[0.00] Linux version 4.11.0 (tunguyen@hcmlab-sw7) (gcc version 6.0.0 
20150826 (experimental) (APM-9.0.7-le) ) #51 SMP PREEMPT Tue Oct 10 13:23:22 
ICT 2017
[0.00] Boot CPU: AArch64 Processor [501f]
[0.00] earlycon: uart8250 at MMIO32 0x1060 (options '')
[0.00] bootconsole [uart8250] enabled
[0.00] efi: Getting EFI parameters from FDT:
[0.00] efi: UEFI not found.
[0.00] cma: Reserved 16 MiB at 0x0040ff00
[0.00] NUMA: No NUMA configuration found
[0.00] NUMA: Faking a node at [mem 
0x-0x0041]
[0.00] NUMA: Adding memblock [0x40 - 0x41] on node 0
[0.00] NUMA: Initmem setup node 0 [mem 0x40-0x41]
[0.00] NUMA: NODE_DATA [mem 0x41fffd0f00-0x41fffd29ff]
[0.00] Zone ranges:
[0.00]   DMA  [mem 0x0040-0x0040]
[0.00]   Normal   [mem 0x0041-0x0041]
[0.00] Movable zone start for each node
[0.00] Early memory node ranges
[0.00]   node   0: [mem 0x0040-0x0041]
[0.00] Initmem setup node 0 [mem 0x0040-0x0041]
[0.00] On node 0 totalpages: 2097152
[0.00]   DMA zone: 16384 pages used for memmap
[0.00]   DMA zone: 0 pages reserved
[0.00]   DMA zone: 1048576 pages, LIFO batch:31
[0.00]   Normal zone: 16384 pages used for memmap
[0.00]   Normal zone: 1048576 pages, LIFO batch:31
[0.00] percpu: Embedded 23 pages/cpu @8001fff15000 s56960 r8192 
d29056 u94208
[0.00] pcpu-alloc: s56960 r8192 d29056 u94208 alloc=23*4096
[0.00] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7 
[0.00] Detected PIPT I-cache on CPU0
[0.00] Built 1 zonelists in Node order, mobility grouping on.  Total 
pages: 2064384
[0.00] Policy zone: Normal
[0.00] Kernel command line: console=ttyS0,115200 
earlycon=uart8250,mmio32,0x1060 debug
[0.00] PID hash table entries: 4096 (order: 3, 32768 bytes)
[0.00] software IO TLB [mem 0x40fafff000-0x40fefff000] (64MB) mapped at 
[8000fafff000-8000feffefff]
[0.00] Memory: 8122152K/8388608K available (8892K kernel code, 964K 
rwdata, 3972K rodata, 1088K init, 396K bss, 250072K reserved, 16384K 
cma-reserved)
[0.00] Virtual kernel memory layout:
[0.00] modules : 0x - 0x0800   (   128 
MB)
[0.00] vmalloc : 0x0800 - 0x7dffbfff   (129022 
GB)
[0.00]   .text : 0x0808 - 0x0893   (  8896 
KB)
[0.00] .rodata : 0x0893 - 0x08d2   (  4032 
KB)
[0.00]   .init : 0x08d2 - 0x08e3   (  1088 
KB)
[0.00]   .data : 0x08e3 - 0x08f21200   (   965 
KB)
[0.00].bss : 0x08f21200 - 0x08f844b0   (   397 
KB)
[0.00] fixed   : 0x7dfffe7fd000 - 0x7dfffec0   (  4108 
KB)
[0.00] PCI I/O : 0x7dfffee0 - 0x7de0   (16 
MB)
[