]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/clock: fix support for more than 2 monitors on nve0
authorAleksi Torhamo <aleksi@torhamo.net>
Fri, 4 Jan 2013 16:39:13 +0000 (18:39 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 13 Jan 2013 08:07:46 +0000 (18:07 +1000)
commit27d52d75ef0ce4426f563af6e70820c0b60e1841
treece77083fbf648b44f6763e08860ca7638f740f4a
parenta9c5fe04da1fe3f7f7c09b7b1c7a6f7514632bb0
drm/nouveau/clock: fix support for more than 2 monitors on nve0

Fixes regression introduced in commit 3d38eeed
"drm/nouveau/clock: pull in the implementation from all over the place"

When code was moved from nv50_crtc_set_clock to nvc0_clock_pll_set,
the PLLs it is used for got limited to only the first two VPLLs.

nv50_crtc_set_clock was only called to change VPLLs, so it didn't
limit what it was used for in any way. Since nvc0_clock_pll_set is
used for all PLLs, it has to specify which PLLs the code is used for,
and only listed the first two VPLLs.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=58735
This patch is a -stable candidate for 3.7.

Signed-off-by: Aleksi Torhamo <aleksi@torhamo.net>
Tested-by: Aleksi Torhamo <aleksi@torhamo.net>
Tested-by: Sean Santos <quantheory@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/core/include/subdev/bios/pll.h
drivers/gpu/drm/nouveau/core/subdev/clock/nvc0.c