drm/amdgpu: partial revert cleanup setting bulk_movable v2
Subsystems (2)
PATCH 1/1 drm/amdgpu: partial revert cleanup setting bulk_movable v2
We still need to set bulk_movable to false when new BOs are added or removed.
v2: also set it to false on removal
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +4 -0
@@ -332,6 +332,7 @@ static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base,if (bo->tbo.resv != vm->root.base.bo->tbo.resv)return ; + vm->bulk_moveable = false;if (bo->tbo.type == ttm_bo_type_kernel)amdgpu_vm_bo_relocated (base);else
@@ -2772,6 +2773,9 @@ void amdgpu_vm_bo_rmv(struct amdgpu_device *adev,struct amdgpu_vm_bo_base **base;if (bo) { +if (bo->tbo.resv == vm->root.base.bo->tbo.resv) + vm->bulk_moveable = false; +for (base = &bo_va->base.bo->vm_bo; *base; base = &(*base)->next) {if (*base != &bo_va->base)
Signature · 6 lines
2.17.1 _______________________________________________ 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): 20190131075720.2809-1-christian.koenig-5C7GfCeVMHo@public.gmane.org
If Tom tests it OK as well, feel free add my RB to submit it ASAP.
-David
Quoted 46 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Christian K?nig
Sent: Thursday, January 31, 2019 3:57 PM
To: [email protected]
Subject: [PATCH] drm/amdgpu: partial revert cleanup settingbulk_movablev2We still need to set
bulk_movableto false when new BOs are added or removed.v2: also set it to false on removal
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1
-0@@ -332,6 +332,7 @@ static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base, if (bo->tbo.resv != vm->root.base.bo->tbo.resv) return; + vm->bulk_moveable = false;if (bo->tbo.type == ttm_bo_type_kernel)amdgpu_vm_bo_relocated (base);drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +3
-0else @@ -2772,6 +2773,9 @@ void amdgpu_vm_bo_rmv(struct amdgpu_device *adev, struct amdgpu_vm_bo_base **base;if (bo) { +if (bo->tbo.resv == vm->root.base.bo->tbo.resv) + vm->bulk_moveable = false; +for (base = &bo_va->base.bo->vm_bo; *base; base = &(*base)->next) {if (*base !=
&bo_va->base)
--
2.17.1
Quoted 4 lines
_______________________________________________
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