diff options
| author | Mark Brown <broonie@kernel.org> | 2016-11-04 21:16:38 +0300 | 
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2016-11-04 21:16:38 +0300 | 
| commit | cc9b94029e9ef51787af908e9856b1eed314bc00 (patch) | |
| tree | 9675310b89d0f6fb1f7bd9423f0638c4ee5226fd /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | 13bed58ce8748d430a26e353a09b89f9d613a71f (diff) | |
| parent | 1b5b42216469b05ef4b5916cb40b127dfab1da88 (diff) | |
| download | linux-cc9b94029e9ef51787af908e9856b1eed314bc00.tar.xz | |
Merge branch 'topic/error' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator into regulator-fixed
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 24 | 
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 8fab6486064f..a7ea9a3b454e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -118,23 +118,23 @@ void amdgpu_gem_force_release(struct amdgpu_device *adev)   */  int amdgpu_gem_object_open(struct drm_gem_object *obj, struct drm_file *file_priv)  { -	struct amdgpu_bo *rbo = gem_to_amdgpu_bo(obj); -	struct amdgpu_device *adev = rbo->adev; +	struct amdgpu_bo *abo = gem_to_amdgpu_bo(obj); +	struct amdgpu_device *adev = abo->adev;  	struct amdgpu_fpriv *fpriv = file_priv->driver_priv;  	struct amdgpu_vm *vm = &fpriv->vm;  	struct amdgpu_bo_va *bo_va;  	int r; -	r = amdgpu_bo_reserve(rbo, false); +	r = amdgpu_bo_reserve(abo, false);  	if (r)  		return r; -	bo_va = amdgpu_vm_bo_find(vm, rbo); +	bo_va = amdgpu_vm_bo_find(vm, abo);  	if (!bo_va) { -		bo_va = amdgpu_vm_bo_add(adev, vm, rbo); +		bo_va = amdgpu_vm_bo_add(adev, vm, abo);  	} else {  		++bo_va->ref_count;  	} -	amdgpu_bo_unreserve(rbo); +	amdgpu_bo_unreserve(abo);  	return 0;  } @@ -503,7 +503,7 @@ static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev,  	if (r)  		goto error_print; -	amdgpu_vm_get_pt_bos(bo_va->vm, &duplicates); +	amdgpu_vm_get_pt_bos(adev, bo_va->vm, &duplicates);  	list_for_each_entry(entry, &list, head) {  		domain = amdgpu_mem_type_to_domain(entry->bo->mem.mem_type);  		/* if anything is swapped out don't swap it in here, @@ -528,7 +528,7 @@ static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev,  		goto error_unreserve;  	if (operation == AMDGPU_VA_OP_MAP) -		r = amdgpu_vm_bo_update(adev, bo_va, &bo_va->bo->tbo.mem); +		r = amdgpu_vm_bo_update(adev, bo_va, false);  error_unreserve:  	ttm_eu_backoff_reservation(&ticket, &list); @@ -547,7 +547,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,  	struct drm_gem_object *gobj;  	struct amdgpu_device *adev = dev->dev_private;  	struct amdgpu_fpriv *fpriv = filp->driver_priv; -	struct amdgpu_bo *rbo; +	struct amdgpu_bo *abo;  	struct amdgpu_bo_va *bo_va;  	struct ttm_validate_buffer tv, tv_pd;  	struct ww_acquire_ctx ticket; @@ -587,10 +587,10 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,  	gobj = drm_gem_object_lookup(filp, args->handle);  	if (gobj == NULL)  		return -ENOENT; -	rbo = gem_to_amdgpu_bo(gobj); +	abo = gem_to_amdgpu_bo(gobj);  	INIT_LIST_HEAD(&list);  	INIT_LIST_HEAD(&duplicates); -	tv.bo = &rbo->tbo; +	tv.bo = &abo->tbo;  	tv.shared = true;  	list_add(&tv.head, &list); @@ -604,7 +604,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,  		return r;  	} -	bo_va = amdgpu_vm_bo_find(&fpriv->vm, rbo); +	bo_va = amdgpu_vm_bo_find(&fpriv->vm, abo);  	if (!bo_va) {  		ttm_eu_backoff_reservation(&ticket, &list);  		drm_gem_object_unreference_unlocked(gobj);  | 
