diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2011-07-13 17:38:18 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-07-13 22:33:53 -0400 |
commit | 6e96e7757a0133a9a66fd9b86cd04b5e7b88122a (patch) | |
tree | b30818a40bd669f080c2c176cf9edd960551d492 /drivers/gpu/drm/i915/i915_drv.c | |
parent | a35d9d3cf75604e9ef17faedd333bf2a66a513d8 (diff) |
drm/i915: provide module parameter description
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index ef5cf036364d..ce045a8cf82c 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -39,39 +39,68 @@ | |||
39 | 39 | ||
40 | static int i915_modeset __read_mostly = -1; | 40 | static int i915_modeset __read_mostly = -1; |
41 | module_param_named(modeset, i915_modeset, int, 0400); | 41 | module_param_named(modeset, i915_modeset, int, 0400); |
42 | MODULE_PARM_DESC(modeset, | ||
43 | "Use kernel modesetting [KMS] (0=DRM_I915_KMS from .config, " | ||
44 | "1=on, -1=force vga console preference [default])"); | ||
42 | 45 | ||
43 | unsigned int i915_fbpercrtc __always_unused = 0; | 46 | unsigned int i915_fbpercrtc __always_unused = 0; |
44 | module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400); | 47 | module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400); |
45 | 48 | ||
46 | int i915_panel_ignore_lid __read_mostly = 0; | 49 | int i915_panel_ignore_lid __read_mostly = 0; |
47 | module_param_named(panel_ignore_lid, i915_panel_ignore_lid, int, 0600); | 50 | module_param_named(panel_ignore_lid, i915_panel_ignore_lid, int, 0600); |
51 | MODULE_PARM_DESC(panel_ignore_lid, | ||
52 | "Override lid status (0=autodetect [default], 1=lid open, " | ||
53 | "-1=lid closed)"); | ||
48 | 54 | ||
49 | unsigned int i915_powersave __read_mostly = 1; | 55 | unsigned int i915_powersave __read_mostly = 1; |
50 | module_param_named(powersave, i915_powersave, int, 0600); | 56 | module_param_named(powersave, i915_powersave, int, 0600); |
57 | MODULE_PARM_DESC(powersave, | ||
58 | "Enable powersavings, fbc, downclocking, etc. (default: true)"); | ||
51 | 59 | ||
52 | unsigned int i915_semaphores __read_mostly = 0; | 60 | unsigned int i915_semaphores __read_mostly = 0; |
53 | module_param_named(semaphores, i915_semaphores, int, 0600); | 61 | module_param_named(semaphores, i915_semaphores, int, 0600); |
62 | MODULE_PARM_DESC(semaphores, | ||
63 | "Use semaphores for inter-ring sync (default: false)"); | ||
54 | 64 | ||
55 | unsigned int i915_enable_rc6 __read_mostly = 0; | 65 | unsigned int i915_enable_rc6 __read_mostly = 0; |
56 | module_param_named(i915_enable_rc6, i915_enable_rc6, int, 0600); | 66 | module_param_named(i915_enable_rc6, i915_enable_rc6, int, 0600); |
67 | MODULE_PARM_DESC(i915_enable_rc6, | ||
68 | "Enable power-saving render C-state 6 (default: true)"); | ||
57 | 69 | ||
58 | unsigned int i915_enable_fbc __read_mostly = 1; | 70 | unsigned int i915_enable_fbc __read_mostly = 1; |
59 | module_param_named(i915_enable_fbc, i915_enable_fbc, int, 0600); | 71 | module_param_named(i915_enable_fbc, i915_enable_fbc, int, 0600); |
72 | MODULE_PARM_DESC(i915_enable_fbc, | ||
73 | "Enable frame buffer compression for power savings " | ||
74 | "(default: false)"); | ||
60 | 75 | ||
61 | unsigned int i915_lvds_downclock __read_mostly = 0; | 76 | unsigned int i915_lvds_downclock __read_mostly = 0; |
62 | module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400); | 77 | module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400); |
78 | MODULE_PARM_DESC(lvds_downclock, | ||
79 | "Use panel (LVDS/eDP) downclocking for power savings " | ||
80 | "(default: false)"); | ||
63 | 81 | ||
64 | unsigned int i915_panel_use_ssc __read_mostly = 1; | 82 | unsigned int i915_panel_use_ssc __read_mostly = 1; |
65 | module_param_named(lvds_use_ssc, i915_panel_use_ssc, int, 0600); | 83 | module_param_named(lvds_use_ssc, i915_panel_use_ssc, int, 0600); |
84 | MODULE_PARM_DESC(lvds_use_ssc, | ||
85 | "Use Spread Spectrum Clock with panels [LVDS/eDP] " | ||
86 | "(default: true)"); | ||
66 | 87 | ||
67 | int i915_vbt_sdvo_panel_type __read_mostly = -1; | 88 | int i915_vbt_sdvo_panel_type __read_mostly = -1; |
68 | module_param_named(vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600); | 89 | module_param_named(vbt_sdvo_panel_type, i915_vbt_sdvo_panel_type, int, 0600); |
90 | MODULE_PARM_DESC(vbt_sdvo_panel_type, | ||
91 | "Override selection of SDVO panel mode in the VBT " | ||
92 | "(default: auto)"); | ||
69 | 93 | ||
70 | static bool i915_try_reset __read_mostly = true; | 94 | static bool i915_try_reset __read_mostly = true; |
71 | module_param_named(reset, i915_try_reset, bool, 0600); | 95 | module_param_named(reset, i915_try_reset, bool, 0600); |
96 | MODULE_PARM_DESC(reset, "Attempt GPU resets (default: true)"); | ||
72 | 97 | ||
73 | bool i915_enable_hangcheck __read_mostly = true; | 98 | bool i915_enable_hangcheck __read_mostly = true; |
74 | module_param_named(enable_hangcheck, i915_enable_hangcheck, bool, 0644); | 99 | module_param_named(enable_hangcheck, i915_enable_hangcheck, bool, 0644); |
100 | MODULE_PARM_DESC(enable_hangcheck, | ||
101 | "Periodically check GPU activity for detecting hangs. " | ||
102 | "WARNING: Disabling this can cause system wide hangs. " | ||
103 | "(default: true)"); | ||
75 | 104 | ||
76 | static struct drm_driver driver; | 105 | static struct drm_driver driver; |
77 | extern int intel_agp_enabled; | 106 | extern int intel_agp_enabled; |