OSDN Git Service

drm/amd/display: Add DSCL memory low power support
authorJacky Liao <ziyu.liao@amd.com>
Mon, 16 Nov 2020 22:04:35 +0000 (17:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Dec 2020 21:03:40 +0000 (16:03 -0500)
commitd0274aba24bf98aad04beb917dea4fbe45659a79
treee0638fd7d8db0bbdb47d9c465923c26fa71af0ee
parent99349a8aeda7a044fc5850924bc3b57c306a1553
drm/amd/display: Add DSCL memory low power support

[Why]
The DSCL memory blocks should be powered down when they're not in use.
This will reduce power consumption.

[How]
1. Write to DSCL_MEM_PWR_FORCE to put memory to shutdown when DSCL is not
   used.
2. Added a debug option to allow this behaviour to be turned off

Signed-off-by: Jacky Liao <ziyu.liao@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@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/dcn10/dcn10_dpp.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.h
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.h