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 cb80099..0abe5a9 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;