OSDN Git Service

drm/amdgpu: make amdgpu_to_sched_priority detect invalid parameters
authorAndres Rodriguez <andresx7@gmail.com>
Wed, 24 May 2017 21:00:10 +0000 (17:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2017 20:30:22 +0000 (16:30 -0400)
commitb6d8a439345e71e9b1939c4d6997e09b5be9b5e1
tree97ca5ac8f5675a586e690687129f525687081be3
parentb8866c26ec072f1924f5cf601ebea33ca9823326
drm/amdgpu: make amdgpu_to_sched_priority detect invalid parameters

Returning invalid priorities as _NORMAL is a backwards compatibility
quirk of amdgpu_ctx_ioctl(). Move this detail one layer up where it
belongs.

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Acked-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/scheduler/gpu_scheduler.h