Skip to contentSkip to conversation

drm/amdgpu: remove unused parameter for va update

PATCH In review Junwei Zhang 3 participants 3 messages Jun 12, 2018 2 messages not in the archive

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

PATCH 1/1 drm/amdgpu: remove unused parameter for va update

Don't need validation list any more

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +1 -3
index 5fb156a..eff716d 100644
@@ -510,7 +510,6 @@ int amdgpu_gem_metadata_ioctl(struct drm_device *dev, void *data,
  * @adev: amdgpu_device pointer
  * @vm: vm to update
  * @bo_va: bo_va to update
- * @list: validation list
  * @operation: map, unmap or clear
  *
  * Update the bo_va directly after setting its address. Errors are not
@@ -519,7 +518,6 @@ int amdgpu_gem_metadata_ioctl(struct drm_device *dev, void *data,
 static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev,
 				    struct amdgpu_vm *vm,
 				    struct amdgpu_bo_va *bo_va,
-				    struct list_head *list,
 				    uint32_t operation)
 {
 	int r;
@@ -673,7 +671,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
 		break;
 	}
 	if (!r && !(args->flags & AMDGPU_VM_DELAY_UPDATE) && !amdgpu_vm_debug)
-		amdgpu_gem_va_update_vm(adev, &fpriv->vm, bo_va, &list,
+		amdgpu_gem_va_update_vm(adev, &fpriv->vm, bo_va,
 					args->operation);
 
 error_backoff:
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): 1528783264-3582-1-git-send-email-Jerry.Zhang-5C7GfCeVMHo@public.gmane.org

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

Don't need validation list any more

Quoted 25 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +0 -2
index 5fb156a..eff716d 100644
@@ -510,7 +510,6 @@ int amdgpu_gem_metadata_ioctl(struct drm_device *dev, void *data,
   * @adev: amdgpu_device pointer
   * @vm: vm to update
   * @bo_va: bo_va to update
- * @list: validation list
   * @operation: map, unmap or clear
   *
   * Update the bo_va directly after setting its address. Errors are not
@@ -519,7 +518,6 @@ int amdgpu_gem_metadata_ioctl(struct drm_device *dev, void *data,
  static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev,
  				    struct amdgpu_vm *vm,
  				    struct amdgpu_bo_va *bo_va,
-				    struct list_head *list,
  				    uint32_t operation)
  {
  	int r;

drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data, · line 677

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +1 -1
@@ -673,7 +671,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
  		break;
  	}
  	if (!r && !(args->flags & AMDGPU_VM_DELAY_UPDATE) && !amdgpu_vm_debug)
-		amdgpu_gem_va_update_vm(adev, &fpriv->vm, bo_va, &list,
+		amdgpu_gem_va_update_vm(adev, &fpriv->vm, bo_va,
  					args->operation);
 
  error_backoff:

_______________________________________________
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): 79f96c2f-ca73-0180-929c-33893c7be28b-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#4 lore raw

Am 12.06.2018 um 08:38 schrieb zhoucm1:

Quoted 8 lines · Junwei Zhang
Quoted 3 lines

Don't need validation list any more

Quoted 33 lines
Quoted 33 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +1 -3
index 5fb156a..eff716d 100644
@@ -510,7 +510,6 @@ int amdgpu_gem_metadata_ioctl(struct drm_device *dev, void *data,
   * @adev: amdgpu_device pointer
   * @vm: vm to update
   * @bo_va: bo_va to update
- * @list: validation list
   * @operation: map, unmap or clear
   *
   * Update the bo_va directly after setting its address. Errors are not
@@ -519,7 +518,6 @@ int amdgpu_gem_metadata_ioctl(struct drm_device *dev, void *data,
  static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev,
  				    struct amdgpu_vm *vm,
  				    struct amdgpu_bo_va *bo_va,
-				    struct list_head *list,
  				    uint32_t operation)
  {
  	int r;
@@ -673,7 +671,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
  		break;
  	}
  	if (!r && !(args->flags & AMDGPU_VM_DELAY_UPDATE) && !amdgpu_vm_debug)
-		amdgpu_gem_va_update_vm(adev, &fpriv->vm, bo_va, &list,
+		amdgpu_gem_va_update_vm(adev, &fpriv->vm, bo_va,
  					args->operation);
 
Quoted 8 lines

drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data, · line 677

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +0 -0
  error_backoff:

_______________________________________________
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