summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc_types.h
diff options
context:
space:
mode:
authorDavid Zhang <dingchen.zhang@amd.com>2022-05-03 10:56:54 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-06-06 14:42:14 -0400
commitc7eac19eda0a82f0c1dd9455012754445772fd09 (patch)
tree7ca406c510af8a8273524ba6404a87900d3b7ba8 /drivers/gpu/drm/amd/display/dc/dc_types.h
parent6cc5c77300afbb285c4f41e04f3435ae3c484c40 (diff)
downloadlinux-stable-c7eac19eda0a82f0c1dd9455012754445772fd09.tar.gz
linux-stable-c7eac19eda0a82f0c1dd9455012754445772fd09.tar.bz2
linux-stable-c7eac19eda0a82f0c1dd9455012754445772fd09.zip
drm/amd/display: Set PSR level to enable ALPM by default
[Why & How] While support ALPM, do ALPM state transition while PSR entry/exit. ALPM is needed for PSR-SU feature, and since the function is ready, we'd enable it by default. - Add psr level definition to enable/disable ALPM and set ALPM powerdone mode. - Enable ALPM by default Signed-off-by: David Zhang <dingchen.zhang@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_types.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_types.h b/drivers/gpu/drm/amd/display/dc/dc_types.h
index 144c387010c2..26b62f50ac4e 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_types.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_types.h
@@ -698,7 +698,9 @@ union dmcu_psr_level {
unsigned int SKIP_AUTO_STATE_ADVANCE:1;
unsigned int DISABLE_PSR_ENTRY_ABORT:1;
unsigned int SKIP_SINGLE_OTG_DISABLE:1;
- unsigned int RESERVED:22;
+ unsigned int DISABLE_ALPM:1;
+ unsigned int ALPM_DEFAULT_PD_MODE:1;
+ unsigned int RESERVED:20;
} bits;
unsigned int u32all;
};