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

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-09-2018, 05:22 PM   #1
dlublink
Junior Member
 
Join Date: Sep 2018
Posts: 1
Default AMDGPU + DisplayLink = High CPU, laggy graphics

Title says it all.

I have a laptop connected with a docking station that has display link :

Bus 002 Device 005: ID 17e9:433f DisplayLink

When I use display link, graphics performance is total crap. Just moving my mouse across a blank screen seems to be too much for display link.

top shows DisplayLink using a LOT of CPU.

I see multiple errors in dmesg that may or may not be related to the issue.

Here is one :

Quote:
[ 125.148162] [drm] {1920x1080, 2142x1100@141400Khz}
[ 125.148577] [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us * 100 tries - tgn10_lock line:566
[ 125.148668] WARNING: CPU: 5 PID: 1536 at /build/linux-CuEUJv/linux-4.15.0/drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c:190 generic_reg_wait+0xe8/0x120 [amdgpu]
[ 125.148739] CPU: 5 PID: 1536 Comm: Xorg Tainted: G WC OE 4.15.0-38-generic #41-Ubuntu
[ 125.148740] Hardware name: LENOVO 20KUCTO1WW/20KUCTO1WW, BIOS R0UET52W (1.32 ) 09/01/2018
[ 125.148805] Call Trace:
[ 125.148862] tgn10_lock+0xa2/0xb0 [amdgpu]
[ 125.148916] program_all_pipe_in_tree+0x804/0x8b0 [amdgpu]
[ 125.148971] ? dm_logger_close+0x2c/0x60 [amdgpu]
[ 125.149024] ? dc_conn_log+0xe9/0x240 [amdgpu]
[ 125.149072] ? amdgpu_cgs_read_register+0x14/0x20 [amdgpu]
[ 125.149125] dcn10_apply_ctx_for_surface+0x498/0x4f0 [amdgpu]
[ 125.149175] dc_commit_state+0x2aa/0x500 [amdgpu]
[ 125.149228] amdgpu_dm_atomic_commit_tail+0x2cd/0xa50 [amdgpu]
[ 125.149263] ? amdgpu_bo_pin_restricted+0x1b5/0x2a0 [amdgpu]
[ 125.149268] ? _cond_resched+0x19/0x40
[ 125.149271] ? wait_for_completion_interruptible+0x35/0x180
[ 125.149281] commit_tail+0x42/0x70 [drm_kms_helper]
[ 125.149288] drm_atomic_helper_commit+0x10c/0x120 [drm_kms_helper]
[ 125.149340] amdgpu_dm_atomic_commit+0x87/0xa0 [amdgpu]
[ 125.149356] drm_atomic_commit+0x51/0x60 [drm]
[ 125.149363] drm_atomic_helper_set_config+0x7c/0x90 [drm_kms_helper]
[ 125.149376] __drm_mode_set_config_internal+0x6b/0x120 [drm]
[ 125.149389] drm_mode_setcrtc+0x47f/0x660 [drm]
[ 125.149402] ? drm_mode_getcrtc+0x190/0x190 [drm]
[ 125.149413] drm_ioctl_kernel+0x5f/0xb0 [drm]
[ 125.149424] drm_ioctl+0x31b/0x3d0 [drm]
[ 125.149436] ? drm_mode_getcrtc+0x190/0x190 [drm]
[ 125.149469] amdgpu_drm_ioctl+0x4f/0x90 [amdgpu]
[ 125.149474] do_vfs_ioctl+0xa8/0x630
[ 125.149477] ? recalc_sigpending+0x1b/0x50
[ 125.149481] ? _copy_from_user+0x3e/0x60
[ 125.149484] SyS_ioctl+0x79/0x90
[ 125.149488] do_syscall_64+0x73/0x130
[ 125.149491] entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[
[ 125.149542] ---[ end trace e73a92fa10fa6aef ]---
[ 125.149694] [drm] DC: Cursor address is 0!
[ 125.150575] [drm] {1680x1050, 2240x1089@146250Khz}
[ 125.466668] [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us * 100000 tries - mpc10_assert_idle_mpcc line:75
[ 125.466751] WARNING: CPU: 5 PID: 1536 at /build/linux-CuEUJv/linux-4.15.0/drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c:190 generic_reg_wait+0xe8/0x120 [amdgpu]
[ 125.466752] Modules linked in: cdc_mbim cdc_wdm snd_usb_audio cdc_ncm usbnet snd_usbmidi_lib ccm evdi(OE) pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) bnep binfmt_misc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev media btusb btrtl btbcm btintel bluetooth ecdh_generic nls_iso8859_1 edac_mce_amd kvm_amd kvm irqbypass arc4 joydev input_leds serio_raw r8822be(CE) thinkpad_acpi snd_seq_midi snd_hda_codec_conexant wmi_bmof snd_hda_codec_generic snd_hda_codec_hdmi snd_seq_midi_event nvram k10temp snd_hda_intel mac80211 snd_hda_codec snd_hda_core snd_rawmidi snd_hwdep snd_pcm snd_seq cfg80211 snd_seq_device snd_timer ucsi_acpi typec_ucsi typec snd shpchp soundcore mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 algif_skcipher
[ 125.466795] af_alg dm_crypt hid_logitech_hidpp hid_logitech_dj usbhid hid amdkfd amd_iommu_v2 amdgpu crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc chash i2c_algo_bit ttm aesni_intel aes_x86_64 drm_kms_helper crypto_simd glue_helper cryptd syscopyarea sysfillrect sysimgblt ahci fb_sys_fops psmouse i2c_piix4 libahci drm sdhci_pci r8169 nvme sdhci mii nvme_core wmi video i2c_scmi
[ 125.466823] CPU: 5 PID: 1536 Comm: Xorg Tainted: G WC OE 4.15.0-38-generic #41-Ubuntu
[ 125.466823] Hardware name: LENOVO 20KUCTO1WW/20KUCTO1WW, BIOS R0UET52W (1.32 ) 09/01/2018
[ 125.466872] RIP: 0010:generic_reg_wait+0xe8/0x120 [amdgpu]
[ 125.466874] RSP: 0018:ffffaec002cab8e8 EFLAGS: 00010297
[ 125.466876] RAX: 0000000000000002 RBX: 00000000000186a1 RCX: 0000000000000000
[ 125.466877] RDX: 0000000000000000 RSI: ffff9541feb56498 RDI: ffff9541feb56498
[ 125.466878] RBP: ffffaec002cab928 R08: 0000000000000000 R09: 0000000000000687
[ 125.466879] R10: 0000000000000002 R11: ffffffff8935380d R12: 0000000000000001
[ 125.466880] R13: ffff9541f0943600 R14: 0000000000000001 R15: 0000000000000001
[ 125.466882] FS: 00007f8b03b00600(0000) GS:ffff9541feb40000(0000) knlGS:0000000000000000
[ 125.466883] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 125.466885] CR2: 00007f57f000f8f8 CR3: 0000000437cbc000 CR4: 00000000003406e0
[ 125.466886] Call Trace:
[ 125.466942] mpc10_assert_idle_mpcc+0x4c/0x60 [amdgpu]
[ 125.466995] dcn10_wait_for_mpcc_disconnect+0x62/0xd0 [amdgpu]
[ 125.467044] dc_commit_state+0x3c0/0x500 [amdgpu]
[ 125.467098] amdgpu_dm_atomic_commit_tail+0x2cd/0xa50 [amdgpu]
[ 125.467133] ? amdgpu_bo_pin_restricted+0x1b5/0x2a0 [amdgpu]
[ 125.467138] ? _cond_resched+0x19/0x40
[ 125.467141] ? wait_for_completion_interruptible+0x35/0x180
[ 125.467150] commit_tail+0x42/0x70 [drm_kms_helper]
[ 125.467158] drm_atomic_helper_commit+0x10c/0x120 [drm_kms_helper]
[ 125.467210] amdgpu_dm_atomic_commit+0x87/0xa0 [amdgpu]
[ 125.467226] drm_atomic_commit+0x51/0x60 [drm]
[ 125.467233] drm_atomic_helper_set_config+0x7c/0x90 [drm_kms_helper]
[ 125.467246] __drm_mode_set_config_internal+0x6b/0x120 [drm]
[ 125.467259] drm_mode_setcrtc+0x47f/0x660 [drm]
[ 125.467272] ? drm_mode_getcrtc+0x190/0x190 [drm]
[ 125.467283] drm_ioctl_kernel+0x5f/0xb0 [drm]
[ 125.467294] drm_ioctl+0x31b/0x3d0 [drm]
[ 125.467306] ? drm_mode_getcrtc+0x190/0x190 [drm]
[ 125.467340] amdgpu_drm_ioctl+0x4f/0x90 [amdgpu]
[ 125.467345] do_vfs_ioctl+0xa8/0x630
[ 125.467348] ? recalc_sigpending+0x1b/0x50
[ 125.467352] ? _copy_from_user+0x3e/0x60
[ 125.467355] SyS_ioctl+0x79/0x90
[ 125.467359] do_syscall_64+0x73/0x130
[ 125.467362] entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[ 125.467364] RIP: 0033:0x7f8b00f035d7
[ 125.467365] RSP: 002b:00007fff4bf38508 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 125.467367] RAX: ffffffffffffffda RBX: 00007fff4bf38540 RCX: 00007f8b00f035d7
[ 125.467368] RDX: 00007fff4bf38540 RSI: 00000000c06864a2 RDI: 000000000000000e
[ 125.467370] RBP: 00007fff4bf38540 R08: 0000000000000000 R09: 0000555b0768a5a0
[ 125.467371] R10: 00007fff4bf386c0 R11: 0000000000000246 R12: 00000000c06864a2
[ 125.467372] R13: 000000000000000e R14: 0000555b06f3f010 R15: 0000555b06dc3450
[ 125.467373] Code: 31 f6 44 8b 45 10 44 89 e1 48 c7 c7 6d 78 90 c0 89 45 d4 52 48 c7 c2 b8 fe 8f c0 e8 f3 eb bf ff 41 83 7d 20 01 58 8b 45 d4 74 02 <0f> 0b 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 c7 45 c4 23
[ 125.467413] ---[ end trace e73a92fa10fa6af0 ]---
[ 125.495462] [drm] DC: Cursor address is 0!
[ 125.502797] cdc_ncm 2-3.1:1.5 enxe04f43939a85: renamed from usb0
[ 125.531592] IPv6: ADDRCONF(NETDEV_UP): enxe04f43939a85: link is not ready
[ 125.531752] IPv6: ADDRCONF(NETDEV_UP): enxe04f43939a85: link is not ready
[ 126.175929] amdgpu: [powerplay] pp_dpm_get_temperature was not implemented.
[ 127.694283] cdc_ncm 2-3.1:1.5 enxe04f43939a85: 1000 mbit/s downlink 1000 mbit/s uplink
[ 127.710289] cdc_ncm 2-3.1:1.5 enxe04f43939a85: network connection: connected
[ 127.710355] IPv6: ADDRCONF(NETDEV_CHANGE): enxe04f43939a85: link becomes ready
[ 128.176951] amdgpu: [powerplay] pp_dpm_get_temperature was not implemented.
[ 130.178069] amdgpu: [powerplay] pp_dpm_get_temperature was not implemented.
[ 130.957955] evdi: [D] evdi_painter_connect:574 (dev=1) Connected with 0000000075fd520c
[ 130.957958] evdi: [D] evdi_detect:76 (dev=1) Painter is connected
[ 130.957986] evdi: [D] evdi_painter_crtc_state_notify:483 (dev=1) Notifying crtc state: 3
[ 130.960755] evdi: [D] evdi_detect:76 (dev=1) Painter is connected
[ 130.960758] evdi: [D] evdi_painter_get_edid_copy:217 (dev=1) 00 ff ff
[ 130.967550] evdi: [D] evdi_detect:76 (dev=1) Painter is connected
[ 130.967554] evdi: [D] evdi_painter_get_edid_copy:217 (dev=1) 00 ff ff
[ 130.974550] [drm] DC: Cursor address is 0!
[ 130.978497] [drm] DC: Cursor address is 0!
[ 130.994313] [drm] DC: Cursor address is 0!
[ 130.999821] [drm] DC: Cursor address is 0!
[ 131.021278] evdi: [D] evdi_painter_mode_changed_notify:507 (dev=1) Notifying mode changed: 1680x1050@60; bpp 32;
[ 131.021284] evdi: [D] evdi_painter_mode_changed_notify:508 pixel format 875713112
[ 131.021358] evdi: [D] evdi_painter_crtc_state_notify:483 (dev=1) Notifying crtc state: 0
[ 131.021362] evdi: [D] evdi_painter_dpms_notify:470 (dev=1) Notifying dpms mode: 0
Full logs are in the attach zip file.

I tried installing a mainline kernel ( 4.19.1 ) but the driver wouldn't compile against 4.19.1 because it looks like some function in the kernel was renamed.


I am not sure where to go from here, any suggestions on the next step would be very much appreciated.

Thanks,
David
Attached Files
File Type: zip dl.zip (157.2 KB, 0 views)
dlublink is offline   Reply With Quote
Reply

Tags
18.04, amdgpu, displaylink, ubuntu

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 06:03 PM.


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