mirror of https://gitee.com/openkylin/linux.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 <ray.huang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
bbde7162f7
commit
1499bcc7a2
|
@ -566,6 +566,8 @@ static int gmc_v10_0_late_init(void *handle)
|
||||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
amdgpu_bo_late_init(adev);
|
||||||
|
|
||||||
r = amdgpu_gmc_allocate_vm_inv_eng(adev);
|
r = amdgpu_gmc_allocate_vm_inv_eng(adev);
|
||||||
if (r)
|
if (r)
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in New Issue