diff options
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 84d48b82e3f1..6dc00a190669 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -145,6 +145,10 @@ int i915_enable_pc8 __read_mostly = 0; | |||
145 | module_param_named(enable_pc8, i915_enable_pc8, int, 0600); | 145 | module_param_named(enable_pc8, i915_enable_pc8, int, 0600); |
146 | MODULE_PARM_DESC(enable_pc8, "Enable support for low power package C states (PC8+) (default: false)"); | 146 | MODULE_PARM_DESC(enable_pc8, "Enable support for low power package C states (PC8+) (default: false)"); |
147 | 147 | ||
148 | int i915_pc8_timeout __read_mostly = 5000; | ||
149 | module_param_named(pc8_timeout, i915_pc8_timeout, int, 0600); | ||
150 | MODULE_PARM_DESC(pc8_timeout, "Number of msecs of idleness required to enter PC8+ (default: 5000)"); | ||
151 | |||
148 | bool i915_prefault_disable __read_mostly; | 152 | bool i915_prefault_disable __read_mostly; |
149 | module_param_named(prefault_disable, i915_prefault_disable, bool, 0600); | 153 | module_param_named(prefault_disable, i915_prefault_disable, bool, 0600); |
150 | MODULE_PARM_DESC(prefault_disable, | 154 | MODULE_PARM_DESC(prefault_disable, |
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 627c8216db1f..5f8a638c5145 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1707,6 +1707,7 @@ extern int i915_disable_power_well __read_mostly; | |||
1707 | extern int i915_enable_ips __read_mostly; | 1707 | extern int i915_enable_ips __read_mostly; |
1708 | extern bool i915_fastboot __read_mostly; | 1708 | extern bool i915_fastboot __read_mostly; |
1709 | extern int i915_enable_pc8 __read_mostly; | 1709 | extern int i915_enable_pc8 __read_mostly; |
1710 | extern int i915_pc8_timeout __read_mostly; | ||
1710 | extern bool i915_prefault_disable __read_mostly; | 1711 | extern bool i915_prefault_disable __read_mostly; |
1711 | 1712 | ||
1712 | extern int i915_suspend(struct drm_device *dev, pm_message_t state); | 1713 | extern int i915_suspend(struct drm_device *dev, pm_message_t state); |
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 1fad9de3d810..b29954ac6bfd 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -6101,7 +6101,7 @@ static void __hsw_enable_package_c8(struct drm_i915_private *dev_priv) | |||
6101 | return; | 6101 | return; |
6102 | 6102 | ||
6103 | schedule_delayed_work(&dev_priv->pc8.enable_work, | 6103 | schedule_delayed_work(&dev_priv->pc8.enable_work, |
6104 | msecs_to_jiffies(5 * 1000)); | 6104 | msecs_to_jiffies(i915_pc8_timeout)); |
6105 | } | 6105 | } |
6106 | 6106 | ||
6107 | static void __hsw_disable_package_c8(struct drm_i915_private *dev_priv) | 6107 | static void __hsw_disable_package_c8(struct drm_i915_private *dev_priv) |