Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Linux and Open Source

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-07-2017, 08:45 AM   #1
Wunsz
Junior Member
 
Join Date: Oct 2017
Posts: 11
Lightbulb 17.10 Problems brainstorm

I have an idea, to brainstorm some ideas (possibly with people who have deeper knowledge on EVDI and USB).

I was able to run 3-dsplay setup by editting /etc/default/grub and update line with GRUB_CMDLINE_LINUX_DEFAULT to look like this:

Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=off pcie_port_pm=off acpi_backlight=none acpi_osi=Linux acpi_osi=! acpi_osi=\"Windows 2009\""
And adding following file at /etc/X11/xorg.conf.d/20-intel.conf
Code:
Section "Device"
  Identifier "Intel Graphics"
  Driver "Intel"
  Option "AccelMethod" "sna"
  Option "TearFree" "false"
  Option "TripleBuffer" "true"
  Option "MigrationHeuristic" "greedy"
  Option "ExaNoComposite" "false"
  Option "Tiling" "true"
  Option "Pageflip" "true"
  Option "Backlight" "intel_backlight"
  BusID "PCI:0:2:0"
EndSection
However i still have random disconnects (sometimes more, sometimes less frequent).

The dmesg output during error is always following:

Code:
[wto lis  7 09:13:30 2017] usb 4-1.1: Disable of device-initiated U1 failed.
[wto lis  7 09:13:30 2017] usb 4-1.1: Disable of device-initiated U2 failed.
[wto lis  7 09:13:30 2017] cdc_ncm 4-1.1:1.5 enx9cebe853655a: unregister 'cdc_ncm' usb-0000:3e:00.0-1.1, CDC NCM
[wto lis  7 09:13:30 2017] usb 4-1.1: Set SEL for device-initiated U1 failed.
[wto lis  7 09:13:30 2017] usb 4-1.1: Set SEL for device-initiated U2 failed.
[wto lis  7 09:13:30 2017] usb 4-1.1: reset SuperSpeed USB device number 3 using xhci_hcd
[wto lis  7 09:13:30 2017] usb 4-1.1: Warning! Unlikely big volume range (=767), cval->res is probably wrong.
[wto lis  7 09:13:30 2017] usb 4-1.1: [4] FU [Mic Capture Volume] ch = 2, val = -4592/7680/16
[wto lis  7 09:13:30 2017] usb 4-1.1: Warning! Unlikely big volume range (=672), cval->res is probably wrong.
[wto lis  7 09:13:30 2017] usb 4-1.1: [7] FU [Dell USB Audio Playback Volume] ch = 6, val = -10752/0/16
[wto lis  7 09:13:30 2017] cdc_ncm 4-1.1:1.5: MAC-Address: 9c:eb:e8:53:65:5a
[wto lis  7 09:13:30 2017] cdc_ncm 4-1.1:1.5: setting rx_max = 16384
[wto lis  7 09:13:30 2017] cdc_ncm 4-1.1:1.5: setting tx_max = 16384
[wto lis  7 09:13:30 2017] cdc_ncm 4-1.1:1.5 usb0: register 'cdc_ncm' at usb-0000:3e:00.0-1.1, CDC NCM, 9c:eb:e8:53:65:5a[wto lis  7 09:13:33 2017] [drm:drm_wait_vblank [drm[wto lis  7 09:13:33 2017] [drm:drm_wait_vblank [drm]] *ERROR* Unsupported type value 0x4000059, supported mask 0x7400003f
]] *ERROR* Unsupported type value 0x4000059, supported mask 0x7400003f
[wto lis  7 09:13:33 2017] [drm:drm_wait_vblank [drm]] *ERROR* Unsupported type value 0x4000059, supported mask 0x7400003f[wto lis  7 09:13:33 2017] [drm:drm_wait_vblank [drm]] *ERROR* Unsupported type value 0x4000059, supported mask 0x7400003f


[wto lis  7 09:13:30 2017] usb 4-1.1: usbfs: process 7730 (DeviceWindowDis) did not claim interface 0 before use
[wto lis  7 09:13:30 2017] cdc_ncm 4-1.1:1.5 enx9cebe853655a: renamed from usb0
[wto lis  7 09:13:30 2017] IPv6: ADDRCONF(NETDEV_UP): enx9cebe853655a: link is not ready
[wto lis  7 09:13:30 2017] IPv6: ADDRCONF(NETDEV_UP): enx9cebe853655a: link is not ready
[wto lis  7 09:13:30 2017] cdc_ncm 4-1.1:1.5 enx9cebe853655a: network connection: disconnected
Sometimes I also have this in my logs:
Code:
[wto lis  7 09:12:32 2017] pcieport 0000:00:1d.6: AER: Corrected error received: id=00ee
[wto lis  7 09:12:32 2017] pcieport 0000:00:1d.6: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=00ee(Transmitter ID)
[wto lis  7 09:12:32 2017] pcieport 0000:00:1d.6:   device [8086:a11e] error status/mask=00001000/00002000
[wto lis  7 09:12:32 2017] pcieport 0000:00:1d.6:    [12] Replay Timer Timeout
Also my dmesg log is flooded with messages like this (only when I have 2 displays via the dock, if i have only one or one via dock and one directly via HDMI, there is no kernel spam):
Code:
[wto lis  7 09:13:33 2017] [drm:drm_wait_vblank [drm]] *ERROR* Unsupported type value 0x4000059, supported mask 0x7400003f

My machine_info.txt:
Code:
Machine name: tempest
OS info: Linux-4.13.0-16-generic-x86_64-with-Ubuntu-17.10-artful
CPU info: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz Cache: 6144 KB Cores: 4
Installed RAM: 32791956 kB
Currently logged user: bjablonski
DL driver version: 1.4.210
EVDI kernel module version: 1.5.0
DLM running: False

---------------------------------------------------------------


Im most interested in interpretation of following lines:
Code:
[wto lis  7 09:13:30 2017] usb 4-1.1: Disable of device-initiated U1 failed.
[wto lis  7 09:13:30 2017] usb 4-1.1: Disable of device-initiated U2 failed.
[wto lis  7 09:13:30 2017] cdc_ncm 4-1.1:1.5 enx9cebe853655a: unregister 'cdc_ncm' usb-0000:3e:00.0-1.1, CDC NCM
[wto lis  7 09:13:30 2017] usb 4-1.1: Set SEL for device-initiated U1 failed.
[wto lis  7 09:13:30 2017] usb 4-1.1: Set SEL for device-initiated U2 failed.
AFAIK U0-U3 are USB3 power states for fast suspend (LINK). Does anyone have an idea why the disable fails? I have tinkered with power levels, control, autosuspend of USB devices, but none of it seems to work.

I hope we can come up with something, because I would really like to use this D6000 station for something more than ultra-expensive USB hub...

PS. Why are DLM logs base64 encoded binaries?
PS2. Why you guys @ DisplayLink seem not to see this issue?
Wunsz is offline   Reply With Quote
Old 11-07-2017, 06:11 PM   #2
Joachim Martillo
Junior Member
 
Join Date: May 2016
Posts: 18
Default

I don't see anything like your output via dmesg. Of course, I am using a D1000 with only one external monitor, a flash drive, and a Logitech webcam attached to it.

What do you have attached to your D6000?

Your setup seems much more complex than mine.

I execute the following command.

Code:
dmesg | grep -i usb | tail
Here is all I see.

Code:
[   33.652821] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[   33.652822] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   33.652823] usb usb4: Product: xHCI Host Controller
[   33.652824] usb usb4: Manufacturer: Linux 4.13.0-16-generic xhci-hcd
[   33.652825] usb usb4: SerialNumber: 0000:39:00.0
[   33.652941] hub 4-0:1.0: USB hub found
[   38.634187] usb usb4: USB disconnect, device number 1
[   38.635008] xhci_hcd 0000:39:00.0: USB bus 4 deregistered
[   38.635043] usb usb3: USB disconnect, device number 1
[   38.636173] xhci_hcd 0000:39:00.0: USB bus 3 deregistered
I have a second USB hub attached to my machine in addition to the D1000.
Joachim Martillo is offline   Reply With Quote
Old 11-08-2017, 09:02 AM   #3
Wunsz
Junior Member
 
Join Date: Oct 2017
Posts: 11
Default

The dmesg output with error is when disconnect happens.

My setup is:
Samsung FHD display via HDMI
Dell FHD display via DisplayPort
Lenovo USB mouse
Lenovo USB keyboard
Phillips headphones via 3.5mm jack (no microphone)


Here is my output (with one DisplayPort monitor attached)

Code:
[ 4919.472870] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4919.472871] usb 4-1.1: Product: Dell Universal Dock D6000
[ 4919.472871] usb 4-1.1: Manufacturer: DisplayLink
[ 4919.472872] usb 4-1.1: SerialNumber: 1707156658
[ 4919.486606] usb 4-1.1: Warning! Unlikely big volume range (=767), cval->res is probably wrong.
[ 4919.486608] usb 4-1.1: [4] FU [Mic Capture Volume] ch = 2, val = -4592/7680/16
[ 4919.487133] usb 4-1.1: Warning! Unlikely big volume range (=672), cval->res is probably wrong.
[ 4919.487134] usb 4-1.1: [7] FU [Dell USB Audio Playback Volume] ch = 6, val = -10752/0/16
[ 4919.507917] cdc_ncm 4-1.1:1.5 usb0: register 'cdc_ncm' at usb-0000:3e:00.0-1.1, CDC NCM, 9c:eb:e8:53:65:5a
[ 4920.032505] cdc_ncm 4-1.1:1.5 enx9cebe853655a: renamed from usb0
Wunsz is offline   Reply With Quote
Old 11-08-2017, 12:13 PM   #4
Joachim Martillo
Junior Member
 
Join Date: May 2016
Posts: 18
Default

I recommend taking everything off the D6000 but one external display (try each external display as the lone display) and then add each other device back to the D6000 one by one (in every combination) until you see the error messages. If it's just a specific device combination that causes the problem, you should be able to pin it down in a reasonable amount of time. You may have to obtain a second USB hub (as I have) in order to follow the suggested procedure.
Joachim Martillo is offline   Reply With Quote
Old 11-10-2017, 08:22 AM   #5
Wunsz
Junior Member
 
Join Date: Oct 2017
Posts: 11
Default

Hi,
I have tested multiple combinations and seems that following error:
Code:
[pią lis 10 09:12:26 2017 <    0,000072>] [drm:drm_wait_vblank [drm]] *ERROR* Unsupported type value 0x121, supported mask 0x7400003f
happens only when I connect one specific Samsung display (tested it on coworker's display - also Samsung, also via HDMI) and no spam happened. Fortunately I will have it replaced soon.

Today i intend to test all peripherals connected to laptop (with the Samsung display via HDMI) and Dell display via DP via Dock to see if I will get any disconnects. Wish me luck!
Wunsz is offline   Reply With Quote
Old 11-17-2017, 07:58 AM   #6
Wunsz
Junior Member
 
Join Date: Oct 2017
Posts: 11
Default

Hello again,
after testing some combination I ended up with USB mouse & keyboard + DELL display connected via dock and Samsung via HDMI. The tell displays goes blank from time to time but does not disconnect (display manager thinks the display is still there, I can even move windows from that display).

On error, dmseg says:

Code:
[pią lis 17 08:45:03 2017 <    0,072060>] usb 4-1.1: reset SuperSpeed USB device number 5 using xhci_hcd
[pią lis 17 08:45:03 2017 <    0,034009>] usb 4-1.1: Warning! Unlikely big volume range (=767), cval->res is probably wrong.
[pią lis 17 08:45:03 2017 <    0,000005>] usb 4-1.1: [4] FU [Mic Capture Volume] ch = 2, val = -4592/7680/16
[pią lis 17 08:45:03 2017 <    0,000720>] usb 4-1.1: Warning! Unlikely big volume range (=672), cval->res is probably wrong.
[pią lis 17 08:45:03 2017 <    0,000002>] usb 4-1.1: [7] FU [Dell USB Audio Playback Volume] ch = 6, val = -10752/0/16
[pią lis 17 08:45:03 2017 <    0,027510>] cdc_ncm 4-1.1:1.5: MAC-Address: 9c:eb:e8:53:65:5a
[pią lis 17 08:45:03 2017 <    0,000002>] cdc_ncm 4-1.1:1.5: setting rx_max = 16384
[pią lis 17 08:45:03 2017 <    0,000066>] cdc_ncm 4-1.1:1.5: setting tx_max = 16384
[pią lis 17 08:45:03 2017 <    0,000232>] cdc_ncm 4-1.1:1.5 usb0: register 'cdc_ncm' at usb-0000:3e:00.0-1.1, CDC NCM, 9c:eb:e8:53:65:5a
[pią lis 17 08:45:03 2017 <    0,004123>] usb 4-1.1: usbfs: process 7796 (DeviceWindowDis) did not claim interface 0 before use
[pią lis 17 08:45:03 2017 <    0,003552>] cdc_ncm 4-1.1:1.5 enx9cebe853655a: renamed from usb0
[pią lis 17 08:45:03 2017 <    0,077602>] IPv6: ADDRCONF(NETDEV_UP): enx9cebe853655a: link is not ready
[pią lis 17 08:45:03 2017 <    0,000068>] IPv6: ADDRCONF(NETDEV_UP): enx9cebe853655a: link is not ready
[pią lis 17 08:45:03 2017 <    0,020318>] cdc_ncm 4-1.1:1.5 enx9cebe853655a: network connection: disconnected
Funny thing is, it seems to be totally random. Yesterday it happened only once. Today it already happened 4 times...

One more thing I noticed today is that sometimes dmesg spits out a bunch of these:
Code:
[pią lis 17 08:53:20 2017 <    0,009739>] pcieport 0000:00:1d.0: AER: Corrected error received: id=00e8
[pią lis 17 08:53:20 2017 <    0,000018>] pcieport 0000:00:1d.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=00e8(Transmitter ID)
[pią lis 17 08:53:20 2017 <    0,000012>] pcieport 0000:00:1d.0:   device [8086:a118] error status/mask=00001000/00002000
[pią lis 17 08:53:20 2017 <    0,000008>] pcieport 0000:00:1d.0:    [12] Replay Timer Timeout
Which seems to be an error with my SSD disk:

Code:
*-pci:3             
             description: PCI bridge
             product: Sunrise Point-H PCI Express Root Port #9
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:124 memory:ede00000-edefffff
           *-storage
                description: Non-Volatile memory controller
                product: NVMe SSD Controller SM961/PM961
                vendor: Samsung Electronics Co Ltd
                physical id: 0
                bus info: pci@0000:04:00.0
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: storage pm msi pciexpress msix nvm_express bus_master cap_list
                configuration: driver=nvme latency=0
                resources: irq:16 memory:ede00000-ede03fff
Sometimes I belive I could write a blog about my hardware issues xD
Wunsz is offline   Reply With Quote
Reply

Tags
17.10, brainstorm, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:31 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.