From: Ramalingam C <ramalingam.c@intel.com>
To: uma.shankar@intel.com, daniel.vetter@intel.com,
igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v7 1/8] kms_content_protection: Tests are defined by flags
Date: Thu, 30 May 2019 20:30:50 +0530 [thread overview]
Message-ID: <20190530150057.12770-2-ramalingam.c@intel.com> (raw)
In-Reply-To: <20190530150057.12770-1-ramalingam.c@intel.com>
Considering increase of subtests for kms_content_protection, tests are
defined through flags.
v2:
reset the cp_tests. [Uma]
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
---
tests/kms_content_protection.c | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index ae6ab497ea21..5f7d8ff9b52b 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -34,8 +34,11 @@ struct data {
int drm_fd;
igt_display_t display;
struct igt_fb red, green;
+ unsigned int cp_tests;
} data;
+#define CP_DPMS (1 << 0)
+
#define CP_UNDESIRED 0
#define CP_DESIRED 1
#define CP_ENABLED 2
@@ -240,8 +243,7 @@ static void test_cp_lic(igt_output_t *output)
}
static void test_content_protection_on_output(igt_output_t *output,
- enum igt_commit_style s,
- bool dpms_test)
+ enum igt_commit_style s)
{
igt_display_t *display = &data.display;
igt_plane_t *primary;
@@ -265,7 +267,7 @@ static void test_content_protection_on_output(igt_output_t *output,
test_cp_enable_with_retry(output, s, 3);
test_cp_lic(output);
- if (dpms_test) {
+ if (data.cp_tests & CP_DPMS) {
igt_pipe_set_prop_value(display, pipe,
IGT_CRTC_ACTIVE, 0);
igt_display_commit2(display, s);
@@ -324,7 +326,7 @@ static bool sink_hdcp_capable(igt_output_t *output)
static void
-test_content_protection(enum igt_commit_style s, bool dpms_test)
+test_content_protection(enum igt_commit_style s)
{
igt_display_t *display = &data.display;
igt_output_t *output;
@@ -341,7 +343,7 @@ test_content_protection(enum igt_commit_style s, bool dpms_test)
continue;
}
- test_content_protection_on_output(output, s, dpms_test);
+ test_content_protection_on_output(output, s);
valid_tests++;
}
@@ -358,17 +360,21 @@ igt_main
igt_display_require(&data.display, data.drm_fd);
}
- igt_subtest("legacy")
- test_content_protection(COMMIT_LEGACY, false);
+ igt_subtest("legacy") {
+ data.cp_tests = 0;
+ test_content_protection(COMMIT_LEGACY);
+ }
igt_subtest("atomic") {
igt_require(data.display.is_atomic);
- test_content_protection(COMMIT_ATOMIC, false);
+ data.cp_tests = 0;
+ test_content_protection(COMMIT_ATOMIC);
}
igt_subtest("atomic-dpms") {
igt_require(data.display.is_atomic);
- test_content_protection(COMMIT_ATOMIC, true);
+ data.cp_tests = CP_DPMS;
+ test_content_protection(COMMIT_ATOMIC);
}
igt_fixture
--
2.19.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-05-30 14:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-30 15:00 [igt-dev] [PATCH i-g-t v7 0/8] HDCP2.2 Tests Ramalingam C
2019-05-30 15:00 ` Ramalingam C [this message]
2019-05-30 15:00 ` [igt-dev] [PATCH i-g-t v7 2/8] kms_content_protection: Link Integrity Check subtest Ramalingam C
2019-07-02 12:57 ` Shankar, Uma
2019-05-30 15:00 ` [igt-dev] [PATCH i-g-t v7 3/8] kms_content_protection: Content type support Ramalingam C
2019-05-30 15:00 ` [igt-dev] [PATCH i-g-t v7 4/8] kms_content_protection: test teardown and rebuild of I915-mei I/F Ramalingam C
2019-05-30 15:00 ` [igt-dev] [PATCH i-g-t v7 5/8] kms_content_protection: test content type change Ramalingam C
2019-07-02 13:01 ` Shankar, Uma
2019-05-30 15:00 ` [igt-dev] [PATCH i-g-t v7 6/8] kms_content_protection: uevent for HDCP status change Ramalingam C
2019-07-02 13:16 ` Shankar, Uma
2019-05-30 15:00 ` [igt-dev] [PATCH i-g-t v7 7/8] kms_content_protection: SRM Testing Ramalingam C
2019-05-30 15:00 ` [igt-dev] [PATCH i-g-t v7 8/8] DO NOT MERGE: CP in fast feedback list Ramalingam C
2019-05-31 10:53 ` [igt-dev] ✓ Fi.CI.BAT: success for HDCP2.2 Tests (rev7) Patchwork
2019-05-31 23:54 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
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=20190530150057.12770-2-ramalingam.c@intel.com \
--to=ramalingam.c@intel.com \
--cc=daniel.vetter@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=uma.shankar@intel.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