Skip to contentSkip to conversation

drm/amdgpu: fix doc by clarifying sched_list definition

PATCH In review Nirmoy Das 2 participants 2 messages Jan 22, 2020

Subsystems (3)
lore
Share & tools
lore

Nirmoy Das

author
#0 lore raw

PATCH 1/1 drm/amdgpu: fix doc by clarifying sched_list definition

expand sched_list definition for better understanding. Also fix a typo atleast -> at least

---
 drivers/gpu/drm/scheduler/sched_entity.c | 2 +-
 include/drm/gpu_scheduler.h              | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/scheduler/sched_entity.c +1 -1
index ec79e8e5ad3c..63bccd201b97 100644
@@ -45,7 +45,7 @@
  * @guilty: atomic_t set to 1 when a job on this queue
  *          is found to be guilty causing a timeout
  *
- * Note: the sched_list should have atleast one element to schedule
+ * Note: the sched_list should have at least one element to schedule
  *       the entity
  *
  * Returns 0 on success or a negative error code on failure.
include/drm/gpu_scheduler.h +3 -2
index 9e71be129c30..589be851f8a1 100644
@@ -52,8 +52,9 @@ enum drm_sched_priority {
  * @list: used to append this struct to the list of entities in the
  *        runqueue.
  * @rq: runqueue on which this entity is currently scheduled.
- * @sched_list: a list of drm_gpu_schedulers on which jobs from this entity can
- *              be scheduled
+ * @sched_list: A list of schedulers (drm_gpu_schedulers).
+ *              Jobs from this entity can be scheduled on any scheduler
+ *              on this list.
  * @num_sched_list: number of drm_gpu_schedulers in the sched_list.
  * @rq_lock: lock to modify the runqueue to which this entity belongs.
  * @job_queue: the list of jobs of this entity.
Signature · 6 lines
2.24.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

Am 22.01.20 um 10:38 schrieb Nirmoy Das:

Quoted 4 lines

expand sched_list definition for better understanding. Also fix a typo atleast -> at least

Quoted 24 lines
---
  drivers/gpu/drm/scheduler/sched_entity.c | 2 +-
  include/drm/gpu_scheduler.h              | 5 +++--
  2 files changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/scheduler/sched_entity.c +1 -1
index ec79e8e5ad3c..63bccd201b97 100644
@@ -45,7 +45,7 @@
   * @guilty: atomic_t set to 1 when a job on this queue
   *          is found to be guilty causing a timeout
   *
- * Note: the sched_list should have atleast one element to schedule
+ * Note: the sched_list should have at least one element to schedule
   *       the entity
   *
   * Returns 0 on success or a negative error code on failure.
include/drm/gpu_scheduler.h +0 -0
index 9e71be129c30..589be851f8a1 100644
@@ -52,8 +52,9 @@ enum drm_sched_priority {
   * @list: used to append this struct to the list of entities in the

include/drm/gpu_scheduler.h enum drm_sched_priority { · line 60

Quoted 10 lines
include/drm/gpu_scheduler.h +3 -2
   *        runqueue.
   * @rq: runqueue on which this entity is currently scheduled.
- * @sched_list: a list of drm_gpu_schedulers on which jobs from this entity can
- *              be scheduled
+ * @sched_list: A list of schedulers (drm_gpu_schedulers).
+ *              Jobs from this entity can be scheduled on any scheduler
+ *              on this list.
   * @num_sched_list: number of drm_gpu_schedulers in the sched_list.
   * @rq_lock: lock to modify the runqueue to which this entity belongs.
   * @job_queue: the list of jobs of this entity.

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx