Skip to contentSkip to conversation

drm/sched/tests: Remove relict of done_list

PATCH Applied Philipp Stanner 3 participants 3 messages Sep 19, 2025

Subsystems (3)
lore
Share & tools
lore

Philipp Stanner

author maintainer
#0 lore raw

PATCH 1/1 drm/sched/tests: Remove relict of done_list

A rework of the scheduler unit tests removed the done_list. That list is still mentioned in the mock test header.

Remove that relict.

Fixes 4576de9b7977 ("drm/sched/tests: Implement cancel_job() callback")
---
 drivers/gpu/drm/scheduler/tests/sched_tests.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/scheduler/tests/sched_tests.h +1 -2
index 7f31d35780cc..553d45abd057 100644
@@ -31,9 +31,8 @@
  *
  * @base: DRM scheduler base class
  * @test: Backpointer to owning the kunit test case
- * @lock: Lock to protect the simulated @hw_timeline, @job_list and @done_list
+ * @lock: Lock to protect the simulated @hw_timeline and @job_list
  * @job_list: List of jobs submitted to the mock GPU
- * @done_list: List of jobs completed by the mock GPU
  * @hw_timeline: Simulated hardware timeline has a @context, @next_seqno and
  *		 @cur_seqno for implementing a struct dma_fence signaling the
  *		 simulated job completion.
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Philipp Stanner

A rework of the scheduler unit tests removed the done_list. That list is still mentioned in the mock test header.

Remove that relict.

Fixes 4576de9b7977 ("drm/sched/tests: Implement cancel_job() callback")
---
  drivers/gpu/drm/scheduler/tests/sched_tests.h | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/scheduler/tests/sched_tests.h +0 -0
index 7f31d35780cc..553d45abd057 100644

drivers/gpu/drm/scheduler/tests/sched_tests.h line 38

Quoted 10 lines
drivers/gpu/drm/scheduler/tests/sched_tests.h +1 -2
@@ -31,9 +31,8 @@
   *
   * @base: DRM scheduler base class
   * @test: Backpointer to owning the kunit test case
- * @lock: Lock to protect the simulated @hw_timeline, @job_list and @done_list
+ * @lock: Lock to protect the simulated @hw_timeline and @job_list
   * @job_list: List of jobs submitted to the mock GPU
- * @done_list: List of jobs completed by the mock GPU
   * @hw_timeline: Simulated hardware timeline has a @context, @next_seqno and
   *		 @cur_seqno for implementing a struct dma_fence signaling the
   *		 simulated job completion.

Regards,

Tvrtko

#2 lore raw
Quoted 22 lines · Tvrtko Ursulin
Quoted 20 lines · Philipp Stanner

A rework of the scheduler unit tests removed the done_list. That list is still mentioned in the mock test header.

Remove that relict.

Fixes 4576de9b7977 ("drm/sched/tests: Implement cancel_job() callback")

---
  drivers/gpu/drm/scheduler/tests/sched_tests.h | 3 +--

  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/scheduler/tests/sched_tests.h +0 -1
index 7f31d35780cc..553d45abd057 100644
@@ -31,9 +31,8 @@
    *
    * @base: DRM scheduler base class
    * @test: Backpointer to owning the kunit test case
- * @lock: Lock to protect the simulated @hw_timeline, @job_list and @done_list
Quoted 8 lines

drivers/gpu/drm/scheduler/tests/sched_tests.h line 38

Quoted 6 lines
drivers/gpu/drm/scheduler/tests/sched_tests.h +1 -1
+ * @lock: Lock to protect the simulated @hw_timeline and @job_list
    * @job_list: List of jobs submitted to the mock GPU
- * @done_list: List of jobs completed by the mock GPU
    * @hw_timeline: Simulated hardware timeline has a @context, @next_seqno and
    *		 @cur_seqno for implementing a struct dma_fence signaling the
    *		 simulated job completion.

Applied to drm-misc-next

Thx
P.

Quoted 5 lines

Regards,

Tvrtko