drm/i915/vlv: WA for Turbo and RC6 to work together.
authorDeepak S <deepak.s@linux.intel.com>
Thu, 3 Jul 2014 21:33:01 +0000 (17:33 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Jul 2014 19:05:33 +0000 (21:05 +0200)
commit31685c258e0b0ad6aa486c5ec001382cf8a64212
tree5dc4134e07533dcd4ac281bd870669a9e08991ad
parent8e09bf837f8c6b09784bf22c3a8c597df3c20b79
drm/i915/vlv: WA for Turbo and RC6 to work together.

With RC6 enabled, BYT has an HW issue in determining the right
Gfx busyness.
WA for Turbo + RC6: Use SW based Gfx busy-ness detection to decide
on increasing/decreasing the freq. This logic will monitor C0
counters of render/media power-wells over EI period and takes
necessary action based on these values

v2: Refactor duplicate code. (Ville)

v3: Reformat the comments. (Ville)

v4: Enable required counters and remove unwanted code (Ville)

v5: Added frequency change acceleration support and remove kernel-doc
style comments. (Ville)

v6: Updated comment section and Fix w/a comment. (Ville)

Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c