Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/vkms: Allow to configure the default device creation

Add a new module param to allow to create or not the default VKMS
instance. Useful when combined with configfs to avoid having additional
VKMS instances.

Tested-by: Mark Yacoub <markyacoub@google.com>
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Link: https://lore.kernel.org/r/20251016175618.10051-13-jose.exposito89@gmail.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

authored by

José Expósito and committed by
Luca Ceresoli
8c29107a 64229b84

+7
+7
drivers/gpu/drm/vkms/vkms_drv.c
··· 50 50 module_param_named(enable_overlay, enable_overlay, bool, 0444); 51 51 MODULE_PARM_DESC(enable_overlay, "Enable/Disable overlay support"); 52 52 53 + static bool create_default_dev = true; 54 + module_param_named(create_default_dev, create_default_dev, bool, 0444); 55 + MODULE_PARM_DESC(create_default_dev, "Create or not the default VKMS device"); 56 + 53 57 DEFINE_DRM_GEM_FOPS(vkms_driver_fops); 54 58 55 59 static void vkms_atomic_commit_tail(struct drm_atomic_state *old_state) ··· 222 218 ret = vkms_configfs_register(); 223 219 if (ret) 224 220 return ret; 221 + 222 + if (!create_default_dev) 223 + return 0; 225 224 226 225 config = vkms_config_default_create(enable_cursor, enable_writeback, enable_overlay); 227 226 if (IS_ERR(config))