From: Alex Deucher Date: Thu, 9 Jan 2020 03:14:24 +0000 (-0500) Subject: drm/amdgpu/gmc10: free stolen memory in late_init X-Git-Tag: v5.6-rc1~114^2~6^2~89 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1499bcc7a216770c9946f1ec1aa331604338f7e2;p=users%2Fjedix%2Flinux-maple.git drm/amdgpu/gmc10: free stolen memory in late_init We don't need to store the pre-OS console memory after the driver has loaded so free it. Reviewed-by: Huang Rui Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c index faa310b76b50..5ad89bb6f3ba 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c @@ -566,6 +566,8 @@ static int gmc_v10_0_late_init(void *handle) struct amdgpu_device *adev = (struct amdgpu_device *)handle; int r; + amdgpu_bo_late_init(adev); + r = amdgpu_gmc_allocate_vm_inv_eng(adev); if (r) return r;