فهرست منبع

drm/nouveau/volt/pwm/gk104: fix an off-by-one resulting in the voltage not being set

Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Martin Peres <martin.peres@free.fr>
Martin Peres 9 سال پیش
والد
کامیت
ef0e9f5518
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c

+ 1 - 1
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c

@@ -59,7 +59,7 @@ gk104_volt_set(struct nvkm_volt *base, u32 uv)
 	duty = (uv - bios->base) * div / bios->pwm_range;
 	duty = (uv - bios->base) * div / bios->pwm_range;
 
 
 	nvkm_wr32(device, 0x20340, div);
 	nvkm_wr32(device, 0x20340, div);
-	nvkm_wr32(device, 0x20344, 0x8000000 | duty);
+	nvkm_wr32(device, 0x20344, 0x80000000 | duty);
 
 
 	return 0;
 	return 0;
 }
 }