Skip to content

drm/amd/amdgpu/amdgpu_drv.c: Replace drm_modeset_*_all() with DRM_MODESET_LOCK_ALL_*()

Fabio M. De Francesco dri-devel outreachy 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/amd/amdgpu/amdgpu_drv.c: Replace drm_modeset_lock_all() with drm_modeset_lock_all_ctx()drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c+10 -31 reply
2/2drm/amd/amdgpu/amdgpu_drv.c: Replace drm_modeset_*_all_ctx() with DRM_MODESET_LOCK_ALL_*()drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c+2 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] drm/amd/amdgpu/amdgpu_drv.c: Replace drm_modeset_*_all() with DRM_MODESET_LOCK_ALL_*()

Replace the deprecated API with new helpers, according to the TODO list of the DRM subsystem. The new API has been introduced with commit
b7ea04d299c7: DRM_MODESET_LOCK_ALL_BEGIN() simplifies grabbing all modeset locks using a local context. This has the advantage of reducing boilerplate.

The work is carried out in two consecutive logical steps: the first patch converts the code to use drm_modeset_lock_all(), then the second does the final replace with DRM_MODESET_LOCK_ALL_*().

Changes from v2: The work is split in two consecutive logical steps. Changes from v1: Added further information to the commit message.

Fabio M. De Francesco (2):
drm/amd/amdgpu/amdgpu_drv.c: Replace drm_modeset_lock_all() with
drm_modeset_lock_all_ctx()
drm/amd/amdgpu/amdgpu_drv.c: Replace drm_modeset_*_all_ctx() with

    DRM_MODESET_LOCK_ALL_*()
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.31.1