summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/include/amd_shared.h
diff options
context:
space:
mode:
authorRoman Li <Roman.Li@amd.com>2019-10-01 09:45:38 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-10-25 16:50:10 -0400
commit397a9bc588797907fda9879c2f8cfda1a436e8ce (patch)
tree2929424e049d7a9ec1f0a62449ebfd81eaeb0017 /drivers/gpu/drm/amd/include/amd_shared.h
parent6c45e480fe23d779df5cb95ce55cf9d4f4fb51cb (diff)
drm/amdgpu/display: add dc feature mask for psr enablement
[Why] Adding psr mask to dc features allows selectively disable/enable psr. Current psr implementation may not work with non-pageflipping application. Until resolved it should be disabled by default. [How] Add dcfeaturemask for psr enablement. Disable by default. To enable set amdgpu.dcfeaturemask=0x8 in grub kernel command line. Signed-off-by: Roman Li <Roman.Li@amd.com> Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include/amd_shared.h')
-rw-r--r--drivers/gpu/drm/amd/include/amd_shared.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h
index 8889aaceec60..8340ec0ab792 100644
--- a/drivers/gpu/drm/amd/include/amd_shared.h
+++ b/drivers/gpu/drm/amd/include/amd_shared.h
@@ -143,6 +143,7 @@ enum PP_FEATURE_MASK {
enum DC_FEATURE_MASK {
DC_FBC_MASK = 0x1,
DC_MULTI_MON_PP_MCLK_SWITCH_MASK = 0x2,
+ DC_PSR_MASK = 0x8,
};
enum amd_dpm_forced_level;