]> www.infradead.org Git - nvme.git/commitdiff
drm/amd/display: Add debug flag to enable eDP ILR by default
authorMichael Strauss <michael.strauss@amd.com>
Mon, 22 Mar 2021 19:13:13 +0000 (15:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:30:36 +0000 (16:30 -0400)
[Why & How]
Allow per-asic enablement of ILR feature with debug flag

Signed-off-by: Michael Strauss <michael.strauss@amd.com>
Acked-by: Bindu Ramamurthy <bindur12@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc.h

index 7d2e433c227563a9b2fc3885dc0a3279a908e7d9..5aa16114a676d3e14cf3a678a0d34ebe5e830be0 100644 (file)
@@ -3892,7 +3892,7 @@ void detect_edp_sink_caps(struct dc_link *link)
        memset(supported_link_rates, 0, sizeof(supported_link_rates));
 
        if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_14 &&
-                       (link->dc->config.optimize_edp_link_rate ||
+                       (link->dc->debug.optimize_edp_link_rate ||
                        link->reported_link_cap.link_rate == LINK_RATE_UNKNOWN)) {
                // Read DPCD 00010h - 0001Fh 16 bytes at one shot
                core_link_read_dpcd(link, DP_SUPPORTED_LINK_RATES,
index 8108b82bac60ca37cd48d51ed417a9bb8fca158d..f9fe03cb25369d31b56b7094bf4eb5862dcf1eb1 100644 (file)
@@ -293,7 +293,6 @@ struct dc_config {
        bool gpu_vm_support;
        bool disable_disp_pll_sharing;
        bool fbc_support;
-       bool optimize_edp_link_rate;
        bool disable_fractional_pwm;
        bool allow_seamless_boot_optimization;
        bool power_down_display_on_boot;
@@ -541,6 +540,7 @@ struct dc_debug_options {
 
        /* Enable dmub aux for legacy ddc */
        bool enable_dmub_aux_for_legacy_ddc;
+       bool optimize_edp_link_rate; /* eDP ILR */
 };
 
 struct dc_debug_data {