Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377277
b: refs/heads/master
c: 3813f5c
h: refs/heads/master
i:
  377275: 1c3f48c
v: v3
  • Loading branch information
Jerome Glisse authored and Alex Deucher committed Jun 12, 2013
1 parent 970308c commit cdca8f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebc0bad4a05ad63979e8bc115cea3b8abdf814c7
refs/heads/master: 3813f5ca9ab7a00e80a17aab34f155453c66c78a
3 changes: 2 additions & 1 deletion trunk/drivers/gpu/drm/drm_prime.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ struct dma_buf *drm_gem_prime_export(struct drm_device *dev,
if (ret)
return ERR_PTR(ret);
}
return dma_buf_export(obj, &drm_gem_prime_dmabuf_ops, obj->size, flags);
return dma_buf_export(obj, &drm_gem_prime_dmabuf_ops, obj->size,
0600);
}
EXPORT_SYMBOL(drm_gem_prime_export);

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/gpu/drm/radeon/radeon_gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,11 +1197,13 @@ int radeon_vm_bo_update_pte(struct radeon_device *rdev,
int radeon_vm_bo_rmv(struct radeon_device *rdev,
struct radeon_bo_va *bo_va)
{
int r;
int r = 0;

mutex_lock(&rdev->vm_manager.lock);
mutex_lock(&bo_va->vm->mutex);
r = radeon_vm_bo_update_pte(rdev, bo_va->vm, bo_va->bo, NULL);
if (bo_va->soffset) {
r = radeon_vm_bo_update_pte(rdev, bo_va->vm, bo_va->bo, NULL);
}
mutex_unlock(&rdev->vm_manager.lock);
list_del(&bo_va->vm_list);
mutex_unlock(&bo_va->vm->mutex);
Expand Down

0 comments on commit cdca8f8

Please sign in to comment.