projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5e5518
)
drm/nouveau/volt/pwm/gk104: fix an off-by-one resulting in the voltage not being set
author
Martin Peres
<martin.peres@free.fr>
Thu, 5 Nov 2015 08:07:38 +0000
(09:07 +0100)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 25 Nov 2015 05:37:45 +0000
(15:37 +1000)
Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Martin Peres <martin.peres@free.fr>
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c
index b61509e26ec9f5d5192540c624e5c4ebdc96e087..b735173a18ff3d055dcfafcae2cd17c58b6a6c4a 100644
(file)
--- 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, 0x8000000
0
| duty);
return 0;
}