From: Michel Dänzer Date: Wed, 16 Jul 2014 09:40:32 +0000 (+0900) Subject: drm/radeon: Demote 'BO allocation size too large' message to debug only X-Git-Tag: MMI-PSA29.97-13-9~11757^2~6^2~43 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=380670aebfca998bb67b9cf05fc7f28ebeac4b18;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/radeon: Demote 'BO allocation size too large' message to debug only These clutter up dmesg during piglit runs. Userspace generally deals gracefully with this failure. Signed-off-by: Michel Dänzer Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c index d09650c1d720..fdd189b2b217 100644 --- a/drivers/gpu/drm/radeon/radeon_gem.c +++ b/drivers/gpu/drm/radeon/radeon_gem.c @@ -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; }