DisplayLink / evdi

Extensible Virtual Display Interface
MIT License
704 stars 184 forks source link

No screen show on rockchip rk3588 evb7(GPU mali g610) board #473

Open ukyo111 opened 3 months ago

ukyo111 commented 3 months ago

after cp evdi into /lib/modules/... then plugin USB cable, kernel log as follows: _[ 59.892794][ T2035] evdi: loading out-of-tree module taints kernel. [ 59.909256][ T2035] evdi: [I] Initialising logging on level 4 [ 59.920856][ T2035] evdi: [I] Atomic driver: yes [ 59.921152][ T2035] evdi: [I] Increasing device count to 1 [ 59.941799][ T2035] evdi: [I] (card2) Opened by Task 2035 (modprobe) of process 2035 (modprobe) [ 59.959218][ T2035] evdi evdi.0: [drm] Cannot find any crtc or sizes [ 59.972801][ T2035] [drm] Initialized evdi 1.14.4 20240410 for evdi.0 on minor 2 [ 59.976869][ T1316] evdi: [I] (card2) Opened by Task 1316 (Xorg) of process 1316 (Xorg) [ 59.987655][ T2035] evdi: [I] Evdi platformdevice create [ 60.003671][ T1316] evdi: [I] (card2) Closed by Task 1316 (Xorg) of process 1316 (Xorg) [ 60.031360][ T1316] evdi: [I] (card2) Opened by Task 1316 (Xorg) of process 1316 (Xorg) [ 60.047774][ T1316] evdi: [I] (card2) Closed by Task 1316 (Xorg) of process 1316 (Xorg) [ 60.063842][ T1316] evdi: [I] (card2) Opened by Task 1316 (Xorg) of process 1316 (Xorg) [ 60.081591][ T1316] mali fb000000.gpu: Firmware header version 0.3 not understood [ 60.096584][ T1316] mali fb000000.gpu: Firmware initialization failed [ 60.620482][ T2049] evdi: [I] Attaching to usb:2-1.3 [ 60.658179][ T2049] evdi: [I] (card2) Opened by Task 2049 (DesktopManagerE) of process 2040 (DisplayLinkMana) [ 60.678258][ T2049] evdi: [I] (card2) Closed by Task 2049 (DesktopManagerE) of process 2040 (DisplayLinkMana) <-------no Closed lines in x86's nomal log, instead is : Added i2c adapter bus number 11 [ 60.798718][ T2049] evdi: [I] (card2) Opened by Task 2049 (DesktopManagerE) of process 2040 (DisplayLinkMana) <------- Opened/Closed log lines keep going many times [ 60.818653][ T2049] evdi: [I] (card2) Closed by Task 2049 (DesktopManagerE) of process 2040 (DisplayLinkMana) [ 60.938771][ T2049] evdi: [I] (card2) Opened by Task 2049 (DesktopManagerE) of process 2040 (DisplayLinkMana) [ 60.958996][ T2049] evdi: [I] (card2) Closed by Task 2049 (DesktopManagerE) of process 2040 (DisplayLinkMana) ... There is a /dev/dri/card2 node file created, and under /var/log/dispalylink/, there is .edid files for the monitor, and log files, no readable part however. I also tried selecting udl in drivers/gpu/drm/, but still no working.

