All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Refactor and clean up codes of mst
@ 2023-08-24  4:13 ` Wayne Lin
  0 siblings, 0 replies; 8+ messages in thread
From: Wayne Lin @ 2023-08-24  4:13 UTC (permalink / raw)
  To: dri-devel, amd-gfx
  Cc: jani.nikula, imre.deak, jerry.zuo, Wayne Lin, harry.wentland,
	ville.syrjala

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 <lkp@intel.com>

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(-)

-- 
2.37.3


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-24  4:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-24  4:13 [PATCH v3 0/3] Refactor and clean up codes of mst Wayne Lin
2023-08-24  4:13 ` Wayne Lin
2023-08-24  4:13 ` [PATCH v3 1/3] drm/mst: delete unnecessary case in drm_dp_add_payload_part2() Wayne Lin
2023-08-24  4:13   ` Wayne Lin
2023-08-24  4:13 ` [PATCH v3 2/3] drm/mst: Refactor the flow for payload allocation/removement Wayne Lin
2023-08-24  4:13   ` Wayne Lin
2023-08-24  4:13 ` [PATCH v3 3/3] drm/mst: adjust the function drm_dp_remove_payload_part2() Wayne Lin
2023-08-24  4:13   ` Wayne Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.