Module: Mesa Branch: main Commit: 737937f45e4231dd596780a856270693566de658 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=737937f45e4231dd596780a856270693566de658
Author: Renato Pereyra <[email protected]> Date: Thu Mar 24 16:12:43 2022 -0700 venus: Increase the base sleep of vn_relax Based on profiling, these 10us sleeps are behaving closer to ~60us and causing higher-than-necessary CPU overhead. 120us seems like a good balance between latency management and overhead. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15565> --- src/virtio/vulkan/vn_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtio/vulkan/vn_common.c b/src/virtio/vulkan/vn_common.c index b74b2384dd5..f9d639ba1f7 100644 --- a/src/virtio/vulkan/vn_common.c +++ b/src/virtio/vulkan/vn_common.c @@ -86,7 +86,7 @@ vn_relax(uint32_t *iter, const char *reason) * keep doubling both sleep length and count. */ const uint32_t busy_wait_order = 4; - const uint32_t base_sleep_us = 10; + const uint32_t base_sleep_us = 120; const uint32_t warn_order = 12; const uint32_t abort_order = 14;
