Skip to content

tools/intel_hdcp: HDCP tool updates

Santhosh Reddy Guddati igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16tools/intel_hdcp: Don't set HDCP Content Type unconditionallytools/intel_hdcp.c+23 -30 replies
2/16tools/intel_hdcp: Read stdin outside the display locktools/intel_hdcp.c+18 -80 replies
3/16tools/intel_hdcp: Exit cleanly on quit and on Ctrl-Ctools/intel_hdcp.c+68 -90 replies
4/16tools/intel_hdcp: Keep the picture and the protected link togethertools/intel_hdcp.c+37 -20 replies
5/16tools/intel_hdcp: Report the tool and IGT versiontools/intel_hdcp.c+31 -00 replies
6/16tools/intel_hdcp: Don't read Content Protection from every connectortools/intel_hdcp.c+7 -00 replies
7/16tools/intel_hdcp: Report content protection changes as they happentools/intel_hdcp.c+182 -110 replies
8/16tools/intel_hdcp: Print a session summary on exittools/intel_hdcp.c+93 -140 replies
9/16tools/intel_hdcp: Add Content Protection state helperstools/intel_hdcp.c+14 -90 replies
10/16tools/intel_hdcp: Rework the on-screen overlaytools/intel_hdcp.c+277 -1480 replies
11/16tools/intel_hdcp: Run the overlay for the full sessiontools/intel_hdcp.c+17 -100 replies
12/16tools/intel_hdcp: Show the transition log on the displaytools/intel_hdcp.c+81 -00 replies
13/16tools/intel_hdcp: Report authentication timetools/intel_hdcp.c+69 -110 replies
14/16tools/intel_hdcp: Actually select HDCP1.4 when it is asked fortools/intel_hdcp.c+41 -00 replies
15/16tools/intel_hdcp: Colour the overlay by HDCP statetools/intel_hdcp.c+24 -70 replies
16/16tools/intel_hdcp: Say what the numbers in a transition line meantools/intel_hdcp.c+10 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH i-g-t v1 00/16] tools/intel_hdcp: HDCP tool updates

intel_hdcp is the manual bring-up tool for HDCP: it puts a picture on a protected output and lets an operator drive Content Protection from the keyboard.

This series handles below fixes.

Fixes first. The tool only touches HDCP Content Type on connectors that actually have it, and only reads Content Protection where it exists. The display no longer freezes while the tool waits for you to type, because it does not hold the display lock while reading stdin. Shutdown is now cooperative rather than killing the input thread mid-operation, which could leave a lock held and hang the exit. 'q', Ctrl-C and EOF all take the same path out and set Content Protection back to UNDESIRED, so the tool no longer exits leaving the link protected. If no connected output supports Content Protection, it says so and stops instead of crashing later, and it checks that HDCP is applied to the same connector that the picture is on.

Then reporting. A version line at startup and --version tell you which build a log or a photo of the screen came from. Every Content Protection change is logged with how long the previous state lasted and, when the link comes up, how long the kernel took to authenticate. On exit you get a summary: how many times it authenticated, how many times the link dropped, the min/avg/max authentication time and the total protected time, ready to paste into a bug report.

The rest is the on-screen overlay, which is what you watch during a demo. The state badge now shows what the kernel reports instead of what was asked for, so it no longer goes green on a link that never came up. The top bar names the output, connector id and sink capability; the bottom bar shows elapsed time and the key legend. A band sweeps across the picture so you can tell a live frame from a frozen one, and the last few transitions appear under the badge. Drawing alternates between two framebuffers so the tool is not painting into the one on screen. The overlay runs from startup rather than only after HDCP is requested.

Santhosh Reddy Guddati (16):
tools/intel_hdcp: Don't set HDCP Content Type unconditionally tools/intel_hdcp: Read stdin outside the display lock tools/intel_hdcp: Exit cleanly on quit and on Ctrl-C tools/intel_hdcp: Keep the picture and the protected link together tools/intel_hdcp: Report the tool and IGT version tools/intel_hdcp: Don't read Content Protection from every connector tools/intel_hdcp: Report content protection changes as they happen tools/intel_hdcp: Print a session summary on exit tools/intel_hdcp: Add Content Protection state helpers tools/intel_hdcp: Rework the on-screen overlay tools/intel_hdcp: Run the overlay for the full session tools/intel_hdcp: Show the transition log on the display tools/intel_hdcp: Report authentication time tools/intel_hdcp: Actually select HDCP1.4 when it is asked for tools/intel_hdcp: Colour the overlay by HDCP state tools/intel_hdcp: Say what the numbers in a transition line mean

 tools/intel_hdcp.c | 1092 +++++++++++++++++++++++++++++++++++++-------
 1 file changed, 922 insertions(+), 170 deletions(-)
Signature · 1 line
2.43.0