OSDN Git Service

drm/amdgpu/gmc10: free stolen memory in late_init
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jan 2020 03:14:24 +0000 (22:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jan 2020 15:18:10 +0000 (10:18 -0500)
We don't need to store the pre-OS console memory after
the driver has loaded so free it.

Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c

index faa310b..5ad89bb 100644 (file)
@@ -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;