Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] USB3 und Hotplugfähigkeit  (Read 15719 times)

holgerw

  • Guest
[DE] USB3 und Hotplugfähigkeit
« on: 2012/06/03, 16:57:45 »
Hallo,

ich bin bei meinem siduction auf dem aktuellsten Stand.

Leider tut sich beim Einstöpseln eines externen USB3 Laufwerkes an meinen USB3 Port nichts. Laut dmesg gibt es da auch kein Device zum Mounten.

Unter Win7 ist das gleiche Laufwerk am gleichen Port voll hotplugfähig.

Weiß jemand, ob das auch schon unter Linux möglich ist?

Viele Grüße,
  Holger

Offline ralul

  • User
  • Posts: 1.814
USB3 und Hotplugfähigkeit
« Reply #1 on: 2012/06/03, 17:12:56 »
CONFIG_USB_XHCI_HCD=m
Diese USB3 Modul ist aber in linux-3.4 als experimental gekennzeichnet!
Vielleich auch, wenn Du das USB3-Gerät eingestöpselt hast:
modprobe -v xhci-hcd
experiencing siduction runs better than my gentoo makes me know I know nothing

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.842
USB3 und Hotplugfähigkeit
« Reply #2 on: 2012/06/03, 18:25:45 »
Mein USB 3 Stick wurde immer gemounted, bis er vor ein paar Tagen verstarb.

greetz
devil

Offline ab

  • User
  • Posts: 117
USB3 und Hotplugfähigkeit
« Reply #3 on: 2012/06/03, 20:22:32 »
hier auch keine Probleme; eine LogiLink 2TB Platte an USB3 angeschlossen wird erkannt
Code: [Select]
[ 4189.203109] usb 4-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 4199.092343] usb 4-2: New USB device found, idVendor=174c, idProduct=5106
[ 4199.092354] usb 4-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 4199.092360] usb 4-2: Product: AS2105
[ 4199.092365] usb 4-2: Manufacturer: ASMedia
[ 4199.092369] usb 4-2: SerialNumber: S2HGJ9FB101325      
[ 4199.093827] scsi7 : usb-storage 4-2:1.0
[ 4200.102823] scsi 7:0:0:0: Direct-Access     SAMSUNG  HD204UI          1AQ1 PQ: 0 ANSI: 5
[ 4200.105226] sd 7:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[ 4200.106126] sd 7:0:0:0: [sdb] Write Protect is off
[ 4200.106144] sd 7:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 4200.107348] sd 7:0:0:0: [sdb] No Caching mode page present
[ 4200.107360] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4200.110181] sd 7:0:0:0: [sdb] No Caching mode page present
[ 4200.110196] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4200.121579]  sdb: sdb1
[ 4200.123922] sd 7:0:0:0: [sdb] No Caching mode page present
[ 4200.123933] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4200.123941] sd 7:0:0:0: [sdb] Attached SCSI disk
[ 4205.020272] fuse init (API version 7.18)
gemounted wird auch:
Code: [Select]
ab@siduction:~$ mount | grep -i sdb
/dev/sdb1 on /media/LogiLink_2TB type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
und das Modul wird geladen
Code: [Select]
ab@siduction:~$ lsmod | grep -i xhci
xhci_hcd               63529  0
usbcore               116221  8 uas,btusb,uvcvideo,ums_realtek,rtlwifi,usb_storage,ehci_hcd,xhci_hcd


EDIT:
Code: [Select]
ab@siduction:~$ inxi
CPU~Dual core Intel Core i5-2467M CPU (-HT-MCP-) clocked at Min:800.000Mhz Max:1601.000Mhz Kernel~3.4-0.towo.1-siduction-amd64 x86_64 Up~1:19 Mem~1494.2/7899.1MB HDD~2063.7GB(1.4% used) Procs~166 Client~Shell inxi~1.8.5  

gruß ab

holgerw

  • Guest
USB3 und Hotplugfähigkeit
« Reply #4 on: 2012/06/03, 20:30:47 »
Hallo,

danke für die zahlreichen Antworten. Wenn ich mit eingestöpselter USB3 Festplatte boote, wird sie erkannt und ich kann sie über den Wechselmedienmanager von KDE mounten. Wenn ich die Platte dann entbinde und wieder anstöpsele, wird sie wieder erkannt.

Ich muss mal weiter testen.

Viele Grüße,
  Holger

Offline ab

  • User
  • Posts: 117
USB3 und Hotplugfähigkeit
« Reply #5 on: 2012/06/03, 20:39:39 »
@holgerw

Nachtrag:

auch unter
Code: [Select]
ab@siduction:~$ uname -a
Linux siduction 3.4-0.towo.6-siduction-amd64 #1 SMP PREEMPT Sun Jun 3 07:30:39 UTC 2012 x86_64 GNU/Linux
läuft alles ohne Probleme; wie zuvor beschrieben.

gruß ab

holgerw

  • Guest
USB3 und Hotplugfähigkeit
« Reply #6 on: 2012/06/04, 05:39:05 »
Hallo,

hier noch ein paar Angaben:
Code: [Select]
lsusb
Bus 001 Device 002: ID 1307:0330 Transcend Information, Inc. 63-in-1 Multi-Card Reader/Writer
Bus 002 Device 002: ID 045e:075d Microsoft Corp. LifeCam Cinema
Bus 003 Device 002: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 003 Device 003: ID 0ecd:a100 Lite-On IT Corp. LDW-411SX DVD/CD Rewritable Drive
Bus 004 Device 002: ID 046a:0107 Cherry GmbH
Bus 007 Device 002: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Code: [Select]
uname -a
Linux biber 3.4-0.towo.4-siduction-amd64 #1 SMP PREEMPT Sun May 27 20:48:38 UTC 2012 x86_64 GNU/Linux


Code: [Select]
lsmod|grep hcd
xhci_hcd               64265  0
ohci_hcd               19133  0
ssb                    39793  1 ohci_hcd
ehci_hcd               33292  0
usbcore               116419  9 uas,snd_usb_audio,uvcvideo,usb_storage,ohci_hcd,snd_usbmidi_lib,ehci_hcd,usbhid,xhci_hcd


Das USB3 Device ist zu sehen, aber keine USB3 Platte. Ich muss den PC mit eingestöpselter USB3 Festplatte booten, dann erst komme ich unter Linux an die Platte. Und dann klappt auch ein Zugriff nach Aus- und wieder Einstöpseln.

Nun werde ich es unter OpenSUSE auch nochmal testen.

Viele Grüße,
  Holger

holgerw

  • Guest
USB3 und Hotplugfähigkeit
« Reply #7 on: 2012/06/04, 05:49:19 »
Hallo,

unter OpenSUSE funktioniert es. Hier ein paar Angaben:

Code: [Select]
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 1307:0330 Transcend Information, Inc. 63-in-1 Multi-Card Reader/Writer
Bus 002 Device 002: ID 045e:075d Microsoft Corp. LifeCam Cinema
Bus 003 Device 002: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0ecd:a100 Lite-On IT Corp. LDW-411SX DVD/CD Rewritable Drive
Bus 005 Device 002: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
Bus 004 Device 002: ID 046a:0107 Cherry GmbH
Bus 009 Device 002: ID 174c:5106 ASMedia Technology Inc.


Code: [Select]
uname -a
Linux biber 3.3.4-22-desktop #1 SMP PREEMPT Fri Apr 27 20:36:58 UTC 2012 (d42fe44) x86_64 x86_64 x86_64 GNU/Linux


Code: [Select]
lsmod|grep hcd
xhci_hcd              143035  0


Ich werde das aktuelle siduction Release von Stick mit toram booten und dann mal testen.

Viele Grüße,
  Holger

