drm/radeon/kms: don't report allocate failure on ERESTARTSYS
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>
This commit is contained in:
parent
d03d858970
commit
ecabd32a62
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
r = radeon_bo_create(rdev, gobj, size, kernel, initial_domain, &robj);
|
||||||
if (r) {
|
if (r) {
|
||||||
DRM_ERROR("Failed to allocate GEM object (%d, %d, %u)\n",
|
if (r != -ERESTARTSYS)
|
||||||
size, initial_domain, alignment);
|
DRM_ERROR("Failed to allocate GEM object (%d, %d, %u, %d)\n",
|
||||||
|
size, initial_domain, alignment, r);
|
||||||
mutex_lock(&rdev->ddev->struct_mutex);
|
mutex_lock(&rdev->ddev->struct_mutex);
|
||||||
drm_gem_object_unreference(gobj);
|
drm_gem_object_unreference(gobj);
|
||||||
mutex_unlock(&rdev->ddev->struct_mutex);
|
mutex_unlock(&rdev->ddev->struct_mutex);
|
||||||
|
|
Loading…
Reference in a new issue