[Bug 61671] i915 silently fails to load on generation >= 6 gpus with nomodeset

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Thu Sep 19 06:59:35 PDT 2013


https://bugzilla.kernel.org/show_bug.cgi?id=61671

--- Comment #5 from Jani Nikula <jani.nikula at intel.com> ---
Well, since there's plenty of old, ill-advised tips out there to try nomodeset,
we could just do something along the lines of:

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index be5120f7..70499e5 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1468,8 +1468,11 @@ int i915_driver_load(struct drm_device *dev, unsigned
long flags)
     info = (struct intel_device_info *) flags;

     /* Refuse to load on gen6+ without kms enabled. */
-    if (info->gen >= 6 && !drm_core_check_feature(dev, DRIVER_MODESET))
+    if (info->gen >= 6 && !drm_core_check_feature(dev, DRIVER_MODESET)) {
+        DRM_INFO("This hardware requires kernel modesetting (KMS).\n"
+             "See CONFIG_DRM_I915_KMS, nomodeset, and/or i915.modeset
parameters.\n");
         return -ENODEV;
+    }

     /* i915 has 4 more counters */
     dev->counters += 4;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the intel-gfx-bugs mailing list