drm/amdgpu: fix doc by clarifying sched_list definition
Subsystems (3)
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
@@ -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
@@ -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
That looks excellent--thank you for submitting it.
Hopefully, the documentation would be more accessible to everyone, so that everyone would contribute.
Regards,
Luben
Quoted 29 lines · Nirmoy Das
expand
sched_listdefinition for better understanding. Also fix a typo atleast -> at leastSigned-off-by Nirmoy Das <[email protected]>--- 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@@ -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@@ -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
If we're worrying about spelling and grammar, see one more nitpick inline.
Quoted 27 lines · Nirmoy Das
expand
sched_listdefinition for better understanding. Also fix a typo atleast -> at leastSigned-off-by Nirmoy Das <[email protected]>--- 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@@ -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
include/drm/gpu_scheduler.h enum drm_sched_priority { · line 56
Quoted 7 lines
include/drm/gpu_scheduler.h +2
-2@@ -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
There's no reason to separate the subject from the verb here with a comma.
include/drm/gpu_scheduler.h enum drm_sched_priority { · line 60
Quoted 4 lines
include/drm/gpu_scheduler.h +1
-0+* 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
Quoted 4 lines · William Lewis
Quoted 3 lines
+ * @sched_list: A list of schedulers (
drm_gpu_schedulers).
+ * Jobs from this entity, can be scheduled on any schedulerThere's no reason to separate the subject from the verb here with a comma.
Thanks William.
Quoted 9 lines
Quoted 5 lines
+ * on this list.
* @num_sched_list: number ofdrm_gpu_schedulersin thesched_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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cnirmoy.das%40amd.com%7C24185c9d87dd43ce38b008d79e7eaef1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637152139396188784&sdata=VT66q3X3Std9v11mnTJ9ww6FJODJWoo6IGu8iVFevGs%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx