drm/amdgpu: add plumbing for ctx priority changes v2
authorAndres Rodriguez <andresx7@gmail.com>
Wed, 7 Jun 2017 00:20:38 +0000 (20:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2017 20:30:24 +0000 (16:30 -0400)
commitc23be4ae1d50e8d93f805de7ae3e8ea49a4ad781
tree82fa44444feb8ca722f7f2ce40abf7d897f8ba05
parentf3d19bf80d6c7bfe5922c09604a402ef176da41f
drm/amdgpu: add plumbing for ctx priority changes v2

Introduce amdgpu_ctx_priority_override(). A mechanism to override a
context's priority.

An override can be terminated by setting the override to
AMD_SCHED_PRIORITY_UNSET.

v2: change refcounted interface for a direct set

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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c