From f54aa49c1439440c88a1c6a1046be11dba3ab44e Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Thu, 4 Aug 2022 20:31:36 +0000 Subject: [PATCH] venus: double the abort timeout to allow long shader compiles Signed-off-by: Yiwei Zhang Reviewed-by: Ryan Neph Part-of: --- src/virtio/vulkan/vn_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virtio/vulkan/vn_common.c b/src/virtio/vulkan/vn_common.c index 887fefd9984..29a778763cd 100644 --- a/src/virtio/vulkan/vn_common.c +++ b/src/virtio/vulkan/vn_common.c @@ -19,7 +19,7 @@ #include "venus-protocol/vn_protocol_driver_info.h" #include "vk_enum_to_str.h" -#define VN_RELAX_MIN_BASE_SLEEP_US (10) +#define VN_RELAX_MIN_BASE_SLEEP_US (20) static const struct debug_control vn_debug_options[] = { { "init", VN_DEBUG_INIT }, @@ -131,7 +131,7 @@ vn_relax(uint32_t *iter, const char *reason) return; } - /* warn occasionally if we have slept at least 0.32ms for 8192 times (plus + /* warn occasionally if we have slept at least 0.64ms for 8192 times (plus * another 8191 shorter sleeps) */ if (unlikely(*iter % (1 << warn_order) == 0)) {