venus: print warnings when stuck in busy waits
authorChia-I Wu <olvaffe@gmail.com>
Wed, 28 Jul 2021 18:13:38 +0000 (11:13 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 28 Jul 2021 22:50:36 +0000 (22:50 +0000)
commita94192f69d1d9388ad2e27ccbdc92dccc660ee6a
treef59be8ddacefe13d19b0ed99c9717c99b7a254ec
parent7d0fe5863f2f39c93752d330603be24569e4479e
venus: print warnings when stuck in busy waits

The first warning is printed after stuck in vn_relax for at least about
3.5s.  The actual time can be much longer depending on the
kernel/load/hw.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12115>
src/virtio/vulkan/vn_common.c
src/virtio/vulkan/vn_common.h
src/virtio/vulkan/vn_device.c
src/virtio/vulkan/vn_queue.c
src/virtio/vulkan/vn_ring.c