[PATCH i-g-t v2 4/5] test/intel/kms_pm_dc: Add psr_sink_error_check to PSR tests
Jouni Högander
jouni.hogander at intel.com
Wed Sep 11 05:49:57 UTC 2024
Currently we are ignoring possible errors detected by the sink in our
testcases using PSR. Fix this by add psr_sink_error_check to each of them.
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
tests/intel/kms_pm_dc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
index 07b140ce5..c87e1d408 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -407,6 +407,7 @@ static void test_dc_state_psr(data_t *data, int dc_flag)
igt_require(!psr_disabled_check(data->debugfs_fd));
igt_assert(psr_wait_entry(data->debugfs_fd, data->op_psr_mode, NULL));
check_dc_counter(data, dc_flag, dc_counter_before_psr);
+ psr_sink_error_check(data->debugfs_fd, data->op_psr_mode, data->output);
cleanup_dc_psr(data);
}
@@ -693,6 +694,7 @@ static void test_pkgc_state_psr(data_t *data)
igt_wait((cur_value = read_pkgc_counter(data->debugfs_root_fd)) > prev_value,
timeout_sec * 1000, 100);
igt_assert_f(cur_value > prev_value, "PKGC10 is not achieved.\n");
+ psr_sink_error_check(data->debugfs_fd, data->op_psr_mode, data->output);
psr_dpms(data, DRM_MODE_DPMS_ON);
cleanup_dc_psr(data);
}
--
2.34.1
More information about the igt-dev
mailing list