[PATCH] drm/xe: remove sysfs entries on driver unbind

Lucas De Marchi lucas.demarchi at intel.com
Tue Apr 30 16:26:53 UTC 2024


On Tue, Apr 30, 2024 at 05:51:11PM GMT, Andrzej Hajda wrote:
>After unbinding driver from the device, driver is responsible for
>leaving the device in it's initial state, to be ready to bind to another
>driver or to rebind. Particularly device sysfs entries added by the driver
>should disappear. Removing them together with drm device is too late,
>as it's life-time can be prolonged by userspace keeping open drm
>descriptor. Removing them at driver's unbind seems the proper solution.

See https://lore.kernel.org/intel-xe/20240429121436.33013-9-matthew.auld@intel.com/T/#m32ebdc8631a54979ddb270017df39e97eebe339a
and https://lore.kernel.org/dri-devel/ZjDyVfJ1QFKQlG_4@phenom.ffwll.local/T/#u

Lucas De Marchi


More information about the Intel-xe mailing list