提交 d2edab4a 编写于 作者: B Ben Skeggs

drm/nouveau/pm: fix missing volt changes when boot voltage is undefined

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 d4676461
......@@ -117,7 +117,7 @@ nouveau_pm_perflvl_aux(struct drm_device *dev, struct nouveau_pm_level *perflvl,
}
if (pm->voltage.supported && pm->voltage_set) {
if (a->volt_min && b->volt_min && b->volt_min > a->volt_min) {
if (perflvl->volt_min && b->volt_min > a->volt_min) {
ret = pm->voltage_set(dev, perflvl->volt_min);
if (ret) {
NV_ERROR(dev, "voltage set failed: %d\n", ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册