Skip to contentSkip to conversation

drm/radeon: Demote 'BO allocation size too large' message to debug only

PATCH Applied Michel Dänzer 3 participants 4 messages Jul 16, 2014

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

PATCH 1/1 drm/radeon: Demote 'BO allocation size too large' message to debug only

From: Michel Dänzer <[email protected]>

These clutter up dmesg during piglit runs. Userspace generally deals gracefully with this failure.

---
 drivers/gpu/drm/radeon/radeon_gem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +2 -2
index 07292aa..8584e43 100644
@@ -58,8 +58,8 @@ int radeon_gem_object_create(struct radeon_device *rdev, int size,
 	/* maximun bo size is the minimun btw visible vram and gtt size */
 	max_size = min(rdev->mc.visible_vram_size, rdev->mc.gtt_size);
 	if (size > max_size) {
-		printk(KERN_WARNING "%s:%d alloc size %dMb bigger than %ldMb limit\n",
-		       __func__, __LINE__, size >> 20, max_size >> 20);
+		DRM_DEBUG("Allocation size %dMb bigger than %ldMb limit\n",
+			  size >> 20, max_size >> 20);
 		return -ENOMEM;
 	}
 
Signature · 6 lines
2.0.0

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw

Am 16.07.2014 11:40, schrieb Michel Dänzer:

Quoted 6 lines

From: Michel Dänzer <[email protected]>

These clutter up dmesg during piglit runs. Userspace generally deals gracefully with this failure.

Already wanted to suggest the same thing,
Christian.

Quoted 9 lines
---
  drivers/gpu/drm/radeon/radeon_gem.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +0 -0
index 07292aa..8584e43 100644

drivers/gpu/drm/radeon/radeon_gem.c int radeon_gem_object_create(struct radeon_device *rdev, int size, · line 65

Quoted 10 lines
drivers/gpu/drm/radeon/radeon_gem.c +2 -2
@@ -58,8 +58,8 @@ int radeon_gem_object_create(struct radeon_device *rdev, int size,
  	/* maximun bo size is the minimun btw visible vram and gtt size */
  	max_size = min(rdev->mc.visible_vram_size, rdev->mc.gtt_size);
  	if (size > max_size) {
-		printk(KERN_WARNING "%s:%d alloc size %dMb bigger than %ldMb limit\n",
-		       __func__, __LINE__, size >> 20, max_size >> 20);
+		DRM_DEBUG("Allocation size %dMb bigger than %ldMb limit\n",
+			  size >> 20, max_size >> 20);
  		return -ENOMEM;
  	}
 

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Applied
#2 lore raw
Quoted 7 lines · Christian König

Am 16.07.2014 11:40, schrieb Michel Dänzer:

Quoted 5 lines

From: Michel Dänzer <[email protected]>

These clutter up dmesg during piglit runs. Userspace generally deals gracefully with this failure.

Quoted 6 lines
Quoted 1 line

Already wanted to suggest the same thing,

Applied to my 3.17 tree. Is there any reason we can't remove or relax this limit check in general? At the very least I think we can remove the visible vram limit.

Alex

Quoted 24 lines

Christian.

Quoted 21 lines
---
  drivers/gpu/drm/radeon/radeon_gem.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +2 -2
index 07292aa..8584e43 100644
@@ -58,8 +58,8 @@ int radeon_gem_object_create(struct radeon_device *rdev,
 int size,
        /* maximun bo size is the minimun btw visible vram and gtt size */
        max_size = min(rdev->mc.visible_vram_size, rdev->mc.gtt_size);
        if (size > max_size) {
-               printk(KERN_WARNING "%s:%d alloc size %dMb bigger than
 %ldMb limit\n",
-                      __func__, __LINE__, size >> 20, max_size >> 20);
+               DRM_DEBUG("Allocation size %dMb bigger than %ldMb
 limit\n",
+                         size >> 20, max_size >> 20);
                return -ENOMEM;
Quoted 8 lines
Quoted 2 lines
        }

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

Am 16.07.2014 18:12, schrieb Alex Deucher:

Quoted 9 lines
Quoted 7 lines · Christian König

Am 16.07.2014 11:40, schrieb Michel Dänzer:

Quoted 5 lines

From: Michel Dänzer <[email protected]>

These clutter up dmesg during piglit runs. Userspace generally deals gracefully with this failure.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Already wanted to suggest the same thing,

Applied to my 3.17 tree. Is there any reason we can't remove or relax this limit check in general? At the very least I think we can remove the visible vram limit.

Already thought about that as well. Since we fixed the fallback to GTT if a buffer won't fit into VRAM on CPU access I offhand don't see any obstacle to relaxing this test.

We should just test if that fallback can handle to larges buffers gracefully.

Christian.

Quoted 34 lines

Alex

Quoted 31 lines

Christian.

Quoted 20 lines
---
   drivers/gpu/drm/radeon/radeon_gem.c | 4 ++--
   1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +2 -2
index 07292aa..8584e43 100644
@@ -58,8 +58,8 @@ int radeon_gem_object_create(struct radeon_device *rdev,
 int size,
         /* maximun bo size is the minimun btw visible vram and gtt size */
         max_size = min(rdev->mc.visible_vram_size, rdev->mc.gtt_size);
         if (size > max_size) {
-               printk(KERN_WARNING "%s:%d alloc size %dMb bigger than
 %ldMb limit\n",
-                      __func__, __LINE__, size >> 20, max_size >> 20);
+               DRM_DEBUG("Allocation size %dMb bigger than %ldMb
 limit\n",
+                         size >> 20, max_size >> 20);
Quoted 3 lines
                 return -ENOMEM;
         }

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel