Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Martin Peres and committed by
Ben Skeggs
ef0e9f55 f5e55187

+1 -1
+1 -1
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c
··· 59 duty = (uv - bios->base) * div / bios->pwm_range; 60 61 nvkm_wr32(device, 0x20340, div); 62 - nvkm_wr32(device, 0x20344, 0x8000000 | duty); 63 64 return 0; 65 }
··· 59 duty = (uv - bios->base) * div / bios->pwm_range; 60 61 nvkm_wr32(device, 0x20340, div); 62 + nvkm_wr32(device, 0x20344, 0x80000000 | duty); 63 64 return 0; 65 }