[Intel-gfx] [PATCH 1/2] drm/i915: module parameter descriptions

Paul Menzel paulepanter at users.sourceforge.net
Sun Jul 3 10:42:10 CEST 2011


Am Samstag, den 02.07.2011, 16:42 -0700 schrieb Ben Widawsky:

Without a verb in the commit summary it is hard to guess what the change
is about.

	drm/i915: Add module parameter descriptions

> Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
> ---
>  drivers/gpu/drm/i915/i915_drv.c |   24 ++++++++++++++++++++++++
>  1 files changed, 24 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> index b54f7d9..7164650 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -39,39 +39,63 @@
>  
>  static int i915_modeset = -1;
>  module_param_named(modeset, i915_modeset, int, 0400);
> +MODULE_PARM_DESC(modeset, "Use kernel modesetting (KMS) "
> +		 "(0=use DRM_I915_KMS from .config "
> +		 "1=on "
> +		 "-1=force vga console prio boost [default])");

What does prio mean?

>  unsigned int i915_fbpercrtc = 0;
>  module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400);

If you are at it can you add a description here too?

>  int i915_panel_ignore_lid = 0;
>  module_param_named(panel_ignore_lid, i915_panel_ignore_lid, int, 0600);
> +MODULE_PARM_DESC(panel_ignore_lid, "Override lid status "
> +		 "(0=autodetect [default], >0=lid open, <0=lid closed)");

Above you put each option in one line.

>  unsigned int i915_powersave = 1;
>  module_param_named(powersave, i915_powersave, int, 0600);
> +MODULE_PARM_DESC(powersave, "Powersaving features, fbc, downclocking, etc. "
> +		 "(0=off, !0=on [default)");
>  
>  unsigned int i915_semaphores = 0;
>  module_param_named(semaphores, i915_semaphores, int, 0600);
> +MODULE_PARM_DESC(semaphores, "Use semaphores for inter-ring synchronization "
> +		 "(0=off [default], !0=on)");
>  
>  unsigned int i915_enable_rc6 = 1;
>  module_param_named(i915_enable_rc6, i915_enable_rc6, int, 0600);
> +MODULE_PARM_DESC(i915_enable_rc6,
> +		 "Enable render C-state 6 (0=off, !0=on [default])");
>  
>  unsigned int i915_enable_fbc = 0;
>  module_param_named(i915_enable_fbc, i915_enable_fbc, int, 0600);
> +MODULE_PARM_DESC(i915_enable_fbc,
> +		 "Enable frame buffer compression for power savings "
> +		 "(0=off [default], !0=on)");

Does that depend on `powersave` somehow?

>  unsigned int i915_lvds_downclock = 0;
>  module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400);
> +MODULE_PARM_DESC(lvds_downclock,
> +		 "LVDS downclocking for power savings(0=off [default], !0=on)");

Missing space before »(« and a verb like use or enable is missing.

>  unsigned int i915_panel_use_ssc = 1;
>  module_param_named(lvds_use_ssc, i915_panel_use_ssc, int, 0600);
> +MODULE_PARM_DESC(lvds_use_ssc,
> +		 "LVDS Spread Spectrum Clock (0=off, !0=on [default])");

A verb is missing.

>  int i915_vbt_sdvo_panel_type = -1;
>  module_param_named(vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600);
> +MODULE_PARM_DESC(vbt_sdvo_panel_type,
> +		 "SDVO panel type override (Default: auto)");

A verb is missing and what values are allowed.

>  static bool i915_try_reset = true;
>  module_param_named(reset, i915_try_reset, bool, 0600);
> +MODULE_PARM_DESC(reset, "Attempt GPU resets (Default: true)");
>  
>  bool i915_enable_hangcheck = true;
>  module_param_named(enable_hangcheck, i915_enable_hangcheck, bool, 0644);
> +MODULE_PARM_DESC(enable_hangcheck,
> +		 "Enable hanghceck triggered reset (Default: true)");

s/hanghceck/hangcheck/
 
>  static struct drm_driver driver;
>  extern int intel_agp_enabled;


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110703/98cdcb09/attachment.sig>


More information about the Intel-gfx mailing list