]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Wait longer for the old active request
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 17 May 2018 14:24:41 +0000 (15:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 19 May 2018 11:50:59 +0000 (12:50 +0100)
commit3ec9706c0f92f8635f4bb52053ee8752a49f1da0
tree2c9524c0b5c33e909a57685216435353836a73ea
parent27ed992e463ca2b3cc05bddce6a0ee293a18d2b6
drm/i915/selftests: Wait longer for the old active request

When testing reset, we wait for 1s on the main thread for the hang to
start. Meanwhile, we continue submitting requests on all the background
threads, and we may have more threads than cores and so potentially
starve the waiter from being woken within the timeout. As the hang
timeout and the active timeouts are the same, it is hard to distinguish
which caused the timeout. Bump the active thread timeouts to 5s,
compared to the 1s timeout for the hang, so that we preferentially
report the hang timing out, while hopefully ensuring that we do at least
wake up the hang thread first before declaring the background active
timeout.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180517142442.16979-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/selftests/intel_hangcheck.c