Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: add support for three new square pattern variants from DP2.1 specs

[why]
DP2.1 specs has brought 3 new variants of sqaure patterns with different
pre-shoot and de-emphasis equalization requirements. The commit adds
logic to identify these variants and apply corresponding eqaulization
requirements into hardware lane settings.

Reviewed-by: George Shen <George.Shen@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Wenjing Liu and committed by
Alex Deucher
345ce3fc 752e89a7

+56 -12
+3
drivers/gpu/drm/amd/display/dc/dc_dp_types.h
··· 925 925 #ifndef DP_128b_132b_TRAINING_AUX_RD_INTERVAL 926 926 #define DP_128b_132b_TRAINING_AUX_RD_INTERVAL 0x2216 927 927 #endif 928 + #ifndef DP_LINK_SQUARE_PATTERN 929 + #define DP_LINK_SQUARE_PATTERN 0x10F 930 + #endif 928 931 #ifndef DP_CABLE_ATTRIBUTES_UPDATED_BY_DPRX 929 932 #define DP_CABLE_ATTRIBUTES_UPDATED_BY_DPRX 0x2217 930 933 #endif
+4 -1
drivers/gpu/drm/amd/display/include/dpcd_defs.h
··· 88 88 PHY_TEST_PATTERN_PRBS23 = 0x30, 89 89 PHY_TEST_PATTERN_PRBS31 = 0x38, 90 90 PHY_TEST_PATTERN_264BIT_CUSTOM = 0x40, 91 - PHY_TEST_PATTERN_SQUARE_PULSE = 0x48, 91 + PHY_TEST_PATTERN_SQUARE = 0x48, 92 + PHY_TEST_PATTERN_SQUARE_PRESHOOT_DISABLED = 0x49, 93 + PHY_TEST_PATTERN_SQUARE_DEEMPHASIS_DISABLED = 0x4A, 94 + PHY_TEST_PATTERN_SQUARE_PRESHOOT_DEEMPHASIS_DISABLED = 0x4B, 92 95 }; 93 96 94 97 enum dpcd_test_dyn_range {