From: Chris Wilson Date: Wed, 13 Apr 2016 16:35:09 +0000 (+0100) Subject: drm/i915: Suppress error message when GPU resets are disabled X-Git-Tag: MMI-PSA29.97-13-9~7427^2~45^2~284 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=804e59a8300b6943cad60f5032f954bd9c4e87e2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/i915: Suppress error message when GPU resets are disabled If we do not have lowlevel support for reseting the GPU, or if the user has explicitly disabled reseting the device, the failure is expected. Since it is an expected failure, we should be using a lower priority message than *ERROR*, perhaps NOTICE. In the absence of DRM_NOTICE, just emit the expected failure as a DEBUG message. Signed-off-by: Chris Wilson Cc: Daniel Vetter Reviewed-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1460565315-7748-10-git-send-email-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 633d0ddace6a..adc33927e838 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -917,7 +917,10 @@ int i915_reset(struct drm_device *dev) pr_notice("drm/i915: Resetting chip after gpu hang\n"); if (ret) { - DRM_ERROR("Failed to reset chip: %i\n", ret); + if (ret != -ENODEV) + DRM_ERROR("Failed to reset chip: %i\n", ret); + else + DRM_DEBUG_DRIVER("GPU reset disabled\n"); goto error; }