From: Dominik Kaszewski Date: Thu, 13 Mar 2025 08:52:31 +0000 (+0100) Subject: drm/amdgpu: Add debug masks for HDCP LC FW testing X-Git-Tag: v6.15-rc1~120^2~1^2~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84ff5895399c01be49620c0fa2ac04d2715a2e00;p=thirdparty%2Fkernel%2Flinux.git 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. Signed-off-by: Dominik Kaszewski Reviewed-by: Aurabindo Pillai Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index 485b713cfad0a..4c95b885d1d00 100644 --- a/drivers/gpu/drm/amd/include/amd_shared.h +++ b/drivers/gpu/drm/amd/include/amd_shared.h @@ -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;