Skip to content

Refactor and clean up codes of mst

Wayne Lin amd-gfx dri-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 10 repliesSuperseded
  3. v13 patches 13 repliesSuperseded

Changes in v3 from the cover letter

* Fix indention

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/mst: delete unnecessary case in drm_dp_add_payload_part2()drivers/gpu/drm/display/drm_dp_mst_topology.c+2 -60 replies
2/3drm/mst: Refactor the flow for payload allocation/removementdrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c drivers/gpu/drm/display/drm_dp_mst_topology.c drivers/gpu/drm/i915/display/intel_dp_mst.c +2 more+153 -880 replies
3/3drm/mst: adjust the function drm_dp_remove_payload_part2()drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c drivers/gpu/drm/display/drm_dp_mst_topology.c drivers/gpu/drm/i915/display/intel_dp_mst.c +2 more+40 -840 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchLyude Paul
1/3R-b
2/3R-b
3/3

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

Read the v3 thread

Cover letter [PATCH v3 0/3] Refactor and clean up codes of mst

This patch set is mainly trying to organize the mst code today a bit. Like to clarify and organize the sequence of mst payload allocation and removement.And also clean up some redundant codes today.

The main refactor one is the patch
"drm/mst: Refactor the flow for payload allocation/removement" which is adding a new enum variable in stuct drm_dp_mst_atomic_payload to represent the status of paylad alloction, and then handle the payload accordingly. Besides, rename some drm mst functions to better express the behind idea.

The other two patches are mainly to clean up unnecessary codes.

Changes since v1:
* Remove the set but not use variable 'old_payload' in function 'nv50_msto_prepare'. Catched by kernel test robot <[email protected]>

Changes since v2:
* Fix indention

Wayne Lin (3):
drm/mst: delete unnecessary case in drm_dp_add_payload_part2() drm/mst: Refactor the flow for payload allocation/removement drm/mst: adjust the function drm_dp_remove_payload_part2()

 .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c |  60 +-----
 drivers/gpu/drm/display/drm_dp_mst_topology.c | 189 +++++++++++-------
 drivers/gpu/drm/i915/display/intel_dp_mst.c   |  13 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.c       |  17 +-
 include/drm/display/drm_dp_mst_helper.h       |  22 +-
 5 files changed, 159 insertions(+), 142 deletions(-)
Signature · 1 line
2.37.3