From: Anshuman Gupta <anshuman.gupta@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 1/2] kms_content_protection: add check for DPMS off state
Date: Mon, 20 Jan 2020 14:21:57 +0530 [thread overview]
Message-ID: <20200120085158.9151-2-anshuman.gupta@intel.com> (raw)
In-Reply-To: <20200120085158.9151-1-anshuman.gupta@intel.com>
From: Ramalingam C <ramalingam.c@intel.com>
During DPMS off HDCP state should be DESIRED.
Lets add a check for that.
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
cc: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
---
tests/kms_content_protection.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
index 3b9cedcb..6f896a97 100644
--- a/tests/kms_content_protection.c
+++ b/tests/kms_content_protection.c
@@ -513,6 +513,11 @@ static void test_content_protection_on_output(igt_output_t *output,
IGT_CRTC_ACTIVE, 0);
igt_display_commit2(display, s);
+ /* Wait for HDCP to be disabled, before crtc off */
+ ret = wait_for_prop_value(output, CP_DESIRED,
+ KERNEL_DISABLE_TIME_ALLOWED_MSEC);
+ igt_assert_f(ret, "Content Protection not cleared\n");
+
igt_pipe_set_prop_value(display, pipe,
IGT_CRTC_ACTIVE, 1);
igt_display_commit2(display, s);
--
2.24.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2020-01-20 9:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-20 8:51 [igt-dev] [PATCH i-g-t 0/2] Check for DPMS off state Anshuman Gupta
2020-01-20 8:51 ` Anshuman Gupta [this message]
2020-01-20 8:51 ` [igt-dev] [PATCH i-g-t 2/2] DEBUG/DO_NOT_MERGE: Add HDCP atomic-dpms test to CI fast-feedback Anshuman Gupta
2020-01-20 10:28 ` [igt-dev] ✗ Fi.CI.BAT: failure for Check for DPMS off state 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=20200120085158.9151-2-anshuman.gupta@intel.com \
--to=anshuman.gupta@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.