drm/amdgpu: make amdgpu_to_sched_priority detect invalid parameters
authorAndres Rodriguez <[email protected]>
Wed, 24 May 2017 21:00:10 +0000 (17:00 -0400)
committerAlex Deucher <[email protected]>
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 <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.h