summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
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 16:01:47 +0200
commit7220f639c2eca36774dbf65b16fe503bfb40fff5 (patch)
tree5cc743f232bec0c57850427e0ce7d92ab2f68c49 /drivers/gpu
parentdrm/radeon: fix possible segfault when parsing pm tables (diff)
downloadlinux-7220f639c2eca36774dbf65b16fe503bfb40fff5.tar.xz
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')
-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;