public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t v2] lib/display_require: reset hdcp on all connectors
@ 2019-08-13  8:00 Ramalingam C
  2019-08-13 15:01 ` Ser, Simon
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ramalingam C @ 2019-08-13  8:00 UTC (permalink / raw)
  To: igt-dev; +Cc: petri.latvala

At the start of every test, reset HDCP state to UNDESIRED on all
connectors, so that we will not have any hdcp related noises in
the subsequent tests.

v2:
  igt_output_set_prop_enum is used.
  Documentation of display_reset is updated.

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111390
---
 lib/igt_kms.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index b0169f73b752..964a5747e49e 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1859,6 +1859,10 @@ static void igt_output_reset(igt_output_t *output)
 	if (igt_output_has_prop(output, IGT_CONNECTOR_BROADCAST_RGB))
 		igt_output_set_prop_value(output, IGT_CONNECTOR_BROADCAST_RGB,
 					  BROADCAST_RGB_FULL);
+
+	if (igt_output_has_prop(output, IGT_CONNECTOR_CONTENT_PROTECTION))
+		igt_output_set_prop_enum(output, IGT_CONNECTOR_CONTENT_PROTECTION,
+					 "Undesired");
 }
 
 /**
@@ -1871,6 +1875,7 @@ static void igt_output_reset(igt_output_t *output)
  * For outputs:
  * - %IGT_CONNECTOR_CRTC_ID
  * - %IGT_CONNECTOR_BROADCAST_RGB (if applicable)
+ *   %IGT_CONNECTOR_CONTENT_PROTECTION (if applicable)
  * - igt_output_override_mode() to default.
  *
  * For pipes:
-- 
2.20.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-14  9:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-13  8:00 [igt-dev] [PATCH i-g-t v2] lib/display_require: reset hdcp on all connectors Ramalingam C
2019-08-13 15:01 ` Ser, Simon
2019-08-14  9:55   ` Petri Latvala
2019-08-13 16:37 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/display_require: reset hdcp on all connectors (rev2) Patchwork
2019-08-14  2:41 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox