]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/hdcp: Handle HDCP Line Rekeying for HDCP 1.4
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 7 Nov 2024 02:28:08 +0000 (07:58 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 7 Nov 2024 21:44:38 +0000 (13:44 -0800)
commit5d0396114e7119a20034e252a58d30b0b41ab965
treed07b137a4a8c10253fe93545af24a8a586da88e7
parent7c100577471366460ce18ccb658b05f7168df738
drm/i915/hdcp: Handle HDCP Line Rekeying for HDCP 1.4

TRANS_DDI_FUNC_CTL asks us to disable hdcp line rekeying when not in
hdcp 2.2 and we are not using an hdmi transcoder and it need to be
enabled when we are using an HDMI transcoder to enable HDCP 1.4.
We use intel_de_rmw cycles to update TRANS_DDI_FUNC_CTL register so
we cannot depend on the value being 0 by default everytime which calls
for seprate handling of HDCP 1.4 case.

--v2
-Use the exising function and modify it based on a bool rather than
have a different function [Matt]

--v3
-No need for kzalloc [Jani]

--v4
-i915_reg_t should not be pointer [Jani]
-use rekey_bit to ensure when writing to reg everything is initialized

Bspec: 69964, 50493, 50054
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241107022807.869744-1-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_hdcp.c