]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/vlv: fix RC6 residency time calculation
authorImre Deak <imre.deak@intel.com>
Mon, 1 Jun 2015 07:32:01 +0000 (10:32 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 15 Jun 2015 09:56:37 +0000 (11:56 +0200)
commit2d6b9cb992a703633c369f4305b55114b66ba849
tree737eb8738acb68d04e0e4b0c0c8673f430135519
parent3a37bed79d67fcbce55e2d843c1a4dd18cd1c3aa
drm/i915/vlv: fix RC6 residency time calculation

The divider value to convert from CZ clock rate to ms needs a +1
adjustment on VLV just like on CHV. This matches both the spec and
the accuracy test by pm_rc6_residency.

v2:
- simplify logic checking for the CHV 320MHz special case (Rodrigo)

Testcase: igt/pm_rc6_residency
Signed-off-by: Imre Deak <imre.deak@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76877
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_sysfs.c