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

drm/amd/display: Add link rate optimization logs for ILR

[Why&How]
Add logs to verify ILR optimization behaviour on boot

Signed-off-by: Michael Strauss <michael.strauss@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@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
0eda55ca 97d1765e

+12 -2
+1
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 1434 1434 } 1435 1435 1436 1436 if (is_edp_ilr_optimization_required(link, crtc_timing)) { 1437 + DC_LOG_EVENT_LINK_TRAINING("Seamless boot disabled to optimize eDP link rate\n"); 1437 1438 return false; 1438 1439 } 1439 1440
+4
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
··· 1695 1695 bool can_apply_edp_fast_boot = false; 1696 1696 bool can_apply_seamless_boot = false; 1697 1697 bool keep_edp_vdd_on = false; 1698 + DC_LOGGER_INIT(); 1699 + 1698 1700 1699 1701 get_edp_links_with_sink(dc, edp_links_with_sink, &edp_with_sink_num); 1700 1702 get_edp_links(dc, edp_links, &edp_num); ··· 1719 1717 edp_stream = edp_streams[0]; 1720 1718 can_apply_edp_fast_boot = !is_edp_ilr_optimization_required(edp_stream->link, &edp_stream->timing); 1721 1719 edp_stream->apply_edp_fast_boot_optimization = can_apply_edp_fast_boot; 1720 + if (can_apply_edp_fast_boot) 1721 + DC_LOG_EVENT_LINK_TRAINING("eDP fast boot disabled to optimize link rate\n"); 1722 1722 1723 1723 break; 1724 1724 }