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 handling 128b/132b link training test request

[why]
DP2.x added new enum values for UHBR link rates in link training test
request for test automation. We need to add UHBR link rates test request
support in preparation for compliance test automation.

[how]
added a function that translate test link rate to dc link rate. Call
the translation function to decide the requested test link rate.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: George Shen <George.Shen@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@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
180c4592 bb90786f

+36 -2
+11 -1
drivers/gpu/drm/amd/display/dc/dc_dp_types.h
··· 133 133 DP_128b_132b_ENCODING = 2, 134 134 }; 135 135 136 + enum dp_test_link_rate { 137 + DP_TEST_LINK_RATE_RBR = 0x06, 138 + DP_TEST_LINK_RATE_HBR = 0x0A, 139 + DP_TEST_LINK_RATE_HBR2 = 0x14, 140 + DP_TEST_LINK_RATE_HBR3 = 0x1E, 141 + DP_TEST_LINK_RATE_UHBR10 = 0x01, 142 + DP_TEST_LINK_RATE_UHBR20 = 0x02, 143 + DP_TEST_LINK_RATE_UHBR13_5 = 0x03, 144 + }; 145 + 136 146 struct dc_link_settings { 137 147 enum dc_lane_count lane_count; 138 148 enum dc_link_rate link_rate; ··· 630 620 uint8_t LINK_TEST_PATTRN :1; 631 621 uint8_t EDID_READ :1; 632 622 uint8_t PHY_TEST_PATTERN :1; 633 - uint8_t RESERVED :1; 623 + uint8_t PHY_TEST_CHANNEL_CODING_TYPE :2; 634 624 uint8_t AUDIO_TEST_PATTERN :1; 635 625 uint8_t TEST_AUDIO_DISABLED_VIDEO :1; 636 626 } bits;