drm/amdgpu: move entity selection and job init earlier during CS
authorChristian König <christian.koenig@amd.com>
Mon, 5 Sep 2022 07:22:29 +0000 (09:22 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2022 19:18:23 +0000 (15:18 -0400)
commitc2b08e7a6d270d25e8041510adf82b4a657142d4
tree3c5ed60eec62f12c01b9de391a63e8bdaa871473
parent4953b6b22ab9d7f64706631a027b1ed1130ce4c8
drm/amdgpu: move entity selection and job init earlier during CS

Initialize the entity for the CS and scheduler job much earlier.

v2: fix job initialisation order and use correct scheduler instance

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h