drm/amdgpu/display: add dc feature mask for psr enablement
authorRoman Li <Roman.Li@amd.com>
Tue, 1 Oct 2019 13:45:38 +0000 (09:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:50:10 +0000 (16:50 -0400)
commit397a9bc588797907fda9879c2f8cfda1a436e8ce
tree2929424e049d7a9ec1f0a62449ebfd81eaeb0017
parent6c45e480fe23d779df5cb95ce55cf9d4f4fb51cb
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/include/amd_shared.h