mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 07:46:15 +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")) {
|
if (strstr(buf, "PUNIT_REG_GPU_FREQ_STS")) {
|
||||||
/* Baytrail is special, ofc. */
|
/* Baytrail is special, ofc. */
|
||||||
gf->is_byt = 1;
|
gf->is_byt = 1;
|
||||||
|
|
||||||
s = strstr(buf, "max");
|
s = strstr(buf, "max");
|
||||||
if (s == NULL)
|
if (s != NULL)
|
||||||
goto err;
|
|
||||||
sscanf(s, "max GPU freq: %d MHz", &gf->max);
|
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);
|
sscanf(s, "min GPU freq: %d MHz", &gf->min);
|
||||||
|
|
||||||
gf->rp0 = gf->rp1 = gf->max;
|
gf->rp0 = gf->rp1 = gf->max;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user