From: Martin Peres Date: Thu, 5 Nov 2015 08:07:38 +0000 (+0100) Subject: drm/nouveau/volt/pwm/gk104: fix an off-by-one resulting in the voltage not being set X-Git-Tag: v4.4-rc3~1^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef0e9f551899d10834da3d262f20f84db61d64b3;p=platform%2Fkernel%2Flinux-exynos.git drm/nouveau/volt/pwm/gk104: fix an off-by-one resulting in the voltage not being set Reported-by: Ilia Mirkin Signed-off-by: Martin Peres --- 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; }