@@ -196,6 +196,19 @@ int main(int argc, char *argv[])
test_dc_state_psr(&data, CHECK_DC5);
cleanup(&data);
}
+
+ igt_subtest("dc6-psr") {
+ data.op_psr_mode = PSR_MODE_1;
+ psr_enable(data.debugfs_fd, data.op_psr_mode);
+ igt_require_f(edp_psr_sink_support(&data),
+ "Sink does not support PSR\n");
+ /* Check DC6 counter is available for the platform.
+ * Skip the test if counter is not available.
+ */
+ read_dc_counter(data.drm_fd, CHECK_DC6);
+ test_dc_state_psr(&data, CHECK_DC6);
+ cleanup(&data);
+ }
igt_fixture {
close(data.debugfs_fd);
display_fini(&data);