Skip to content

Commit b7d2a4d

Browse files
drm/i915/guc: Fix for potential false positives in GuC hang selftest
Noticed that the hangcheck selftest is submitting a non-preemptoble spinner. That means that even if the GuC does not die, the heartbeat will still kick in and trigger a reset. Which is rather defeating the purpose of the test - to verify that the heartbeat will kick in if the GuC itself has died. The test is deliberately killing the GuC, so it should never hit the case of a non-dead GuC. But it is not impossible that the kill might fail at some future point due to other driver re-work. So, make the spinner pre-emptible. That way the heartbeat can get through if the GuC is alive and context switching. Thus a reset only happens if the GuC dies. Thus, if the kill should stop working the test will now fail rather than claim to pass. Signed-off-by: John Harrison <[email protected]> Reviewed-by: Daniele Ceraolo Spurio <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 698e19d commit b7d2a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/gt/uc/selftest_guc_hangcheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static int intel_hang_guc(void *arg)
7474
goto err;
7575
}
7676

77-
rq = igt_spinner_create_request(&spin, ce, MI_NOOP);
77+
rq = igt_spinner_create_request(&spin, ce, MI_ARB_CHECK);
7878
intel_context_put(ce);
7979
if (IS_ERR(rq)) {
8080
ret = PTR_ERR(rq);

0 commit comments

Comments
 (0)