diff options
author | Sean Paul <seanpaul@chromium.org> | 2018-01-08 14:55:37 -0500 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2018-01-08 14:57:41 -0500 |
commit | 24557865c8b1a6d0eaccaac47aabd9b23badf8fd (patch) | |
tree | fd3b30c5b2a69755b0daf91518479316b1d72353 /include/xen | |
parent | 23fdbdd7ed3f18f56773c6cbef5d3f1d68befd69 (diff) | |
download | op-kernel-dev-24557865c8b1a6d0eaccaac47aabd9b23badf8fd.zip op-kernel-dev-24557865c8b1a6d0eaccaac47aabd9b23badf8fd.tar.gz |
drm: Add Content Protection property
This patch adds a new optional connector property to allow userspace to enable
protection over the content it is displaying. This will typically be implemented
by the driver using HDCP.
The property is a tri-state with the following values:
- OFF: Self explanatory, no content protection
- DESIRED: Userspace requests that the driver enable protection
- ENABLED: Once the driver has authenticated the link, it sets this value
The driver is responsible for downgrading ENABLED to DESIRED if the link becomes
unprotected. The driver should also maintain the desiredness of protection
across hotplug/dpms/suspend.
If this looks familiar, I posted [1] this 3 years ago. We have been using this
in ChromeOS across exynos, mediatek, and rockchip over that time.
Changes in v2:
- Pimp kerneldoc for content_protection_property (Daniel)
- Drop sysfs attribute
Changes in v3:
- None
Changes in v4:
- Changed kerneldoc to recommend userspace polling (Daniel)
- Changed kerneldoc to briefly describe how to attach the property (Daniel)
Changes in v5:
- checkpatch whitespace noise
- Change DRM_MODE_CONTENT_PROTECTION_OFF to DRM_MODE_CONTENT_PROTECTION_UNDESIRED
Changes in v6:
- None
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
[1] https://lists.freedesktop.org/archives/dri-devel/2014-December/073336.html
Link: https://patchwork.freedesktop.org/patch/msgid/20180108195545.218615-4-seanpaul@chromium.org
Diffstat (limited to 'include/xen')
0 files changed, 0 insertions, 0 deletions