mirror of https://gitee.com/openkylin/linux.git
drm/amdgpu: fix indent
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Roger.He <Hongbo.He@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
55ed8caf14
commit
23d2e5049c
|
@ -2420,25 +2420,25 @@ static int amdgpu_recover_vram_from_shadow(struct amdgpu_device *adev,
|
||||||
uint32_t domain;
|
uint32_t domain;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (!bo->shadow)
|
if (!bo->shadow)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
r = amdgpu_bo_reserve(bo, false);
|
r = amdgpu_bo_reserve(bo, false);
|
||||||
if (r)
|
if (r)
|
||||||
return r;
|
return r;
|
||||||
domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type);
|
domain = amdgpu_mem_type_to_domain(bo->tbo.mem.mem_type);
|
||||||
/* if bo has been evicted, then no need to recover */
|
/* if bo has been evicted, then no need to recover */
|
||||||
if (domain == AMDGPU_GEM_DOMAIN_VRAM) {
|
if (domain == AMDGPU_GEM_DOMAIN_VRAM) {
|
||||||
r = amdgpu_bo_restore_from_shadow(adev, ring, bo,
|
r = amdgpu_bo_restore_from_shadow(adev, ring, bo,
|
||||||
NULL, fence, true);
|
NULL, fence, true);
|
||||||
if (r) {
|
if (r) {
|
||||||
DRM_ERROR("recover page table failed!\n");
|
DRM_ERROR("recover page table failed!\n");
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err:
|
err:
|
||||||
amdgpu_bo_unreserve(bo);
|
amdgpu_bo_unreserve(bo);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue