Mesa (main): Revert "venus: Increase the base sleep of vn_relax"
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 6 01:51:33 UTC 2022
Module: Mesa
Branch: main
Commit: 5ec49953052ae29a16c89d0ffc3272b6088e6df4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ec49953052ae29a16c89d0ffc3272b6088e6df4
Author: Renato Pereyra <renatopereyra at google.com>
Date: Tue Apr 5 18:02:46 2022 -0700
Revert "venus: Increase the base sleep of vn_relax"
This reverts commit 737937f45e4231dd596780a856270693566de658.
Testing has revealed sizable performance drops arising out of this change.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15760>
---
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 f9d639ba1f7..b74b2384dd5 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 = 120;
+ const uint32_t base_sleep_us = 10;
const uint32_t warn_order = 12;
const uint32_t abort_order = 14;
More information about the mesa-commit
mailing list