summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorMartin Peres2015-11-05 09:07:38 +0100
committerBen Skeggs2015-11-25 06:37:45 +0100
commitef0e9f551899d10834da3d262f20f84db61d64b3 (patch)
treeee1e65b5db88c1c29e67749e71fcd6b3d46a709c /drivers/gpu
parentdrm/nouveau/nvif: allow userspace access to its own client object (diff)
downloadkernel-qcow2-linux-ef0e9f551899d10834da3d262f20f84db61d64b3.tar.gz
kernel-qcow2-linux-ef0e9f551899d10834da3d262f20f84db61d64b3.tar.xz
kernel-qcow2-linux-ef0e9f551899d10834da3d262f20f84db61d64b3.zip
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c
index b61509e26ec9..b735173a18ff 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c
+++ b/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;
nvkm_wr32(device, 0x20340, div);
- nvkm_wr32(device, 0x20344, 0x8000000 | duty);
+ nvkm_wr32(device, 0x20344, 0x80000000 | duty);
return 0;
}