Skip to content
  • Ramalingam C's avatar
    kms_content_protection: Add Content Protection test · 7889b6a8
    Ramalingam C authored and Daniel Vetter's avatar Daniel Vetter committed
    
    
    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's avatarSean Paul <seanpaul@chromium.org>
    Signed-off-by: default avatarRamalingam C <ramalingam.c@intel.com>
    Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    7889b6a8