Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-03-06 Thread Oliver Neukum
Am Freitag, den 24.02.2017, 16:41 +0300 schrieb c400:
> when i disable IOMMU -> "Enable Intel DMA Remapping Device by
> default"
> the USB flash drive becomes completely invisible.
> Same stuff when i completely disable recompile kernel without IOMMU

The DMA map for the device seems to be incorrect. Try limiting mem to
2GB on the kernel command line.

Regards
Oliver

--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-02-24 Thread c400
when i disable IOMMU -> "Enable Intel DMA Remapping Device by default"
the USB flash drive becomes completely invisible.
Same stuff when i completely disable recompile kernel without IOMMU

2017-02-19 6:48 GMT+03:00 c400 :
> [  804.441424] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd
> [  804.462165] usb 4-1: New USB device found, idVendor=0951, idProduct=1656
> [  804.462169] usb 4-1: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=3
> [  804.462172] usb 4-1: Product: DT Ultimate G2
> [  804.462174] usb 4-1: Manufacturer: Kingston
> [  804.462176] usb 4-1: SerialNumber: 0018F3D97163BB71B1480004
> [  804.462182] device: '4-1': device_add
> [  804.462219] bus: 'usb': add device 4-1
> [  804.462226] PM: Adding info for usb:4-1
> [  804.462266] bus: 'usb': driver_probe_device: matched device 4-1
> with driver usb
> [  804.462267] bus: 'usb': really_probe: probing driver usb with device 4-1
> [  804.462270] devices_kset: Moving 4-1 to end of list
> [  804.462652] device: '4-1:1.0': device_add
> [  804.462664] bus: 'usb': add device 4-1:1.0
> [  804.462668] PM: Adding info for usb:4-1:1.0
> [  804.462686] bus: 'usb': driver_probe_device: matched device 4-1:1.0
> with driver usb-storage
> [  804.462688] bus: 'usb': really_probe: probing driver usb-storage
> with device 4-1:1.0
> [  804.462691] devices_kset: Moving 4-1:1.0 to end of list
> [  804.462697] usb-storage 4-1:1.0: USB Mass Storage device detected
> [  804.463039] scsi host7: usb-storage 4-1:1.0
> [  804.463043] device: 'host7': device_add
> [  804.463049] bus: 'scsi': add device host7
> [  804.463077] PM: Adding info for scsi:host7
> [  804.463083] device: 'host7': device_add
> [  804.463098] PM: Adding info for No Bus:host7
> [  804.463106] driver: 'usb-storage': driver_bound: bound to device '4-1:1.0'
> [  804.463107] bus: 'usb': really_probe: bound device 4-1:1.0 to
> driver usb-storage
> [  804.463109] device: 'ep_81': device_add
> [  804.463117] PM: Adding info for No Bus:ep_81
> [  804.463119] device: 'ep_02': device_add
> [  804.463126] PM: Adding info for No Bus:ep_02
> [  804.463128] driver: 'usb': driver_bound: bound to device '4-1'
> [  804.463129] bus: 'usb': really_probe: bound device 4-1 to driver usb
> [  804.463134] device: 'ep_00': device_add
> [  804.463147] PM: Adding info for No Bus:ep_00
> [  805.473481] scsi 7:0:0:0: Direct-Access Kingston DT Ultimate G2
>   PMAP PQ: 0 ANSI: 0 CCS
> [  805.473484] device: 'target7:0:0': device_add
> [  805.473488] bus: 'scsi': add device target7:0:0
> [  805.473494] PM: Adding info for scsi:target7:0:0
> [  805.473503] device: '7:0:0:0': device_add
> [  805.473519] bus: 'scsi': add device 7:0:0:0
> [  805.473524] PM: Adding info for scsi:7:0:0:0
> [  805.473528] bus: 'scsi': driver_probe_device: matched device
> 7:0:0:0 with driver sd
> [  805.473529] bus: 'scsi': really_probe: probing driver sd with device 
> 7:0:0:0
> [  805.473531] devices_kset: Moving 7:0:0:0 to end of list
> [  805.473537] device: '7:0:0:0': device_add
> [  805.473549] PM: Adding info for No Bus:7:0:0:0
> [  805.473555] driver: 'sd': driver_bound: bound to device '7:0:0:0'
> [  805.473556] bus: 'scsi': really_probe: bound device 7:0:0:0 to driver sd
> [  805.473558] device: '7:0:0:0': device_add
> [  805.473580] PM: Adding info for No Bus:7:0:0:0
> [  805.473593] device: 'sg7': device_add
> [  805.473608] PM: Adding info for No Bus:sg7
> [  805.473679] sd 7:0:0:0: Attached scsi generic sg7 type 0
> [  805.473682] device: '7:0:0:0': device_add
> [  805.473690] PM: Adding info for No Bus:7:0:0:0
> [  805.473936] sd 7:0:0:0: [sdd] 31293440 512-byte logical blocks:
> (16.0 GB/14.9 GiB)
> [  805.474070] sd 7:0:0:0: [sdd] Write Protect is off
> [  805.474073] sd 7:0:0:0: [sdd] Mode Sense: 23 00 00 00
> [  805.474213] sd 7:0:0:0: [sdd] No Caching mode page found
> [  805.474214] sd 7:0:0:0: [sdd] Assuming drive cache: write through
> [  805.474219] device: '8:48': device_add
> [  805.474233] PM: Adding info for No Bus:8:48
> [  805.474244] device: 'sdd': device_add
> [  805.474258] PM: Adding info for No Bus:sdd
> [  805.770620]  sdd: sdd1
> [  805.770627] device: 'sdd1': device_add
> [  805.770642] PM: Adding info for No Bus:sdd1
> [  805.771818] sd 7:0:0:0: [sdd] Attached SCSI removable disk
> [  805.811101] DMAR: DRHD: handling fault status reg 2
> [  805.811108] DMAR: [DMA Read] Request device [07:00.0] fault addr
> fff98000 [fault reason 06] PTE Read access is not set
> [  805.811139] xhci_hcd :07:00.0: WARNING: Host System Error
> [  805.848184] xhci_hcd :07:00.0: Host not halted after 16000 
> microseconds.
>
> 2017-02-11 16:32 GMT+03:00 c400 :
>> no, i`ve already tested and wrote about useless experiments
>> https://www.mail-archive.com/linux-usb@vger.kernel.org/msg80329.html
>>
>> 2017-02-11 0:45 GMT+03:00 c400 :
>>> sorry, got the letter branch cleaned, so haven`t seen your reply
>>>
>>> tested on 4.9.9 kernel
>>>
>>> [13964.125187] sd 7:0:0:0: [sdc] Attached SCSI removable disk
>>> [139

Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-02-20 Thread Oliver Neukum
Am Sonntag, den 19.02.2017, 06:48 +0300 schrieb c400:
> [  805.771818] sd 7:0:0:0: [sdd] Attached SCSI removable disk
> [  805.811101] DMAR: DRHD: handling fault status reg 2
> [  805.811108] DMAR: [DMA Read] Request device [07:00.0] fault addr
> fff98000 [fault reason 06] PTE Read access is not set
> [  805.811139] xhci_hcd :07:00.0: WARNING: Host System Error
> [  805.848184] xhci_hcd :07:00.0: Host not halted after 16000
> microseconds.

This looks like your iommu is acting up. Does it work if you disable
support for it?

Regards
Oliver

--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-02-18 Thread c400
[  804.441424] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd
[  804.462165] usb 4-1: New USB device found, idVendor=0951, idProduct=1656
[  804.462169] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  804.462172] usb 4-1: Product: DT Ultimate G2
[  804.462174] usb 4-1: Manufacturer: Kingston
[  804.462176] usb 4-1: SerialNumber: 0018F3D97163BB71B1480004
[  804.462182] device: '4-1': device_add
[  804.462219] bus: 'usb': add device 4-1
[  804.462226] PM: Adding info for usb:4-1
[  804.462266] bus: 'usb': driver_probe_device: matched device 4-1
with driver usb
[  804.462267] bus: 'usb': really_probe: probing driver usb with device 4-1
[  804.462270] devices_kset: Moving 4-1 to end of list
[  804.462652] device: '4-1:1.0': device_add
[  804.462664] bus: 'usb': add device 4-1:1.0
[  804.462668] PM: Adding info for usb:4-1:1.0
[  804.462686] bus: 'usb': driver_probe_device: matched device 4-1:1.0
with driver usb-storage
[  804.462688] bus: 'usb': really_probe: probing driver usb-storage
with device 4-1:1.0
[  804.462691] devices_kset: Moving 4-1:1.0 to end of list
[  804.462697] usb-storage 4-1:1.0: USB Mass Storage device detected
[  804.463039] scsi host7: usb-storage 4-1:1.0
[  804.463043] device: 'host7': device_add
[  804.463049] bus: 'scsi': add device host7
[  804.463077] PM: Adding info for scsi:host7
[  804.463083] device: 'host7': device_add
[  804.463098] PM: Adding info for No Bus:host7
[  804.463106] driver: 'usb-storage': driver_bound: bound to device '4-1:1.0'
[  804.463107] bus: 'usb': really_probe: bound device 4-1:1.0 to
driver usb-storage
[  804.463109] device: 'ep_81': device_add
[  804.463117] PM: Adding info for No Bus:ep_81
[  804.463119] device: 'ep_02': device_add
[  804.463126] PM: Adding info for No Bus:ep_02
[  804.463128] driver: 'usb': driver_bound: bound to device '4-1'
[  804.463129] bus: 'usb': really_probe: bound device 4-1 to driver usb
[  804.463134] device: 'ep_00': device_add
[  804.463147] PM: Adding info for No Bus:ep_00
[  805.473481] scsi 7:0:0:0: Direct-Access Kingston DT Ultimate G2
  PMAP PQ: 0 ANSI: 0 CCS
[  805.473484] device: 'target7:0:0': device_add
[  805.473488] bus: 'scsi': add device target7:0:0
[  805.473494] PM: Adding info for scsi:target7:0:0
[  805.473503] device: '7:0:0:0': device_add
[  805.473519] bus: 'scsi': add device 7:0:0:0
[  805.473524] PM: Adding info for scsi:7:0:0:0
[  805.473528] bus: 'scsi': driver_probe_device: matched device
7:0:0:0 with driver sd
[  805.473529] bus: 'scsi': really_probe: probing driver sd with device 7:0:0:0
[  805.473531] devices_kset: Moving 7:0:0:0 to end of list
[  805.473537] device: '7:0:0:0': device_add
[  805.473549] PM: Adding info for No Bus:7:0:0:0
[  805.473555] driver: 'sd': driver_bound: bound to device '7:0:0:0'
[  805.473556] bus: 'scsi': really_probe: bound device 7:0:0:0 to driver sd
[  805.473558] device: '7:0:0:0': device_add
[  805.473580] PM: Adding info for No Bus:7:0:0:0
[  805.473593] device: 'sg7': device_add
[  805.473608] PM: Adding info for No Bus:sg7
[  805.473679] sd 7:0:0:0: Attached scsi generic sg7 type 0
[  805.473682] device: '7:0:0:0': device_add
[  805.473690] PM: Adding info for No Bus:7:0:0:0
[  805.473936] sd 7:0:0:0: [sdd] 31293440 512-byte logical blocks:
(16.0 GB/14.9 GiB)
[  805.474070] sd 7:0:0:0: [sdd] Write Protect is off
[  805.474073] sd 7:0:0:0: [sdd] Mode Sense: 23 00 00 00
[  805.474213] sd 7:0:0:0: [sdd] No Caching mode page found
[  805.474214] sd 7:0:0:0: [sdd] Assuming drive cache: write through
[  805.474219] device: '8:48': device_add
[  805.474233] PM: Adding info for No Bus:8:48
[  805.474244] device: 'sdd': device_add
[  805.474258] PM: Adding info for No Bus:sdd
[  805.770620]  sdd: sdd1
[  805.770627] device: 'sdd1': device_add
[  805.770642] PM: Adding info for No Bus:sdd1
[  805.771818] sd 7:0:0:0: [sdd] Attached SCSI removable disk
[  805.811101] DMAR: DRHD: handling fault status reg 2
[  805.811108] DMAR: [DMA Read] Request device [07:00.0] fault addr
fff98000 [fault reason 06] PTE Read access is not set
[  805.811139] xhci_hcd :07:00.0: WARNING: Host System Error
[  805.848184] xhci_hcd :07:00.0: Host not halted after 16000 microseconds.

