From: Harry Wentland <harry.wentland@amd.com>
To: <igt-dev@lists.freedesktop.org>
Cc: Sebastian Wick <sebastian.wick@redhat.com>,
Pekka Paalanen <ppaalanen@gmail.com>,
Joshua Ashton <joshua@froggi.es>
Subject: [igt-dev] [PATCH 2/2] tests/kms_hdr: Add suspend and DPMS Colorspace tests
Date: Mon, 12 Dec 2022 14:24:25 -0500 [thread overview]
Message-ID: <20221212192425.387971-3-harry.wentland@amd.com> (raw)
In-Reply-To: <20221212192425.387971-1-harry.wentland@amd.com>
These test that Colorspace settings aren't lost over a
DPMS or suspend cycle.
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Cc: Pekka Paalanen <ppaalanen@gmail.com>
Cc: Sebastian Wick <sebastian.wick@redhat.com>
Cc: Vitaly.Prosyak@amd.com
Cc: Uma Shankar <uma.shankar@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Joshua Ashton <joshua@froggi.es>
Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Alex Hung <Alex.Hung@amd.com>
---
tests/kms_hdr.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tests/kms_hdr.c b/tests/kms_hdr.c
index b656dc7a7ed5..1c7c04191df4 100644
--- a/tests/kms_hdr.c
+++ b/tests/kms_hdr.c
@@ -336,6 +336,13 @@ static void test_colorspace_switch_on_output(data_t *data, enum pipe pipe,
igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
/* get and check current colorspace */
igt_assert_output_colorspace_equal(data->fd, pipe, colorspaces[i]);
+ /* test suspend only once since it's slow */
+ if (flags & TEST_SUSPEND) {
+ test_cycle_flags(data, flags);
+ igt_assert_output_colorspace_equal(data->fd, pipe, colorspaces[i]);
+ break;
+ }
+
}
}
@@ -741,6 +748,12 @@ igt_main
igt_describe("Tests switching Colorspace property, .i.e., the display colorimetry");
igt_subtest_with_dynamic("colorspace-switch")
test_colorspace_switch(&data, TEST_NONE);
+ igt_describe("Tests Colorspace switch with DPMS");
+ igt_subtest_with_dynamic("colorspace-switch-dpms")
+ test_colorspace_switch(&data, TEST_DPMS);
+ igt_describe("Tests Colorspace switch with suspend");
+ igt_subtest_with_dynamic("colorspace-switch-suspend")
+ test_colorspace_switch(&data, TEST_SUSPEND);
igt_describe("Tests entering and exiting HDR mode");
igt_subtest_with_dynamic("static-toggle")
--
2.38.1
next prev parent reply other threads:[~2022-12-12 19:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 19:24 [igt-dev] [PATCH 0/2] Add Colorspace tests to kms_hdr Harry Wentland
2022-12-12 19:24 ` [igt-dev] [PATCH 1/2] tests/kms_hdr: Add test for output Colorspace Harry Wentland
2022-12-13 11:39 ` Pekka Paalanen
2022-12-13 15:06 ` Harry Wentland
2022-12-12 19:24 ` Harry Wentland [this message]
2022-12-12 20:28 ` [igt-dev] ✓ Fi.CI.BAT: success for Add Colorspace tests to kms_hdr Patchwork
2022-12-13 13:29 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-12-30 20:06 ` [igt-dev] [PATCH 0/2] " Swati Sharma
2023-01-09 16:25 ` Harry Wentland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221212192425.387971-3-harry.wentland@amd.com \
--to=harry.wentland@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=joshua@froggi.es \
--cc=ppaalanen@gmail.com \
--cc=sebastian.wick@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox