drm/amdgpu: cleanup amdgpu_pte_update_params
Subsystems (2)
PATCH 1/2 drm/amdgpu: cleanup amdgpu_pte_update_params
kptr is not used any more.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -8
@@ -107,14 +107,6 @@ struct amdgpu_pte_update_params {* DMA addresses to use for mapping, used during VM update by CPU */ dma_addr_t *pages_addr; - -/** -* @kptr: -* -* Kernel pointer of PD/PT BO that needs to be updated, -* used during VM update by CPU -*/ -void *kptr; };/**
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): 20190128124313.57573-1-christian.koenig-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/amdgpu: cleanup setting bulk_movable
We only need to set this to false now when BOs are removed from the LRU.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -6
@@ -332,7 +332,6 @@ 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
@@ -698,8 +697,6 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,struct amdgpu_vm_bo_base *bo_base, *tmp;int r =0 ; - vm->bulk_moveable &=list_empty (&vm->evicted); -list_for_each_entry_safe (bo_base, tmp, &vm->evicted, vm_status) {struct amdgpu_bo *bo = bo_base->bo;
@@ -2775,9 +2772,6 @@ 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): 20190128124313.57573-2-christian.koenig-5C7GfCeVMHo@public.gmane.org
Zhou, David(ChunMing)
Reviewed-by Chunming Zhou回复:[PATCH 2/2] drm/amdgpu: cleanup setting bulk_movable
send from my phone
-------- 原始邮件 --------
主题:[PATCH 2/2] drm/amdgpu: cleanup setting bulk_movable 发件人:Christian König 收件人:[email protected]
抄送:
We only need to set this to false now when BOs are removed from the LRU.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -6
@@ -332,7 +332,6 @@ 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
@@ -698,8 +697,6 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,struct amdgpu_vm_bo_base *bo_base, *tmp;int r =0 ; - vm->bulk_moveable &=list_empty (&vm->evicted); -list_for_each_entry_safe (bo_base, tmp, &vm->evicted, vm_status) {struct amdgpu_bo *bo = bo_base->bo;
@@ -2775,9 +2772,6 @@ 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
_______________________________________________
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