diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2014-07-29 18:47:20 +0900 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-08-05 08:53:40 -0400 |
commit | 1490434f0da63afc6006411c8829c6a7935a4e7e (patch) | |
tree | 0b662266f877106784fd16746acb670488ff7d53 /drivers/gpu/drm/radeon/radeon_ring.c | |
parent | 5dc355325b648dc9b4cf3bea4d968de46fd59215 (diff) | |
download | linux-stable-1490434f0da63afc6006411c8829c6a7935a4e7e.tar.gz linux-stable-1490434f0da63afc6006411c8829c6a7935a4e7e.tar.bz2 linux-stable-1490434f0da63afc6006411c8829c6a7935a4e7e.zip |
drm/radeon: Use write-combined CPU mappings of ring buffers with PCIe
PCI GART doesn't support unsnooped access. AGP GART already uses
write-combined CPU mappings.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ring.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ring.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c index 71439f0a3c26..7cfea7e4583f 100644 --- a/drivers/gpu/drm/radeon/radeon_ring.c +++ b/drivers/gpu/drm/radeon/radeon_ring.c @@ -640,7 +640,9 @@ int radeon_ring_init(struct radeon_device *rdev, struct radeon_ring *ring, unsig /* Allocate ring buffer */ if (ring->ring_obj == NULL) { r = radeon_bo_create(rdev, ring->ring_size, PAGE_SIZE, true, - RADEON_GEM_DOMAIN_GTT, 0, + RADEON_GEM_DOMAIN_GTT, + (rdev->flags & RADEON_IS_PCIE) ? + RADEON_GEM_GTT_WC : 0, NULL, &ring->ring_obj); if (r) { dev_err(rdev->dev, "(%d) ring create failed\n", r); |