drm/i915: "Scotty, I need more power!"
Subsystems (2)
PATCH 1/1 drm/i915: "Scotty, I need more power!"
"I'm giving her all she's got!"
This patch adds a new module param, enable_turbo, which allows the user to disable the hw assisted frequency selection system and just run at the max frequency whenever the GPU is active. It won't affect RC6, so when the GPU goes idle, it should still shut down and save power.
But keep in mind Scotty's warning too:
"She cannae take more Captain, she's gonna blow!"
I.e. this may cause the package to hit thermal and/or power limits, leading to throttling by the Punit, which could lead to latency spikes or unpredictable performance.
Requested-by Eric Anholt <[email protected]>
Signed-off-by Jesse Barnes <[email protected]>
--- drivers/gpu/drm/i915/i915_drv.c | 4 +++ drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 54 +++++++++++++++++++++++---------------- 3 files changed, 37 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +4 -0
@@ -132,6 +132,10 @@ int i915_enable_ips __read_mostly = 1;module_param_named (enable_ips, i915_enable_ips, int,0600 );MODULE_PARM_DESC (enable_ips,"Enable IPS (default: true)" ); +bool i915_enable_turbo__read_mostly =1 ; +module_param_named (enable_turbo, i915_enable_turbo, bool,0600 ); +MODULE_PARM_DESC (enable_turbo,"Enable GPU turbo (default: true)" ); +static struct drm_driver driver;extern int intel_agp_enabled;
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -1546,6 +1546,7 @@ extern int i915_enable_ppgtt __read_mostly;extern unsigned int i915_preliminary_hw_support__read_mostly ;extern int i915_disable_power_well__read_mostly ;extern int i915_enable_ips__read_mostly ; +extern bool i915_enable_turbo__read_mostly ;extern int i915_suspend (struct drm_device *dev,pm_message_t state);extern int i915_resume (struct drm_device *dev);
drivers/gpu/drm/i915/intel_pm.c +32 -22
67 lines not on this page · raw message
Signature · 1 line
1.7.9.5