drm/sched: Document entity->stopped is protect by entity->lock
Subsystems (2)
PATCH 1/1 drm/sched: Document entity->stopped is protect by entity->lock
Commit0e118b936dc5 ("drm/sched: Lock drm_sched_entity_is_idle()") has removed the last unlocked entity->stopped access so lets officially document it in kerneldoc as locked with the entity lock.
--- include/drm/gpu_scheduler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/gpu_scheduler.h +1 -1
@@ -101,7 +101,7 @@ struct drm_sched_entity {* * Lock protecting the run-queue (@rq) to which this entity belongs, * @priority, @last_scheduled and the list of schedulers (@sched_list, -* @num_sched_list) and @rr_ts. +* @num_sched_list), @rr_ts and @stopped. */ spinlock_t lock;
Signature · 1 line
2.55.0
Quoted 4 lines · Tvrtko Ursulin
Commit
0e118b936dc5("drm/sched: Lockdrm_sched_entity_is_idle()") has removed the last unlockedentity->stoppedaccess so lets officially document it in kerneldoc as locked with the entity lock.
Ah nice, I overlooked that. Thx for fixing.
Nit: typo in the commit title, "protectED". I can fix that at applying if you want.
P.
Quoted 23 lines
Signed-off-by Tvrtko Ursulin <[email protected]>Cc Christian König <[email protected]>Cc Danilo Krummrich <[email protected]>Cc Matthew Brost <[email protected]>Cc Philipp Stanner <[email protected]>---
include/drm/gpu_scheduler.h | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)include/drm/gpu_scheduler.h +1
-1@@ -101,7 +101,7 @@ struct drm_sched_entity {* * Lock protecting the run-queue (@rq) to which this entity belongs, * @priority, @last_scheduled and the list of schedulers (@sched_list, -* @num_sched_list) and @rr_ts. +* @num_sched_list), @rr_ts and @stopped. */ spinlock_t lock;
Quoted 10 lines · Philipp Stanner
Quoted 4 lines · Tvrtko Ursulin
Commit
0e118b936dc5("drm/sched: Lockdrm_sched_entity_is_idle()") has removed the last unlockedentity->stoppedaccess so lets officially document it in kerneldoc as locked with the entity lock.Ah nice, I overlooked that. Thx for fixing.
Nit: typo in the commit title, "protectED". I can fix that at applying if you want.
Ah yes, best not to spam the list for that. If you want I can push and tweak as well.
Tvrtko
Quoted 23 lines
Quoted 23 lines
Signed-off-by Tvrtko Ursulin <[email protected]>Cc Christian König <[email protected]>Cc Danilo Krummrich <[email protected]>Cc Matthew Brost <[email protected]>Cc Philipp Stanner <[email protected]>--- include/drm/gpu_scheduler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/gpu_scheduler.h +1
-1@@ -101,7 +101,7 @@ struct drm_sched_entity {* * Lock protecting the run-queue (@rq) to which this entity belongs, * @priority, @last_scheduled and the list of schedulers (@sched_list, -* @num_sched_list) and @rr_ts. +* @num_sched_list), @rr_ts and @stopped. */ spinlock_t lock;
Philipp Stanner
Acked-byQuoted 8 lines · Tvrtko Ursulin
Quoted 6 lines · Philipp Stanner
Quoted 4 lines · Tvrtko Ursulin
Commit
0e118b936dc5("drm/sched: Lockdrm_sched_entity_is_idle()") has removed the last unlockedentity->stoppedaccess so lets officially document it in kerneldoc as locked with the entity lock.
Quoted 7 lines
Quoted 4 lines
Ah nice, I overlooked that. Thx for fixing.
Nit: typo in the commit title, "protectED". I can fix that at applying if you want.
Ah yes, best not to spam the list for that. If you want I can push and tweak as well.
fine by me
Quoted 25 lines
Tvrtko
Quoted 23 lines
Quoted 23 lines
Signed-off-by Tvrtko Ursulin <[email protected]>Cc Christian König <[email protected]>Cc Danilo Krummrich <[email protected]>Cc Matthew Brost <[email protected]>Cc Philipp Stanner <[email protected]>---
include/drm/gpu_scheduler.h | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)include/drm/gpu_scheduler.h +1
-1@@ -101,7 +101,7 @@ struct drm_sched_entity {* * Lock protecting the run-queue (@rq) to which this entity belongs, * @priority, @last_scheduled and the list of schedulers (@sched_list, -* @num_sched_list) and @rr_ts. +* @num_sched_list), @rr_ts and @stopped. */ spinlock_t lock;
Quoted 14 lines · Philipp Stanner
Quoted 13 lines · Tvrtko Ursulin
Quoted 10 lines · Philipp Stanner
Quoted 4 lines · Tvrtko Ursulin
Commit
0e118b936dc5("drm/sched: Lockdrm_sched_entity_is_idle()") has removed the last unlockedentity->stoppedaccess so lets officially document it in kerneldoc as locked with the entity lock.Ah nice, I overlooked that. Thx for fixing.
Nit: typo in the commit title, "protectED". I can fix that at applying if you want.
Quoted 6 lines
Quoted 2 lines
Ah yes, best not to spam the list for that. If you want I can push and tweak as well.
fine by me
Acked-by Philipp Stanner <[email protected]>
Thank you, pushed!
Regards,
Tvrtko
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Signed-off-by Tvrtko Ursulin <[email protected]>Cc Christian König <[email protected]>Cc Danilo Krummrich <[email protected]>Cc Matthew Brost <[email protected]>Cc Philipp Stanner <[email protected]>--- include/drm/gpu_scheduler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/gpu_scheduler.h +1
-1@@ -101,7 +101,7 @@ struct drm_sched_entity {* * Lock protecting the run-queue (@rq) to which this entity belongs, * @priority, @last_scheduled and the list of schedulers (@sched_list, -* @num_sched_list) and @rr_ts. +* @num_sched_list), @rr_ts and @stopped. */ spinlock_t lock;