drm/amdgpu: fix indent
Subsystems (2)
PATCH 1/3 drm/amdgpu: fix indent
Change-Id I3a81680648fbaca74662c85709c864fa3a4a75bd
Signed-off-by Roger.He <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +17 -17
@@ -2476,25 +2476,25 @@ static int amdgpu_recover_vram_from_shadow(struct amdgpu_device *adev,uint32_t domain;int r; -if (!bo->shadow) -return 0 ; - - r =amdgpu_bo_reserve (bo, false); -if (r) -return r; - domain =amdgpu_mem_type_to_domain (bo->tbo.mem.mem_type); -/* if bo has been evicted, then no need to recover */ -if (domain ==AMDGPU_GEM_DOMAIN_VRAM ) { - r =amdgpu_bo_restore_from_shadow (adev, ring, bo, +if (!bo->shadow) +return 0 ; + + r =amdgpu_bo_reserve (bo, false); +if (r) +return r; + domain =amdgpu_mem_type_to_domain (bo->tbo.mem.mem_type); +/* if bo has been evicted, then no need to recover */ +if (domain ==AMDGPU_GEM_DOMAIN_VRAM ) { + r =amdgpu_bo_restore_from_shadow (adev, ring, bo,NULL , fence, true); -if (r) { -DRM_ERROR ("recover page table failed!\n" ); - goto err; - } - } +if (r) { +DRM_ERROR ("recover page table failed!\n" ); + goto err; + } + } err: -amdgpu_bo_unreserve (bo); -return r; +amdgpu_bo_unreserve (bo); +return r; }/**
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1492758435-12489-1-git-send-email-Hongbo.He-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Reviewed-by Alex DeucherQuoted 10 lines
-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Roger.He
Sent: Friday, April 21, 2017 3:07 AM
To: [email protected]
Cc: Zhou, David(ChunMing); He, Hongbo
Subject: [PATCH 1/3] drm/amdgpu: fix indentChange-Id I3a81680648fbaca74662c85709c864fa3a4a75bdSigned-off-by Roger.He <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 54 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 34 +++++++++++++++-- ------------- 1 file changed, 17 insertions(+), 17 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +17
-17@@ -2476,25 +2476,25 @@ static int amdgpu_recover_vram_from_shadow(struct amdgpu_device *adev, uint32_t domain;int r; -if (!bo->shadow) -return 0 ; - - r =amdgpu_bo_reserve (bo, false); -if (r) -return r; - domain =amdgpu_mem_type_to_domain (bo->tbo.mem.mem_type); -/* if bo has been evicted, then no need to recover */ -if (domain ==AMDGPU_GEM_DOMAIN_VRAM ) { - r =amdgpu_bo_restore_from_shadow (adev, ring, bo, +if (!bo->shadow) +return 0 ; + + r =amdgpu_bo_reserve (bo, false); +if (r) +return r; + domain =amdgpu_mem_type_to_domain (bo- >tbo.mem.mem_type); +/* if bo has been evicted, then no need to recover */ +if (domain ==AMDGPU_GEM_DOMAIN_VRAM ) { + r =amdgpu_bo_restore_from_shadow (adev, ring, bo,NULL , fence, true); -if (r) { -DRM_ERROR ("recover page table failed!\n" ); - goto err; - } - } +if (r) { +DRM_ERROR ("recover page table failed!\n" ); + goto err; + } + } err: -amdgpu_bo_unreserve (bo); -return r; +amdgpu_bo_unreserve (bo); +return r; }
Quoted 8 lines
/**
--
2.7.4_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx