Skip to content

Commit ef0e9f5

Browse files
mupufBen Skeggs
authored andcommitted
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>
1 parent f5e5518 commit ef0e9f5

File tree

1 file changed

+1
-1
lines changed
  • drivers/gpu/drm/nouveau/nvkm/subdev/volt

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ gk104_volt_set(struct nvkm_volt *base, u32 uv)
5959
duty = (uv - bios->base) * div / bios->pwm_range;
6060

6161
nvkm_wr32(device, 0x20340, div);
62-
nvkm_wr32(device, 0x20344, 0x8000000 | duty);
62+
nvkm_wr32(device, 0x20344, 0x80000000 | duty);
6363

6464
return 0;
6565
}

0 commit comments

Comments
 (0)