[Mesa-dev] [PATCH] gallium/winsys/kms: Close drm device filedescriptor on kms_dri_sw_winsys release

Lukasz Spintzyk lukasz.spintzyk at gmail.com
Mon Sep 5 16:48:17 UTC 2016


Hi,

This patch fixes issue where unloading kernel modules udl or evdi was
impossible due to not closed file descriptor.
As this library is loaded by Xorg after unpluging device the process
is still keeping file open making unload impossible.

Steps to reproduce:
 - Install latest xorg-server:
	To reproduce the issue you have to use latest xorg-server 1.18.4
https://lists.x.org/archives/xorg-devel/2016-July/050459.html
(There was an issue fixed in commit 5b4ced6d3a4c309e1792ac49017fb961a7262e7f 
which was crashing xserver and preventing clear device removal)
 - Plug-in usb 2.0 DisplayLink device. Additional display should be added.
 - Unplug usb device.
 - run command rmmod udl
You should see message:
rmmod: ERROR: Module udl is in use

This is my first patch here. I hope that it will not mess-up to much.

regards
Lukasz Spintzyk

Lukasz Spintzyk (1):
  gallium/winsys/kms: Close drm device filedescriptor on
    kms_dri_sw_winsys release

 src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.7.4



More information about the mesa-dev mailing list