Commit f8ad757e authored by Randy Dunlap's avatar Randy Dunlap Committed by Andrey Grodzovsky

drm/scheduler: quieten kernel-doc warnings

Fix kernel-doc warnings in gpu_scheduler.h and sched_main.c.

Quashes these warnings:

include/drm/gpu_scheduler.h:332: warning: missing initial short description on line:
 * struct drm_sched_backend_ops
include/drm/gpu_scheduler.h:412: warning: missing initial short description on line:
 * struct drm_gpu_scheduler
include/drm/gpu_scheduler.h:461: warning: Function parameter or member 'dev' not described in 'drm_gpu_scheduler'

drivers/gpu/drm/scheduler/sched_main.c:201: warning: missing initial short description on line:
 * drm_sched_dependency_optimized
drivers/gpu/drm/scheduler/sched_main.c:995: warning: Function parameter or member 'dev' not described in 'drm_sched_init'

Fixes: 2d33948e ("drm/scheduler: add documentation")
Fixes: 8ab62eda ("drm/sched: Add device pointer to drm_gpu_scheduler")
Fixes: 542cff78 ("drm/sched: Avoid lockdep spalt on killing a processes")
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Cc: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Jiawei Gu <Jiawei.Gu@amd.com>
Cc: dri-devel@lists.freedesktop.org
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220404213040.12912-1-rdunlap@infradead.org
parent 8e3d857c
...@@ -198,7 +198,7 @@ static void drm_sched_job_done_cb(struct dma_fence *f, struct dma_fence_cb *cb) ...@@ -198,7 +198,7 @@ static void drm_sched_job_done_cb(struct dma_fence *f, struct dma_fence_cb *cb)
} }
/** /**
* drm_sched_dependency_optimized * drm_sched_dependency_optimized - test if the dependency can be optimized
* *
* @fence: the dependency fence * @fence: the dependency fence
* @entity: the entity which depends on the above fence * @entity: the entity which depends on the above fence
...@@ -993,6 +993,7 @@ static int drm_sched_main(void *param) ...@@ -993,6 +993,7 @@ static int drm_sched_main(void *param)
* used * used
* @score: optional score atomic shared with other schedulers * @score: optional score atomic shared with other schedulers
* @name: name used for debugging * @name: name used for debugging
* @dev: target &struct device
* *
* Return 0 on success, otherwise error code. * Return 0 on success, otherwise error code.
*/ */
......
...@@ -329,10 +329,10 @@ enum drm_gpu_sched_stat { ...@@ -329,10 +329,10 @@ enum drm_gpu_sched_stat {
}; };
/** /**
* struct drm_sched_backend_ops * struct drm_sched_backend_ops - Define the backend operations
* called by the scheduler
* *
* Define the backend operations called by the scheduler, * These functions should be implemented in the driver side.
* these functions should be implemented in driver side.
*/ */
struct drm_sched_backend_ops { struct drm_sched_backend_ops {
/** /**
...@@ -409,7 +409,7 @@ struct drm_sched_backend_ops { ...@@ -409,7 +409,7 @@ struct drm_sched_backend_ops {
}; };
/** /**
* struct drm_gpu_scheduler * struct drm_gpu_scheduler - scheduler instance-specific data
* *
* @ops: backend operations provided by the driver. * @ops: backend operations provided by the driver.
* @hw_submission_limit: the max size of the hardware queue. * @hw_submission_limit: the max size of the hardware queue.
...@@ -435,6 +435,7 @@ struct drm_sched_backend_ops { ...@@ -435,6 +435,7 @@ struct drm_sched_backend_ops {
* @_score: score used when the driver doesn't provide one * @_score: score used when the driver doesn't provide one
* @ready: marks if the underlying HW is ready to work * @ready: marks if the underlying HW is ready to work
* @free_guilty: A hit to time out handler to free the guilty job. * @free_guilty: A hit to time out handler to free the guilty job.
* @dev: system &struct device
* *
* One scheduler is implemented for each hardware ring. * One scheduler is implemented for each hardware ring.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment