drm/amd/display: Add DMCU memory low power support
authorJacky Liao <ziyu.liao@amd.com>
Wed, 21 Oct 2020 21:31:26 +0000 (17:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:07:31 +0000 (12:07 -0500)
commit96879ad3e4e3cf16af78de4fe9cbc9688cb26105
treed45a9d1f2389091b4981bfdb13d31c9781fb5c0b
parent949c5cde3e0ffca0811ef72b8f4bcd9a483ab558
drm/amd/display: Add DMCU memory low power support

[Why]
On some platforms, DMCU is no longer used. In these cases, some DMCU
memory should be completely powered off to save power.

[How]
1. Set DMCU_ERAM_MEM_PWR_FORCE to shutdown memory when DMCU is not in
   use
2. Added a debug option to allow this behaviour to be turned off
3. Set all memory low power debug options to off first, to not
   immediately cause problems

Signed-off-by: Jacky Liao <ziyu.liao@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c