aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-12-14 15:30:54 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-12-15 05:26:54 -0500
commit5fca5ece6af8dd507c0459262766369e057e6d60 (patch)
treed5bc080a0cfc39178b8ce7def765b60656fc612e
parentda6c05969785a0f4108a089ef33c55f46ae21775 (diff)
drm/doc: Move legacy kms helpers to the very end
We don't want people to accidentally stumble over there. Also rename the plane helpers to legacy plane helpers. After Ville's patch to make the clipping helper atomic and move it to drm_atomic_helper.c there's nothing left in there that should be useful for modern drivers. v2: Laurent had a few questions around how state is added to drm_atomic_state, tried to clarify that. And spotted another sentence where the docs suggested subclassing. v3: Small polish (Alex). Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171214203054.20141-6-daniel.vetter@ffwll.ch
-rw-r--r--Documentation/gpu/drm-kms-helpers.rst36
-rw-r--r--Documentation/gpu/drm-kms.rst8
-rw-r--r--include/drm/drm_atomic.h4
3 files changed, 26 insertions, 22 deletions
diff --git a/Documentation/gpu/drm-kms-helpers.rst b/Documentation/gpu/drm-kms-helpers.rst
index 3ea622876b67..e37557b30f62 100644
--- a/Documentation/gpu/drm-kms-helpers.rst
+++ b/Documentation/gpu/drm-kms-helpers.rst
@@ -74,15 +74,6 @@ Helper Functions Reference
74.. kernel-doc:: drivers/gpu/drm/drm_atomic_helper.c 74.. kernel-doc:: drivers/gpu/drm/drm_atomic_helper.c
75 :export: 75 :export:
76 76
77Legacy CRTC/Modeset Helper Functions Reference
78==============================================
79
80.. kernel-doc:: drivers/gpu/drm/drm_crtc_helper.c
81 :doc: overview
82
83.. kernel-doc:: drivers/gpu/drm/drm_crtc_helper.c
84 :export:
85
86Simple KMS Helper Reference 77Simple KMS Helper Reference
87=========================== 78===========================
88 79
@@ -282,15 +273,6 @@ Flip-work Helper Reference
282.. kernel-doc:: drivers/gpu/drm/drm_flip_work.c 273.. kernel-doc:: drivers/gpu/drm/drm_flip_work.c
283 :export: 274 :export:
284 275
285Plane Helper Reference
286======================
287
288.. kernel-doc:: drivers/gpu/drm/drm_plane_helper.c
289 :doc: overview
290
291.. kernel-doc:: drivers/gpu/drm/drm_plane_helper.c
292 :export:
293
294Auxiliary Modeset Helpers 276Auxiliary Modeset Helpers
295========================= 277=========================
296 278
@@ -308,3 +290,21 @@ Framebuffer GEM Helper Reference
308 290
309.. kernel-doc:: drivers/gpu/drm/drm_gem_framebuffer_helper.c 291.. kernel-doc:: drivers/gpu/drm/drm_gem_framebuffer_helper.c
310 :export: 292 :export:
293
294Legacy Plane Helper Reference
295=============================
296
297.. kernel-doc:: drivers/gpu/drm/drm_plane_helper.c
298 :doc: overview
299
300.. kernel-doc:: drivers/gpu/drm/drm_plane_helper.c
301 :export:
302
303Legacy CRTC/Modeset Helper Functions Reference
304==============================================
305
306.. kernel-doc:: drivers/gpu/drm/drm_crtc_helper.c
307 :doc: overview
308
309.. kernel-doc:: drivers/gpu/drm/drm_crtc_helper.c
310 :export:
diff --git a/Documentation/gpu/drm-kms.rst b/Documentation/gpu/drm-kms.rst
index 420025bd6a9b..2dcf5b42015d 100644
--- a/Documentation/gpu/drm-kms.rst
+++ b/Documentation/gpu/drm-kms.rst
@@ -263,10 +263,10 @@ Taken all together there's two consequences for the atomic design:
263 263
264- An atomic update is assembled and validated as an entirely free-standing pile 264- An atomic update is assembled and validated as an entirely free-standing pile
265 of structures within the :c:type:`drm_atomic_state <drm_atomic_state>` 265 of structures within the :c:type:`drm_atomic_state <drm_atomic_state>`
266 container. Again drivers can subclass that container for their own state 266 container. Driver private state structures are also tracked in the same
267 structure tracking needs. Only when a state is committed is it applied to the 267 structure; see the next chapter. Only when a state is committed is it applied
268 driver and modeset objects. This way rolling back an update boils down to 268 to the driver and modeset objects. This way rolling back an update boils down
269 releasing memory and unreferencing objects like framebuffers. 269 to releasing memory and unreferencing objects like framebuffers.
270 270
271Read on in this chapter, and also in :ref:`drm_atomic_helper` for more detailed 271Read on in this chapter, and also in :ref:`drm_atomic_helper` for more detailed
272coverage of specific topics. 272coverage of specific topics.
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index 22b60075142e..1c27526c499e 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -246,6 +246,10 @@ struct __drm_private_objs_state {
246 * @num_private_objs: size of the @private_objs array 246 * @num_private_objs: size of the @private_objs array
247 * @private_objs: pointer to array of private object pointers 247 * @private_objs: pointer to array of private object pointers
248 * @acquire_ctx: acquire context for this atomic modeset state update 248 * @acquire_ctx: acquire context for this atomic modeset state update
249 *
250 * States are added to an atomic update by calling drm_atomic_get_crtc_state(),
251 * drm_atomic_get_plane_state(), drm_atomic_get_connector_state(), or for
252 * private state structures, drm_atomic_get_private_obj_state().
249 */ 253 */
250struct drm_atomic_state { 254struct drm_atomic_state {
251 struct kref ref; 255 struct kref ref;