holgerw

  • Guest
USB3 und Hotplugfähigkeit
« Reply #8 on: 2012/06/04, 07:09:54 »
Hallo,

mit siduction 12.1 in den Ram gebootet geht es auch nicht.

Die spannende Frage für mich ist: Was läuft bei OpenSUSE anderes? Ich hätte das schon gerne auch bei siduction.

Um nochmal klar zu stellen: An USB2 Ports wird die USB3 Platte hotplugmäßig einwandfrei gemountet. Es geht mir hier um eine native USB3 Schnittstelle, die vom Kernel auch als USB3 Schnittstelle erkannt wird und an dem sich USB3 Geräte dann auch als USB3 Geräte hotplugmäßig sauber verhalten.

Daher meine Frage an die, bei denen Hotplug mit USB3 funktioniert? Seid Ihr sicher, dass Eure USB3 Platten oder Sticks unter siduction auch als USB3 Geräte eingebunden werden? Diese Frage würde ich nicht stellen, wenn es bei mir unter OpenSUSE nicht funktionierte.

Hier noch ein paar Angaben, sie beziehen sich auf das in den Ram geladene aktuelle siduction KDE in der 64 Bit Version: Nach dem Anstöpseln der USB3 Platte habe ich zunächst das Modul xhci_hcd entladen. Dann habe ich es es mit modprobe -v xhci_hcd wieder geladen. Danach bekomme ich unter dmesg folgende Ausgabe:
Code: [Select]
[ 1981.837952] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 1981.837980] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 1
[ 1981.870908] xhci_hcd 0000:03:00.0: Host not halted after 16000 microseconds.
[ 1981.870911] xhci_hcd 0000:03:00.0: can't setup
[ 1981.870914] xhci_hcd 0000:03:00.0: USB bus 1 deregistered
[ 1981.870942] xhci_hcd 0000:03:00.0: init 0000:03:00.0 fail, -110
[ 1981.871003] xhci_hcd: probe of 0000:03:00.0 failed with error -110


Was läuft da schief?

Unter OpenSUSE sieht es nach dem Anstöpseln wie folgt aus:
Code: [Select]
[   36.879307] usb 9-1: new SuperSpeed USB device number 2 using xhci_hcd
[   38.288244] usb 9-1: New USB device found, idVendor=174c, idProduct=5106
[   38.288254] usb 9-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[   38.288261] usb 9-1: Product: AS2105
[   38.288266] usb 9-1: Manufacturer: ASMedia
[   38.288271] usb 9-1: SerialNumber:      WD-WXB0AC9D4828
[   38.289847] scsi12 : usb-storage 9-1:1.0
[   39.302004] scsi 12:0:0:0: Direct-Access     WDC WD32 00BEVT-22A23T0   01.0 PQ: 0 ANSI: 0
[   39.302679] sd 12:0:0:0: Attached scsi generic sg13 type 0
[   39.302985] sd 12:0:0:0: [sdk] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[   39.303864] sd 12:0:0:0: [sdk] Write Protect is off
[   39.303876] sd 12:0:0:0: [sdk] Mode Sense: 23 00 00 00
[   39.304631] sd 12:0:0:0: [sdk] No Caching mode page present
[   39.304638] sd 12:0:0:0: [sdk] Assuming drive cache: write through
[   39.309214] sd 12:0:0:0: [sdk] No Caching mode page present
[   39.309217] sd 12:0:0:0: [sdk] Assuming drive cache: write through
[   39.322641]  sdk: sdk1
[   39.325198] sd 12:0:0:0: [sdk] No Caching mode page present
[   39.325209] sd 12:0:0:0: [sdk] Assuming drive cache: write through
[   39.325217] sd 12:0:0:0: [sdk] Attached SCSI disk


Viele Grüße,
  Holger

kris99

  • Guest
USB3 und Hotplugfähigkeit
« Reply #9 on: 2012/06/04, 10:53:32 »
Hallo Holger,

