venus: reduce ring idle timeout from 50ms to 5ms

The ring wake up is no longer costy as the other notifies followed by
the initial call won't be blocked by ring cmd execution anymore
(without vkr side big context lock). Reducing the timeout can help cpu
bound scenarios.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26179>
This commit is contained in:
Yiwei Zhang 2023-11-13 09:37:06 -08:00 committed by Marge Bot
parent 9c9e097585
commit 60e0af9661

View file

@ -150,7 +150,7 @@ vn_instance_init_ring(struct vn_instance *instance)
.pNext = &monitor_info,
.resourceId = instance->ring.shmem->res_id,
.size = layout.shmem_size,
.idleTimeout = 50ull * 1000 * 1000,
.idleTimeout = 5ull * 1000 * 1000,
.headOffset = layout.head_offset,
.tailOffset = layout.tail_offset,
.statusOffset = layout.status_offset,