[igt-dev] [PATCH i-g-t 0/2] tests/gem_exec_fence: Fix test_fence_await for hanging workloads

Karolina Drobnik karolina.drobnik at intel.com
Wed Jul 20 14:01:02 UTC 2022


This patch series fixes test_fence_await for failing gem_exec_fence
subtests that inject GPU hangs (await-hang and nb-await-hang). The test
assumed that the error notification happens after a hang is declared,
which would be enough for the next set of fences to be submitted,
making this test pass. But as we use the error-interrupt, we get immediate
reset for the invalid command stream. This means that when the test checks
for active fences, none can be found, leading to the test failure.

To address this problem, the active fences check is only done for valid
workloads. In addition to the fix, the series adds spinning before
usleep() call to coordinate sleep with the start of the request.

Chris Wilson (2):
  tests/gem_exec_fence: Check stored values only for valid workloads
  tests/gem_exec_fence: Coordinate sleep with the start of the request

 tests/i915/gem_exec_fence.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

--
2.25.1


More information about the igt-dev mailing list