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

drm/amd/display: Add configuration options for AUX wake work around.

[Why]
Work around to try to wake unresponsive DP sinks may need to be adjusted
for certain sinks.

[How]
Add options to disable work around or adjust time spent trying to wake
unresponsive DPRX.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Jimmy Kizito <Jimmy.Kizito@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jimmy Kizito and committed by
Alex Deucher
bb90786f ec313220

+24 -1
+17
drivers/gpu/drm/amd/display/dc/dc.h
··· 526 526 uint32_t raw; 527 527 }; 528 528 529 + /* AUX wake work around options 530 + * 0: enable/disable work around 531 + * 1: use default timeout LINK_AUX_WAKE_TIMEOUT_MS 532 + * 15-2: reserved 533 + * 31-16: timeout in ms 534 + */ 535 + union aux_wake_wa_options { 536 + struct { 537 + uint32_t enable_wa : 1; 538 + uint32_t use_default_timeout : 1; 539 + uint32_t rsvd: 14; 540 + uint32_t timeout_ms : 16; 541 + } bits; 542 + uint32_t raw; 543 + }; 544 + 529 545 struct dc_debug_data { 530 546 uint32_t ltFailCount; 531 547 uint32_t i2cErrorCount; ··· 728 712 #endif 729 713 bool apply_vendor_specific_lttpr_wa; 730 714 bool extended_blank_optimization; 715 + union aux_wake_wa_options aux_wake_wa; 731 716 bool ignore_dpref_ss; 732 717 uint8_t psr_power_use_phy_fsm; 733 718 };