evdi
evdi copied to clipboard
evdi_device_add hangs and freezes the display
Part way though today evdi_device_add
and echo 1 | sudo tee /etc/devices/evdi/add
both started hanging. The display would freeze except for the mouse, and I would have to force power off to recover. I can't figure out what change I made that caused this to start happening.
The logs look fine to me:
Mar 23 16:39:31 localhost kernel: [ 205.219493] evdi: [I] Initialising logging on level 5
Mar 23 16:39:48 localhost kernel: [ 205.219494] evdi: [I] Atomic driver:yes
Mar 23 16:39:48 localhost kernel: [ 222.114059] evdi: [D] evdi_add_devices:158 Increasing device count to 1
Mar 23 16:39:48 localhost kernel: [ 222.114278] evdi: [D] evdi_crtc_init:389 drm_crtc_init: 0 p00000000583ec956
Mar 23 16:39:48 localhost kernel: [ 222.114302] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
Mar 23 16:39:48 localhost kernel: [ 222.114315] evdi evdi.0: [drm] Cannot find any crtc or sizes
Mar 23 16:39:48 localhost kernel: [ 222.114332] evdi: [W] evdi_painter_send_update_ready_if_needed:659 Painter does not exist!
Mar 23 16:39:48 localhost kernel: [ 222.114682] [drm] Initialized evdi 1.8.0 20200707 for evdi.0 on minor 1
Mar 23 16:39:48 localhost kernel: [ 222.179784] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
Mar 23 16:39:48 localhost kernel: [ 222.179827] evdi: [D] evdi_painter_framebuffer_size:595 Scanout buffer not set.
Mar 23 16:39:48 localhost kernel: [ 222.179827] evdi: [D] evdi_painter_mark_dirty:622 (dev=0) Skip clip rect. Scanout buffer not set.
Mar 23 16:39:48 localhost kernel: [ 222.179831] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
Mar 23 16:39:48 localhost kernel: [ 222.180070] evdi: [D] evdi_painter_dpms_notify:668 (dev=0) Notifying dpms mode: 3
Mar 23 16:39:48 localhost kernel: [ 222.180071] evdi: [W] evdi_painter_send_event:321 Painter is not connected!
Mar 23 16:39:48 localhost kernel: [ 222.222660] evdi: [D] evdi_painter_dpms_notify:668 (dev=0) Notifying dpms mode: 3
Mar 23 16:39:49 localhost kernel: [ 222.222661] evdi: [W] evdi_painter_send_event:321 Painter is not connected!
Mar 23 16:39:49 localhost kernel: [ 222.326938] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
Mar 23 16:39:49 localhost kernel: [ 223.148458] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
Mar 23 16:39:49 localhost kernel: [ 223.148506] evdi: [D] evdi_detect:94 (dev=0) poll connector state: disconnected
As a workaround I configured the module params to start off with a device, which works better anyhow. This also caused evdi_device_add
to start working again.
I expect this issue probably doesn't have enough info in it to diagnose what's going on. I wasn't sure if it would be helpful or not. Please feel free to just close it.
System info
I reproduced on v1.9.1, v1.9.0, v1.8.0, and v1.7.0. I can't build any older on my laptop.
> uname -srv
Linux 5.8.0-7642-generic #47~1614007149~20.10~82fb226-Ubuntu SMP Tue Feb 23 02:59:01 UTC
> gnome-shell --version
GNOME Shell 3.38.2
> X -version
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.15.0-130-generic x86_64 Ubuntu
Current Operating System: Linux daniel-darter 5.8.0-7642-generic #47~1614007149~20.10~82fb226-Ubuntu SMP Tue Feb 23 02:59:01 UTC x86_64
Kernel command line: initrd=\EFI\Pop_OS-c4f52f59-25e7-4306-b446-fceaed8a1352\initrd.img root=UUID=c4f52f59-25e7-4306-b446-fceaed8a1352 ro quiet loglevel=0 systemd.show_status=false splash
Build Date: 17 January 2021 09:13:31AM
xorg-server 2:1.20.9-2ubuntu1.2~20.04.1 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.38.4
I have what I think may be a similar problem: "Part way though today ... The display would freeze except for the mouse, and I would have to force power off to recover. I can't figure out what change I made that caused this to start happening." The following lines repeat a bajillion times in syslog until I rebooted:
Mar 8 13:22:35 Dell-E6410 kernel: [17267.128291] evdi: [D] evdi_painter_framebuffer_size:569 Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.128317] evdi: [D] evdi_painter_mark_dirty:597 (card1) Skip clip rect. Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.136376] evdi: [D] evdi_painter_framebuffer_size:569 Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.136379] evdi: [D] evdi_painter_mark_dirty:597 (card1) Skip clip rect. Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.160343] evdi: [D] evdi_painter_framebuffer_size:569 Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.160345] evdi: [D] evdi_painter_mark_dirty:597 (card1) Skip clip rect. Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.208291] evdi: [D] evdi_painter_framebuffer_size:569 Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.208311] evdi: [D] evdi_painter_mark_dirty:597 (card1) Skip clip rect. Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.216431] evdi: [D] evdi_painter_framebuffer_size:569 Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.216433] evdi: [D] evdi_painter_mark_dirty:597 (card1) Skip clip rect. Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.224401] evdi: [D] evdi_painter_framebuffer_size:569 Scanout buffer not set.
Mar 8 13:22:35 Dell-E6410 kernel: [17267.224403] evdi: [D] evdi_painter_mark_dirty:597 (card1) Skip clip rect. Scanout buffer not set.
Any ideas?
glxinfo | grep OpenGL
OpenGL vendor string: nouveau
OpenGL renderer string: NVA8
OpenGL core profile version string: 3.3 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.3 (Compatibility Profile) Mesa 21.2.6
OpenGL shading language version string: 3.30
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:
inxi --graphics
Graphics:
Device-1: NVIDIA GT218M [NVS 3100M] driver: nouveau v: kernel
Display: x11 server: X.Org 1.20.13 driver: modesetting
unloaded: fbdev,vesa resolution: 1920x1200_60.00~60Hz
OpenGL: renderer: NVA8 v: 3.3 Mesa 21.2.6