Skip to contentSkip to conversation

drm/radeon: allocate SA bo in the requested domain

PATCH In review Christian König 3 participants 5 messages Apr 25, 2013 – Apr 28, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index cb80099..0abe5a9 100644
@@ -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
#1 lore raw
Quoted 5 lines · Christian König

From: Christian König <[email protected]>

This avoid moving the BO directly after allocating it.

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
index cb80099..0abe5a9 100644
@@ -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

#2 lore raw

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.

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
index cb80099..0abe5a9 100644
@@ -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

#3 lore raw
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.

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
index cb80099..0abe5a9 100644
@@ -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

Tested-by on v1 1/1
#4 lore raw
In reply to Christian König

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.

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
index cb80099..0abe5a9 100644
@@ -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