aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
diff options
context:
space:
mode:
authorCharlene Liu <charlene.liu@amd.com>2019-07-24 18:14:46 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-08-15 10:56:19 -0500
commit544618596fd58848f5f881e265a09320e91f2e97 (patch)
treec2e5bade09b480f1ad77f5d43d307b149d4ededa /drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
parentdrm/amd/display: Correct DSC PPS log (diff)
downloadlinux-dev-544618596fd58848f5f881e265a09320e91f2e97.tar.xz
linux-dev-544618596fd58848f5f881e265a09320e91f2e97.zip
drm/amd/display: wake up ogam mem pwr before programming ocsc
[Description] OGAM_MEM_PWR could stay in light up when driver woke up to update gamma. either disable MEM_LOW power feature or set to OGAM_bypass could make artificial color distortion goes away. Easy reproduce after LOW_MEM Power feature enables and resume from S3. Signed-off-by: Charlene Liu <charlene.liu@amd.com> Reviewed-by: Julian Parkin <jparkin@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h b/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
index 9dde88d4571c..58826be81395 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
@@ -254,6 +254,10 @@ struct mpc_funcs {
struct mpc *mpc,
int mpcc_id,
const struct pwl_params *params);
+ void (*power_on_mpc_mem_pwr)(
+ struct mpc *mpc,
+ int mpcc_id,
+ bool power_on);
#endif
};