Commit c8eb378c authored by Maarten Lankhorst's avatar Maarten Lankhorst

tests/kms_frontbuffer_tracking: Fix skips when PSR is not available.

Use psr.can_test to determine we can disable PSR, and not skip because
PSR is unavailable.

Cc: Dhinakaran Pandiyan <>
Cc: José Roberto de Souza <>
Signed-off-by: default avatarMaarten Lankhorst <>
Reviewed-by: José Roberto de Souza's avatarJosé Roberto de Souza <>
parent 5bf30a96
......@@ -106,7 +106,7 @@ static bool psr_set(int debugfs_fd, int mode)
ret = has_psr_debugfs(debugfs_fd);
if (ret == -ENODEV) {
igt_skip_on_f(mode >= PSR_MODE_1, "PSR not available\n");
igt_skip("PSR not available\n");
return false;
......@@ -1134,7 +1134,7 @@ static bool disable_features(const struct test_mode *t)
return psr_disable(drm.debugfs);
return psr.can_test ? psr_disable(drm.debugfs) : false;
static void *busy_thread_func(void *data)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment