amdgpu: implement context priority for amdgpu_cs_ctx_create2 v3
authorAndres Rodriguez <andresx7@gmail.com>
Fri, 20 Oct 2017 14:57:59 +0000 (10:57 -0400)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 20 Oct 2017 19:51:02 +0000 (21:51 +0200)
commit35bc82cee9aab62d556e2ea6dfe29f71ce13dcb3
tree7f35ba43a4ab4878e222fa2e811031c04a4e1629
parentbcae7226a1c36bee22ad747dc12960e52a706cfa
amdgpu: implement context priority for amdgpu_cs_ctx_create2 v3

Add a new context creation function that allows specifying the context
priority.

A high priority context has the potential of starving lower priority
contexts. The current kernel driver implementation allows only apps
that hold CAP_SYS_NICE or DRM_MASTER to acquire a priority above
AMDGPU_CTX_PRIORITY_NORMAL.

v2: corresponding changes for kernel patch v2
v3: Fixed 'make check' symbol error

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
amdgpu/amdgpu-symbol-check
amdgpu/amdgpu.h
amdgpu/amdgpu_cs.c