[PATCH 04/17] drm/amd/display: init dc_power_state
Rodrigo Siqueira
Rodrigo.Siqueira at amd.com
Fri Dec 13 15:52:36 UTC 2024
From: Charlene Liu <Charlene.Liu at amd.com>
Initialize the power state for dc use
Reviewed-by: Chris Park <chris.park at amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu at amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira at amd.com>
---
drivers/gpu/drm/amd/display/dc/core/dc.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 4afab745b044..81f5996f2edb 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -5311,11 +5311,13 @@ void dc_set_power_state(struct dc *dc, enum dc_acpi_cm_power_state power_state)
dc->vm_pa_config.valid) {
dc->hwss.init_sys_ctx(dc->hwseq, dc, &dc->vm_pa_config);
}
-
+ /*mark d0 last*/
+ dc->power_state = power_state;
break;
default:
ASSERT(dc->current_state->stream_count == 0);
-
+ /*mark d3 first*/
+ dc->power_state = power_state;
dc_dmub_srv_notify_fw_dc_power_state(dc->ctx->dmub_srv, power_state);
dc_state_destruct(dc->current_state);
--
2.45.2
More information about the amd-gfx
mailing list