diff options
| author | Ramalingam C <ramalingam.c@intel.com> | 2018-10-22 22:35:40 +0530 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-10-25 08:33:45 +0200 |
| commit | 7889b6a86c22878a27344b39a818cf7a42f57895 (patch) | |
| tree | 009d13f5390e5ce7b3b1a3fb736a2ce0a255c28c /lib | |
| parent | 1fb01097011e39b6a1289bb689b6adde30dbf801 (diff) | |
kms_content_protection: Add Content Protection test
Pretty simple test:
- picks the hdcp capable output with suitable pipe and apply modeset.
- checks the connected sink's hdcp capability through debugfs
- apply a FB and wait for the flip completion.
- clears the content protection property
- verifies that it clears
- sets the content protection property to desired
- verifies that it transitions to enabled
- incase of timeout three reattempts are implemented
- clear the content protection property and modeset on the crtc
Above steps are repeated on all HDCP capable connectors for both
legacy and atomic subtests.
v2:
dynamic subtests are dropped [Daniel]
v3:
debugfs is used to detect the sink's hdcp capability [Daniel]
data structure is made as global variable.
v4:
debugfs file from connector's debugfs dir is used [Daniel]
v5:
i915_debugfs_connector_dir() usage is modified [Chris]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/igt_kms.c | 1 | ||||
| -rw-r--r-- | lib/igt_kms.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 6e499f48..d806ccc1 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -196,6 +196,7 @@ const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = { [IGT_CONNECTOR_CRTC_ID] = "CRTC_ID", [IGT_CONNECTOR_DPMS] = "DPMS", [IGT_CONNECTOR_BROADCAST_RGB] = "Broadcast RGB", + [IGT_CONNECTOR_CONTENT_PROTECTION] = "Content Protection", }; /* diff --git a/lib/igt_kms.h b/lib/igt_kms.h index cbfcced9..e6aff339 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -120,6 +120,7 @@ enum igt_atomic_connector_properties { IGT_CONNECTOR_CRTC_ID, IGT_CONNECTOR_DPMS, IGT_CONNECTOR_BROADCAST_RGB, + IGT_CONNECTOR_CONTENT_PROTECTION, IGT_NUM_CONNECTOR_PROPS }; |
