]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/mgag200: fix G200ER pll picking algorithm
authorDave Airlie <airlied@gmail.com>
Thu, 9 Aug 2012 05:00:15 +0000 (15:00 +1000)
committerDave Airlie <airlied@gmail.com>
Fri, 10 Aug 2012 10:31:37 +0000 (20:31 +1000)
commit9830605d4c070b16ec5c24a75503877cc7698409
treee99385fa8c9d9c1ab16bcb8a996959de9f4aa05d
parentf7b83b908fbecadefa73c0d76b9c719d09c1d96d
drm/mgag200: fix G200ER pll picking algorithm

The original code was misported from the X driver,

a) an int went to unsigned int, breaking the downward counting testm code
b) the port did the vco/computed clock bits completely wrong.

This fixes an infinite loop on modprobe on some Dell servers with the G200ER
chipset variant.

Found in internal testing.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mgag200/mgag200_mode.c