And on another kernel 5.10.160 of rockchip, "modprobe evdi" always causes kernel NULL pointer issue, still no screen show, log as follows: _[ 120.709251] evdi: [I] Initialising logging on level 4 [ 120.719377] evdi: [I] Atomic driver: yes [ 120.719733] evdi: [I] Increasing device count to 1 [ 120.737730] evdi: [I] (card2) Opened by Task 2031 (modprobe) of process 2031 (modprobe) [ 120.753832] evdi evdi.0: [drm] Cannot find any crtc or sizes [ 120.766398] [drm] Initialized evdi 1.14.4 20240410 for evdi.0 on minor 2 [ 120.776642] evdi: [I] (card2) Opened by Task 1112 (Xorg) of process 1112 (Xorg) [ 120.779873] evdi: [I] Evdi platform_device create [ 120.794431] evdi: [I] (card2) Closed by Task 1112 (Xorg) of process 1112 (Xorg) [ 120.818871] evdi: [I] (card2) Opened by Task 1112 (Xorg) of process 1112 (Xorg) [ 120.833517] evdi: [I] (card2) Closed by Task 1112 (Xorg) of process 1112 (Xorg) [ 120.848179] evdi: [I] (card2) Opened by Task 1112 (Xorg) of process 1112 (Xorg) [ 121.065636] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 121.084002] Mem abort info: [ 121.089880] ESR = 0x96000005 [ 121.096272] EC = 0x25: DABT (current EL), IL = 32 bits [ 121.107367] SET = 0, FnV = 0 [ 121.113747] EA = 0, S1PTW = 0 [ 121.120318] Data abort info: [ 121.126350] ISV = 0, ISS = 0x00000005 [ 121.134373] CM = 0, WnR = 0 [ 121.140596] user pgtable: 4k pages, 39-bit VAs, pgdp=00000001086e2000 [ 121.154056] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000 [ 121.172223] Internal error: Oops: 96000005 [#1] SMP [ 121.182402] Modules linked in: evdi(O) bcmdhd(O) dhd_static_buf [ 121.182421] CPU: 5 PID: 1112 Comm: Xorg Tainted: G O 5.10.160 #1 [ 121.182425] Hardware name: Rockchip RK3588 EVB7 LP4 V10 Board (DT) [ 121.182432] pstate: a0400009 (NzCv daif +PAN -UAO -TCO BTYPE=--) [ 121.182444] pc : sg_alloc_table_from_pages+0x114/0x470 [ 121.182453] lr : drm_prime_pages_to_sg+0x8c/0xd0 [ 121.182456] sp : ffffffc00b303a90 [ 121.182460] x29: ffffffc00b303a90 x28: 00000000fffff000 [ 121.182468] x27: 0000000000000300 x26: 0000000000000000 [ 121.182476] x25: 0000000000000000 x24: ffffffc00b0d5000 [ 121.182483] x23: ffffff813eaae390 x22: 0000000000300000 [ 121.182490] x21: 0000000000000000 x20: 0000000000000000 [ 121.182497] x19: ffffff8129caba80 x18: 0000000000000000 [ 121.182503] x17: 0000000000000000 x16: 0000000000000000 [ 121.182510] x15: 0000007fc2717aa8 x14: 0000000000000000 [ 121.182517] x13: 0000000000000000 x12: ffffffc008000000 [ 121.182524] x11: ffffffc009979598 x10: ffffffc009979598 [ 121.182531] x9 : 00000000000017f8 x8 : fffffffeffe00000 [ 121.182539] x7 : 0000000000000001 x6 : 0000000000000000 [ 121.182545] x5 : 00000000fffff000 x4 : 0000000000300000 [ 121.406817] x3 : 0000000000000000 x2 : 0000000000001000 [ 121.406824] x1 : fffffffeffe00000 x0 : 0000000000000000 [ 121.406831] Call trace: [ 121.406838] sg_alloc_table_from_pages+0x114/0x470 [ 121.406845] drm_prime_pages_to_sg+0x8c/0xd0 [ 121.406865] evdi_prime_get_sg_table+0x28/0x30 [evdi] [ 121.406871] drm_gem_map_dma_buf+0xb4/0xd4 [ 121.406881] dma_buf_map_attachment+0x94/0x100 [ 121.406888] kbase_mem_umm_map_attachment+0x4c/0x290 [ 121.406894] kbase_mem_import+0x784/0xe04 [ 121.406904] kbase_ioctl+0x2400/0x2c6c [ 121.406913] __arm64_sys_ioctl+0xb4/0xd4 [ 121.406923] el0_svc_common.constprop.0+0x8c/0x230 [ 121.406930] do_el0_svc+0x20/0x30 [ 121.406936] el0_svc+0x1c/0x2c [ 121.406942] el0_sync_handler+0xa8/0xac [ 121.406955] el0sync+0x158/0x180 [ 121.554445] [ 121.554445] PC: 0xffffffc008557e94: [ 121.564787] 7c94 52800004 d2800003 52801002 a90153f3 aa0003f4 97ffff0f 2a0003f3 350000a0 [ 121.581837] 7cb4 2a1303e0 a94153f3 a8c37bfd d65f03c0 f9400282 b4ffff62 b9400e81 340002c1 [ 121.598886] 7cd4 f90013f5 1400000b f947f040 5101fc21 b9000e81 927ef415 aa0203e0 52800001 [ 121.615934] 7cf4 97f21b9b aa1503e2 b9400e81 34000121 aa0203e0 7102003f 54fffe88 b9000e9f [ 121.632983] 7d14 540000e0 97f27906 d2800002 17fffff7 f94013f5 f900029f 17ffffe2 d2800015 [ 121.650030] 7d34 17ffffee d503201f d503201f a9bf7bfd 2a0003e2 910003fd 7102001f 540000a0 [ 121.667077] 7d54 d37b7c40 97f2713b a8c17bfd d65f03c0 2a0103e0 52800001 97f22721 a8c17bfd [ 121.684126] 7d74 d65f03c0 d503201f d503201f a9b87bfd 910003fd a90363f7 a90573fb 12144cbc [ 121.701174] 7d94 f90037e0 b9007be7 713fff9f 54002089 a90153f3 2a0203fb 2a0303f4 a9025bf5 ... Thanks!

displaylink.log.tar.gz