drm/i915: Quiet the message on get/setparam ioctl with an unknown value.
authorEric Anholt <eric@anholt.net>
Tue, 3 Feb 2009 20:10:21 +0000 (12:10 -0800)
committerDave Airlie <airlied@linux.ie>
Sun, 8 Feb 2009 11:38:23 +0000 (21:38 +1000)
Getting an unknown get/setparam used to be more significant back when they
didn't change much.  However, now that we're in the git world we're using
them instead of a monotonic version number to signal feature availability,
so clients ask about unknown params on older kernels more often.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/i915/i915_dma.c

index cc0adb428cee8802d5bd5325e40d7e7d0ae967db..0ded483d9ac7042f57dd2cecd3441ec349df357e 100644 (file)
@@ -735,7 +735,7 @@ static int i915_getparam(struct drm_device *dev, void *data,
                value = dev_priv->num_fence_regs - dev_priv->fence_reg_start;
                break;
        default:
-               DRM_ERROR("Unknown parameter %d\n", param->param);
+               DRM_DEBUG("Unknown parameter %d\n", param->param);
                return -EINVAL;
        }
 
@@ -775,7 +775,7 @@ static int i915_setparam(struct drm_device *dev, void *data,
                dev_priv->fence_reg_start = param->value;
                break;
        default:
-               DRM_ERROR("unknown parameter %d\n", param->param);
+               DRM_DEBUG("unknown parameter %d\n", param->param);
                return -EINVAL;
        }