]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bxt: fix RC6 residency time calculation
authorImre Deak <imre.deak@intel.com>
Tue, 29 Sep 2015 13:28:46 +0000 (16:28 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 15:15:13 +0000 (17:15 +0200)
commitfc96a00e55215e681fe9c8633b6742c0f561468a
treea4b03312749b5e8dd1c28a58f3a1c8640c0698f0
parent1bc7ebf53dd4080d034f6dadab3ab5b9c5d40b56
drm/i915/bxt: fix RC6 residency time calculation

The RC6 residency time unit is 833.33ns on BXT according to the
specification, so update the calculation accordingly. Use the same way
as CHV/VLV to divide by the corresponding frequency, as I think this is
the more natural unit for what the HW does internally.

v2:
- add missing IS_BROXTON check (Ville)

Testcase: igt/pm_rc6_residency
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_sysfs.c