]> git.baikalelectronics.ru Git - kernel.git/commit
drm/scheduler: Remove priority macro INVALID (v2)
authorLuben Tuikov <luben.tuikov@amd.com>
Wed, 12 Aug 2020 00:56:58 +0000 (20:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Aug 2020 22:20:26 +0000 (18:20 -0400)
commitd2d768091652772314b9b8d83fd39000d1d4a9d4
tree32d66eb8df25197962c36c8245fe1b8e20b33d20
parent269df66b3e16cec02161daa18d11759604f9337e
drm/scheduler: Remove priority macro INVALID (v2)

Remove DRM_SCHED_PRIORITY_INVALID. We no longer
carry around an invalid priority and cut it off
at the source.

Backwards compatibility behaviour of AMDGPU CTX
IOCTL passing in garbage for context priority
from user space and then mapping that to
DRM_SCHED_PRIORITY_NORMAL is preserved.

v2: Revert "res"  --> "r" and
           "prio" --> "priority".

Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sched.h
include/drm/gpu_scheduler.h