meine Vermutung ist der Kernel. Ich habe eine USB 3.0 Disk seit Kernel 3.0 im Einsatz. Meistens funktionierte die Platte am USB 3.0 Port. Doch manchmal versagte sie ihren Dienst. Dann hilft nur noch USB 2.0 oder der Wechsel auf einen alten Kernel. Das gleiche wechselhafte Verhalten habe ich mit dem internen SD-Card Schacht. Mal funktioniert er, dann wieder nicht.

Da mein altes System (ich habe erst vor 2 Monaten mein System neu aufgesetzt) ziemlich verwurstelt war, habe ich mich auch nicht getraut einen Bugreport zu schreiben.

Und BTW bei meinem neuen System scheine ich es auch schon wieder geschafft zu haben, das verwursteln meine ich :( . Daher habe ich mich auch nicht gewundert, daß die Platte am USB 3.0 Port nicht mehr vollständig erkannt wird.

Gruß

Kris

PS: Es scheint doch nicht der Kernel zu sein. Gestern wurde die Platte nicht erkannt, da war ich schon auf Kernel 3.4-0.towo.6-siduction-amd64. Nach dem d-u von heute morgen funktioniert die Platte wieder am USB 3.0 Port. libusb und libc6 wurden u. a. upgegraded.

Offline ralul

  • User
  • Posts: 1.814
USB3 und Hotplugfähigkeit
« Reply #10 on: 2012/06/04, 15:18:34 »
@towo - Time out? Patch von Andiry Xu:
Code: [Select]
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -795,7 +795,7 @@ int xhci_suspend(struct xhci_hcd *xhci)
        command = xhci_readl(xhci, &xhci->op_regs->command);
        command |= CMD_CSS;
        xhci_writel(xhci, command, &xhci->op_regs->command);
-       if (handshake(xhci, &xhci->op_regs->status, STS_SAVE, 0, 10*100)) {
+       if (handshake(xhci, &xhci->op_regs->status, STS_SAVE, 0, 100*100)) {
                xhci_warn(xhci, "WARN: xHC CMD_CSS timeout\n");
                spin_unlock_irq(&xhci->lock);
                return -ETIMEDOUT;
experiencing siduction runs better than my gentoo makes me know I know nothing

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.938
USB3 und Hotplugfähigkeit
« Reply #11 on: 2012/06/04, 17:32:00 »
Ich seh in dem Log kein Timeout. Abgesehen davon sieht das Log von Suse doch arg anders aus, als das von siduction. Welcher Kernel werkelt da in Suse?
Btw, hat Ubuntu 12.04 dieses Problem wohl auch:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/832319
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline ab

  • User
  • Posts: 117
USB3 und Hotplugfähigkeit
« Reply #12 on: 2012/06/04, 21:54:16 »
@holgerw

Nur so ne Idee:
übergib dem zu startenden Kernel bitte mal den Bootparameter pci=nomsi, und stöpsel nach dem Hochfahren die Platte an.

Geht dann etwas?

gruß ab

holgerw

  • Guest
USB3 und Hotplugfähigkeit
« Reply #13 on: 2012/06/05, 06:51:18 »
Hallo,

danke für die zahlreichen Antworten.
@towo, unter OpenSUSE nutze ich den 3.3.4-22-desktop Kernel

@kris, ich nutze noch den Kernel  3.4-0.towo.4-siduction-amd64, werde aber mal gleich aktualisieren, vielleicht gibt es eine Überraschung bei den USB3 Laufwerken und Hotplug.

@ab, danke für den Hinweis, aber die Kerneloption pci=nomsi bringt leider keine Abhilfe bei der Hotplugfähigkeit von USB3 Laufwerken.

Viele Grüße,
  Holger

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.938
USB3 und Hotplugfähigkeit
« Reply #14 on: 2012/06/05, 10:04:07 »
Kannst Du mal ein lspci posten?
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.