Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ian Chen and committed by
Alex Deucher
54da09c7 5fdd03c7

+6
+6
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 6012 6012 if (pipe_ctx) 6013 6013 otg_inst = pipe_ctx->stream_res.tg->inst; 6014 6014 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 + 6015 6021 // fill in cmd 6016 6022 memset(&cmd, 0, sizeof(cmd)); 6017 6023