]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Add support for Panel Replay on DP1 eDP (panel_inst=1)
authorOvidiu Bunea <Ovidiu.Bunea@amd.com>
Thu, 13 Mar 2025 03:07:39 +0000 (23:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Jul 2025 18:07:52 +0000 (14:07 -0400)
[why & how]
DP1 eDP is still considered a single-eDP case and should support Panel Replay.
Modify secondary eDP policy to reflect this and update Replay state accordingly.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Signed-off-by: Ovidiu Bunea <Ovidiu.Bunea@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@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/dce/dmub_replay.c

index fcd3d86ad5173a0e6c7663c7624857eee9526525..5d77d0912ee9d2fcf64a9ac4cbf34c9b0d5273f6 100644 (file)
@@ -211,6 +211,7 @@ static void dmub_replay_set_coasting_vtotal(struct dmub_replay *dmub,
        pCmd->header.type = DMUB_CMD__REPLAY;
        pCmd->header.sub_type = DMUB_CMD__REPLAY_SET_COASTING_VTOTAL;
        pCmd->header.payload_bytes = sizeof(struct dmub_cmd_replay_set_coasting_vtotal_data);
+       pCmd->replay_set_coasting_vtotal_data.panel_inst = panel_inst;
        pCmd->replay_set_coasting_vtotal_data.coasting_vtotal = (coasting_vtotal & 0xFFFF);
        pCmd->replay_set_coasting_vtotal_data.coasting_vtotal_high = (coasting_vtotal & 0xFFFF0000) >> 16;