[PATCH 0/2] Add support for context priorities

Andres Rodriguez andresx7 at gmail.com
Fri Jul 7 20:55:33 UTC 2017



On 2017-07-07 04:31 PM, Alex Deucher wrote:
> On Fri, Jul 7, 2017 at 3:28 PM, Andres Rodriguez <andresx7 at gmail.com> wrote:
>> As requested, for validation of the kernel series.
>>
>> Andres Rodriguez (2):
>>    headers: sync amdgpu_drm.h with the kernel
>>    amdgpu: implement context priority for amdgpu_cs_ctx_create2 v3
> 
> 
> Do you have a test app or mesa patches that actually use this that you
> could share?

Yeah.

The mesa portion is a little messy since the extension isn't registered 
yet. But it can be found on the wip-high-priority branch here:
https://github.com/lostgoat/mesa.git

For a test app you can download this other project (wip-high-priority 
branch as well):
https://github.com/lostgoat/Vulkan.git

Once everything is setup I run one session of the SSAO sample:
QUEUE_NUM=0 ./ssao

Then you can simultaneously run the computeparticles with or without 
high priority:
sudo QUEUE_NUM=0 nice -n 20  ./computeparticles -high-priority
Or
sudo QUEUE_NUM=0 nice -n 20  ./computeparticles

Note: QUEUE_NUM is required.

If you have any issues building/running these let me know.

For reference, following are the output of these apps on my system on an 
RX480:

ssao:
Max: 2.917ms Min: 2.583ms MaxH: 2.917ms MinH: 2.583ms Med: 2.806ms Avg: 
2.797ms Frames: 58 Cur: 2.745ms

computeparticles with regular priority:
Max: 2.021ms Min: 0.058ms MaxH: 1.899ms MinH: 0.932ms Med: 1.187ms Avg: 
1.236ms Frames: 3017 Cur: 1.339ms

computeparticles with high priority:
Max: 0.298ms Min: 0.054ms MaxH: 0.077ms MinH: 0.054ms Med: 0.062ms Avg: 
0.061ms Frames: 5999 Cur: 0.063ms

Regards,
Andres

> 
> Alex
> 
>>
>>   amdgpu/amdgpu-symbol-check |  1 +
>>   amdgpu/amdgpu.h            | 17 +++++++++++++++--
>>   amdgpu/amdgpu_cs.c         | 17 +++++++++++++----
>>   include/drm/amdgpu_drm.h   | 31 ++++++++++++++++++++++++++++++-
>>   4 files changed, 59 insertions(+), 7 deletions(-)
>>
>> --
>> 2.9.3
>>
>> _______________________________________________
>> amd-gfx mailing list
>> amd-gfx at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list