Thank you for your patch, but the same problems occur with the patch applied. => log attached
=> "xHCI xhci_drop_endpoint called with disabled ep"-messages, ...
Do you know why the lspci output shows different capabilities/features/flags with the same NEC Controller (exact revision), but different connection/interface? PLX Chip with NEC: not working, PCIe-card with NEC: working
Here are the differences between the lspci outputs;
PCIe Type | CacheLineSize | Flags; AuxCurrent | PME |DevCtl | MaxReadReq |AuxPwr | CommClk
-------------------------------------------------------------------------------------------------
PLX Chip, NEC, problems | 32 | AuxCurrent=375mA |D3cold+ |NoSnoop+ | 512 bytes |AuxPwr+ | CommClk-
PCIe-Card NEC,working | 64 | AuxCurrent=0mA |D3cold- |NoSnoop- | 128 bytes |AuxPwr- | CommClk+
Best regards, Bernhard
Log with your patch;
----------------------
Mar 25 19:11:11 stargazer kernel: [ 23.584951] usb 1-1.4.3.3: usb_disable_lpm called, do nothing
Mar 25 19:11:11 stargazer kernel: [ 23.585417] usb 1-1.4.3.3: usb_enable_lpm called, do nothing
Mar 25 19:11:11 stargazer kernel: [ 23.604808] usb 1-1.4.3.3: usb_disable_lpm called, do nothing
Mar 25 19:11:11 stargazer kernel: [ 23.605436] usb 1-1.4.3.3: usb_enable_lpm called, do nothing
Mar 25 19:11:53 stargazer kernel: [ 65.524316] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:11:53 stargazer kernel: [ 65.542614] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:11:56 stargazer kernel: [ 69.083510] usb 4-1: New USB device found, idVendor=174c, idProduct=5106
Mar 25 19:11:56 stargazer kernel: [ 69.083518] usb 4-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Mar 25 19:11:56 stargazer kernel: [ 69.083522] usb 4-1: Product: AS2105
Mar 25 19:11:56 stargazer kernel: [ 69.083526] usb 4-1: Manufacturer: ASMedia
Mar 25 19:11:56 stargazer kernel: [ 69.083529] usb 4-1: SerialNumber: WD-WXL1E61JNVH2
Mar 25 19:11:56 stargazer kernel: [ 69.084380] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:11:56 stargazer mtp-probe: checking bus 4, device 2: "/sys/devices/pci0000:00/0000:00:1c.0/0000:06:00.0/0000:07:01.0/0000:08:00.0/usb4/4-1"
Mar 25 19:11:56 stargazer mtp-probe: bus: 4, device: 2 was not an MTP device
Mar 25 19:11:56 stargazer kernel: [ 69.116726] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:11:56 stargazer kernel: [ 69.116732] usb-storage 4-1:1.0: USB Mass Storage device detected
Mar 25 19:11:56 stargazer kernel: [ 69.116803] scsi12 : usb-storage 4-1:1.0
Mar 25 19:11:56 stargazer kernel: [ 69.116878] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:11:56 stargazer kernel: [ 69.116900] usbcore: registered new interface driver usb-storage
Mar 25 19:11:57 stargazer kernel: [ 70.117370] scsi 12:0:0:0: Direct-Access WDC WD10 JPVT-00A1YT0 01.0 PQ: 0 ANSI: 5
Mar 25 19:11:57 stargazer kernel: [ 70.117792] sd 12:0:0:0: Attached scsi generic sg6 type 0
Mar 25 19:11:57 stargazer kernel: [ 70.117977] sd 12:0:0:0: [sde] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
Mar 25 19:11:57 stargazer kernel: [ 70.118604] sd 12:0:0:0: [sde] Write Protect is off
Mar 25 19:11:57 stargazer kernel: [ 70.118612] sd 12:0:0:0: [sde] Mode Sense: 23 00 00 00
Mar 25 19:11:57 stargazer kernel: [ 70.119378] sd 12:0:0:0: [sde] No Caching mode page found
Mar 25 19:11:57 stargazer kernel: [ 70.119387] sd 12:0:0:0: [sde] Assuming drive cache: write through
Mar 25 19:11:57 stargazer kernel: [ 70.122476] sd 12:0:0:0: [sde] No Caching mode page found
Mar 25 19:11:57 stargazer kernel: [ 70.122483] sd 12:0:0:0: [sde] Assuming drive cache: write through
Mar 25 19:11:57 stargazer kernel: [ 70.149683] sde: sde1
Mar 25 19:11:57 stargazer kernel: [ 70.151870] sd 12:0:0:0: [sde] No Caching mode page found
Mar 25 19:11:57 stargazer kernel: [ 70.151874] sd 12:0:0:0: [sde] Assuming drive cache: write through
Mar 25 19:11:57 stargazer kernel: [ 70.151877] sd 12:0:0:0: [sde] Attached SCSI disk
Mar 25 19:12:20 stargazer kernel: [ 92.930989] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:20 stargazer kernel: [ 93.043019] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:20 stargazer kernel: [ 93.060772] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:20 stargazer kernel: [ 93.062016] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:20 stargazer kernel: [ 93.062023] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:20 stargazer kernel: [ 93.062776] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:20 stargazer kernel: [ 93.071915] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:20 stargazer kernel: [ 93.183183] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:20 stargazer kernel: [ 93.200684] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:20 stargazer kernel: [ 93.201896] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:20 stargazer kernel: [ 93.201902] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:20 stargazer kernel: [ 93.202563] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:20 stargazer kernel: [ 93.344822] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:20 stargazer kernel: [ 93.455247] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:20 stargazer kernel: [ 93.472869] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:20 stargazer kernel: [ 93.474082] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:20 stargazer kernel: [ 93.474089] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:20 stargazer kernel: [ 93.474743] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:20 stargazer kernel: [ 93.484218] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:21 stargazer kernel: [ 93.595453] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:21 stargazer kernel: [ 93.612892] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:21 stargazer kernel: [ 93.614119] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:21 stargazer kernel: [ 93.614125] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:21 stargazer kernel: [ 93.614775] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:21 stargazer kernel: [ 93.863299] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:21 stargazer kernel: [ 93.975598] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:21 stargazer kernel: [ 93.993169] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:21 stargazer kernel: [ 93.994471] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:21 stargazer kernel: [ 93.994478] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:21 stargazer kernel: [ 93.995241] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:21 stargazer kernel: [ 94.004485] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:21 stargazer kernel: [ 94.115746] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:21 stargazer kernel: [ 94.133378] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:21 stargazer kernel: [ 94.134590] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:21 stargazer kernel: [ 94.134596] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:21 stargazer kernel: [ 94.135382] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:21 stargazer kernel: [ 94.195242] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:21 stargazer kernel: [ 94.307695] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:21 stargazer kernel: [ 94.325329] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:21 stargazer kernel: [ 94.326558] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:21 stargazer kernel: [ 94.326564] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:21 stargazer kernel: [ 94.327249] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:21 stargazer kernel: [ 94.336426] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:21 stargazer kernel: [ 94.447972] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:21 stargazer kernel: [ 94.465461] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:21 stargazer kernel: [ 94.466745] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:21 stargazer kernel: [ 94.466752] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:21 stargazer kernel: [ 94.467495] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 94.561638] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 94.672035] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:22 stargazer kernel: [ 94.689630] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:22 stargazer kernel: [ 94.690856] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:22 stargazer kernel: [ 94.690862] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:22 stargazer kernel: [ 94.691470] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 94.719645] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 94.832202] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:22 stargazer kernel: [ 94.849647] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:22 stargazer kernel: [ 94.850902] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:22 stargazer kernel: [ 94.850909] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:22 stargazer kernel: [ 94.851527] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 94.860924] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 94.972230] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:22 stargazer kernel: [ 94.989934] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:22 stargazer kernel: [ 94.991201] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:22 stargazer kernel: [ 94.991208] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:22 stargazer kernel: [ 94.991815] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 95.034529] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 95.144314] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:22 stargazer kernel: [ 95.161850] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:22 stargazer kernel: [ 95.163131] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:22 stargazer kernel: [ 95.163136] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
Mar 25 19:12:22 stargazer kernel: [ 95.163728] usb 4-1: usb_enable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 95.173147] usb 4-1: usb_disable_lpm called, do nothing
Mar 25 19:12:22 stargazer kernel: [ 95.284478] usb 4-1: reset SuperSpeed USB device number 2 using xhci_hcd
Mar 25 19:12:22 stargazer kernel: [ 95.302080] usb 4-1: Parent hub missing LPM exit latency info. Power management will be impacted.
Mar 25 19:12:22 stargazer kernel: [ 95.303313] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fa80
Mar 25 19:12:22 stargazer kernel: [ 95.303319] xhci_hcd 0000:08:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8803e635fac0
On 2014-03-25 17:41 CET (UTC+1), Mathias Nyman wrote:
On 03/23/2014 08:16 PM, baumber@xxxxxxxxxxx wrote:
Hello,
I have problems with my USB 3.0 devices; external HDDs (HGST Touro
Mobile Pro (Simpletech-Chip), Fantec case with WDC, Asmedia Chip) and a
Sandisk card reader, with a "NEC Corporation uPD720200 USB 3.0 Host
Controller (rev 03)" controller.
I get the following errors; => then reset of device, then freezing of
device or many "xhci_drop_endpoint called with disabled ep"-messages
Suspend and Hibernate is not possible anymore.
=> a detailed log is in file usb3_problems.txt
Could you try if disabling all LPM related control transfers on the buggy NEC hosts has any impact at all.
If you can, please apply the following patch and see if it helps:
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 64ea219..d734630 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -3711,6 +3711,9 @@ int usb_disable_lpm(struct usb_device *udev)
{
struct usb_hcd *hcd;
+ dev_info(&udev->dev, "usb_disable_lpm called, do nothing\n");
+ return 0;
+
if (!udev || !udev->parent ||
udev->speed != USB_SPEED_SUPER ||
!udev->lpm_capable)
@@ -3767,6 +3770,9 @@ void usb_enable_lpm(struct usb_device *udev)
{
struct usb_hcd *hcd;
+ dev_info(&udev->dev, "usb_enable_lpm called, do nothing\n");
+ return;
+
if (!udev || !udev->parent ||
udev->speed != USB_SPEED_SUPER ||
!udev->lpm_capable)
patch can also be found in bugzilla as "patch to disable all lpm related control transfers"
https://bugzilla.kernel.org/show_bug.cgi?id=70781
-Mathias
--
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