Skip to content

Commit 39619d5

Browse files
Aurabindo Pillaialexdeucher
authored andcommitted
drm/amd/display: enable low power mode for VGA memory
[Why] When unused, all memory blocks should be put in a low power state [How] Check the value of enable_mem_low_power.bits.vga and set corresponding bit in the hardware register Acked-by: Stylon Wang <stylon.wang@amd.com> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 236dcf7 commit 39619d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,11 @@ void dcn30_init_hw(struct dc *dc)
461461
REG_SET_2(ODM_MEM_PWR_CTRL3, 0, ODM_MEM_UNASSIGNED_PWR_MODE, 3, ODM_MEM_VBLANK_PWR_MODE, 1);
462462
}
463463

464+
if (dc->debug.enable_mem_low_power.bits.vga) {
465+
// Power down VGA memory
466+
REG_UPDATE(MMHUBBUB_MEM_PWR_CNTL, VGA_MEM_PWR_FORCE, 1);
467+
}
468+
464469
if (dc->ctx->dc_bios->fw_info_valid) {
465470
res_pool->ref_clocks.xtalin_clock_inKhz =
466471
dc->ctx->dc_bios->fw_info.pll_info.crystal_frequency;

0 commit comments

Comments
 (0)