gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET
authorLuben Tuikov <luben.tuikov@amd.com>
Tue, 17 Oct 2023 02:48:56 +0000 (22:48 -0400)
committerLuben Tuikov <luben.tuikov@amd.com>
Wed, 18 Oct 2023 00:35:38 +0000 (20:35 -0400)
commitfa8391ad68c16716e2c06ada397e99ceed2fb647
tree2312210be5b76960e7a7ccc674153fae3f1e7899
parenteab0261967aeab528db4d0a51806df8209aec179
gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET

Eliminate DRM_SCHED_PRIORITY_UNSET, value of -2, whose only user was
amdgpu. Furthermore, eliminate an index bug, in that when amdgpu boots, it
calls drm_sched_entity_init() with DRM_SCHED_PRIORITY_UNSET, which uses it to
index sched->sched_rq[].

Cc: Alex Deucher <Alexander.Deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Alex Deucher <Alexander.Deucher@amd.com>
Link: https://lore.kernel.org/r/20231017035656.8211-2-luben.tuikov@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
include/drm/gpu_scheduler.h