Skip to content

Commit 54da09c

Browse files
Ian Chenalexdeucher
authored andcommitted
drm/amd/display: fix Smart Power OLED not working after S4
[HOW] Before enable smart power OLED, we need to call set pipe to let DMUB get correct ABM config. Reviewed-by: Robin Chen <robin.chen@amd.com> Signed-off-by: Ian Chen <ian.chen@amd.com> Signed-off-by: Roman Li <roman.li@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 5fdd03c commit 54da09c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • drivers/gpu/drm/amd/display/dc/core

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6012,6 +6012,12 @@ bool dc_smart_power_oled_enable(const struct dc_link *link, bool enable, uint16_
60126012
if (pipe_ctx)
60136013
otg_inst = pipe_ctx->stream_res.tg->inst;
60146014

6015+
// before enable smart power OLED, we need to call set pipe for DMUB to set ABM config
6016+
if (enable) {
6017+
if (dc->hwss.set_pipe && pipe_ctx)
6018+
dc->hwss.set_pipe(pipe_ctx);
6019+
}
6020+
60156021
// fill in cmd
60166022
memset(&cmd, 0, sizeof(cmd));
60176023

0 commit comments

Comments
 (0)