Just a rebase of v2 since it went a little stale. Series available in the wip-process-priorities-v3 branch at: git://people.freedesktop.org/~lostgoat/linux Gpuvis trace with normal priority running steamvr, hellovr_vulkan and ssao demo: https://drive.google.com/open?id=0B2ygSoZuj3IMdFJ4bTZPcmh5aHc Gpuvis trace with compute at high priority: https://drive.google.com/open?id=0B2ygSoZuj3IMYzBFUUN0dXV4bGs Full trace data vailable here: https://drive.google.com/open?id=0B2ygSoZuj3IMWGUzV25yNGtyRFU For validation, use the wip-process-priorities-v3 branch of: mesa: git at github.com:lostgoat/mesa.git libdrm: git at github.com:lostgoat/libdrm.git vk-demos: git at github.com:lostgoat/Vulkan.git Run the following two vk-demos simultaneously: ./ssao ./computeparticles -high-priority Andres Rodriguez (8): drm/amdgpu: add parameter to allocate high priority contexts v11 drm/amdgpu: add framework for HW specific priority settings v9 drm/amdgpu: implement ring set_priority for gfx_v8 compute v9 drm/amdgpu: make amdgpu_to_sched_priority detect invalid parameters drm/amd/sched: allow clients to edit an entity's rq v2 drm/amdgpu: introduce AMDGPU_CTX_PRIORITY_UNSET drm/amdgpu: add plumbing for ctx priority changes v2 drm/amdgpu: add interface for editing a foreign process's priority v3 drivers/gpu/drm/amd/amdgpu/Makefile | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 10 ++- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 75 +++++++++++++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 76 +++++++++++++++++- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 15 ++++ drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | 109 ++++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_sched.h | 34 ++++++++ drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 99 +++++++++++++++++++++++ drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 24 +++++- drivers/gpu/drm/amd/scheduler/gpu_scheduler.h | 19 ++++- include/uapi/drm/amdgpu_drm.h | 28 ++++++- 15 files changed, 489 insertions(+), 12 deletions(-) create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.h -- 2.9.3