All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Ben Widawsky <ben@bwidawsk.net>, intel-gfx@lists.freedesktop.org
Cc: Julien Cristau <jcristau@debian.org>
Subject: Re: [PATCH 1/2] drm/i915: module parameter descriptions
Date: Sun, 03 Jul 2011 09:54:54 +0100	[thread overview]
Message-ID: <d08817$l1fab@azsmga001.ch.intel.com> (raw)
In-Reply-To: <1309650154-29529-2-git-send-email-ben@bwidawsk.net>

User-facing documentation brings out the pedant...

On Sat,  2 Jul 2011 16:42:33 -0700, Ben Widawsky <ben@bwidawsk.net> wrote:
> Signed-off-by: Ben Widawsky <ben@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])");
Commas required between the options.
  
>  unsigned int i915_fbpercrtc = 0;
>  module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400);
>  
>  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)");
0, -1, 1. Let's not overcomplicate the instructions.
  
>  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)");
0 or 1, as above and below. In fact, I prefer the true/false as you used
later. Be consistent! :-)
  
>  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])");
"Enable power-saving render C-state 6 (default: true)");

>  
>  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)");
>  
>  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)");
"Use panel (LVDS/eDP) downclocking for power savings(default: false)");
 
>  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])");
"Use Spread Spectrum Clock with panels (LVDS/eDP) (default: true)");
  
>  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)");
"Override selection of SDVO panel mode in the VBT (Default: auto)");
  
>  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)");
"Periodically check GPU activity for detecting hangs [aka hangcheck]
(Default:true)"
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  parent reply	other threads:[~2011-07-03  8:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-02 23:42 [PATCH 0/2] drm/i915: module paramater s Ben Widawsky
2011-07-02 23:42 ` [PATCH 1/2] drm/i915: module parameter descriptions Ben Widawsky
2011-07-03  8:42   ` Paul Menzel
2011-07-03  8:54   ` Chris Wilson [this message]
2011-07-02 23:42 ` [PATCH 2/2] drm/i915: remove defunct fbpercrtc param Ben Widawsky
2011-07-03  8:43   ` Paul Menzel
2011-07-03  8:56 ` [PATCH 0/2] drm/i915: module paramater s Chris Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='d08817$l1fab@azsmga001.ch.intel.com' \
    --to=chris@chris-wilson.co.uk \
    --cc=ben@bwidawsk.net \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jcristau@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.