drm/xe/hdcp: Fix condition for hdcp gsc cs requirement
authorSuraj Kandpal <suraj.kandpal@intel.com>
Fri, 8 Mar 2024 15:49:40 +0000 (21:19 +0530)
committerUma Shankar <uma.shankar@intel.com>
Mon, 11 Mar 2024 05:28:52 +0000 (10:58 +0530)
Add condition for check of hdcp gsc cs requirement rather than
assuming gsc cs to always be required when xe is loaded. It is not
required for display version < 14

--v2
-Use display version in commit message [Lucas]

Fixes: 152f2df954d8 ("drm/xe/hdcp: Enable HDCP for XE")
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240308154939.1940960-2-suraj.kandpal@intel.com
drivers/gpu/drm/xe/display/xe_hdcp_gsc.c

index dcde1d0ac1f8d0668be445dec37b7a7f851eda4e..25c73602ef555930978f7b7e7a54b26d65d070c3 100644 (file)
@@ -32,7 +32,7 @@ struct intel_hdcp_gsc_message {
 
 bool intel_hdcp_gsc_cs_required(struct xe_device *xe)
 {
-       return true;
+       return DISPLAY_VER(xe) >= 14;
 }
 
 bool intel_hdcp_gsc_check_status(struct xe_device *xe)