drm/nouveau/clk: allow fb to signal it needs to do a multi-stage reclock
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Родитель
b655f2bb77
Коммит
1789cab4ef
|
@ -182,9 +182,12 @@ nouveau_pstate_prog(struct nouveau_clock *clk, int pstatei)
|
||||||
clk->pstate = pstatei;
|
clk->pstate = pstatei;
|
||||||
|
|
||||||
if (pfb->ram->calc) {
|
if (pfb->ram->calc) {
|
||||||
ret = pfb->ram->calc(pfb, pstate->base.domain[nv_clk_src_mem]);
|
int khz = pstate->base.domain[nv_clk_src_mem];
|
||||||
if (ret == 0)
|
do {
|
||||||
ret = pfb->ram->prog(pfb);
|
ret = pfb->ram->calc(pfb, khz);
|
||||||
|
if (ret == 0)
|
||||||
|
ret = pfb->ram->prog(pfb);
|
||||||
|
} while (ret > 0);
|
||||||
pfb->ram->tidy(pfb);
|
pfb->ram->tidy(pfb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче