Skip to contentSkip to conversation

drm/amdgpu: Add debug masks for HDCP LC FW testing

PATCH In review Dominik Kaszewski 2 participants 2 messages Mar 13, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Add debug masks for HDCP LC FW testing

HDCP Locality Check is being moved to FW, add debug flags to control its behavior in existing hardware for validation purposes.

---
 drivers/gpu/drm/amd/include/amd_shared.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpu/drm/amd/include/amd_shared.h +12 -0
index 485b713cfad0..4c95b885d1d0 100644
@@ -358,6 +358,18 @@ enum DC_DEBUG_MASK {
 	 * @DC_DISABLE_CUSTOM_BRIGHTNESS_CURVE: If set, disable support for custom brightness curves
 	 */
 	DC_DISABLE_CUSTOM_BRIGHTNESS_CURVE = 0x40000,
+
+	/**
+	 * @DC_HDCP_LC_FORCE_FW_ENABLE: If set, use HDCP Locality Check FW
+	 * path regardless of reported HW capabilities.
+	 */
+	DC_HDCP_LC_FORCE_FW_ENABLE = 0x80000,
+
+	/**
+	 * @DC_HDCP_LC_ENABLE_SW_FALLBACK If set, upon HDCP Locality Check FW
+	 * path failure, retry using legacy SW path.
+	 */
+	DC_HDCP_LC_ENABLE_SW_FALLBACK = 0x100000,
 };
 
 enum amd_dpm_forced_level;
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

--

Regards,
Jay
________________________________
From: Dominik Kaszewski <[email protected]>
Sent: Thursday, March 13, 2025 4:52 AM
To: [email protected] <[email protected]>
Cc: Pillai, Aurabindo <[email protected]>
Subject: [PATCH] drm/amdgpu: Add debug masks for HDCP LC FW testing

HDCP Locality Check is being moved to FW, add debug flags to control its behavior in existing hardware for validation purposes.

---
 drivers/gpu/drm/amd/include/amd_shared.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpu/drm/amd/include/amd_shared.h +12 -0
index 485b713cfad0..4c95b885d1d0 100644
@@ -358,6 +358,18 @@ enum DC_DEBUG_MASK {
          * @DC_DISABLE_CUSTOM_BRIGHTNESS_CURVE: If set, disable support for custom brightness curves
          */
         DC_DISABLE_CUSTOM_BRIGHTNESS_CURVE = 0x40000,
+
+       /**
+        * @DC_HDCP_LC_FORCE_FW_ENABLE: If set, use HDCP Locality Check FW
+        * path regardless of reported HW capabilities.
+        */
+       DC_HDCP_LC_FORCE_FW_ENABLE = 0x80000,
+
+       /**
+        * @DC_HDCP_LC_ENABLE_SW_FALLBACK If set, upon HDCP Locality Check FW
+        * path failure, retry using legacy SW path.
+        */
+       DC_HDCP_LC_ENABLE_SW_FALLBACK = 0x100000,
 };
 
 enum amd_dpm_forced_level;

--
2.43.0