All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [RFC 0/2] i915: Add debugfs for requesting HDCP version
@ 2020-05-27 11:01 Ankit Nautiyal
  2020-05-27 11:01 ` [Intel-gfx] [RFC 1/2] drm/i915: Add support for considering HDCP ver requested via debugfs Ankit Nautiyal
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Ankit Nautiyal @ 2020-05-27 11:01 UTC (permalink / raw)
  To: intel-gfx; +Cc: jani.nikula, martin.peres

Currently, for a given content-protection request, the kernel selects
the highest version of HDCP supported by the panel and the platform.

This makes the testing/debugging difficult for lower versions of HDCP.
E.g. In case both the lower and the higher HDCP versions are supported 
then the higher version of HDCP will always be selected and the
lower HDCP version cannot be tested without changing the setup.

A solution for this was proposed in an IGT patch [1] by removing
"mei_hdcp" module, but a need for a generic future-proof solution was
identified.

As suggested by the community members, this patch attempts to add a
new debugfs per connector for requesting a specific version of HDCP
for debug/testing environment.

The test can request for a specific HDCP version and set the
appropriate content-protection connector properties to test the
required version. The kernel will consider the request if the HDCP
version is sufficient for the requested content-protection.

To make the design simpler, the debugfs for requesting the HDCP
version can be only set when the content-protection is disabled.
In case, the test tries to write the debugfs while a request for
content-protectiont is ongoing, the write will be failed.
So the test needs to make sure that the content-protection is disabled
before requesting for an HDCP version via debugfs.


[1] https://patchwork.freedesktop.org/patch/358240/

Ankit Nautiyal (2):
  drm/i915: Add support for considering HDCP ver requested via debugfs
  drm/i915: Add a new debugfs to request HDCP version

 .../drm/i915/display/intel_display_debugfs.c  | 98 +++++++++++++++++++
 .../drm/i915/display/intel_display_types.h    | 10 ++
 drivers/gpu/drm/i915/display/intel_hdcp.c     |  8 +-
 3 files changed, 114 insertions(+), 2 deletions(-)

-- 
2.17.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-05-28  7:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-27 11:01 [Intel-gfx] [RFC 0/2] i915: Add debugfs for requesting HDCP version Ankit Nautiyal
2020-05-27 11:01 ` [Intel-gfx] [RFC 1/2] drm/i915: Add support for considering HDCP ver requested via debugfs Ankit Nautiyal
2020-05-27 14:18   ` Jani Nikula
2020-05-28  7:45     ` Nautiyal, Ankit K
2020-05-27 11:01 ` [Intel-gfx] [RFC 2/2] drm/i915: Add a new debugfs to request HDCP version Ankit Nautiyal
2020-05-27 14:14   ` Jani Nikula
2020-05-28  7:45     ` Nautiyal, Ankit K
2020-05-27 11:45 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for i915: Add debugfs for requesting " Patchwork
2020-05-27 11:46 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2020-05-27 12:08 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-05-27 14:24 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.