Skip to content

drm/msm/mdp5: Encoder related cleanups

Archit Taneja dri-devel linux-arm-msm 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v16 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Rebase over bridge API updates going in 4.11
- Fix issues seen when calling kms func's set_encoder_mode for devices where the control/primary device is of the type mipi_dsi_device

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/msm: Construct only one encoder for DSIdrivers/gpu/drm/msm/dsi/dsi.c drivers/gpu/drm/msm/dsi/dsi.h drivers/gpu/drm/msm/dsi/dsi_manager.c +3 more+32 -670 replies
2/6drm/msm: Set encoder's mode of operation using a kms funcdrivers/gpu/drm/msm/dsi/dsi.h drivers/gpu/drm/msm/dsi/dsi_host.c drivers/gpu/drm/msm/dsi/dsi_manager.c +4 more+68 -30 replies
3/6drm/msm/mdp5: Prepare for merging video and command encodersdrivers/gpu/drm/msm/mdp/mdp5/mdp5_encoder.c drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h+28 -100 replies
4/6drm/msm/mdp5: Create single encoder per interface (INTF)drivers/gpu/drm/msm/mdp/mdp5/mdp5_cmd_encoder.c drivers/gpu/drm/msm/mdp/mdp5/mdp5_encoder.c drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c +1 more+66 -1560 replies
5/6drm/msm/mdp5: cfg: Change count to unsigned intdrivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h+1 -10 replies
6/6drm/msm/mdp5: Create only as many CRTCs as we needdrivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c+29 -100 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/6] drm/msm/mdp5: Encoder related cleanups

The MDP5 and DSI drivers created 2 drm_encoders for a DSI interface (one for each mode of operation). This set creates one encoder per DSI interface. This is needed by the updated drm_bridge API.

Now, with the # encoders equal to the # of displays, we can create the right # of CRTCs. We previously created LM # of CRTCs, which was a bit unnecessary.

Changes in v2:
- Rebase over bridge API updates going in 4.11
- Fix issues seen when calling kms func's set_encoder_mode for devices where the control/primary device is of the type mipi_dsi_device

Archit Taneja (6):
drm/msm: Construct only one encoder for DSI drm/msm: Set encoder's mode of operation using a kms func drm/msm/mdp5: Prepare for merging video and command encoders drm/msm/mdp5: Create single encoder per interface (INTF) drm/msm/mdp5: cfg: Change count to unsigned int drm/msm/mdp5: Create only as many CRTCs as we need

 drivers/gpu/drm/msm/dsi/dsi.c                   |  14 +--
 drivers/gpu/drm/msm/dsi/dsi.h                   |   5 +-
 drivers/gpu/drm/msm/dsi/dsi_host.c              |   2 +
 drivers/gpu/drm/msm/dsi/dsi_manager.c           |  61 +++++++----
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c         |  28 +++--
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h         |   2 +-
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_cmd_encoder.c | 135 +++---------------------
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_encoder.c     |  77 ++++++++++----
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c         |  86 ++++++++-------
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h         |  37 +++++--
 drivers/gpu/drm/msm/msm_drv.h                   |  11 +-
 drivers/gpu/drm/msm/msm_kms.h                   |   3 +
 12 files changed, 219 insertions(+), 242 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation