drm: Remove command line guard for render nodes
Subsystems (2)
PATCH 1/1 drm: Remove command line guard for render nodes
Render nodes are ready to leave the experimental state so drop the kernel command line parameter which was hiding them by default. I swore we had already enabled these by default, that appears to not be the case.
--- drivers/gpu/drm/drm_stub.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/gpu/drm/drm_stub.c +1 -5
@@ -37,9 +37,6 @@unsigned int drm_debug =0 ;/* 1 to enable debug output */ EXPORT_SYMBOL (drm_debug); -unsigned int drm_rnodes =0 ;/* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL (drm_rnodes); -/* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes =0 ;EXPORT_SYMBOL (drm_universal_planes);
@@ -66,7 +63,6 @@ MODULE_PARM_DESC(timestamp_precision_usec, "Max. error on timestamps [usecs]");MODULE_PARM_DESC (timestamp_monotonic,"Use monotonic timestamps" );module_param_named (debug, drm_debug, int,0600 ); -module_param_named (rnodes, drm_rnodes, int,0600 );module_param_named (universal_planes, drm_universal_planes, int,0600 );module_param_named (vblankoffdelay, drm_vblank_offdelay, int,0600 );module_param_named (timestamp_precision_usec, drm_timestamp_precision, int,0600 );
@@ -588,7 +584,7 @@ struct drm_device *drm_dev_alloc(struct drm_driver *driver, goto err_minors; } -if (drm_core_check_feature (dev,DRIVER_RENDER ) && drm_rnodes) { +if (drm_core_check_feature (dev,DRIVER_RENDER )) { ret =drm_minor_alloc (dev,DRM_MINOR_RENDER );if (ret) goto err_minors;
Signature · 1 line
1.8.3.1
drivers/gpu/drm/drm_stub.c MODULE_PARM_DESC(timestamp_precision_usec, "Max. error on timestamps [usecs]");
Quoted 25 lines · Alex Deucher
Render nodes are ready to leave the experimental state so drop the kernel command line parameter which was hiding them by default. I swore we had already enabled these by default, that appears to not be the case.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/drm_stub.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)drivers/gpu/drm/drm_stub.c +0
-3@@ -37,9 +37,6 @@unsigned int drm_debug =0 ;/* 1 to enable debug output */ EXPORT_SYMBOL (drm_debug); -unsigned int drm_rnodes =0 ;/* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL (drm_rnodes); -/* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes =0 ;EXPORT_SYMBOL (drm_universal_planes);@@ -66,7 +63,6 @@ MODULE_PARM_DESC(timestamp_precision_usec, "Max. error on timestamps [usecs]");
I believe there's a MODULE_PARM_DESC() line for rnodes a couple lines above the context shown here that you'll also want to remove.
Matt
Quoted 23 lines
drivers/gpu/drm/drm_stub.c +1
-2MODULE_PARM_DESC (timestamp_monotonic,"Use monotonic timestamps" );module_param_named (debug, drm_debug, int,0600 ); -module_param_named (rnodes, drm_rnodes, int,0600 );module_param_named (universal_planes, drm_universal_planes, int,0600 );module_param_named (vblankoffdelay, drm_vblank_offdelay, int,0600 );module_param_named (timestamp_precision_usec, drm_timestamp_precision, int,0600 );@@ -588,7 +584,7 @@ struct drm_device *drm_dev_alloc(struct drm_driver *driver, goto err_minors; } -if (drm_core_check_feature (dev,DRIVER_RENDER ) && drm_rnodes) { +if (drm_core_check_feature (dev,DRIVER_RENDER )) { ret =drm_minor_alloc (dev,DRM_MINOR_RENDER );if (ret) goto err_minors;Signature · 6 lines
1.8.3.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 5 lines
Matt Roper Graphics Software Engineer IoTG Platform Enabling & Development Intel Corporation (916) 356-2795
Hi
Quoted 6 lines · Alex Deucher
Render nodes are ready to leave the experimental state so drop the kernel command line parameter which was hiding them by default. I swore we had already enabled these by default, that appears to not be the case.
Signed-off-by Alex Deucher <[email protected]>
I did send this for 3.15 but it was never applied. I have it still queued on my -next branch and Dave said he'll probably take it for the next release. I will include it in my next pull request [1].
Thanks
David
[1] http://cgit.freedesktop.org/~dvdhrm/linux/log/?h=drm-next
Quoted 42 lines
--- drivers/gpu/drm/drm_stub.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)drivers/gpu/drm/drm_stub.c +1
-6@@ -37,9 +37,6 @@unsigned int drm_debug =0 ;/* 1 to enable debug output */ EXPORT_SYMBOL (drm_debug); -unsigned int drm_rnodes =0 ;/* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL (drm_rnodes); -/* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes =0 ;EXPORT_SYMBOL (drm_universal_planes);@@ -66,7 +63,6 @@ MODULE_PARM_DESC(timestamp_precision_usec, "Max. error on timestamps [usecs]");MODULE_PARM_DESC (timestamp_monotonic,"Use monotonic timestamps" );module_param_named (debug, drm_debug, int,0600 ); -module_param_named (rnodes, drm_rnodes, int,0600 );module_param_named (universal_planes, drm_universal_planes, int,0600 );module_param_named (vblankoffdelay, drm_vblank_offdelay, int,0600 );module_param_named (timestamp_precision_usec, drm_timestamp_precision, int,0600 );@@ -588,7 +584,7 @@ struct drm_device *drm_dev_alloc(struct drm_driver *driver, goto err_minors; } -if (drm_core_check_feature (dev,DRIVER_RENDER ) && drm_rnodes) { +if (drm_core_check_feature (dev,DRIVER_RENDER )) { ret =drm_minor_alloc (dev,DRM_MINOR_RENDER );if (ret) goto err_minors; --1.8.3.1
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel