drm/amd/display: Preserve gpu memory allocation for life of dc
authorJoshua Aberback <joshua.aberback@amd.com>
Mon, 15 Jun 2020 21:58:00 +0000 (17:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Jul 2020 16:02:53 +0000 (12:02 -0400)
commitdd827a489c955254e9f139df29bd8ed970c98d61
treeb2faa993be935eb9e30dbf843710b00059fa82fe
parent6bc1242960b1e99a708aacdb7f531e099c5813dd
drm/amd/display: Preserve gpu memory allocation for life of dc

[Why]
We want to keep the same buffer allocated for use during multiple
hardware initializations.

[How]
 - allocate gpu memory buffer on clock manager construct
 - free gpu memory buffer on clock manager destruct

Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h