Skip to content

drm/amd/display: optimize reserved time candidates handling

Kuan-Wei Chiu amd-gfx lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Add early return when *list_a_size = 0 to fix a corner case.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/amd/display: Optimize reserved time candidates sorting using standard sort()drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.c+13 -100 replies
2/2drm/amd/display: Optimize remove_duplicates() from O(N^2) to O(N)drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.c+11 -101 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAlex Hung
1/2
2/2R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] drm/amd/display: optimize reserved time candidates handling

Optimize the handling of reserved time candidates by replacing the custom bubble sort with the kernel's standard sort() and rewriting duplicate removal with a linear-time fast/slow pointer method. The changes improve sorting from O(N^2) to O(N log N) and duplicate removal from O(N^2) to O(N), reducing computational overhead and eliminating hand-rolled implementations, while correctness has been verified with simple unit tests.
---
Changes from v1:
- Add early return when *list_a_size = 0 to fix a corner case.

v1: https://lore.kernel.org/lkml/[email protected]

Kuan-Wei Chiu (2):
drm/amd/display: Optimize reserved time candidates sorting using
standard sort()
drm/amd/display: Optimize remove_duplicates() from O(N^2) to O(N)

 .../dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.c   | 44 ++++++++++---------
 1 file changed, 24 insertions(+), 20 deletions(-)
Signature · 1 line
2.34.1