Re: linux-3.3.4 and 3.4-rc5: ASMedia2105 detected at 480Mbps instead of 5Gbps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adding the attachments for the attempt when port in 5Gbps.
Martin

Martin Mokrejs wrote:
> Hi,
>   I just bought a Silverstone Treasure TS04B external case. I thought
> it will be based on ASMedia1051 chip but maybe because of the 'B' at
> the end ... ?
> 
>   When I read from a SATAII disk placed into the casing I read at about
> 32MB/s (from raw disk -- dd if=/dev/sdc of=/dev/null) when having connected
> it to either internal Texas Instruments USB3.0 chip or to a NEC USB3.0 chip
> in an Express Card. I conclude this is not an issue with the host controller
> chipset in my laptop Dell Vostro 3550 or the Express card but an issue with
> xhci_hcd or the ASMedia2105 chip. That was with 3.3.4 kernel.
> 
>   I found something on the internet reported by people having an onboard
> ASMedia controller which can be switched by BIOS from XHCI to EHCI ..
> I do not understand whether that relates to me or not. Aside from the fact
> that I have the ASMedia chip in the "client" device (a HDD enclosure).
> 
>   If I look into the "lsusb -t" output I see the device is at 480Mbps.
> Why? I rebooted into 3.4-rc5 and first, connected the enclosure to the
> TexasInstruments USB3 port. 
> 
> This gave me:
> 
> [   92.996770] usb 3-2: new high-speed USB device number 2 using xhci_hcd
> [   93.056517] xhci_hcd 0000:0b:00.0: device LPM test failed, may disconnect and re-enumerate
> [   93.064234] usb 3-2: New USB device found, idVendor=174c, idProduct=5106
> [   93.064245] usb 3-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
> [   93.064252] usb 3-2: Product: AS2105
> [   93.064257] usb 3-2: Manufacturer: ASMedia
> [   93.064262] usb 3-2: SerialNumber:      WD-WX51C10U8155
> [   93.064436] usb 3-2: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
> [   93.064443] usb 3-2: ep 0x2 - rounding interval to 32768 microframes, ep desc says 0 microframes
> [   93.065037] scsi7 : usb-storage 3-2:1.0
> 
> but I wasn't catching the USB trafiic, so you only see in the attached dmesg output.
> On next two re-plkugs of the device it did not happen.
> 
> 
> Then I unpugged it, started usbmon to catch traffic on the same port (the
> port remained in the 480Mbps mode, claimed by xhci_hcd). I ran smartctl to fetch
> some SMART data from the disc and unplugged it again. The recorded file is named
> 3.4-rc5-ASMedia2105_via_Texas_instruments_Bus3_reporting_480Mbps.usbmon.out
> and logs are in 3.4-rc5-ASMedia2105_via_Texas_instruments_Bus3_reporting_480Mbps.txt.
> 
> 
> 
> Then, I saw the other port coming out from the Texas Instruments chip is
> still in 5Gbps mode, so I started to record USB traffic again, connected the
> enclosure to that port and likewise, it is in 3.4-rc5-ASMedia2105_via_Texas_instruments_Bus4_reporting_5Gbps.usbmon.out
> and logs in 3.4-rc5-ASMedia2105_via_Texas_instruments_Bus4_reporting_5Gbps.txt.
> 
>   I hope you can infer something from them as I will probably return the external
> enclosure and go for the "old" ASMedia1051 in Silvertsone RVS02 (if I am lucky
> to grab the right piece).
> 
>   Whats of interest in the ASMedia2005 chip, btw?
> 
>   (I can repeat the test with NEC Corporation uPD720200 USB 3.0 if you want).
> 
> 
> Thanks for clues,
> Martin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
[  898.392397] usb 3-1: new high-speed USB device number 4 using xhci_hcd
[  898.422890] usb 3-1: New USB device found, idVendor=174c, idProduct=5106
[  898.422901] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  898.422907] usb 3-1: Product: AS2105
[  898.422913] usb 3-1: Manufacturer: ASMedia
[  898.422917] usb 3-1: SerialNumber:      WD-WX51C10U8155
[  898.423035] usb 3-1: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[  898.423045] usb 3-1: ep 0x2 - rounding interval to 32768 microframes, ep desc says 0 microframes
[  898.423678] scsi9 : usb-storage 3-1:1.0
[  899.425953] scsi 9:0:0:0: Direct-Access     WDC WD10 TPVT-00HT5T0     01.0 PQ: 0 ANSI: 0
[  899.426102] sd 9:0:0:0: Attached scsi generic sg3 type 0
[  899.426323] sd 9:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[  899.426789] sd 9:0:0:0: [sdc] Write Protect is off
[  899.426793] sd 9:0:0:0: [sdc] Mode Sense: 23 00 00 00
[  899.427498] sd 9:0:0:0: [sdc] No Caching mode page present
[  899.427501] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[  899.429366] sd 9:0:0:0: [sdc] No Caching mode page present
[  899.429368] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[  899.468092]  sdc: sdc1
[  899.469964] sd 9:0:0:0: [sdc] No Caching mode page present
[  899.469967] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[  899.469968] sd 9:0:0:0: [sdc] Attached SCSI disk


/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    |__ Port 1: Dev 4, If 0, Class=stor., Driver=usb-storage, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M
        |__ Port 2: Dev 3, If 0, Class=hub, Driver=hub/4p, 480M
            |__ Port 3: Dev 6, If 0, Class=HID, Driver=usbhid, 1.5M
            |__ Port 4: Dev 7, If 0, Class=HID, Driver=usbhid, 1.5M
        |__ Port 3: Dev 4, If 0, Class=vend., Driver=, 12M
        |__ Port 6: Dev 5, If 0, Class=stor., Driver=usb-storage, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M
        |__ Port 5: Dev 3, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
        |__ Port 5: Dev 3, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M


smartctl -d sat -a /dev/sdc
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.4.0-rc5-default] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Scorpio Blue Serial ATA (Adv. Format)
Device Model:     WDC WD10TPVT-00HT5T0
Serial Number:    WD-WX51C10U8155
LU WWN Device Id: 5 0014ee 259821335
Firmware Version: 01.01A01
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Mon Apr 30 20:56:11 2012 MEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(24000) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 255) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x7031)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   192   163   021    Pre-fail  Always       -       3391
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       957
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       3243
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       310
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       232
193 Load_Cycle_Count        0x0032   197   197   000    Old_age   Always       -       11200
194 Temperature_Celsius     0x0022   114   105   000    Old_age   Always       -       36
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   192   000    Old_age   Always       -       28
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


[ 1037.507216] usb 2-1.2.3: USB disconnect, device number 6



0b:00.0 USB controller: Texas Instruments Device 8241 (rev 02) (prog-if 30 [XHCI])
        Subsystem: Dell Device 04b3
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f7d00000 (64-bit, non-prefetchable) [size=64K]
        Region 2: Memory at f7d10000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=100mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [48] MSI: Enable- Count=1/8 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [70] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 1024 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <64us
                        ClockPM+ Surprise- LLActRep- BwNot-
                LnkCtl: ASPM L1 Enabled; RCB 64 bytes Disabled- Retrain- CommClk+
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Capabilities: [c0] MSI-X: Enable+ Count=8 Masked-
                Vector table: BAR=2 offset=00000000
                PBA: BAR=2 offset=00001000
        Capabilities: [100 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
        Capabilities: [150 v1] Device Serial Number 08-00-28-00-00-20-00-00
        Kernel driver in use: xhci_hcd
00: 4c 10 41 82 06 04 10 00 02 30 03 0c 10 00 00 00
10: 04 00 d0 f7 00 00 00 00 04 00 d1 f7 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 28 10 b3 04
30: 00 00 00 00 40 00 00 00 00 00 00 00 0b 01 00 00





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux