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 2944486871b04c0968a88da9e298d487c5ca9f7e..ee827cc22afe7dba61fa640b01f2ff04fe80b427 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);