From 542a6b205b184ec90e2108aaebaf8ba16128baec Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Wed, 9 Jul 2014 14:55:56 +0300 Subject: [PATCH] drm/i915/chv: calculate rc6 residency correctly The register to read cz count is different from vlv. Also the counts returned from CCK_CTL1 for BSW are (ticks in 30ns - 1). czcount_30ns of value 1 is a special case for 320Mhz. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80703 Suggested-by: Deepak S Cc: Jesse Barnes Signed-off-by: Mika Kuoppala Tested-by: Guo Jinxian Reviewed-by: Deepak S Signed-off-by: Daniel Vetter --- Reading git-format-patch failed