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

drm/amd/display: Send DP_TOTAL_LTTPR_CNT during detection if LTTPR is present

[WHY]
New register field added in DP2.1 SCR, needed for auxless ALPM

[HOW]
Echo value read from 0xF0007 back to sink

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Michael Strauss <michael.strauss@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Michael Strauss and committed by
Alex Deucher
2ec6c7f8 74fa02c4

+14 -1
+5
drivers/gpu/drm/amd/display/include/dpcd_defs.h
··· 177 177 #define DP_SINK_PR_PIXEL_DEVIATION_PER_LINE 0x379 178 178 #define DP_SINK_PR_MAX_NUMBER_OF_DEVIATION_LINE 0x37A 179 179 180 + /* Remove once drm_dp_helper.h is updated upstream */ 181 + #ifndef DP_TOTAL_LTTPR_CNT 182 + #define DP_TOTAL_LTTPR_CNT 0xF000A /* 2.1 */ 183 + #endif 184 + 180 185 #endif /* __DAL_DPCD_DEFS_H__ */