mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 19:40:24 +01:00
venus: revert back the warn order
This reverts - commit4ae4e4362c- commitf54aa49c14Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21542>
This commit is contained in:
parent
28bdf8db18
commit
ae6eb3229e
1 changed files with 4 additions and 4 deletions
|
|
@ -130,9 +130,9 @@ vn_relax(const struct vn_ring *ring, uint32_t *iter, const char *reason)
|
|||
* base_sleep_us microseconds for the same number of times. After that,
|
||||
* keep doubling both sleep length and count.
|
||||
*/
|
||||
const uint32_t busy_wait_order = 10;
|
||||
const uint32_t busy_wait_order = 8;
|
||||
const uint32_t base_sleep_us = vn_env.relax_base_sleep_us;
|
||||
const uint32_t warn_order = 14;
|
||||
const uint32_t warn_order = 12;
|
||||
const uint32_t abort_order = 16;
|
||||
|
||||
(*iter)++;
|
||||
|
|
@ -141,8 +141,8 @@ vn_relax(const struct vn_ring *ring, uint32_t *iter, const char *reason)
|
|||
return;
|
||||
}
|
||||
|
||||
/* warn occasionally if we have slept at least 1.28ms for 8192 times (plus
|
||||
* another 8191 shorter sleeps)
|
||||
/* warn occasionally if we have slept at least 1.28ms for 2048 times (plus
|
||||
* another 2047 shorter sleeps)
|
||||
*/
|
||||
if (unlikely(*iter % (1 << warn_order) == 0)) {
|
||||
vn_log(NULL, "stuck in %s wait with iter at %d", reason, *iter);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue