mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
tests/pm_rps: Round requested freq correctly
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>
This commit is contained in:
parent
0269d1da49
commit
ffc481b8ac
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user