drm: TODO: Add DRM_MODESET_LOCK_ALL* conversion to todo.rst
Subsystems (3)
PATCH 1/1 drm: TODO: Add DRM_MODESET_LOCK_ALL* conversion to todo.rst
From: Sean Paul <[email protected]>
We should also get the drivers using the helpers. Seems like a good intermediate TODO item.
--- Documentation/gpu/todo.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Documentation/gpu/todo.rst +12 -0
@@ -241,6 +241,18 @@ struct drm_gem_object_funcs GEM objects can now have a function table instead of having the callbacks on the DRM driver struct. This is now the preferred way and drivers can be moved over. +Use DRM_MODESET_LOCK_ALL_* helpers instead of boilerplate +--------------------------------------------------------- + +For cases where drivers are attempting to grab the modeset locks with a local +acquire context. Replace the boilerplate code surrounding +drm_modeset_lock_all_ctx() with DRM_MODESET_LOCK_ALL_BEGIN() and +DRM_MODESET_LOCK_ALL_END() instead. + +As a reference, take a look at the conversions already completed in drm core. + +Contact: Sean Paul, respective driver maintainers + Core refactorings =================
Signature · 6 lines
Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Sean Paul
From: Sean Paul <[email protected]>
We should also get the drivers using the helpers. Seems like a good intermediate TODO item.
Cc Daniel Vetter <[email protected]>Signed-off-by Sean Paul <[email protected]>
Quoted 9 lines
--- Documentation/gpu/todo.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)Documentation/gpu/todo.rst +0
-0
Documentation/gpu/todo.rst struct drm_gem_object_funcs · line 250
Quoted 10 lines
Documentation/gpu/todo.rst +7
-0@@ -241,6 +241,18 @@ struct drm_gem_object_funcs GEM objects can now have a function table instead of having the callbacks on the DRM driver struct. This is now the preferred way and drivers can be moved over. +Use DRM_MODESET_LOCK_ALL_* helpers instead of boilerplate +--------------------------------------------------------- + +For cases where drivers are attempting to grab the modeset locks with a local +acquire context. Replace the boilerplate code surrounding +drm_modeset_lock_all_ctx() with DRM_MODESET_LOCK_ALL_BEGIN() and +DRM_MODESET_LOCK_ALL_END() instead.
Maybe add:
"This should also be done for all places where drm_modest_lock_all() is still used."
Cheers, Daniel
Quoted 11 lines
Documentation/gpu/todo.rst +5
-0+ +As a reference, take a look at the conversions already completed in drm core. + +Contact: Sean Paul, respective driver maintainers + Core refactorings =================Signature · 1 line
Sean Paul, Software Engineer, Google / Chromium OS
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 1/1 drm: TODO: Add DRM_MODESET_LOCK_ALL* conversion to todo.rst
From: Sean Paul <[email protected]>
We should also get the drivers using the helpers. Seems like a good intermediate TODO item.
Changes in v2:
- Add line about replacing drm_modest_lock_all() (Daniel)
--- Documentation/gpu/todo.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
Documentation/gpu/todo.rst +15 -0
@@ -241,6 +241,21 @@ struct drm_gem_object_funcs GEM objects can now have a function table instead of having the callbacks on the DRM driver struct. This is now the preferred way and drivers can be moved over. +Use DRM_MODESET_LOCK_ALL_* helpers instead of boilerplate +--------------------------------------------------------- + +For cases where drivers are attempting to grab the modeset locks with a local +acquire context. Replace the boilerplate code surrounding +drm_modeset_lock_all_ctx() with DRM_MODESET_LOCK_ALL_BEGIN() and +DRM_MODESET_LOCK_ALL_END() instead. + +This should also be done for all places where drm_modest_lock_all() is still +used. + +As a reference, take a look at the conversions already completed in drm core. + +Contact: Sean Paul, respective driver maintainers + Core refactorings =================
Signature · 6 lines
Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Sean Paul
From: Sean Paul <[email protected]>
We should also get the drivers using the helpers. Seems like a good intermediate TODO item.
Changes in v2:
- Add line about replacingdrm_modest_lock_all()(Daniel)Acked-by Daniel Vetter <[email protected]>
Pushed this to -misc-next
Quoted 34 lines
Signed-off-by Sean Paul <[email protected]>--- Documentation/gpu/todo.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+)Documentation/gpu/todo.rst +15
-0@@ -241,6 +241,21 @@ struct drm_gem_object_funcs GEM objects can now have a function table instead of having the callbacks on the DRM driver struct. This is now the preferred way and drivers can be moved over. +Use DRM_MODESET_LOCK_ALL_* helpers instead of boilerplate +--------------------------------------------------------- + +For cases where drivers are attempting to grab the modeset locks with a local +acquire context. Replace the boilerplate code surrounding +drm_modeset_lock_all_ctx() with DRM_MODESET_LOCK_ALL_BEGIN() and +DRM_MODESET_LOCK_ALL_END() instead. + +This should also be done for all places where drm_modest_lock_all() is still +used. + +As a reference, take a look at the conversions already completed in drm core. + +Contact: Sean Paul, respective driver maintainers + Core refactorings =================Signature · 1 line
Sean Paul, Software Engineer, Google / Chromium OS
Signature · 5 lines
Sean Paul, Software Engineer, Google / Chromium OS _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel