<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>Reviewed-by: Chunming Zhou <david1.zhou@amd.com><br>
<br>
<br>
send from my phone<br>
<br>
-------- 原始邮件 --------<br>
主题:[PATCH 2/2] drm/amdgpu: cleanup setting bulk_movable<br>
发件人:Christian König <br>
收件人:amd-gfx@lists.freedesktop.org<br>
抄送:<br>
<br>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">We only need to set this to false now when BOs are removed from the LRU.<br>
<br>
Signed-off-by: Christian König <christian.koenig@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 ------<br>
 1 file changed, 6 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c<br>
index a404ac17e5ae..79f9dde70bc0 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c<br>
@@ -332,7 +332,6 @@ static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base,<br>
         if (bo->tbo.resv != vm->root.base.bo->tbo.resv)<br>
                 return;<br>
 <br>
-       vm->bulk_moveable = false;<br>
         if (bo->tbo.type == ttm_bo_type_kernel)<br>
                 amdgpu_vm_bo_relocated(base);<br>
         else<br>
@@ -698,8 +697,6 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,<br>
         struct amdgpu_vm_bo_base *bo_base, *tmp;<br>
         int r = 0;<br>
 <br>
-       vm->bulk_moveable &= list_empty(&vm->evicted);<br>
-<br>
         list_for_each_entry_safe(bo_base, tmp, &vm->evicted, vm_status) {<br>
                 struct amdgpu_bo *bo = bo_base->bo;<br>
 <br>
@@ -2775,9 +2772,6 @@ void amdgpu_vm_bo_rmv(struct amdgpu_device *adev,<br>
         struct amdgpu_vm_bo_base **base;<br>
 <br>
         if (bo) {<br>
-               if (bo->tbo.resv == vm->root.base.bo->tbo.resv)<br>
-                       vm->bulk_moveable = false;<br>
-<br>
                 for (base = &bo_va->base.bo->vm_bo; *base;<br>
                      base = &(*base)->next) {<br>
                         if (*base != &bo_va->base)<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font>
</body>
</html>