drm/i915: tell the user KMS is required for gen6+
Subsystems (2)
PATCH 1/1 drm/i915: tell the user KMS is required for gen6+
Educate the users why i915 won't load on gen6+ and nomodeset.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=61671
Signed-off-by Jani Nikula <[email protected]>
--- drivers/gpu/drm/i915/i915_dma.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_dma.c +4 -1
@@ -1477,8 +1477,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 ("Your hardware requires kernel modesetting (KMS)\n" ); +DRM_INFO ("See CONFIG_DRM_I915_KMS, nomodeset, and i915.modeset parameters\n" );return -ENODEV ; + } dev_priv =kzalloc (sizeof (*dev_priv),GFP_KERNEL );if (dev_priv ==NULL )
Signature · 1 line
1.7.10.4
Quoted 4 lines · Jani Nikula
Educate the users why i915 won't load on gen6+ and nomodeset.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=61671
Signed-off-by Jani Nikula <[email protected]>
Yes, much better than the agp wtf error people get currently.
Reviewed-by Ville Syrjälä <[email protected]>
Quoted 28 lines
--- drivers/gpu/drm/i915/i915_dma.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/i915_dma.c +4
-1@@ -1477,8 +1477,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 ("Your hardware requires kernel modesetting (KMS)\n" ); +DRM_INFO ("See CONFIG_DRM_I915_KMS, nomodeset, and i915.modeset parameters\n" );return -ENODEV ; + } dev_priv =kzalloc (sizeof (*dev_priv),GFP_KERNEL );if (dev_priv ==NULL )Signature · 6 lines
1.7.10.4 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 2 lines
Ville Syrjälä Intel OTC
Daniel Vetter
AppliedQuoted 9 lines · Ville Syrjälä
Quoted 4 lines · Jani Nikula
Educate the users why i915 won't load on gen6+ and nomodeset.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=61671
Signed-off-by Jani Nikula <[email protected]>Yes, much better than the agp wtf error people get currently.
Reviewed-by Ville Syrjälä <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch