Commit 6d602e03 authored by Christian König's avatar Christian König

drm/sched: move calling drm_sched_entity_select_rq

We already discussed that the call to drm_sched_entity_select_rq() needs
to move to drm_sched_job_arm() to be able to set a new scheduler list
between _init() and _arm(). This was just not applied for some reason.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220714103902.7084-2-christian.koenig@amd.com
parent fa2a87e4
...@@ -592,7 +592,6 @@ int drm_sched_job_init(struct drm_sched_job *job, ...@@ -592,7 +592,6 @@ int drm_sched_job_init(struct drm_sched_job *job,
struct drm_sched_entity *entity, struct drm_sched_entity *entity,
void *owner) void *owner)
{ {
drm_sched_entity_select_rq(entity);
if (!entity->rq) if (!entity->rq)
return -ENOENT; return -ENOENT;
...@@ -628,7 +627,7 @@ void drm_sched_job_arm(struct drm_sched_job *job) ...@@ -628,7 +627,7 @@ void drm_sched_job_arm(struct drm_sched_job *job)
struct drm_sched_entity *entity = job->entity; struct drm_sched_entity *entity = job->entity;
BUG_ON(!entity); BUG_ON(!entity);
drm_sched_entity_select_rq(entity);
sched = entity->rq->sched; sched = entity->rq->sched;
job->sched = sched; job->sched = sched;
......
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