Skip to contentSkip to conversation

drm/sched: Document entity->stopped is protect by entity->lock

PATCH In review Tvrtko Ursulin 2 participants 5 messages Oct 2 – Oct 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/sched: Document entity->stopped is protect by entity->lock

Commit
0e118b936dc5 ("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.

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
index 563d7fb88a6d..3b0978fa8cf0 100644
@@ -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
#1 lore raw
Quoted 4 lines · Tvrtko Ursulin

Commit
0e118b936dc5 ("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.

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
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
index 563d7fb88a6d..3b0978fa8cf0 100644
@@ -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;

#2 lore raw
Quoted 10 lines · Philipp Stanner
Quoted 4 lines · Tvrtko Ursulin

Commit
0e118b936dc5 ("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.

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
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
index 563d7fb88a6d..3b0978fa8cf0 100644
@@ -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;
 
#3 lore raw
Quoted 8 lines · Tvrtko Ursulin
Quoted 6 lines · Philipp Stanner
Quoted 4 lines · Tvrtko Ursulin

Commit
0e118b936dc5 ("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.

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
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
index 563d7fb88a6d..3b0978fa8cf0 100644
@@ -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;

#4 lore raw
Quoted 14 lines · Philipp Stanner
Quoted 13 lines · Tvrtko Ursulin
Quoted 10 lines · Philipp Stanner
Quoted 4 lines · Tvrtko Ursulin

Commit
0e118b936dc5 ("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.

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

Thank you, pushed!

Regards,

Tvrtko

Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
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
index 563d7fb88a6d..3b0978fa8cf0 100644
@@ -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;