projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0269d1d
)
tests/pm_rps: Round requested freq correctly
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 7 Feb 2014 08:59:42 +0000
(09:59 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 7 Feb 2014 09:03:20 +0000
(10:03 +0100)
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
patch
|
blob
|
history
diff --git
a/tests/pm_rps.c
b/tests/pm_rps.c
index
4670381
..
27e7587
100644
(file)
--- 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();