All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] tests/pm_rps: Round requested freq correctly
@ 2014-02-07  9:03 Daniel Vetter
  2014-02-07  9:03 ` [PATCH 2/2] tests/pm_rps: remove setfreq Daniel Vetter
  2014-02-07  9:33 ` [PATCH 1/2] tests/pm_rps: Round requested freq correctly Chris Wilson
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Vetter @ 2014-02-07  9:03 UTC (permalink / raw)
  To: Intel Graphics Development; +Cc: Daniel Vetter

The kernel will round it, so if we don't we'll have a spurious
mismatch. Happens on my machine here with 650-1300MHz range, where the
midpoint is 975.

Cc: Jeff McGee <jeff.mcgee@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 tests/pm_rps.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index 467038104ec6..27e758755e3f 100644
--- a/tests/pm_rps.c
+++ b/tests/pm_rps.c
@@ -350,6 +350,9 @@ static void min_max_config(void (*check)(void))
 {
 	int fmid = (origfreqs[RPn] + origfreqs[RP0]) / 2;
 
+	/* hw (and so kernel) currently rounds to 50 MHz ... */
+	fmid = fmid / 50 * 50;
+
 	log("\nCheck original min and max...\n");
 	check();
 
-- 
1.8.1.4

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

end of thread, other threads:[~2014-02-07 15:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-07  9:03 [PATCH 1/2] tests/pm_rps: Round requested freq correctly Daniel Vetter
2014-02-07  9:03 ` [PATCH 2/2] tests/pm_rps: remove setfreq Daniel Vetter
2014-02-07  9:33 ` [PATCH 1/2] tests/pm_rps: Round requested freq correctly Chris Wilson
2014-02-07 10:15   ` Daniel Vetter
2014-02-07 14:44     ` Jeff McGee
2014-02-07 14:52       ` Ville Syrjälä
2014-02-07 15:08         ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.