aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/subdev/clock/pllnva3.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2013-03-04 15:01:37 +1000
committerBen Skeggs <bskeggs@redhat.com>2013-11-08 15:40:19 +1000
commitaae95ca708140307813e49af6d0d4a7205509129 (patch)
tree20acced9f1a88e7be22f8f1c85c8bc610a2932b1 /drivers/gpu/drm/nouveau/core/subdev/clock/pllnva3.c
parentdrm/nouveau: implement a simple sysfs interface to new pm code (diff)
downloadlinux-dev-aae95ca708140307813e49af6d0d4a7205509129.tar.xz
linux-dev-aae95ca708140307813e49af6d0d4a7205509129.zip
drm/nouveau/fb: implement various bits of work towards memory reclocking
Not even remotely ready for the vast majority of the world. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/clock/pllnva3.c')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/clock/pllnva3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/clock/pllnva3.c b/drivers/gpu/drm/nouveau/core/subdev/clock/pllnva3.c
index 2fe1f712eefa..8eca457c2814 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/clock/pllnva3.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/clock/pllnva3.c
@@ -45,6 +45,7 @@ nva3_pll_calc(struct nouveau_subdev *subdev, struct nvbios_pll *info,
lM = max(lM, (int)info->vco1.min_m);
hM = (info->refclk + info->vco1.min_inputfreq) / info->vco1.min_inputfreq;
hM = min(hM, (int)info->vco1.max_m);
+ lM = min(lM, hM);
for (M = lM; M <= hM; M++) {
u32 tmp = freq * *P * M;