Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377281
b: refs/heads/master
c: 8444d5c
h: refs/heads/master
i:
  377279: 9469aea
v: v3
  • Loading branch information
Jerome Glisse authored and Alex Deucher committed Jun 20, 2013
1 parent 2f6a500 commit 139de2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 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: 784a4d5539eaff3316933f8f3dc2fdad5a9b9f4d
refs/heads/master: 8444d5c69549aa0f0b574cc608742d4669e1cc01
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
7 changes: 7 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,13 @@ int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsi
return -ENOMEM;
/* Align requested size with padding so unlock_commit can
* pad safely */
radeon_ring_free_size(rdev, ring);
if (ring->ring_free_dw == (ring->ring_size / 4)) {
/* This is an empty ring update lockup info to avoid
* false positive.
*/
radeon_ring_lockup_update(ring);
}
ndw = (ndw + ring->align_mask) & ~ring->align_mask;
while (ndw > (ring->ring_free_dw - 1)) {
radeon_ring_free_size(rdev, ring);
Expand Down

0 comments on commit 139de2a

Please sign in to comment.