]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Scale ring, rather than ia, frequency on Haswell
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Apr 2013 18:10:13 +0000 (19:10 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Apr 2013 07:43:26 +0000 (09:43 +0200)
commit3ebecd07d382c022e93c560c56114eec1d6d2cdd
tree279980d6bd4ffa910e67d9c108234d15430d4f5d
parent3a3b4f984b230d815d9f956f296a6145f1dfebb7
drm/i915: Scale ring, rather than ia, frequency on Haswell

Haswell introduces a separate frequency domain for the ring (uncore). So
where we used to increase the CPU (IA) clock with GPU busyness, we now
need to scale the ring frequency directly instead. As the ring limits
our memory bandwidth, it is vital for performance that when the GPU is
busy, we increase the frequency of the ring to increase the available
memory bandwidth.

v2: Fix the algorithm to actually use the scaled gpu frequency for the ring.
v3: s/max_ring_freq/min_ring_freq/ as that is what it is

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: Add space checkpatch complained about.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c