]> www.infradead.org Git - nvme.git/commitdiff
drm/amd/display: Optimize OLED T7 delay
authorAgustin Gutierrez <agustin.gutierrez@amd.com>
Thu, 7 Sep 2023 05:57:59 +0000 (01:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 20:54:05 +0000 (16:54 -0400)
[Why]
Driver doesn't need T7 delay for OLED panels, since it doesn't control
power sequence.

[How]
This delay can be skipped to optimize resume times.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Swapnil Patel <swapnil.patel@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Agustin Gutierrez <agustin.gutierrez@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

index 2701620350af2e1f899b721bee07066755f19fca..baecaaf96968f1b0d4b0af8b73a1bea44d6437d0 100644 (file)
@@ -1041,7 +1041,8 @@ void dce110_edp_backlight_control(
 
        link_transmitter_control(ctx->dc_bios, &cntl);
 
-       if (enable && link->dpcd_sink_ext_caps.bits.oled) {
+       if (enable && link->dpcd_sink_ext_caps.bits.oled &&
+           !link->dc->config.edp_no_power_sequencing) {
                post_T7_delay += link->panel_config.pps.extra_post_t7_ms;
                msleep(post_T7_delay);
        }