Commit b2fcb482 authored by Jani Nikula's avatar Jani Nikula

drm/i915: fail module probe on nomodeset and i915.modeset=0

Since commit b30324ad ("drm/i915: Deprecated UMS support") we've
silently failed the probe, without propagating errors, on nomodeset and
i915.modeset=0. This has been to not upset userspace. See the above
commit for details.

Since then, we've removed both the UMS and KMS kconfig options in commit
03dae59c ("drm/i915: Ditch UMS config option") and commit
fd930478 ("drm/i915: Remove KMS Kconfig option") respectively.

Another ten years or so have passed. Continue with the deprecation by
actually failing the probe with nomodeset and i915.modeset=0.

Cc: Daniel Veter <daniel.vetter@ffwll.ch>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1f34651ae8ae96dd5ecd9969b5bc43d23feda08c.1724843853.git.jani.nikula@intel.comSigned-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent b5d4657e
...@@ -36,9 +36,8 @@ static int i915_check_nomodeset(void) ...@@ -36,9 +36,8 @@ static int i915_check_nomodeset(void)
use_kms = false; use_kms = false;
if (!use_kms) { if (!use_kms) {
/* Silently fail loading to not upset userspace. */
DRM_DEBUG_DRIVER("KMS disabled.\n"); DRM_DEBUG_DRIVER("KMS disabled.\n");
return 1; return -ENODEV;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment