]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/amd/display: limit the code change to ips enabled asic
authorCharlene Liu <charlene.liu@amd.com>
Tue, 2 Apr 2024 20:03:08 +0000 (16:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 01:24:02 +0000 (21:24 -0400)
Limit the code change for ips enable to reduce the impact for now. Also
exit_ips first before dc_power_down to avoid 0x9f.

Reviewed-by: Chris Park <chris.park@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Charlene Liu <charlene.liu@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.c

index 145cdab92ca0ddf2998837e5fe61a57bb1d65736..01c75b66e8f17c84d2ef9f172d77bc5409648d6a 100644 (file)
@@ -5042,8 +5042,13 @@ void dc_interrupt_ack(struct dc *dc, enum dc_irq_source src)
 void dc_power_down_on_boot(struct dc *dc)
 {
        if (dc->ctx->dce_environment != DCE_ENV_VIRTUAL_HW &&
-                       dc->hwss.power_down_on_boot)
+                       dc->hwss.power_down_on_boot) {
+
+                       if (dc->caps.ips_support)
+                               dc_exit_ips_for_hw_access(dc);
+
                dc->hwss.power_down_on_boot(dc);
+       }
 }
 
 void dc_set_power_state(