intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] drm/i915/skl: fix RC6 residency time calculation
@ 2016-02-03  5:59 Sagar Arun Kamble
  2016-02-03 10:16 ` ✓ Fi.CI.BAT: success for series starting with [1/1] " Patchwork
  2016-02-03 17:10 ` [PATCH 1/1] " Imre Deak
  0 siblings, 2 replies; 5+ messages in thread
From: Sagar Arun Kamble @ 2016-02-03  5:59 UTC (permalink / raw)
  To: intel-gfx; +Cc: shashidhar.hiremath

The RC6 residency time unit is 1.33us on SKL according to the
specification, so update the calculation accordingly.

Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
---
 drivers/gpu/drm/i915/i915_sysfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c
index c6188dd..9aa49a9 100644
--- a/drivers/gpu/drm/i915/i915_sysfs.c
+++ b/drivers/gpu/drm/i915/i915_sysfs.c
@@ -58,7 +58,8 @@ static u32 calc_residency(struct drm_device *dev,
 	} else if (IS_BROXTON(dev)) {
 		units = 1;
 		div = 1200;		/* 833.33ns */
-	}
+	} else if (IS_SKYLAKE(dev))
+		units = 133ULL;
 
 	raw_time = I915_READ(reg) * units;
 	ret = DIV_ROUND_UP_ULL(raw_time, div);
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-04 12:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-03  5:59 [PATCH 1/1] drm/i915/skl: fix RC6 residency time calculation Sagar Arun Kamble
2016-02-03 10:16 ` ✓ Fi.CI.BAT: success for series starting with [1/1] " Patchwork
2016-02-03 17:10 ` [PATCH 1/1] " Imre Deak
2016-02-04 10:09   ` Kamble, Sagar A
2016-02-04 12:30     ` Imre Deak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).