diff options
author | Andres Rodriguez <andresx7@gmail.com> | 2017-03-06 16:27:55 -0500 |
---|---|---|
committer | Andres Rodriguez <andresx7@gmail.com> | 2017-04-27 13:25:19 -0400 |
commit | 2ba5d34711087dabb1c81c361012042a09b26905 (patch) | |
tree | 04a495f0e7f29b48bf1446a9463b9c9d06591176 /drivers/pinctrl/pinctrl-adi2.h | |
parent | a08d9cd02dd7bf50f5a7f3e7ed6e477765fb3d6b (diff) |
drm/amdgpu: implement lru amdgpu_queue_mgr policy for compute v4
Use an LRU policy to map usermode rings to HW compute queues.
Most compute clients use one queue, and usually the first queue
available. This results in poor pipe/queue work distribution when
multiple compute apps are running. In most cases pipe 0 queue 0 is
the only queue that gets used.
In order to better distribute work across multiple HW queues, we adopt
a policy to map the usermode ring ids to the LRU HW queue.
This fixes a large majority of multi-app compute workloads sharing the
same HW queue, even though 7 other queues are available.
v2: use ring->funcs->type instead of ring->hw_ip
v3: remove amdgpu_queue_mapper_funcs
v4: change ring_lru_list_lock to spinlock, grab only once in lru_get()
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Diffstat (limited to 'drivers/pinctrl/pinctrl-adi2.h')
0 files changed, 0 insertions, 0 deletions