mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-27 08:00:20 +00:00
overlay: Fix min frequency detection on BYT/BSW
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
+5
-2
@@ -91,10 +91,13 @@ int gpu_freq_init(struct gpu_freq *gf)
|
||||
if (strstr(buf, "PUNIT_REG_GPU_FREQ_STS")) {
|
||||
/* Baytrail is special, ofc. */
|
||||
gf->is_byt = 1;
|
||||
|
||||
s = strstr(buf, "max");
|
||||
if (s == NULL)
|
||||
goto err;
|
||||
if (s != NULL)
|
||||
sscanf(s, "max GPU freq: %d MHz", &gf->max);
|
||||
|
||||
s = strstr(buf, "min");
|
||||
if (s != NULL)
|
||||
sscanf(s, "min GPU freq: %d MHz", &gf->min);
|
||||
|
||||
gf->rp0 = gf->rp1 = gf->max;
|
||||
|
||||
Reference in New Issue
Block a user