drm/radeon: allocate SA bo in the requested domain
authorChristian König <christian.koenig@amd.com>
Thu, 25 Apr 2013 16:19:08 +0000 (18:19 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2013 14:01:47 +0000 (10:01 -0400)
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>
drivers/gpu/drm/radeon/radeon_sa.c

index cb800995d4f967a4f7355d349bb52f046b011eda..0abe5a9431bb0a6abecd239919ac64bb68f32d5f 100644 (file)
@@ -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;