Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-12 Thread Daniel Vetter
On Tue, Nov 11, 2014 at 04:12:22PM +, Chris Wilson wrote: On Tue, Nov 11, 2014 at 04:13:09PM +0100, Daniel Vetter wrote: On Sat, Nov 08, 2014 at 08:25:04AM +, Chris Wilson wrote: On Fri, Nov 07, 2014 at 02:25:38PM -0800, O'Rourke, Tom wrote: On Fri, Nov 07, 2014 at 10:41:26AM

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-11 Thread Daniel Vetter
On Fri, Nov 07, 2014 at 02:20:17PM -0800, O'Rourke, Tom wrote: On Fri, Nov 07, 2014 at 10:50:02AM +0100, Daniel Vetter wrote: + ret = sandybridge_pcode_read(dev_priv, + HSW_PCODE_DYNAMIC_DUTY_CYCLE_CONTROL, + ddcc_status);

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-11 Thread Daniel Vetter
On Sat, Nov 08, 2014 at 08:25:04AM +, Chris Wilson wrote: On Fri, Nov 07, 2014 at 02:25:38PM -0800, O'Rourke, Tom wrote: On Fri, Nov 07, 2014 at 10:41:26AM +, Chris Wilson wrote: On Wed, Nov 05, 2014 at 05:31:34PM -0800, Tom.O'rou...@intel.com wrote: From: Tom O'Rourke

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-11 Thread Chris Wilson
On Tue, Nov 11, 2014 at 04:13:09PM +0100, Daniel Vetter wrote: On Sat, Nov 08, 2014 at 08:25:04AM +, Chris Wilson wrote: On Fri, Nov 07, 2014 at 02:25:38PM -0800, O'Rourke, Tom wrote: On Fri, Nov 07, 2014 at 10:41:26AM +, Chris Wilson wrote: On Wed, Nov 05, 2014 at 05:31:34PM

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-08 Thread Chris Wilson
On Fri, Nov 07, 2014 at 02:25:38PM -0800, O'Rourke, Tom wrote: On Fri, Nov 07, 2014 at 10:41:26AM +, Chris Wilson wrote: On Wed, Nov 05, 2014 at 05:31:34PM -0800, Tom.O'rou...@intel.com wrote: From: Tom O'Rourke Tom.O'rou...@intel.com Updated gen6|8_enable_rps() for Haswell and

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-07 Thread Daniel Vetter
On Wed, Nov 05, 2014 at 05:31:34PM -0800, Tom.O'rou...@intel.com wrote: From: Tom O'Rourke Tom.O'rou...@intel.com Updated gen6|8_enable_rps() for Haswell and Broadwell to use the efficient frequency read from pcode. Added hsw_use_efficient_freq() to read efficient frequency (aka RPe) from

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-07 Thread Chris Wilson
On Wed, Nov 05, 2014 at 05:31:34PM -0800, Tom.O'rou...@intel.com wrote: From: Tom O'Rourke Tom.O'rou...@intel.com Updated gen6|8_enable_rps() for Haswell and Broadwell to use the efficient frequency read from pcode. Added hsw_use_efficient_freq() to read efficient frequency (aka RPe) from

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-07 Thread O'Rourke, Tom
On Fri, Nov 07, 2014 at 10:50:02AM +0100, Daniel Vetter wrote: On Wed, Nov 05, 2014 at 05:31:34PM -0800, Tom.O'rou...@intel.com wrote: From: Tom O'Rourke Tom.O'rou...@intel.com Updated gen6|8_enable_rps() for Haswell and Broadwell to use the efficient frequency read from pcode.

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-07 Thread O'Rourke, Tom
On Fri, Nov 07, 2014 at 10:41:26AM +, Chris Wilson wrote: On Wed, Nov 05, 2014 at 05:31:34PM -0800, Tom.O'rou...@intel.com wrote: From: Tom O'Rourke Tom.O'rou...@intel.com Updated gen6|8_enable_rps() for Haswell and Broadwell to use the efficient frequency read from pcode. Added

[Intel-gfx] [PATCH 1/2] drm/i915: Use efficient frequency for HSW/BDW

2014-11-05 Thread Tom . O'Rourke
From: Tom O'Rourke Tom.O'rou...@intel.com Updated gen6|8_enable_rps() for Haswell and Broadwell to use the efficient frequency read from pcode. Added hsw_use_efficient_freq() to read efficient frequency (aka RPe) from pcode. The efficiency is based on the frequency/power ratio (MHz/W); this is