2017-02-11 16:32 GMT+03:00 c400 :
> no, i`ve already tested and wrote about useless experiments
> https://www.mail-archive.com/linux-usb@vger.kernel.org/msg80329.html
>
> 2017-02-11 0:45 GMT+03:00 c400 :
>> sorry, got the letter branch cleaned, so haven`t seen your reply
>>
>> tested on 4.9.9 kernel
>>
>> [13964.125187] sd 7:0:0:0: [sdc] Attached SCSI removable disk
>> [13964.150525] DMAR: DRHD: handling fault status reg 2
>> [13964.150532] DMAR: [DMA Read] Request device [02:00.0] fault addr
>> fffb1000 [fault reason 06] PTE Read access is not set
>> [13995.848713] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
>> [14001.072566] usb 4-2: device descriptor read/8, error -110
>> [14001.179732] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
>> [14

Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-02-11 Thread Greg KH
On Sat, Feb 11, 2017 at 04:32:05PM +0300, c400 wrote:
> no, i`ve already tested and wrote about useless experiments
> https://www.mail-archive.com/linux-usb@vger.kernel.org/msg80329.html

Ok, but please remember, we have no memory of things at all, if you do
not properly quote previous emails and the thread.

good luck!

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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-02-11 Thread c400
no, i`ve already tested and wrote about useless experiments
https://www.mail-archive.com/linux-usb@vger.kernel.org/msg80329.html

2017-02-11 0:45 GMT+03:00 c400 :
> sorry, got the letter branch cleaned, so haven`t seen your reply
>
> tested on 4.9.9 kernel
>
> [13964.125187] sd 7:0:0:0: [sdc] Attached SCSI removable disk
> [13964.150525] DMAR: DRHD: handling fault status reg 2
> [13964.150532] DMAR: [DMA Read] Request device [02:00.0] fault addr
> fffb1000 [fault reason 06] PTE Read access is not set
> [13995.848713] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
> [14001.072566] usb 4-2: device descriptor read/8, error -110
> [14001.179732] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
> [14006.448780] usb 4-2: device descriptor read/8, error -110
> [14006.760494] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
> [14011.824973] usb 4-2: device descriptor read/8, error -110
> [14011.932178] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
> [14017.201216] usb 4-2: device descriptor read/8, error -110
> [14017.480842] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
> [14022.577498] usb 4-2: device descriptor read/8, error -110
> [14022.684584] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
> [14027.953593] usb 4-2: device descriptor read/8, error -110
> [14028.457289] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
> [14033.585880] usb 4-2: device descriptor read/8, error -110
> [14033.693042] usb 4-2: reset SuperSpeed USB device number 2 using xhci_hcd
> [14038.962098] usb 4-2: device descriptor read/8, error -110
> [14039.125361] usb 4-2: USB disconnect, device number 2
> [14039.125363] device: 'ep_81': device_unregister
> [14039.125376] PM: Removing info for No Bus:ep_81
> [14039.125380] device: 'ep_02': device_unregister
> [14039.125387] PM: Removing info for No Bus:ep_02
> [14039.125396] bus: 'usb': remove device 4-2:1.0
> [14039.125402] device: '7:0:0:0': device_unregister
> [14039.125530] PM: Removing info for No Bus:7:0:0:0
> [14039.125543] device: '7:0:0:0': device_create_release
> [14039.125544] device: '7:0:0:0': device_unregister
> [14039.125554] device: 'sg6': device_unregister
> [14039.125600] PM: Removing info for No Bus:sg6
> [14039.125609] device: 'sg6': device_create_release
> [14039.125614] PM: Removing info for No Bus:7:0:0:0
> [14039.125643] bus: 'scsi': remove device 7:0:0:0
> [14039.125659] PM: Removing info for No Bus:7:0:0:0
> [14039.141263] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
> hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
> [14039.141266] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 dd 7d 00
> 00 00 20 00
> [14039.141267] blk_update_request: I/O error, dev sdc, sector 31292672
> [14039.141293] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
> hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
> [14039.141295] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 01 dd 7d 28
> 00 00 30 00
> [14039.141296] blk_update_request: I/O error, dev sdc, sector 31292712
> [14039.141471] PM: Removing info for No Bus:sdc1
> [14039.141887] PM: Removing info for No Bus:sdc
> [14039.141901] PM: Removing info for scsi:7:0:0:0
> [14039.169409] device: '8:32': device_unregister
> [14039.169433] PM: Removing info for No Bus:8:32
> [14039.169456] device: '8:32': device_create_release
> [14039.169480] bus: 'scsi': remove device target7:0:0
> [14039.169481] PM: Removing info for scsi:target7:0:0
> [14039.237389] device: 'host7': device_unregister
> [14039.237419] PM: Removing info for No Bus:host7
> [14039.237435] bus: 'scsi': remove device host7
> [14039.237436] PM: Removing info for scsi:host7
> [14039.237557] PM: Removing info for usb:4-2:1.0
> [14039.237574] device: 'ep_00': device_unregister
> [14039.237584] PM: Removing info for No Bus:ep_00
> [14039.237664] bus: 'usb': remove device 4-2
> [14039.237681] PM: Removing info for usb:4-2
> [14039.357502] usb 4-2: new SuperSpeed USB device number 3 using xhci_hcd
> [14044.594310] usb 4-2: device descriptor read/8, error -110
> [14044.701462] usb 4-2: new SuperSpeed USB device number 3 using xhci_hcd
> [14049.970453] usb 4-2: device descriptor read/8, error -110
> [14050.225967] usb 4-2: new SuperSpeed USB device number 4 using xhci_hcd
> [14055.346768] usb 4-2: device descriptor read/8, error -110
> [14055.453926] usb 4-2: new SuperSpeed USB device number 4 using xhci_hcd
> [14060.722987] usb 4-2: device descriptor read/8, error -110
> [14061.038377] usb 4-2: new SuperSpeed USB device number 5 using xhci_hcd
> [14066.099154] usb 4-2: device descriptor read/8, error -110
> [14066.206302] usb 4-2: new SuperSpeed USB device number 5 using xhci_hcd
> [14071.475416] usb 4-2: device descriptor read/8, error -110
> [14071.730816] usb 4-2: new SuperSpeed USB device number 6 using xhci_hcd
> [14076.851671] usb 4-2: device descriptor read/8, error -110
> [14076.958765] usb 4-2: new SuperSpeed USB device number 6 using xhci_hcd
> [14082.227800] usb 4-2: device descriptor read/8, error -110
>

Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-02-10 Thread Greg KH
On Sat, Feb 11, 2017 at 12:45:58AM +0300, c400 wrote:
> sorry, got the letter branch cleaned, so haven`t seen your reply
> 
> tested on 4.9.9 kernel

Has this worked on older kernels?  If so, can you use 'git bisect' to
track down the offending patch?

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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-01-16 Thread Mathias Nyman


Obviously there is some sort of communications problem.  Either the
device stopped transferring data or else the xHCI host controller
stopped receiving it.  From the usbmon trace, there's no way to tell
which.  However, if the device works okay with an EHCI host
controller or on another computer, that would indicate the problem is
in the xHCI controller.

Maybe Mathias can offer some advice.



The "WARNING: Host System Error" means we got a interrupt with
with HSE status bit set, indicating a fatal xHIC error.
In the logs this is seen together with the DMA remapping errors.
(dmesg below)

Do you have the INTEL_IOMMU_DEFAULT_ON config option set,
or passing intel_iommu=on to the kernel? if so, try disabling
it

Device Drivers -> IOMMU hardware supports -> Enable Intel DMA remapping devices 
by default.

Also adding xhci debugging could show something,

echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control

-Mathias



[  197.085680] PM: Adding info for No Bus:sdc1
[  197.086929] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[  230.955006] FAT-fs (sdc1): Volume was not properly unmounted. Some
data may be corrupt. Please run fsck.
[  234.422942] DMAR: DRHD: handling fault status reg 2
[  234.422946] DMAR: [DMA Read] Request device [02:00.0] fault addr
fffbb000 [fault reason 06] PTE Read access is not set
[  234.422950] xhci_hcd :02:00.0: WARNING: Host System Error
[  234.446078] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[  270.447035] xhci_hcd :02:00.0: xHCI host not responding to stop
endpoint command.
[  270.447040] xhci_hcd :02:00.0: Assuming host is dying, halting host.
[  270.470143] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[  270.470153] xhci_hcd :02:00.0: Non-responsive xHCI host is not halting.
[  270.470154] xhci_hcd :02:00.0: Completing active URBs anyway.
[  270.470161] xhci_hcd :02:00.0: HC died; cleaning up


--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-01-14 Thread c400
tested this controller on the this and other PC with linux x86_32 and
windows, everything works ok
btw i have 2 similar controllers and the same problems

2017-01-14 16:53 GMT+03:00 c400 :
> a262eb551300 320471228 S Ci:4:001:0 s a3 00  0001 0004 4 <
> a262eb551300 320471237 C Ci:4:001:0 0 4 = 03020100
> a262eb551300 320471240 S Co:4:001:0 s 23 01 0010 0001  0
> a262eb551300 320471242 C Co:4:001:0 0 0
> a262eb551300 320471244 S Ci:4:001:0 s a3 00  0002 0004 4 <
> a262eb551300 320471245 C Ci:4:001:0 0 4 = a002
> a262eb551300 320471246 S Ci:4:001:0 s a3 00  0003 0004 4 <
> a262eb551300 320471247 C Ci:4:001:0 0 4 = a002
> a262eb551300 320471248 S Ci:4:001:0 s a3 00  0004 0004 4 <
> a262eb551300 320471250 C Ci:4:001:0 0 4 = a002
> a2633302f840 320576056 S Ii:4:001:1 -115:2048 4 <
> a262eb5513c0 320576079 S Ci:4:001:0 s a3 00  0001 0004 4 <
> a262eb5513c0 320576084 C Ci:4:001:0 0 4 = 0302
> a262eb5513c0 320576147 S Ci:4:001:0 s a3 00  0001 0004 4 <
> a262eb5513c0 320576152 C Ci:4:001:0 0 4 = 0302
> a262eb5513c0 320576154 S Co:4:001:0 s 23 03 0004 0001  0
> a262eb5513c0 320576157 C Co:4:001:0 0 0
> a262eb5513c0 320636053 S Ci:4:001:0 s a3 00  0001 0004 4 <
> a262eb5513c0 320636071 C Ci:4:001:0 0 4 = 03021000
> a262eb5513c0 320636074 S Co:4:001:0 s 23 01 0014 0001  0
> a262eb5513c0 320636076 C Co:4:001:0 0 0
> a262eb5513c0 320636077 S Co:4:001:0 s 23 01 001d 0001  0
> a262eb5513c0 320636079 C Co:4:001:0 0 0
> a262eb5513c0 320636080 S Co:4:001:0 s 23 01 0019 0001  0
> a262eb5513c0 320636082 C Co:4:001:0 0 0
> a262eb5513c0 320636083 S Co:4:001:0 s 23 01 0010 0001  0
> a262eb5513c0 320636085 C Co:4:001:0 0 0
> a262eb5513c0 320636085 S Ci:4:001:0 s a3 00  0001 0004 4 <
> a262eb5513c0 320636087 C Ci:4:001:0 0 4 = 0302
> a262eb5513c0 320716069 S Ci:4:002:0 s 80 06 0100  0008 8 <
> a262eb5513c0 320716157 C Ci:4:002:0 0 8 = 12010003 0009
> a262eb5513c0 320716178 S Ci:4:002:0 s 80 06 0100  0012 18 <
> a262eb5513c0 320716228 C Ci:4:002:0 0 18 = 12010003 0009
> 51095616 10010102 0301
> a262eb5513c0 320716250 S Ci:4:002:0 s 80 06 0f00  0005 5 <
> a262eb5513c0 320716304 C Ci:4:002:0 0 5 = 050f1600 02
> a262eb5513c0 320716324 S Ci:4:002:0 s 80 06 0f00  0016 22 <
> a262eb5513c0 320716381 C Ci:4:002:0 0 22 = 050f1600 02071002
> 0200 0a100300 0e00020a ff07
> a262eb5513c0 320716405 S Ci:4:002:0 s 80 06 0200  0009 9 <
> a262eb5513c0 320716455 C Ci:4:002:0 0 9 = 09022c00 01010080 70
> a262eb5513c0 320716476 S Ci:4:002:0 s 80 06 0200  002c 44 <
> a262eb5513c0 320716532 C Ci:4:002:0 0 44 = 09022c00 01010080
> 70090400 00020806 5705 81020004 0006300e 0007
> a262eb551480 320716555 S Ci:4:002:0 s 80 06 0300  00ff 255 <
> a262eb551480 320716621 C Ci:4:002:0 0 4 = 04030904
> a262eb551480 320716630 S Ci:4:002:0 s 80 06 0302 0409 00ff 255 <
> a262eb551480 320716669 C Ci:4:002:0 0 30 = 1e034400 54002000
> 55006c00 74006900 6d006100 74006500 20004700 3200
> a262eb551480 320716693 S Ci:4:002:0 s 80 06 0301 0409 00ff 255 <
> a262eb551480 320716767 C Ci:4:002:0 0 18 = 12034b00 69006e00
> 67007300 74006f00 6e00
> a262eb551480 320716791 S Ci:4:002:0 s 80 06 0303 0409 00ff 255 <
> a262eb551480 320716826 C Ci:4:002:0 0 50 = 32033000 30003100
> 38004600 33004400 39003700 31003600 33004200 42003700
> a262eb551540 320717121 S Co:4:002:0 s 00 09 0001   0
> a262eb551540 320717156 C Co:4:002:0 0 0
> a262eb5516c0 321724063 S Ci:4:002:0 s a1 fe   0001 1 <
> a262eb5516c0 321724113 C Ci:4:002:0 0 1 = 00
> a262eb5516c0 321724426 S Bo:4:002:2 -115 31 = 55534243 0100
> 2400 8612 0024   00
> a262eb5516c0 321724447 C Bo:4:002:2 0 31 >
> a262eb551cc0 321724453 S Bi:4:002:1 -115 36 <
> a262eb551cc0 321724488 C Bi:4:002:1 0 36 = 0081 1f00
> 4b696e67 73746f6e 44542055 6c74696d 61746520 47322020
> a262eb5516c0 321724496 S Bi:4:002:1 -115 13 <
> a262eb5516c0 321724534 C Bi:4:002:1 0 13 = 55534253 0100  00
> a262eb5516c0 321724682 S Bo:4:002:2 -115 31 = 55534243 0200
>  0600    00
> a262eb5516c0 321724792 C Bo:4:002:2 0 31 >
> a262eb5516c0 321724862 S Bi:4:002:1 -115 13 <
> a262eb5516c0 321724907 C Bi:4:002:1 0 13 = 55534253 0200  00
> a262eb5516c0 321724991 S Bo:4:002:2 -115 31 = 55534243 0300
> 0800 8a25    00
> a262eb5516c0 321725003 C Bo:4:002:2 0 31 >
> a26333ac69c0 321725011 S Bi:4:002:1 -115 8 <
> a26333ac69c0 321725050 C Bi:4:002:1 0 8 = 01dd7fff 0200
> a262eb5516c0 321725079 S Bi:4:002:1 -115 13 <
> a262eb5516c0 321725092 C Bi:4:002:1 0 13 = 55534253 0300  00
> a262eb5516c0 321725154

Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-01-14 Thread Alan Stern
On Sat, 14 Jan 2017, c400 wrote:

...
> a262eb5516c0 321863050 S Bo:4:002:2 -115 31 = 55534243 6e00
> 0010 8a28 0008 1008  00
> a262eb5516c0 321863062 C Bo:4:002:2 0 31 >
> a26333a3d3c0 321863073 S Bi:4:002:1 -115 4096 <
> a26333a3d3c0 321863103 C Bi:4:002:1 0 4096 =  
>      
> a262eb5516c0 321863127 S Bi:4:002:1 -115 13 <
> a262eb5516c0 321863143 C Bi:4:002:1 0 13 = 55534253 6e00  00

At this point everything was working.  A 4096-byte read just completed
normally.

> a262eb5516c0 321863190 S Bo:4:002:2 -115 31 = 55534243 6f00
> 0070 8a28 0008 4038  00
> a262eb5516c0 321863202 C Bo:4:002:2 0 31 >
> a2633391ecc0 321863211 S Bi:4:002:1 -115 28672 <
> a2633391ecc0 353264495 C Bi:4:002:1 -104 1024 =  
>      

This shows a 28-KB read that failed after the first 4 KB had been 
transferred.  No further data was received and the transfer was aborted 
after about 30 seconds.

> a2633391ecc0 353264543 S Ci:4:001:0 s a3 00  0001 0004 4 <
> a2633391ecc0 353264550 C Ci:4:001:0 0 4 = 0302
> a2633312eb40 353264658 S Co:4:001:0 s 23 03 0004 0001  0
> a2633312eb40 353264665 C Co:4:001:0 0 0
> a26336cf3600 353324060 S Ci:4:001:0 s a3 00  0001 0004 4 <
> a26336cf3600 353324078 C Ci:4:001:0 0 4 = 03021000
> a2633828d900 353324135 S Co:4:001:0 s 23 01 0014 0001  0
> a2633828d900 353324149 C Co:4:001:0 0 0
> a263371bc540 353324271 S Co:4:001:0 s 23 01 001d 0001  0
> a263371bc540 353324278 C Co:4:001:0 0 0
> a2633256c240 353324353 S Co:4:001:0 s 23 01 0019 0001  0
> a2633256c240 353324366 C Co:4:001:0 0 0
> a262ee14a600 353324421 S Co:4:001:0 s 23 01 0010 0001  0
> a262ee14a600 353324427 C Co:4:001:0 0 0
> a263325d80c0 353324527 S Ci:4:001:0 s a3 00  0001 0004 4 <
> a263325d80c0 353324533 C Ci:4:001:0 0 4 = 0302
> a262ee1da0c0 355788061 S Ci:4:002:0 s 80 06 0100  0008 8 <

This shows the start of a reset.  Apparently the reset did not finish 
normally.

> Here it is! Launched USBMON and inserted USB3 flash into buggy
> controler. Then stoped monitoring.

Obviously there is some sort of communications problem.  Either the
device stopped transferring data or else the xHCI host controller
stopped receiving it.  From the usbmon trace, there's no way to tell 
which.  However, if the device works okay with an EHCI host 
controller or on another computer, that would indicate the problem is 
in the xHCI controller.

Maybe Mathias can offer some advice.

Alan Stern

> 2017-01-14 0:01 GMT+03:00 Alan Stern :
> > On Fri, 13 Jan 2017, c400 wrote:
> >
> >> kernel 4.9.3
> >> still not working
> >> latest log:
> >>
> >> [  196.984424] sd 7:0:0:0: [sdc] 31293440 512-byte logical blocks:
> >> (16.0 GB/14.9 GiB)
> >> [  196.984564] sd 7:0:0:0: [sdc] Write Protect is off
> >> [  196.984566] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
> >> [  196.984689] sd 7:0:0:0: [sdc] No Caching mode page found
> >> [  196.984690] sd 7:0:0:0: [sdc] Assuming drive cache: write through
> >> [  196.984696] device: '8:32': device_add
> >> [  196.984714] PM: Adding info for No Bus:8:32
> >> [  196.984727] device: 'sdc': device_add
> >> [  196.984747] PM: Adding info for No Bus:sdc
> >> [  197.085658]  sdc: sdc1
> >> [  197.085664] device: 'sdc1': device_add
> >> [  197.085680] PM: Adding info for No Bus:sdc1
> >> [  197.086929] sd 7:0:0:0: [sdc] Attached SCSI removable disk
> >> [  230.955006] FAT-fs (sdc1): Volume was not properly unmounted. Some
> >> data may be corrupt. Please run fsck.
> >> [  234.422942] DMAR: DRHD: handling fault status reg 2
> >> [  234.422946] DMAR: [DMA Read] Request device [02:00.0] fault addr
> >> fffbb000 [fault reason 06] PTE Read access is not set
> >> [  234.422950] xhci_hcd :02:00.0: WARNING: Host System Error
> >> [  234.446078] xhci_hcd :02:00.0: Host not halted after 16000 
> >> microseconds.
> >> [  270.447035] xhci_hcd :02:00.0: xHCI host not responding to stop
> >> endpoint command.
> >> [  270.447040] xhci_hcd :02:00.0: Assuming host is dying, halting host.
> >> [  270.470143] xhci_hcd :02:00.0: Host not halted after 16000 
> >> microseconds.
> >> [  270.470153] xhci_hcd :02:00.0: Non-responsive xHCI host is not 
> >> halting.
> >> [  270.470154] xhci_hcd :02:00.0: Completing active URBs anyway.
> >> [  270.470161] xhci_hcd :02:00.0: HC died; cleaning up



--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-01-14 Thread c400
a262eb551300 320471228 S Ci:4:001:0 s a3 00  0001 0004 4 <
a262eb551300 320471237 C Ci:4:001:0 0 4 = 03020100
a262eb551300 320471240 S Co:4:001:0 s 23 01 0010 0001  0
a262eb551300 320471242 C Co:4:001:0 0 0
a262eb551300 320471244 S Ci:4:001:0 s a3 00  0002 0004 4 <
a262eb551300 320471245 C Ci:4:001:0 0 4 = a002
a262eb551300 320471246 S Ci:4:001:0 s a3 00  0003 0004 4 <
a262eb551300 320471247 C Ci:4:001:0 0 4 = a002
a262eb551300 320471248 S Ci:4:001:0 s a3 00  0004 0004 4 <
a262eb551300 320471250 C Ci:4:001:0 0 4 = a002
a2633302f840 320576056 S Ii:4:001:1 -115:2048 4 <
a262eb5513c0 320576079 S Ci:4:001:0 s a3 00  0001 0004 4 <
a262eb5513c0 320576084 C Ci:4:001:0 0 4 = 0302
a262eb5513c0 320576147 S Ci:4:001:0 s a3 00  0001 0004 4 <
a262eb5513c0 320576152 C Ci:4:001:0 0 4 = 0302
a262eb5513c0 320576154 S Co:4:001:0 s 23 03 0004 0001  0
a262eb5513c0 320576157 C Co:4:001:0 0 0
a262eb5513c0 320636053 S Ci:4:001:0 s a3 00  0001 0004 4 <
a262eb5513c0 320636071 C Ci:4:001:0 0 4 = 03021000
a262eb5513c0 320636074 S Co:4:001:0 s 23 01 0014 0001  0
a262eb5513c0 320636076 C Co:4:001:0 0 0
a262eb5513c0 320636077 S Co:4:001:0 s 23 01 001d 0001  0
a262eb5513c0 320636079 C Co:4:001:0 0 0
a262eb5513c0 320636080 S Co:4:001:0 s 23 01 0019 0001  0
a262eb5513c0 320636082 C Co:4:001:0 0 0
a262eb5513c0 320636083 S Co:4:001:0 s 23 01 0010 0001  0
a262eb5513c0 320636085 C Co:4:001:0 0 0
a262eb5513c0 320636085 S Ci:4:001:0 s a3 00  0001 0004 4 <
a262eb5513c0 320636087 C Ci:4:001:0 0 4 = 0302
a262eb5513c0 320716069 S Ci:4:002:0 s 80 06 0100  0008 8 <
a262eb5513c0 320716157 C Ci:4:002:0 0 8 = 12010003 0009
a262eb5513c0 320716178 S Ci:4:002:0 s 80 06 0100  0012 18 <
a262eb5513c0 320716228 C Ci:4:002:0 0 18 = 12010003 0009
51095616 10010102 0301
a262eb5513c0 320716250 S Ci:4:002:0 s 80 06 0f00  0005 5 <
a262eb5513c0 320716304 C Ci:4:002:0 0 5 = 050f1600 02
a262eb5513c0 320716324 S Ci:4:002:0 s 80 06 0f00  0016 22 <
a262eb5513c0 320716381 C Ci:4:002:0 0 22 = 050f1600 02071002
0200 0a100300 0e00020a ff07
a262eb5513c0 320716405 S Ci:4:002:0 s 80 06 0200  0009 9 <
a262eb5513c0 320716455 C Ci:4:002:0 0 9 = 09022c00 01010080 70
a262eb5513c0 320716476 S Ci:4:002:0 s 80 06 0200  002c 44 <
a262eb5513c0 320716532 C Ci:4:002:0 0 44 = 09022c00 01010080
70090400 00020806 5705 81020004 0006300e 0007
a262eb551480 320716555 S Ci:4:002:0 s 80 06 0300  00ff 255 <
a262eb551480 320716621 C Ci:4:002:0 0 4 = 04030904
a262eb551480 320716630 S Ci:4:002:0 s 80 06 0302 0409 00ff 255 <
a262eb551480 320716669 C Ci:4:002:0 0 30 = 1e034400 54002000
55006c00 74006900 6d006100 74006500 20004700 3200
a262eb551480 320716693 S Ci:4:002:0 s 80 06 0301 0409 00ff 255 <
a262eb551480 320716767 C Ci:4:002:0 0 18 = 12034b00 69006e00
67007300 74006f00 6e00
a262eb551480 320716791 S Ci:4:002:0 s 80 06 0303 0409 00ff 255 <
a262eb551480 320716826 C Ci:4:002:0 0 50 = 32033000 30003100
38004600 33004400 39003700 31003600 33004200 42003700
a262eb551540 320717121 S Co:4:002:0 s 00 09 0001   0
a262eb551540 320717156 C Co:4:002:0 0 0
a262eb5516c0 321724063 S Ci:4:002:0 s a1 fe   0001 1 <
a262eb5516c0 321724113 C Ci:4:002:0 0 1 = 00
a262eb5516c0 321724426 S Bo:4:002:2 -115 31 = 55534243 0100
2400 8612 0024   00
a262eb5516c0 321724447 C Bo:4:002:2 0 31 >
a262eb551cc0 321724453 S Bi:4:002:1 -115 36 <
a262eb551cc0 321724488 C Bi:4:002:1 0 36 = 0081 1f00
4b696e67 73746f6e 44542055 6c74696d 61746520 47322020
a262eb5516c0 321724496 S Bi:4:002:1 -115 13 <
a262eb5516c0 321724534 C Bi:4:002:1 0 13 = 55534253 0100  00
a262eb5516c0 321724682 S Bo:4:002:2 -115 31 = 55534243 0200
 0600    00
a262eb5516c0 321724792 C Bo:4:002:2 0 31 >
a262eb5516c0 321724862 S Bi:4:002:1 -115 13 <
a262eb5516c0 321724907 C Bi:4:002:1 0 13 = 55534253 0200  00
a262eb5516c0 321724991 S Bo:4:002:2 -115 31 = 55534243 0300
0800 8a25    00
a262eb5516c0 321725003 C Bo:4:002:2 0 31 >
a26333ac69c0 321725011 S Bi:4:002:1 -115 8 <
a26333ac69c0 321725050 C Bi:4:002:1 0 8 = 01dd7fff 0200
a262eb5516c0 321725079 S Bi:4:002:1 -115 13 <
a262eb5516c0 321725092 C Bi:4:002:1 0 13 = 55534253 0300  00
a262eb5516c0 321725154 S Bo:4:002:2 -115 31 = 55534243 0400
c000 861a 003f00c0   00
a262eb5516c0 321725167 C Bo:4:002:2 0 31 >
a26333a3df00 321725175 S Bi:4:002:1 -115 192 <
a26333a3df00 321725214 C Bi:4:002:1 -121 36 = 2300 051ef000
0200     
a262eb5516c0 321725262 S Bi:4:0

Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-01-13 Thread Alan Stern
On Fri, 13 Jan 2017, c400 wrote:

> kernel 4.9.3
> still not working
> latest log:
> 
> [  196.984424] sd 7:0:0:0: [sdc] 31293440 512-byte logical blocks:
> (16.0 GB/14.9 GiB)
> [  196.984564] sd 7:0:0:0: [sdc] Write Protect is off
> [  196.984566] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
> [  196.984689] sd 7:0:0:0: [sdc] No Caching mode page found
> [  196.984690] sd 7:0:0:0: [sdc] Assuming drive cache: write through
> [  196.984696] device: '8:32': device_add
> [  196.984714] PM: Adding info for No Bus:8:32
> [  196.984727] device: 'sdc': device_add
> [  196.984747] PM: Adding info for No Bus:sdc
> [  197.085658]  sdc: sdc1
> [  197.085664] device: 'sdc1': device_add
> [  197.085680] PM: Adding info for No Bus:sdc1
> [  197.086929] sd 7:0:0:0: [sdc] Attached SCSI removable disk
> [  230.955006] FAT-fs (sdc1): Volume was not properly unmounted. Some
> data may be corrupt. Please run fsck.
> [  234.422942] DMAR: DRHD: handling fault status reg 2
> [  234.422946] DMAR: [DMA Read] Request device [02:00.0] fault addr
> fffbb000 [fault reason 06] PTE Read access is not set
> [  234.422950] xhci_hcd :02:00.0: WARNING: Host System Error
> [  234.446078] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [  270.447035] xhci_hcd :02:00.0: xHCI host not responding to stop
> endpoint command.
> [  270.447040] xhci_hcd :02:00.0: Assuming host is dying, halting host.
> [  270.470143] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [  270.470153] xhci_hcd :02:00.0: Non-responsive xHCI host is not halting.
> [  270.470154] xhci_hcd :02:00.0: Completing active URBs anyway.
> [  270.470161] xhci_hcd :02:00.0: HC died; cleaning up
> [  270.470265] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
> hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK
> [  270.470268] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 06 51 22
> 00 00 0e 00
> [  270.470269] blk_update_request: I/O error, dev sdc, sector 413986
> [  270.538994] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
> hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [  270.538997] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 06 51 23
> 00 00 0d 00
> [  270.538998] blk_update_request: I/O error, dev sdc, sector 413987
> [  270.986995] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
> hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [  270.986997] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 06 51 22
> 00 00 01 00
> [  270.986999] blk_update_request: I/O error, dev sdc, sector 413986
> [  270.987063] FAT-fs (sdc1): Directory bread(block 411938) failed
> [  271.307002] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
> hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [  271.307004] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 06 51 23
> 00 00 01 00
> [  271.307005] blk_update_request: I/O error, dev sdc, sector 413987
> [  271.307062] FAT-fs (sdc1): Directory bread(block 411939) failed
> [  271.307079] FAT-fs (sdc1): Directory bread(block 411940) failed

Please post a usbmon trace starting from just before you plug in the 
USB drive and continuing until the error occurs.  (Instructions for 
usbmon are in the kernel source file Documentation/usb/usbmon.txt.)

Alan Stern

--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-01-13 Thread c400
kernel 4.9.3
still not working
latest log:

[  196.984424] sd 7:0:0:0: [sdc] 31293440 512-byte logical blocks:
(16.0 GB/14.9 GiB)
[  196.984564] sd 7:0:0:0: [sdc] Write Protect is off
[  196.984566] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
[  196.984689] sd 7:0:0:0: [sdc] No Caching mode page found
[  196.984690] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[  196.984696] device: '8:32': device_add
[  196.984714] PM: Adding info for No Bus:8:32
[  196.984727] device: 'sdc': device_add
[  196.984747] PM: Adding info for No Bus:sdc
[  197.085658]  sdc: sdc1
[  197.085664] device: 'sdc1': device_add
[  197.085680] PM: Adding info for No Bus:sdc1
[  197.086929] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[  230.955006] FAT-fs (sdc1): Volume was not properly unmounted. Some
data may be corrupt. Please run fsck.
[  234.422942] DMAR: DRHD: handling fault status reg 2
[  234.422946] DMAR: [DMA Read] Request device [02:00.0] fault addr
fffbb000 [fault reason 06] PTE Read access is not set
[  234.422950] xhci_hcd :02:00.0: WARNING: Host System Error
[  234.446078] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[  270.447035] xhci_hcd :02:00.0: xHCI host not responding to stop
endpoint command.
[  270.447040] xhci_hcd :02:00.0: Assuming host is dying, halting host.
[  270.470143] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[  270.470153] xhci_hcd :02:00.0: Non-responsive xHCI host is not halting.
[  270.470154] xhci_hcd :02:00.0: Completing active URBs anyway.
[  270.470161] xhci_hcd :02:00.0: HC died; cleaning up
[  270.470265] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK
[  270.470268] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 06 51 22
00 00 0e 00
[  270.470269] blk_update_request: I/O error, dev sdc, sector 413986
[  270.538994] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK
[  270.538997] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 06 51 23
00 00 0d 00
[  270.538998] blk_update_request: I/O error, dev sdc, sector 413987
[  270.986995] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK
[  270.986997] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 06 51 22
00 00 01 00
[  270.986999] blk_update_request: I/O error, dev sdc, sector 413986
[  270.987063] FAT-fs (sdc1): Directory bread(block 411938) failed
[  271.307002] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK
[  271.307004] sd 7:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 06 51 23
00 00 01 00
[  271.307005] blk_update_request: I/O error, dev sdc, sector 413987
[  271.307062] FAT-fs (sdc1): Directory bread(block 411939) failed
[  271.307079] FAT-fs (sdc1): Directory bread(block 411940) failed
[  271.307084] FAT-fs (sdc1): Directory bread(block 411941) failed
[  271.307088] FAT-fs (sdc1): Directory bread(block 411942) failed
[  271.307092] FAT-fs (sdc1): Directory bread(block 411943) failed
[  271.307096] FAT-fs (sdc1): Directory bread(block 411944) failed
[  271.307099] FAT-fs (sdc1): Directory bread(block 411945) failed
[  271.307103] FAT-fs (sdc1): Directory bread(block 411946) failed
[  271.307106] FAT-fs (sdc1): Directory bread(block 411947) failed
[  271.307174] FAT-fs (sdc1): FAT read failed (blocknr 2446)
[  271.307206] FAT-fs (sdc1): FAT read failed (blocknr 2821)
[  271.307229] FAT-fs (sdc1): FAT read failed (blocknr 3093)
[  271.307279] FAT-fs (sdc1): FAT read failed (blocknr 17088)
[  271.307298] FAT-fs (sdc1): FAT read failed (blocknr 17089)
[  271.308434] FAT-fs (sdc1): FAT read failed (blocknr 2241)
[  282.002018] xhci_hcd :02:00.0: Stopped the command ring failed,
maybe the host is dead
[  282.025084] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[  282.025084] xhci_hcd :02:00.0: Abort command ring failed
[  282.025104] xhci_hcd :02:00.0: HC died; cleaning up
[  282.025108] usb 3-1: USB disconnect, device number 2

2017-01-10 13:06 GMT+03:00 c400 :
> hi!
> Using 4.9.2 kernel. Still no success with VL805 USB 3.0
> i can give a remote shell to test and reproduce the bug
>
> any help?
>
> 2016-09-23 0:47 GMT+03:00 c400 :
>> btw
>> i've tested a liitle better and the disk is visible, but write errors occurs
>> after ejecting and inserting it is invisible again
>>
>> [129416.884960] sd 7:0:0:0: [sdc] 1250263728 512-byte logical blocks:
>> (640 GB/596 GiB)
>> [129416.885429] sd 7:0:0:0: [sdc] Write Protect is off
>> [129416.885434] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
>> [129416.885798] sd 7:0:0:0: [sdc] No Caching mode page found
>> [129416.885801] sd 7:0:0:0: [sdc] Assuming drive cache: write through
>> [129416.885806] device: '8:32': device_add
>> [129416.885820] PM: Adding info for No Bus:8:32
>> [129416.885831] device: 'sdc': device_add
>> [129416.885847] PM: Adding info for No Bus:sdc
>> [129416.897283]  sdc: sdc1
>> [129416.897291] device: 'sdc1': device_add
>> [129416.897309] PM: Adding info for No Bus:s

Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2017-01-10 Thread c400
hi!
Using 4.9.2 kernel. Still no success with VL805 USB 3.0
i can give a remote shell to test and reproduce the bug

any help?

2016-09-23 0:47 GMT+03:00 c400 :
> btw
> i've tested a liitle better and the disk is visible, but write errors occurs
> after ejecting and inserting it is invisible again
>
> [129416.884960] sd 7:0:0:0: [sdc] 1250263728 512-byte logical blocks:
> (640 GB/596 GiB)
> [129416.885429] sd 7:0:0:0: [sdc] Write Protect is off
> [129416.885434] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
> [129416.885798] sd 7:0:0:0: [sdc] No Caching mode page found
> [129416.885801] sd 7:0:0:0: [sdc] Assuming drive cache: write through
> [129416.885806] device: '8:32': device_add
> [129416.885820] PM: Adding info for No Bus:8:32
> [129416.885831] device: 'sdc': device_add
> [129416.885847] PM: Adding info for No Bus:sdc
> [129416.897283]  sdc: sdc1
> [129416.897291] device: 'sdc1': device_add
> [129416.897309] PM: Adding info for No Bus:sdc1
> [129416.898828] sd 7:0:0:0: [sdc] Attached SCSI disk
> [129479.043607] usb 3-1: reset SuperSpeed USB device number 3 using xhci_hcd
> [129483.506009] xhci_hcd :02:00.0: WARNING: Host System Error
> [129483.529130] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [129483.529146] DMAR: DRHD: handling fault status reg 2
> [129483.529149] DMAR: [DMA Read] Request device [02:00.0] fault addr
> ffdf1000 [fault reason 06] PTE Read access is not set
> [129518.953695] xhci_hcd :02:00.0: xHCI host not responding to
> stop endpoint command.
> [129518.953702] xhci_hcd :02:00.0: Assuming host is dying, halting host.
> [129518.976675] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [129518.976686] xhci_hcd :02:00.0: Non-responsive xHCI host is not 
> halting.
> [129518.976687] xhci_hcd :02:00.0: Completing active URBs anyway.
> [129518.976699] xhci_hcd :02:00.0: HC died; cleaning up
> [129519.841735] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
> hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [129519.841739] sd 7:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 5b 72
> e0 00 08 00 00
> [129519.841741] blk_update_request: I/O error, dev sdc, sector 5993184
> [129519.841743] Buffer I/O error on dev sdc1, logical block 5991136,
> lost async page write
> [129519.841745] Buffer I/O error on dev sdc1, logical block 5991137,
> lost async page write
> [129519.841747] Buffer I/O error on dev sdc1, logical block 5991138,
> lost async page write
> [129519.841748] Buffer I/O error on dev sdc1, logical block 5991139,
> lost async page write
> [129519.841749] Buffer I/O error on dev sdc1, logical block 5991140,
> lost async page write
> [129519.841750] Buffer I/O error on dev sdc1, logical block 5991141,
> lost async page write
> [129519.841752] Buffer I/O error on dev sdc1, logical block 5991142,
> lost async page write
> [129519.841753] Buffer I/O error on dev sdc1, logical block 5991143,
> lost async page write
> [129519.841758] Buffer I/O error on dev sdc1, logical block 5991144,
> lost async page write
> [129519.841760] Buffer I/O error on dev sdc1, logical block 5991145,
> lost async page write
> [129520.841755] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
> hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [129520.841759] sd 7:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 5b 7a
> e0 00 08 00 00
> [129520.841760] blk_update_request: I/O error, dev sdc, sector 5995232
> [129530.516824] xhci_hcd :02:00.0: Stopped the command ring
> failed, maybe the host is dead
> [129530.540017] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [129530.540021] xhci_hcd :02:00.0: Abort command ring failed
> [129530.540023] xhci_hcd :02:00.0: HC died; cleaning up
> [129530.540064] usb 2-1: USB disconnect, device number 2
> [129530.540067] device: 'ep_81': device_unregister
> [129530.540083] PM: Removing info for No Bus:ep_81
> [129530.540099] bus: 'usb': remove device 2-1:1.0
> [129530.540108] device: '2-1-port4': device_unregister
> [129530.540116] PM: Removing info for No Bus:2-1-port4
>
> 2016-09-21 18:08 GMT+03:00 c400 :
>> 02:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host
>> Controller (rev 01) (prog-if 30 [XHCI])
>> Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller
>> Flags: bus master, fast devsel, latency 0, IRQ 41
>> Memory at fbb0 (64-bit, non-prefetchable) [size=4K]
>> Capabilities: [80] Power Management version 3
>> Capabilities: [90] MSI: Enable+ Count=1/4 Maskable- 64bit+
>> Capabilities: [c4] Express Endpoint, MSI 00
>> Kernel driver in use: xhci_hcd
>> Kernel modules: xhci_pci
--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-22 Thread c400
btw
i've tested a liitle better and the disk is visible, but write errors occurs
after ejecting and inserting it is invisible again

[129416.884960] sd 7:0:0:0: [sdc] 1250263728 512-byte logical blocks:
(640 GB/596 GiB)
[129416.885429] sd 7:0:0:0: [sdc] Write Protect is off
[129416.885434] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
[129416.885798] sd 7:0:0:0: [sdc] No Caching mode page found
[129416.885801] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[129416.885806] device: '8:32': device_add
[129416.885820] PM: Adding info for No Bus:8:32
[129416.885831] device: 'sdc': device_add
[129416.885847] PM: Adding info for No Bus:sdc
[129416.897283]  sdc: sdc1
[129416.897291] device: 'sdc1': device_add
[129416.897309] PM: Adding info for No Bus:sdc1
[129416.898828] sd 7:0:0:0: [sdc] Attached SCSI disk
[129479.043607] usb 3-1: reset SuperSpeed USB device number 3 using xhci_hcd
[129483.506009] xhci_hcd :02:00.0: WARNING: Host System Error
[129483.529130] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[129483.529146] DMAR: DRHD: handling fault status reg 2
[129483.529149] DMAR: [DMA Read] Request device [02:00.0] fault addr
ffdf1000 [fault reason 06] PTE Read access is not set
[129518.953695] xhci_hcd :02:00.0: xHCI host not responding to
stop endpoint command.
[129518.953702] xhci_hcd :02:00.0: Assuming host is dying, halting host.
[129518.976675] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[129518.976686] xhci_hcd :02:00.0: Non-responsive xHCI host is not halting.
[129518.976687] xhci_hcd :02:00.0: Completing active URBs anyway.
[129518.976699] xhci_hcd :02:00.0: HC died; cleaning up
[129519.841735] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK
[129519.841739] sd 7:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 5b 72
e0 00 08 00 00
[129519.841741] blk_update_request: I/O error, dev sdc, sector 5993184
[129519.841743] Buffer I/O error on dev sdc1, logical block 5991136,
lost async page write
[129519.841745] Buffer I/O error on dev sdc1, logical block 5991137,
lost async page write
[129519.841747] Buffer I/O error on dev sdc1, logical block 5991138,
lost async page write
[129519.841748] Buffer I/O error on dev sdc1, logical block 5991139,
lost async page write
[129519.841749] Buffer I/O error on dev sdc1, logical block 5991140,
lost async page write
[129519.841750] Buffer I/O error on dev sdc1, logical block 5991141,
lost async page write
[129519.841752] Buffer I/O error on dev sdc1, logical block 5991142,
lost async page write
[129519.841753] Buffer I/O error on dev sdc1, logical block 5991143,
lost async page write
[129519.841758] Buffer I/O error on dev sdc1, logical block 5991144,
lost async page write
[129519.841760] Buffer I/O error on dev sdc1, logical block 5991145,
lost async page write
[129520.841755] sd 7:0:0:0: [sdc] tag#0 FAILED Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK
[129520.841759] sd 7:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 5b 7a
e0 00 08 00 00
[129520.841760] blk_update_request: I/O error, dev sdc, sector 5995232
[129530.516824] xhci_hcd :02:00.0: Stopped the command ring
failed, maybe the host is dead
[129530.540017] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[129530.540021] xhci_hcd :02:00.0: Abort command ring failed
[129530.540023] xhci_hcd :02:00.0: HC died; cleaning up
[129530.540064] usb 2-1: USB disconnect, device number 2
[129530.540067] device: 'ep_81': device_unregister
[129530.540083] PM: Removing info for No Bus:ep_81
[129530.540099] bus: 'usb': remove device 2-1:1.0
[129530.540108] device: '2-1-port4': device_unregister
[129530.540116] PM: Removing info for No Bus:2-1-port4

2016-09-21 18:08 GMT+03:00 c400 :
> 02:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host
> Controller (rev 01) (prog-if 30 [XHCI])
> Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller
> Flags: bus master, fast devsel, latency 0, IRQ 41
> Memory at fbb0 (64-bit, non-prefetchable) [size=4K]
> Capabilities: [80] Power Management version 3
> Capabilities: [90] MSI: Enable+ Count=1/4 Maskable- 64bit+
> Capabilities: [c4] Express Endpoint, MSI 00
> Kernel driver in use: xhci_hcd
> Kernel modules: xhci_pci
--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-21 Thread c400
02:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host
Controller (rev 01) (prog-if 30 [XHCI])
Subsystem: VIA Technologies, Inc. VL805 USB 3.0 Host Controller
Flags: bus master, fast devsel, latency 0, IRQ 41
Memory at fbb0 (64-bit, non-prefetchable) [size=4K]
Capabilities: [80] Power Management version 3
Capabilities: [90] MSI: Enable+ Count=1/4 Maskable- 64bit+
Capabilities: [c4] Express Endpoint, MSI 00
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-21 Thread Alan Stern
On Wed, 21 Sep 2016, c400 wrote:

> >Maybe you can put the quirk in /etc/modprobe.d so it will be used
> >automatically.  Add a line to /etc/modprobe.d/local.conf saying:
> 
> >options xhci_hcd quirks=0x00800090
> 
> i`ve done and it works

Congratulations!

Can you post the "lspci -v -s 2:00" output?  Maybe the
XHCI_NO_64BIT_SUPPORT quirk flag should be set for all controllers of
this sort.

Alan Stern

--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-15 Thread c400
roger that
i`ll test it and write back after weekends

2016-09-15 17:29 GMT+03:00 c400 :
>>Obviously you're not reading my email messages.  I told you quite
>>clearly:
>>
>>After unloading the xhci-pci and xhci-hcd modules:
>>
>>sudo modprobe xhci_hcd quirks=0x00800090
>>sudo modprobe xhci_pci
> ===
> this part of commands from your message were done right as you`ve sent
> i thought you`ve seen the result in DMESG (i`ve sent it twice)
> i even tried rmmod previously
> USB does not work either
>
> 2016-09-15 0:45 GMT+03:00 c400 :
>> XHCI_NO_64BIT_SUPPORT
>> can't find such flag in my kernel config. May be you can help me to
>> find it in menuconfig tree?
>>
>> 2016-09-14 23:25 GMT+03:00 c400 :
>>> yep! enabling You need to enable CONFIG_DYNAMIC_DEBUG. did the trick!
>>> here is my new dmesg output:
>>>
>>>
>>> 2016-09-14 22:39 GMT+03:00 c400 :
 2016-09-14 15:43 GMT+03:00 Oliver Neukum :
> On Wed, 2016-09-14 at 15:22 +0300, c400 wrote:
>> may be i can help to test something else? I am ready and have enough 
>> free time
>
> You may need to mount debugfs at /sys/kernel/debug
>
> HTH
> Oliver
>
>
 mount -t debugfs none /sys/kernel/debug/
 mount: none is already mounted or /sys/kernel/debug busy

 ls /sys/kernel/debug/

 acpi extfrag mce sleep_time
 bcache   fault_around_bytes  nfsdsuspend_stats
 bdi  hid pm_qos  tracing
 boot_params  hwpoisonpstate_snb  usb
 dma_buf  intel_powerclampras wakeup_sources
 dri  kprobes regmap  x86

 2016-09-14 15:22 GMT+03:00 c400 :
> may be i can help to test something else? I am ready and have enough free 
> time
>
> 2016-09-12 20:44 GMT+03:00 c400 :
>> [182047.000570] xhci_hcd :02:00.0: remove, state 4
>> [182047.000577] usb usb4: USB disconnect, device number 1
>> [182047.023980] xhci_hcd :02:00.0: Host not halted after 16000 
>> microseconds.
>> [182047.023982] xhci_hcd :02:00.0: Host controller not halted,
>> aborting reset.
>> [182047.023996] xhci_hcd :02:00.0: USB bus 4 deregistered
>> [182047.024103] xhci_hcd :02:00.0: remove, state 1
>> [182047.024108] usb usb3: USB disconnect, device number 1
>> [182047.024320] xhci_hcd :02:00.0: USB bus 3 deregistered
>> [182058.617466] xhci_hcd :02:00.0: xHCI Host Controller
>> [182058.617556] xhci_hcd :02:00.0: new USB bus registered,
>> assigned bus number 3
>> [182058.640820] xhci_hcd :02:00.0: Host not halted after 16000 
>> microseconds.
>> [182058.640822] xhci_hcd :02:00.0: can't setup: -110
>> [182058.640824] xhci_hcd :02:00.0: USB bus 3 deregistered
>> [182058.640944] xhci_hcd :02:00.0: init :02:00.0 fail, -110
>> [182058.640947] xhci_hcd: probe of :02:00.0 failed with error -110
>>
>> can not see my flash inserted into the USB
>>
>> echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control
>> Do not have such folder
>> (i`ve recompiled my kernel (make defconfig) with some small changes.
>> may be i need to enable something in kernelt?
--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-15 Thread Alan Stern
On Thu, 15 Sep 2016, c400 wrote:

> >Obviously you're not reading my email messages.  I told you quite
> >clearly:
> >
> >After unloading the xhci-pci and xhci-hcd modules:
> >
> >sudo modprobe xhci_hcd quirks=0x00800090
> >sudo modprobe xhci_pci
> ===
> this part of commands from your message were done right as you`ve sent
> i thought you`ve seen the result in DMESG (i`ve sent it twice)
> i even tried rmmod previously
> USB does not work either

Sorry.  From what you wrote, it sounded like you had not tried doing 
this.

Okay, here's the relevant part of your log.  This shows when the 
driver first failed, then it shows the driver being unloaded and 
reloaded with the quirk added:

> [   49.596314] xhci_hcd :02:00.0: Command timeout
> [   49.596321] xhci_hcd :02:00.0: Abort command ring
> [   61.128571] xhci_hcd :02:00.0: Stopped the command ring failed, maybe 
> the host is dead
> [   61.128575] xhci_hcd :02:00.0: // Halt the HC
> [   61.151685] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [   61.151695] xhci_hcd :02:00.0: Abort command ring failed
> [   61.151698] xhci_hcd :02:00.0: HC died; cleaning up
> [   61.151702] xhci_hcd :02:00.0: xHCI host controller is dead.
> [   61.151722] xhci_hcd :02:00.0: Timeout while waiting for setup device 
> command
> [   61.354478] xhci_hcd :02:00.0: Endpoint 0x0 ep reset callback called
> [   61.370472] xhci_hcd :02:00.0: Ep 0x0: URB 881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.370476] xhci_hcd :02:00.0: Ep 0x0: URB 881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.370478] xhci_hcd :02:00.0: Ep 0x0: URB 881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.370480] usb 2-1: device descriptor read/8, error -108
> [   61.490469] xhci_hcd :02:00.0: Ep 0x0: URB 881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.490472] xhci_hcd :02:00.0: Ep 0x0: URB 881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.490474] xhci_hcd :02:00.0: Ep 0x0: URB 881035fefc00 submitted 
> for non-responsive xHCI host.
> [   61.490476] usb 2-1: device descriptor read/8, error -108
> [   61.594469] xhci_hcd :02:00.0: Endpoint 0x0 ep reset callback called
> [   61.594475] xhci_hcd :02:00.0: xHCI dying or halted, can't 
> queue_command
> [   61.594477] xhci_hcd :02:00.0: FIXME: allocate a command ring segment
> [   61.594478] usb usb2-port1: couldn't allocate usb_device
> [   70.980103] random: nonblocking pool is initialized
> [   74.719104] bus: 'pci': remove driver xhci_hcd
> [   74.719111] xhci_hcd :02:00.0: remove, state 4
> [   74.719116] usb usb3: USB disconnect, device number 1
> [   74.719118] device: 'ep_81': device_unregister
> [   74.719129] PM: Removing info for No Bus:ep_81
> [   74.719143] bus: 'usb': remove device 3-0:1.0
> [   74.719148] device: 'usb3-port4': device_unregister
> [   74.719155] PM: Removing info for No Bus:usb3-port4
> [   74.719157] device: 'usb3-port3': device_unregister
> [   74.719163] PM: Removing info for No Bus:usb3-port3
> [   74.719165] device: 'usb3-port2': device_unregister
> [   74.719170] PM: Removing info for No Bus:usb3-port2
> [   74.719175] device: 'usb3-port1': device_unregister
> [   74.719185] PM: Removing info for No Bus:usb3-port1
> [   74.719188] PM: Removing info for usb:3-0:1.0
> [   74.719204] xHCI xhci_drop_endpoint called for root hub
> [   74.719206] xHCI xhci_check_bandwidth called for root hub
> [   74.719208] device: 'ep_00': device_unregister
> [   74.719217] PM: Removing info for No Bus:ep_00
> [   74.719297] bus: 'usb': remove device usb3
> [   74.719303] PM: Removing info for usb:usb3
> [   74.719316] xhci_hcd :02:00.0: // Halt the HC
> [   74.742402] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [   74.742405] xhci_hcd :02:00.0: Host controller not halted, aborting 
> reset.
> [   74.742414] xhci_hcd :02:00.0: USB bus 3 deregistered
> [   74.742426] device: 'usbmon3': device_unregister
> [   74.742519] PM: Removing info for No Bus:usbmon3
> [   74.742531] device: 'usbmon3': device_create_release
> [   74.742539] xhci_hcd :02:00.0: remove, state 1
> [   74.742544] usb usb2: USB disconnect, device number 1
> [   74.742546] device: 'ep_81': device_unregister
> [   74.742559] PM: Removing info for No Bus:ep_81
> [   74.742574] bus: 'usb': remove device 2-0:1.0
> [   74.742579] device: 'usb2-port1': device_unregister
> [   74.742588] PM: Removing info for No Bus:usb2-port1
> [   74.742593] PM: Removing info for usb:2-0:1.0
> [   74.742616] xHCI xhci_drop_endpoint called for root hub
> [   74.742618] xHCI xhci_check_bandwidth called for root hub
> [   74.742620] device: 'ep_00': device_unregister
> [   74.742631] PM: Removing info for No Bus:ep_00
> [   74.742716] bus: 'usb': remove device usb2
> [   74.742721] PM: Removing info for us

Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-15 Thread c400
>Obviously you're not reading my email messages.  I told you quite
>clearly:
>
>After unloading the xhci-pci and xhci-hcd modules:
>
>sudo modprobe xhci_hcd quirks=0x00800090
>sudo modprobe xhci_pci
===
this part of commands from your message were done right as you`ve sent
i thought you`ve seen the result in DMESG (i`ve sent it twice)
i even tried rmmod previously
USB does not work either

2016-09-15 0:45 GMT+03:00 c400 :
> XHCI_NO_64BIT_SUPPORT
> can't find such flag in my kernel config. May be you can help me to
> find it in menuconfig tree?
>
> 2016-09-14 23:25 GMT+03:00 c400 :
>> yep! enabling You need to enable CONFIG_DYNAMIC_DEBUG. did the trick!
>> here is my new dmesg output:
>>
>>
>> 2016-09-14 22:39 GMT+03:00 c400 :
>>> 2016-09-14 15:43 GMT+03:00 Oliver Neukum :
 On Wed, 2016-09-14 at 15:22 +0300, c400 wrote:
> may be i can help to test something else? I am ready and have enough free 
> time

 You may need to mount debugfs at /sys/kernel/debug

 HTH
 Oliver


>>> mount -t debugfs none /sys/kernel/debug/
>>> mount: none is already mounted or /sys/kernel/debug busy
>>>
>>> ls /sys/kernel/debug/
>>>
>>> acpi extfrag mce sleep_time
>>> bcache   fault_around_bytes  nfsdsuspend_stats
>>> bdi  hid pm_qos  tracing
>>> boot_params  hwpoisonpstate_snb  usb
>>> dma_buf  intel_powerclampras wakeup_sources
>>> dri  kprobes regmap  x86
>>>
>>> 2016-09-14 15:22 GMT+03:00 c400 :
 may be i can help to test something else? I am ready and have enough free 
 time

 2016-09-12 20:44 GMT+03:00 c400 :
> [182047.000570] xhci_hcd :02:00.0: remove, state 4
> [182047.000577] usb usb4: USB disconnect, device number 1
> [182047.023980] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [182047.023982] xhci_hcd :02:00.0: Host controller not halted,
> aborting reset.
> [182047.023996] xhci_hcd :02:00.0: USB bus 4 deregistered
> [182047.024103] xhci_hcd :02:00.0: remove, state 1
> [182047.024108] usb usb3: USB disconnect, device number 1
> [182047.024320] xhci_hcd :02:00.0: USB bus 3 deregistered
> [182058.617466] xhci_hcd :02:00.0: xHCI Host Controller
> [182058.617556] xhci_hcd :02:00.0: new USB bus registered,
> assigned bus number 3
> [182058.640820] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [182058.640822] xhci_hcd :02:00.0: can't setup: -110
> [182058.640824] xhci_hcd :02:00.0: USB bus 3 deregistered
> [182058.640944] xhci_hcd :02:00.0: init :02:00.0 fail, -110
> [182058.640947] xhci_hcd: probe of :02:00.0 failed with error -110
>
> can not see my flash inserted into the USB
>
> echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control
> Do not have such folder
> (i`ve recompiled my kernel (make defconfig) with some small changes.
> may be i need to enable something in kernelt?
--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-15 Thread Alan Stern
On Thu, 15 Sep 2016, c400 wrote:

> XHCI_NO_64BIT_SUPPORT
> can't find such flag in my kernel config. May be you can help me to
> find it in menuconfig tree?

It's not there.

Obviously you're not reading my email messages.  I told you quite
clearly:

After unloading the xhci-pci and xhci-hcd modules:

sudo modprobe xhci_hcd quirks=0x00800090
sudo modprobe xhci_pci

Nobody here can help you if you don't pay attention to what we say.

Alan Stern

--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-14 Thread c400
XHCI_NO_64BIT_SUPPORT
can't find such flag in my kernel config. May be you can help me to
find it in menuconfig tree?

2016-09-14 23:25 GMT+03:00 c400 :
> yep! enabling You need to enable CONFIG_DYNAMIC_DEBUG. did the trick!
> here is my new dmesg output:
>
>
> 2016-09-14 22:39 GMT+03:00 c400 :
>> 2016-09-14 15:43 GMT+03:00 Oliver Neukum :
>>> On Wed, 2016-09-14 at 15:22 +0300, c400 wrote:
 may be i can help to test something else? I am ready and have enough free 
 time
>>>
>>> You may need to mount debugfs at /sys/kernel/debug
>>>
>>> HTH
>>> Oliver
>>>
>>>
>> mount -t debugfs none /sys/kernel/debug/
>> mount: none is already mounted or /sys/kernel/debug busy
>>
>> ls /sys/kernel/debug/
>>
>> acpi extfrag mce sleep_time
>> bcache   fault_around_bytes  nfsdsuspend_stats
>> bdi  hid pm_qos  tracing
>> boot_params  hwpoisonpstate_snb  usb
>> dma_buf  intel_powerclampras wakeup_sources
>> dri  kprobes regmap  x86
>>
>> 2016-09-14 15:22 GMT+03:00 c400 :
>>> may be i can help to test something else? I am ready and have enough free 
>>> time
>>>
>>> 2016-09-12 20:44 GMT+03:00 c400 :
 [182047.000570] xhci_hcd :02:00.0: remove, state 4
 [182047.000577] usb usb4: USB disconnect, device number 1
 [182047.023980] xhci_hcd :02:00.0: Host not halted after 16000 
 microseconds.
 [182047.023982] xhci_hcd :02:00.0: Host controller not halted,
 aborting reset.
 [182047.023996] xhci_hcd :02:00.0: USB bus 4 deregistered
 [182047.024103] xhci_hcd :02:00.0: remove, state 1
 [182047.024108] usb usb3: USB disconnect, device number 1
 [182047.024320] xhci_hcd :02:00.0: USB bus 3 deregistered
 [182058.617466] xhci_hcd :02:00.0: xHCI Host Controller
 [182058.617556] xhci_hcd :02:00.0: new USB bus registered,
 assigned bus number 3
 [182058.640820] xhci_hcd :02:00.0: Host not halted after 16000 
 microseconds.
 [182058.640822] xhci_hcd :02:00.0: can't setup: -110
 [182058.640824] xhci_hcd :02:00.0: USB bus 3 deregistered
 [182058.640944] xhci_hcd :02:00.0: init :02:00.0 fail, -110
 [182058.640947] xhci_hcd: probe of :02:00.0 failed with error -110

 can not see my flash inserted into the USB

 echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control
 Do not have such folder
 (i`ve recompiled my kernel (make defconfig) with some small changes.
 may be i need to enable something in kernelt?
--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-14 Thread Alan Stern
On Wed, 14 Sep 2016, c400 wrote:

> yep! enabling You need to enable CONFIG_DYNAMIC_DEBUG. did the trick!
> here is my new dmesg output:

Did you use the 32-bit DMA quirks option for xhci_hcd?

Alan Stern

--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-14 Thread Alan Stern
On Wed, 14 Sep 2016, c400 wrote:

> 2016-09-14 15:43 GMT+03:00 Oliver Neukum :
> > On Wed, 2016-09-14 at 15:22 +0300, c400 wrote:
> >> may be i can help to test something else? I am ready and have enough free 
> >> time

Did you try Mathias's suggestion of forcing DMA to use 32 bits?
After unloading the xhci-pci and xhci-hcd modules:

sudo modprobe xhci_hcd quirks=0x00800090
sudo modprobe xhci_pci

> > You may need to mount debugfs at /sys/kernel/debug
> >
> > HTH
> > Oliver
> >
> >
> mount -t debugfs none /sys/kernel/debug/
> mount: none is already mounted or /sys/kernel/debug busy
> 
> ls /sys/kernel/debug/
> 
> acpi extfrag mce sleep_time
> bcache   fault_around_bytes  nfsdsuspend_stats
> bdi  hid pm_qos  tracing
> boot_params  hwpoisonpstate_snb  usb
> dma_buf  intel_powerclampras wakeup_sources
> dri  kprobes regmap  x86
> 
> 2016-09-14 15:22 GMT+03:00 c400 :
> > may be i can help to test something else? I am ready and have enough free 
> > time
> >
> > 2016-09-12 20:44 GMT+03:00 c400 :
> >> [182047.000570] xhci_hcd :02:00.0: remove, state 4
> >> [182047.000577] usb usb4: USB disconnect, device number 1
> >> [182047.023980] xhci_hcd :02:00.0: Host not halted after 16000 
> >> microseconds.
> >> [182047.023982] xhci_hcd :02:00.0: Host controller not halted,
> >> aborting reset.
> >> [182047.023996] xhci_hcd :02:00.0: USB bus 4 deregistered
> >> [182047.024103] xhci_hcd :02:00.0: remove, state 1
> >> [182047.024108] usb usb3: USB disconnect, device number 1
> >> [182047.024320] xhci_hcd :02:00.0: USB bus 3 deregistered
> >> [182058.617466] xhci_hcd :02:00.0: xHCI Host Controller
> >> [182058.617556] xhci_hcd :02:00.0: new USB bus registered,
> >> assigned bus number 3
> >> [182058.640820] xhci_hcd :02:00.0: Host not halted after 16000 
> >> microseconds.
> >> [182058.640822] xhci_hcd :02:00.0: can't setup: -110
> >> [182058.640824] xhci_hcd :02:00.0: USB bus 3 deregistered
> >> [182058.640944] xhci_hcd :02:00.0: init :02:00.0 fail, -110
> >> [182058.640947] xhci_hcd: probe of :02:00.0 failed with error -110
> >>
> >> can not see my flash inserted into the USB
> >>
> >> echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control
> >> Do not have such folder
> >> (i`ve recompiled my kernel (make defconfig) with some small changes.
> >> may be i need to enable something in kernelt?

You need to enable CONFIG_DYNAMIC_DEBUG.

Alan Stern

--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-14 Thread c400
2016-09-14 15:43 GMT+03:00 Oliver Neukum :
> On Wed, 2016-09-14 at 15:22 +0300, c400 wrote:
>> may be i can help to test something else? I am ready and have enough free 
>> time
>
> You may need to mount debugfs at /sys/kernel/debug
>
> HTH
> Oliver
>
>
mount -t debugfs none /sys/kernel/debug/
mount: none is already mounted or /sys/kernel/debug busy

ls /sys/kernel/debug/

acpi extfrag mce sleep_time
bcache   fault_around_bytes  nfsdsuspend_stats
bdi  hid pm_qos  tracing
boot_params  hwpoisonpstate_snb  usb
dma_buf  intel_powerclampras wakeup_sources
dri  kprobes regmap  x86

2016-09-14 15:22 GMT+03:00 c400 :
> may be i can help to test something else? I am ready and have enough free time
>
> 2016-09-12 20:44 GMT+03:00 c400 :
>> [182047.000570] xhci_hcd :02:00.0: remove, state 4
>> [182047.000577] usb usb4: USB disconnect, device number 1
>> [182047.023980] xhci_hcd :02:00.0: Host not halted after 16000 
>> microseconds.
>> [182047.023982] xhci_hcd :02:00.0: Host controller not halted,
>> aborting reset.
>> [182047.023996] xhci_hcd :02:00.0: USB bus 4 deregistered
>> [182047.024103] xhci_hcd :02:00.0: remove, state 1
>> [182047.024108] usb usb3: USB disconnect, device number 1
>> [182047.024320] xhci_hcd :02:00.0: USB bus 3 deregistered
>> [182058.617466] xhci_hcd :02:00.0: xHCI Host Controller
>> [182058.617556] xhci_hcd :02:00.0: new USB bus registered,
>> assigned bus number 3
>> [182058.640820] xhci_hcd :02:00.0: Host not halted after 16000 
>> microseconds.
>> [182058.640822] xhci_hcd :02:00.0: can't setup: -110
>> [182058.640824] xhci_hcd :02:00.0: USB bus 3 deregistered
>> [182058.640944] xhci_hcd :02:00.0: init :02:00.0 fail, -110
>> [182058.640947] xhci_hcd: probe of :02:00.0 failed with error -110
>>
>> can not see my flash inserted into the USB
>>
>> echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control
>> Do not have such folder
>> (i`ve recompiled my kernel (make defconfig) with some small changes.
>> may be i need to enable something in kernelt?
--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-14 Thread Oliver Neukum
On Wed, 2016-09-14 at 15:22 +0300, c400 wrote:
> may be i can help to test something else? I am ready and have enough free time

You may need to mount debugfs at /sys/kernel/debug

HTH
Oliver


--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-14 Thread c400
may be i can help to test something else? I am ready and have enough free time

2016-09-12 20:44 GMT+03:00 c400 :
> [182047.000570] xhci_hcd :02:00.0: remove, state 4
> [182047.000577] usb usb4: USB disconnect, device number 1
> [182047.023980] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [182047.023982] xhci_hcd :02:00.0: Host controller not halted,
> aborting reset.
> [182047.023996] xhci_hcd :02:00.0: USB bus 4 deregistered
> [182047.024103] xhci_hcd :02:00.0: remove, state 1
> [182047.024108] usb usb3: USB disconnect, device number 1
> [182047.024320] xhci_hcd :02:00.0: USB bus 3 deregistered
> [182058.617466] xhci_hcd :02:00.0: xHCI Host Controller
> [182058.617556] xhci_hcd :02:00.0: new USB bus registered,
> assigned bus number 3
> [182058.640820] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [182058.640822] xhci_hcd :02:00.0: can't setup: -110
> [182058.640824] xhci_hcd :02:00.0: USB bus 3 deregistered
> [182058.640944] xhci_hcd :02:00.0: init :02:00.0 fail, -110
> [182058.640947] xhci_hcd: probe of :02:00.0 failed with error -110
>
> can not see my flash inserted into the USB
>
> echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control
> Do not have such folder
> (i`ve recompiled my kernel (make defconfig) with some small changes.
> may be i need to enable something in kernelt?
--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-12 Thread c400
[182047.000570] xhci_hcd :02:00.0: remove, state 4
[182047.000577] usb usb4: USB disconnect, device number 1
[182047.023980] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[182047.023982] xhci_hcd :02:00.0: Host controller not halted,
aborting reset.
[182047.023996] xhci_hcd :02:00.0: USB bus 4 deregistered
[182047.024103] xhci_hcd :02:00.0: remove, state 1
[182047.024108] usb usb3: USB disconnect, device number 1
[182047.024320] xhci_hcd :02:00.0: USB bus 3 deregistered
[182058.617466] xhci_hcd :02:00.0: xHCI Host Controller
[182058.617556] xhci_hcd :02:00.0: new USB bus registered,
assigned bus number 3
[182058.640820] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[182058.640822] xhci_hcd :02:00.0: can't setup: -110
[182058.640824] xhci_hcd :02:00.0: USB bus 3 deregistered
[182058.640944] xhci_hcd :02:00.0: init :02:00.0 fail, -110
[182058.640947] xhci_hcd: probe of :02:00.0 failed with error -110

can not see my flash inserted into the USB

echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control
Do not have such folder
(i`ve recompiled my kernel (make defconfig) with some small changes.
may be i need to enable something in kernelt?
--
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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-12 Thread Dave Jiang
On 09/12/2016 03:56 AM, Mathias Nyman wrote:
> On 10.09.2016 17:19, Greg KH wrote:
>> On Sat, Sep 10, 2016 at 04:33:05PM +0300, c400 wrote:
>>> my DMESG file
>>
>>> [   13.331618] usb 3-1: device descriptor read/64, error -110
>>> [   28.535180] usb 3-1: device descriptor read/64, error -110
>>> [   28.737931] usb 3-1: new high-speed USB device number 3 using
>>> xhci_hcd
>>> [   33.840034] usb 3-1: device descriptor read/64, error -110
>>> [   49.043616] usb 3-1: device descriptor read/64, error -110
>>> [   49.246347] usb 3-1: new high-speed USB device number 4 using
>>> xhci_hcd
>>> [   65.941816] xhci_hcd :02:00.0: Stopped the command ring
>>> failed, maybe the host is dead
>>> [   65.965209] xhci_hcd :02:00.0: Host not halted after 16000
>>> microseconds.
>>> [   65.965211] xhci_hcd :02:00.0: Abort command ring failed
>>> [   65.965213] xhci_hcd :02:00.0: HC died; cleaning up
>>> [   65.965264] xhci_hcd :02:00.0: Timeout while waiting for setup
>>> device command
>>
>>
>> This is the bad part.
>>
>> Mathias, any ideas?  I feel like we fixed something like this in the
>> past for 64bit systems...
>>
> 
> There was at least xhci controllers on  R-car SoCs that didn't support
> 64bit DMA even if they claimed to.
> 
> This could be 64bit DMA related as well. Before the usb device
> descriptor read errors there is this in the lod:
> 
> [   10.124261] ioatdma: Intel(R) QuickData Technology Driver 4.00
> [   10.124425] ioatdma :00:04.0: channel error register unreachable
> [   10.124427] ioatdma :00:04.0: channel enumeration error
> [   10.124430] ioatdma :00:04.0: Intel(R) I/OAT DMA Engine init failed
> [   10.124582] ioatdma :00:04.1: channel error register unreachable
> [   10.124583] ioatdma :00:04.1: channel enumeration error
> [   10.124586] ioatdma :00:04.1: Intel(R) I/OAT DMA Engine init failed
>  (for all channels up to :00:04.7)

At least for this part is due to you don't have access to the extended
PCI config space. The older kernels have a config option I believe and
the newer kernels this should be by default enabled. I doubt they are
related to your USB issues though.


> 
> Could you (c400?) try forcing xhci to use 32bit DMA? it can be done by
> setting XHCI_NO_64BIT_SUPPORT flag.
> add 0x80 to quirks module paramterer when re-loading xhci.
> In your case, load xhci with:
> 
> sudo modprobe xhci_hcd quirks=0x00800090
> sudo modprobe xhci_pci
> 
> Just to see if we can narrow it down to a 64 bit DMA related issue.
> 
> I Added ioatdma people to cc in case those errors are relevant.
> 
> Also adding extra xhci debugging could help pinpoint this:
> echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control
> 
> -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


Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-12 Thread Mathias Nyman

On 10.09.2016 17:19, Greg KH wrote:

On Sat, Sep 10, 2016 at 04:33:05PM +0300, c400 wrote:

my DMESG file



[   13.331618] usb 3-1: device descriptor read/64, error -110
[   28.535180] usb 3-1: device descriptor read/64, error -110
[   28.737931] usb 3-1: new high-speed USB device number 3 using xhci_hcd
[   33.840034] usb 3-1: device descriptor read/64, error -110
[   49.043616] usb 3-1: device descriptor read/64, error -110
[   49.246347] usb 3-1: new high-speed USB device number 4 using xhci_hcd
[   65.941816] xhci_hcd :02:00.0: Stopped the command ring failed, maybe 
the host is dead
[   65.965209] xhci_hcd :02:00.0: Host not halted after 16000 microseconds.
[   65.965211] xhci_hcd :02:00.0: Abort command ring failed
[   65.965213] xhci_hcd :02:00.0: HC died; cleaning up
[   65.965264] xhci_hcd :02:00.0: Timeout while waiting for setup device 
command



This is the bad part.

Mathias, any ideas?  I feel like we fixed something like this in the
past for 64bit systems...



There was at least xhci controllers on  R-car SoCs that didn't support 64bit 
DMA even if they claimed to.

This could be 64bit DMA related as well. Before the usb device descriptor read 
errors there is this in the lod:

[   10.124261] ioatdma: Intel(R) QuickData Technology Driver 4.00
[   10.124425] ioatdma :00:04.0: channel error register unreachable
[   10.124427] ioatdma :00:04.0: channel enumeration error
[   10.124430] ioatdma :00:04.0: Intel(R) I/OAT DMA Engine init failed
[   10.124582] ioatdma :00:04.1: channel error register unreachable
[   10.124583] ioatdma :00:04.1: channel enumeration error
[   10.124586] ioatdma :00:04.1: Intel(R) I/OAT DMA Engine init failed
 (for all channels up to :00:04.7)

Could you (c400?) try forcing xhci to use 32bit DMA? it can be done by setting 
XHCI_NO_64BIT_SUPPORT flag.
add 0x80 to quirks module paramterer when re-loading xhci.
In your case, load xhci with:

sudo modprobe xhci_hcd quirks=0x00800090
sudo modprobe xhci_pci

Just to see if we can narrow it down to a 64 bit DMA related issue.

I Added ioatdma people to cc in case those errors are relevant.

Also adding extra xhci debugging could help pinpoint this:
echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control

-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


Re: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-10 Thread Greg KH
On Sat, Sep 10, 2016 at 04:33:05PM +0300, c400 wrote:
> my DMESG file

> [   13.331618] usb 3-1: device descriptor read/64, error -110
> [   28.535180] usb 3-1: device descriptor read/64, error -110
> [   28.737931] usb 3-1: new high-speed USB device number 3 using xhci_hcd
> [   33.840034] usb 3-1: device descriptor read/64, error -110
> [   49.043616] usb 3-1: device descriptor read/64, error -110
> [   49.246347] usb 3-1: new high-speed USB device number 4 using xhci_hcd
> [   65.941816] xhci_hcd :02:00.0: Stopped the command ring failed, maybe 
> the host is dead
> [   65.965209] xhci_hcd :02:00.0: Host not halted after 16000 
> microseconds.
> [   65.965211] xhci_hcd :02:00.0: Abort command ring failed
> [   65.965213] xhci_hcd :02:00.0: HC died; cleaning up
> [   65.965264] xhci_hcd :02:00.0: Timeout while waiting for setup device 
> command


This is the bad part.

Mathias, any ideas?  I feel like we fixed something like this in the
past for 64bit 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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-10 Thread Greg KH
Always keep discussions on the mailing list...

On Sat, Sep 10, 2016 at 12:10:49PM +0300, c400 wrote:
> tested on 4.4.6, 4.6.4, 4.7.0, 4.7.1, 4.7.2, 4.7.3

What do the boot messages say for 4.7.3 when you boot in a 64bit kernel?

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: VL805 USB 3.0 does not see connected devices (only on x86_64) (x86 is ok)

2016-09-10 Thread Greg KH
On Fri, Sep 09, 2016 at 11:36:16PM +0300, c400 wrote:
> i`ve got two PCI-E USB controller: VIA Technologies, Inc. VL805 USB
> 3.0 Host Controller (rev 01)
> The problem is that both of them works on ASUS P8H61-MX R 2.0 with x86
> and x86_64 kernels
> 
> but on my Supermicro X9SRI-F both of them works only on x86 kernel.
> 
> Tried with vanilla gentoo install and manual kernel configuration and with:
> admincd-amd64-20160908.iso
> admincd-x86-20160906.iso
> 
> tried with defconfig + xhci also
> help please. I can do a step by step testing if it is needed

What kernel version have you tested this with?  4.7?  4.8-rc4?

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