diff options
author | Radhakrishna Sripada <radhakrishna.sripada@intel.com> | 2017-09-15 17:00:08 -0700 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2017-09-18 12:39:53 -0700 |
commit | 6dceb6f2b28c591a1b004d11173bbea91ef4471c (patch) | |
tree | 0e529d173c794ee39694e9f0f6b9f03ae2b009be | |
parent | 2e93946e4e15cb8e7e978334cb62677f9ead82fe (diff) |
igt/kms_psr_sink_crc: Add psr_drrs subtest
Platforms do not support psr and drrs simultaneously.
Adding a subtest to make the check.
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
-rw-r--r-- | tests/kms_psr_sink_crc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index bd3fa5e9..1c25f2c8 100644 --- a/tests/kms_psr_sink_crc.c +++ b/tests/kms_psr_sink_crc.c @@ -284,6 +284,15 @@ static void assert_or_manual(bool condition, const char *expected) igt_assert(igt_interactive_debug || condition); } +static bool drrs_disabled(data_t *data) +{ + char buf[512]; + + igt_debugfs_read(data->drm_fd, "i915_drrs_status", buf); + + return strstr(buf, "DRRS Support: No\n"); +} + static void run_test(data_t *data) { uint32_t handle = data->fb_white.gem_handle; @@ -524,6 +533,11 @@ int main(int argc, char *argv[]) igt_assert(wait_psr_entry(&data)); } + igt_subtest("psr_drrs") { + setup_test_plane(&data); + igt_assert(drrs_disabled(&data)); + } + for (op = PAGE_FLIP; op <= RENDER; op++) { igt_subtest_f("primary_%s", op_str(op)) { data.test_plane = DRM_PLANE_TYPE_PRIMARY; |