drm/radeon: allocate SA bo in the requested domain
Subsystems (2)
PATCH 1/1 drm/radeon: allocate SA bo in the requested domain
From: Christian König <[email protected]>
This avoid moving the BO directly after allocating it.
--- drivers/gpu/drm/radeon/radeon_sa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_sa.c +1 -1
@@ -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;
Signature · 6 lines
1.7.10.4 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Christian König
From: Christian König <[email protected]>
This avoid moving the BO directly after allocating it.
Signed-off-by Christian König <[email protected]>
Looks good. Applied to my tree.
Alex
Quoted 20 lines
--- drivers/gpu/drm/radeon/radeon_sa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_sa.c +1
-2@@ -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; --1.7.10.4
Am 25.04.2013 18:40, schrieb Alex Deucher:
Quoted 8 lines
Quoted 5 lines · Christian König
From: Christian König <[email protected]>
This avoid moving the BO directly after allocating it.
Signed-off-by Christian König <[email protected]>Looks good. Applied to my tree.
Have you also seen/applied "[PATCH] drm/radeon: fix scratch reg handling for UVD fence"?
That one is more important cause it fixes a real bug, while this patch is just a cleanup.
Christian.
Quoted 22 lines
Alex
Quoted 20 lines
--- drivers/gpu/drm/radeon/radeon_sa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_sa.c +1
-2@@ -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; --1.7.10.4
Quoted 11 lines · Christian König
Am 25.04.2013 18:40, schrieb Alex Deucher:
Quoted 9 lines
Quoted 6 lines · Christian König
From: Christian König <[email protected]>
This avoid moving the BO directly after allocating it.
Signed-off-by Christian König <[email protected]>
Quoted 8 lines
Quoted 1 line
Looks good. Applied to my tree.
Have you also seen/applied "[PATCH] drm/radeon: fix scratch reg handling for UVD fence"?
That one is more important cause it fixes a real bug, while this patch is just a cleanup.
I'll grab that one too.
Alex
Quoted 31 lines
Christian.
Quoted 26 lines
Alex
Quoted 24 lines
--- drivers/gpu/drm/radeon/radeon_sa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_sa.c +1
-1@@ -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;--
1.7.10.4
Am 2013-04-25 18:19, schrieb Christian König:
Quoted 5 lines
From: Christian König <[email protected]>
This avoid moving the BO directly after allocating it.
Signed-off-by Christian König <[email protected]>
Regards,
Dieter
Quoted 18 lines
---
drivers/gpu/drm/radeon/radeon_sa.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_sa.c +1
-1@@ -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);
Quoted 1 line
return r;
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel