Commit a74549dd authored by Jani Nikula's avatar Jani Nikula

drm/i915: deprecate the i915.modeset module parameter

The i915.modeset parameter doesn't really provide any useful benefit
over the nomodeset kernel parameter. Anything that i915.modeset does can
be achieved via nomodeset or not probing i915 at all.

Unfortunately, the i915.modeset parameter is widely referenced on
various forums, and removing it is not that simple. Start off by
deprecating it in the module parameter documentation, and logging a
warning message on non-default values.

Cc: Daniel Veter <daniel.vetter@ffwll.ch>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/2c63e2048eed64f728478fbcfc84f51c7f3212e6.1724843853.git.jani.nikula@intel.comSigned-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent b2fcb482
...@@ -29,6 +29,12 @@ static int i915_check_nomodeset(void) ...@@ -29,6 +29,12 @@ static int i915_check_nomodeset(void)
* nomodeset boot option. * nomodeset boot option.
*/ */
if (i915_modparams.modeset == 0)
pr_warn("i915.modeset=0 is deprecated. Please use the 'nomodeset' kernel parameter instead.\n");
else if (i915_modparams.modeset != -1)
pr_warn("i915.modeset=%d is deprecated. Please remove it and the 'nomodeset' kernel parameter instead.\n",
i915_modparams.modeset);
if (i915_modparams.modeset == 0) if (i915_modparams.modeset == 0)
use_kms = false; use_kms = false;
......
...@@ -64,8 +64,7 @@ struct i915_params i915_modparams __read_mostly = { ...@@ -64,8 +64,7 @@ struct i915_params i915_modparams __read_mostly = {
*/ */
i915_param_named(modeset, int, 0400, i915_param_named(modeset, int, 0400,
"Use kernel modesetting [KMS] (0=disable, " "Deprecated. Use the 'nomodeset' kernel parameter instead.");
"1=on, -1=force vga console preference [default])");
i915_param_named_unsafe(reset, uint, 0400, i915_param_named_unsafe(reset, uint, 0400,
"Attempt GPU resets (0=disabled, 1=full gpu reset, 2=engine reset [default])"); "Attempt GPU resets (0=disabled, 1=full gpu reset, 2=engine reset [default])");
......
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