mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 23:36:30 +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:
parent
64590c7b76
commit
9b73ce43fe
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user