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: Christian König <christian.koenig@amd.com> Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220714103902.7084-2-christian.koenig@amd.com
This commit is contained in:
parent
fa2a87e4c5
commit
6d602e0311
@ -592,7 +592,6 @@ int drm_sched_job_init(struct drm_sched_job *job,
|
||||
struct drm_sched_entity *entity,
|
||||
void *owner)
|
||||
{
|
||||
drm_sched_entity_select_rq(entity);
|
||||
if (!entity->rq)
|
||||
return -ENOENT;
|
||||
|
||||
@ -628,7 +627,7 @@ void drm_sched_job_arm(struct drm_sched_job *job)
|
||||
struct drm_sched_entity *entity = job->entity;
|
||||
|
||||
BUG_ON(!entity);
|
||||
|
||||
drm_sched_entity_select_rq(entity);
|
||||
sched = entity->rq->sched;
|
||||
|
||||
job->sched = sched;
|
||||
|
Loading…
x
Reference in New Issue
Block a user