tools/intel_hdcp: HDCP tool updates
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest16 patches 1 replyIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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