diff options
author | Imre Deak <imre.deak@intel.com> | 2016-01-29 14:52:28 +0200 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2016-02-02 18:28:28 +0200 |
commit | b074eae12f1e9f8eb1aafa3d7b922427f9b8e68a (patch) | |
tree | c7601fc42c7ff302c0996e6d12d0ab51ceae4c82 /drivers/gpu/drm/i915/i915_dma.c | |
parent | 9c06f6744d663205395f88d98aef87edcd3ce5bd (diff) | |
download | op-kernel-dev-b074eae12f1e9f8eb1aafa3d7b922427f9b8e68a.zip op-kernel-dev-b074eae12f1e9f8eb1aafa3d7b922427f9b8e68a.tar.gz |
drm/i915: Add debug info for failed MSI enabling
While not being able to enable MSI interrupts may be a normal
circumstance, for debugging it may still be a useful information, so
emit an info about this.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: David Weinehall <david.weinehall@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1454071949-24677-3-git-send-email-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 4e3c741..a42eb58 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1109,8 +1109,10 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) * be lost or delayed, but we use them anyways to avoid * stuck interrupts on some machines. */ - if (!IS_I945G(dev) && !IS_I945GM(dev)) - pci_enable_msi(dev->pdev); + if (!IS_I945G(dev) && !IS_I945GM(dev)) { + if (pci_enable_msi(dev->pdev) < 0) + DRM_DEBUG_DRIVER("can't enable MSI"); + } intel_device_info_runtime_init(dev); |