summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2013-04-25 18:19:08 +0200
committerAlex Deucher <alexander.deucher@amd.com>2013-05-02 10:01:47 -0400
commit7220f639c2eca36774dbf65b16fe503bfb40fff5 (patch)
tree5cc743f232bec0c57850427e0ce7d92ab2f68c49 /drivers/gpu/drm
parentf8e6bfc2ce162855fa4f9822a45659f4b542c960 (diff)
downloadlinux-7220f639c2eca36774dbf65b16fe503bfb40fff5.tar.gz
linux-7220f639c2eca36774dbf65b16fe503bfb40fff5.tar.bz2
linux-7220f639c2eca36774dbf65b16fe503bfb40fff5.zip
drm/radeon: allocate SA bo in the requested domain
This avoid moving the BO directly after allocating it. Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/radeon/radeon_sa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_sa.c b/drivers/gpu/drm/radeon/radeon_sa.c
index cb800995d4f9..0abe5a9431bb 100644
--- a/drivers/gpu/drm/radeon/radeon_sa.c
+++ b/drivers/gpu/drm/radeon/radeon_sa.c
@@ -64,7 +64,7 @@ int radeon_sa_bo_manager_init(struct radeon_device *rdev,
}
r = radeon_bo_create(rdev, size, RADEON_GPU_PAGE_SIZE, true,
- RADEON_GEM_DOMAIN_CPU, NULL, &sa_manager->bo);
+ domain, NULL, &sa_manager->bo);
if (r) {
dev_err(rdev->dev, "(%d) failed to allocate bo for manager\n", r);
return r;