Skip to contentSkip to conversation

drm/amdgpu: fix duplicated code

PATCH In review Chunming Zhou 3 participants 3 messages Mar 21, 2017 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: fix duplicated code

it could come from branch merge.

Change-Id I16959aad6ca6d64cb8330f23ee6472eec4cf2a3e
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -4
index 81c3c75..dd7df45 100644
@@ -990,10 +990,6 @@ static int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev,
 
 	ring = container_of(vm->entity.sched, struct amdgpu_ring, sched);
 
-	memset(&params, 0, sizeof(params));
-	params.adev = adev;
-	params.src = src;
-
 	/* sync to everything on unmapping */
 	if (!(flags & AMDGPU_PTE_VALID))
 		owner = AMDGPU_FENCE_OWNER_UNDEFINED;
Signature · 6 lines
1.9.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): 1490062243-547-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org

Reviewed-by Junwei Zhang
#2 lore raw
Quoted 4 lines · Chunming Zhou

it could come from branch merge.

Change-Id I16959aad6ca6d64cb8330f23ee6472eec4cf2a3e
Quoted 10 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ----
  1 file changed, 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -0
index 81c3c75..dd7df45 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c static int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev, · line 995

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -4
@@ -990,10 +990,6 @@ static int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev,
 
  	ring = container_of(vm->entity.sched, struct amdgpu_ring, sched);
 
-	memset(&params, 0, sizeof(params));
-	params.adev = adev;
-	params.src = src;
-
  	/* sync to everything on unmapping */
  	if (!(flags & AMDGPU_PTE_VALID))
  		owner = AMDGPU_FENCE_OWNER_UNDEFINED;

_______________________________________________
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): [email protected]

Reviewed-by
#4 lore raw

Am 21.03.2017 um 03:34 schrieb Jerry Zhang:

Quoted 7 lines · Chunming Zhou
Quoted 4 lines

it could come from branch merge.

Change-Id I16959aad6ca6d64cb8330f23ee6472eec4cf2a3e
Quoted 13 lines
Quoted 13 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ----
  1 file changed, 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -0
index 81c3c75..dd7df45 100644
@@ -990,10 +990,6 @@ static int amdgpu_vm_bo_update_mapping(struct 
 amdgpu_device *adev,
 
      ring = container_of(vm->entity.sched, struct amdgpu_ring, sched);
 
Quoted 12 lines
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +0 -4
-    memset(&params, 0, sizeof(params));
-    params.adev = adev;
-    params.src = src;
-
      /* sync to everything on unmapping */
      if (!(flags & AMDGPU_PTE_VALID))
          owner = AMDGPU_FENCE_OWNER_UNDEFINED;

_______________________________________________
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