From: Imre Deak Date: Mon, 1 Jun 2015 07:32:01 +0000 (+0300) Subject: drm/i915/vlv: fix RC6 residency time calculation X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~36^2~297 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66c826a1754c07012e29fbe9be7013e92a5acbac;p=pandora-kernel.git 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 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76877 Reviewed-by: Rodrigo Vivi Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed