drm/radeon/kms: don't report allocate failure on ERESTARTSYS
authorDave Airlie <airlied@redhat.com>
Tue, 15 Dec 2009 00:39:48 +0000 (10:39 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 16 Dec 2009 05:38:55 +0000 (15:38 +1000)
if we fail with ERESTARTSYS during alloc, we'll get a retry from
userspace so don't report it in dmesg.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_gem.c

index 2944486..ee827cc 100644 (file)
@@ -66,8 +66,9 @@ int radeon_gem_object_create(struct radeon_device *rdev, int size,
        }
        r = radeon_bo_create(rdev, gobj, size, kernel, initial_domain, &robj);
        if (r) {
-               DRM_ERROR("Failed to allocate GEM object (%d, %d, %u)\n",
-                         size, initial_domain, alignment);
+               if (r != -ERESTARTSYS)
+                       DRM_ERROR("Failed to allocate GEM object (%d, %d, %u, %d)\n",
+                                 size, initial_domain, alignment, r);
                mutex_lock(&rdev->ddev->struct_mutex);
                drm_gem_object_unreference(gobj);
                mutex_unlock(&rdev->ddev->struct_mutex);