Skip to contentSkip to conversation

drm/sched: fix the warning in drm_sched_job_done

PATCH In review Sunil Khatri 3 participants 5 messages Apr 17, 2025 – May 8, 2025

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

PATCH v2 1/1 drm/sched: fix the warning in drm_sched_job_done

Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member 'result' not described in 'drm_sched_job_done'

---
 drivers/gpu/drm/scheduler/sched_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/scheduler/sched_main.c +1 -0
index bfea608a7106..5cd29e92b133 100644
@@ -390,6 +390,7 @@ static void drm_sched_run_free_queue(struct drm_gpu_scheduler *sched)
 /**
  * drm_sched_job_done - complete a job
  * @s_job: pointer to the job which is done
+ * @result: error code for dma fence for scheduler
  *
  * Finish the job's fence and wake up the worker thread.
  */
Signature · 1 line
2.34.1
author Reviewed-by Tvrtko Ursulin on v2 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Ping ?

-----Original Message-----
From: Sunil Khatri <[email protected]>
Sent: Thursday, April 17, 2025 3:55 PM
To: [email protected]; [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Tvrtko Ursulin <[email protected]>; Pelloux-Prayer, Pierre-Eric <[email protected]>; Khatri, Sunil <[email protected]>
Subject: [PATCH v2] drm/sched: fix the warning in drm_sched_job_done

Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member 'result' not described in 'drm_sched_job_done'

---
 drivers/gpu/drm/scheduler/sched_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/scheduler/sched_main.c +1 -0
index bfea608a7106..5cd29e92b133 100644
@@ -390,6 +390,7 @@ static void drm_sched_run_free_queue(struct drm_gpu_scheduler *sched)
 /**
  * drm_sched_job_done - complete a job
  * @s_job: pointer to the job which is done
+ * @result: error code for dma fence for scheduler
  *
  * Finish the job's fence and wake up the worker thread.
  */

--
2.34.1

#2 lore raw

Adding Danilo and Philipp.

Christian.

Quoted 35 lines · Sunil

[AMD Official Use Only - AMD Internal Distribution Only]

Ping ?

-----Original Message-----
From: Sunil Khatri <[email protected]>
Sent: Thursday, April 17, 2025 3:55 PM
To: [email protected]; [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Tvrtko Ursulin <[email protected]>; Pelloux-Prayer, Pierre-Eric <[email protected]>; Khatri, Sunil <[email protected]>
Subject: [PATCH v2] drm/sched: fix the warning in drm_sched_job_done

Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member 'result' not described in 'drm_sched_job_done'

---
 drivers/gpu/drm/scheduler/sched_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/scheduler/sched_main.c +1 -1
index bfea608a7106..5cd29e92b133 100644
@@ -390,6 +390,7 @@ static void drm_sched_run_free_queue(struct drm_gpu_scheduler *sched)
 /**
  * drm_sched_job_done - complete a job
  * @s_job: pointer to the job which is done
+ * @result: error code for dma fence for scheduler
  *
  * Finish the job's fence and wake up the worker thread.
  */
--

2.34.1

#3 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Ping ?

Not picked yet while patches raised before this are merged.

Regards
Sunil Khatri

-----Original Message-----
From: Koenig, Christian <[email protected]>
Sent: Tuesday, April 29, 2025 12:49 PM
To: Khatri, Sunil <[email protected]>; [email protected]; Danilo Krummrich <[email protected]>; Philipp Stanner <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Tvrtko Ursulin <[email protected]>; Pelloux-Prayer, Pierre-Eric <[email protected]>
Subject: Re: [PATCH v2] drm/sched: fix the warning in drm_sched_job_done

Adding Danilo and Philipp.

Christian.

Quoted 35 lines · Sunil

[AMD Official Use Only - AMD Internal Distribution Only]

Ping ?

-----Original Message-----
From: Sunil Khatri <[email protected]>
Sent: Thursday, April 17, 2025 3:55 PM
To: [email protected]; [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Tvrtko Ursulin <[email protected]>; Pelloux-Prayer, Pierre-Eric <[email protected]>; Khatri, Sunil <[email protected]>
Subject: [PATCH v2] drm/sched: fix the warning in drm_sched_job_done

Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member 'result' not described in 'drm_sched_job_done'

---
 drivers/gpu/drm/scheduler/sched_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/scheduler/sched_main.c +1 -1
index bfea608a7106..5cd29e92b133 100644
@@ -390,6 +390,7 @@ static void drm_sched_run_free_queue(struct drm_gpu_scheduler *sched)
 /**
  * drm_sched_job_done - complete a job
  * @s_job: pointer to the job which is done
+ * @result: error code for dma fence for scheduler
  *
  * Finish the job's fence and wake up the worker thread.
  */
--

2.34.1

#4 lore raw
Quoted 3 lines · Sunil

[AMD Official Use Only - AMD Internal Distribution Only]

Ping ?

Hello,

sry, I was out for a few days.

Quoted 6 lines

Not picked yet while patches raised before this are merged.

Regards
Sunil Khatri

Quoted 11 lines

-----Original Message-----
From: Koenig, Christian <[email protected]>
Sent: Tuesday, April 29, 2025 12:49 PM
To: Khatri, Sunil <[email protected]>; [email protected]; Danilo Krummrich <[email protected]>; Philipp Stanner <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Tvrtko Ursulin <[email protected]>; Pelloux-Prayer, Pierre-Eric <[email protected]>
Subject: Re: [PATCH v2] drm/sched: fix the warning in drm_sched_job_done

Call it "docu warning" please

Quoted 32 lines

Adding Danilo and Philipp.

Christian.

Quoted 26 lines · Sunil

[AMD Official Use Only - AMD Internal Distribution Only]

Ping ?

-----Original Message-----
From: Sunil Khatri <[email protected]>
Sent: Thursday, April 17, 2025 3:55 PM
To: [email protected]; [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Tvrtko Ursulin <[email protected]>; Pelloux-Prayer, Pierre-Eric <[email protected]>; Khatri, Sunil <[email protected]>
Subject: [PATCH v2] drm/sched: fix the warning in drm_sched_job_done

Fix the below warning.
scheduler/sched_main.c:397: warning: Function parameter or struct member 'result' not described in 'drm_sched_job_done'

---
 drivers/gpu/drm/scheduler/sched_main.c | 1 +

 1 file changed, 1 insertion(+)
Quoted 11 lines

drivers/gpu/drm/scheduler/sched_main.c static void drm_sched_run_free_queue(struct · line 394

Quoted 11 lines
drivers/gpu/drm/scheduler/sched_main.c +1 -0
index bfea608a7106..5cd29e92b133 100644
@@ -390,6 +390,7 @@ static void drm_sched_run_free_queue(struct
 drm_gpu_scheduler *sched)
  /**
   * drm_sched_job_done - complete a job
   * @s_job: pointer to the job which is done
+ * @result: error code for dma fence for scheduler

s/dma fence/dma_fence

Besides, all good of course. Thank you.

P.

Quoted 7 lines
Quoted 6 lines
drivers/gpu/drm/scheduler/sched_main.c +0 -0
   *
   * Finish the job's fence and wake up the worker thread.

  */
--
2.34.1