Skip to content

drm/msm/dpu: remove dpu_encoder_phys_ops::atomic_mode_set callback

Dmitry Baryshkov dri-devel linux-arm-msm 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am 20240208-fd_remove_phys_ops_atomic_mode_set-v4-0-caf5dcd125c0@linaro.org change-id 20240208-fd_remove_phys_ops_atomic_mode_set-ab706706b374

Versions newest first · linked by author and title

  1. v4 Latest5 patches 8 repliesApplied
  2. v35 patches 8 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches6 repliesSuperseded

Changes in v4 from the cover letter

- Fixed the crash in dpu_wb_conn_atomic_check (Abhinav)

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/5drm/msm/dpu: split irq_control into irq_enable and _disabledrivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c +3 more+158 -861 reply
2/5drm/msm/dpu: split _dpu_encoder_resource_control_helper()drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h+37 -201 reply
3/5drm/msm/dpu: drop dpu_encoder_phys_ops.atomic_mode_setdrivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c +2 more+17 -461 reply
4/5drm/msm/dpu: move writeback's atomic_check to dpu_writeback.cdrivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c +1 more+68 -593 replies
5/5drm/msm/dpu: drop dpu_encoder_phys_ops::atomic_check()drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h+0 -191 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAbhinav KumarPaloma Arellano
1/5R-b T-b
2/5R-b T-b
3/5R-b T-b T-b
4/5R-b T-b T-b
5/5R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] drm/msm/dpu: remove dpu_encoder_phys_ops::atomic_mode_set callback

The dpu_encoder_phys_ops::atomic_mode_set() callback is mostly redundant. Implementations only set the IRQ indices there. Move statically allocated IRQs to dpu_encoder_phys_*_init() and set dynamically allocated IRQs in the irq_enable() callback.

The writeback backend of the dpu_encoder is the only user of the dpu_encoder_phys_ops::atomic_check() callback. Move corresponding code to the DPU's drm_writeback_connector implementation (dpu_writeback.c) and drop corresponding callback code.

Changes since v3:
- Fixed the crash in dpu_wb_conn_atomic_check (Abhinav)

Changes since v2:
- Rebase on top of linux-next
- Also incorporate the dpu_encoder_phys::atomic_check series

Changes since v1:
- Split trace events into enable/disable pairs (Abhinav).

Dmitry Baryshkov (5):
drm/msm/dpu: split irq_control into irq_enable and _disable drm/msm/dpu: split _dpu_encoder_resource_control_helper() drm/msm/dpu: drop dpu_encoder_phys_ops.atomic_mode_set drm/msm/dpu: move writeback's atomic_check to dpu_writeback.c drm/msm/dpu: drop dpu_encoder_phys_ops::atomic_check()

 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c   | 94 ++++++++++--------
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h  | 15 +--
 .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c  | 95 +++++++++----------
 .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c  | 59 ++++++------
 .../drm/msm/disp/dpu1/dpu_encoder_phys_wb.c   | 88 ++++-------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c       |  9 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h     | 74 +++++++++++----
 drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c | 57 ++++++++++-
 drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.h |  3 +-
 9 files changed, 270 insertions(+), 224 deletions(-)

--
2.39.2

---
Dmitry Baryshkov (5):
drm/msm/dpu: split irq_control into irq_enable and _disable drm/msm/dpu: split _dpu_encoder_resource_control_helper() drm/msm/dpu: drop dpu_encoder_phys_ops.atomic_mode_set drm/msm/dpu: move writeback's atomic_check to dpu_writeback.c drm/msm/dpu: drop dpu_encoder_phys_ops::atomic_check()

 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c        | 94 ++++++++++++---------
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h   | 15 +---
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c   | 95 +++++++++++-----------
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c   | 59 ++++++--------
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c    | 88 ++++----------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c            |  9 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h          | 74 +++++++++++++----
 drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c      | 61 +++++++++++++-
 drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.h      |  3 +-
 9 files changed, 274 insertions(+), 224 deletions(-)

---
base-commit: b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d
change-id: 20240208-fd_remove_phys_ops_atomic_mode_set-ab706706b374

Best regards,

Signature · 1 line
Dmitry Baryshkov <[email protected]>