diff options
author | Christian König <christian.koenig@amd.com> | 2013-04-25 18:19:08 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-05-02 16:01:47 +0200 |
commit | 7220f639c2eca36774dbf65b16fe503bfb40fff5 (patch) | |
tree | 5cc743f232bec0c57850427e0ce7d92ab2f68c49 /drivers/gpu/drm | |
parent | drm/radeon: fix possible segfault when parsing pm tables (diff) | |
download | linux-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/drm')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_sa.c | 2 |
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; |