drm/mgag200: Bug fix: Modified pll algorithm for EH project
authorJulia Lemire <jlemire@matrox.com>
Mon, 18 Mar 2013 14:17:47 +0000 (10:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:17:49 +0000 (12:17 -0700)
commitb9477b7a143065701c1f7534caba4267f2dc07de
tree82090e586205bc2424a1fdf2ac1dee7e047f6442
parentbefefd854bda2ae7f9aebf6a466b2c3e28f017d6
drm/mgag200: Bug fix: Modified pll algorithm for EH project

commit 260b3f1291a75a580d22ce8bfb1499c617272716 upstream.

While testing the mgag200 kms driver on the HP ProLiant Gen8, a
bug was seen.  Once the bootloader would load the selected kernel,
the screen would go black.  At first it was assumed that the
mgag200 kms driver was hanging.  But after setting up the grub
serial output, it was seen that the driver was being loaded
properly.  After trying serval monitors, one finaly displayed
the message "Frequency Out of Range".  By comparing the kms pll
algorithm with the previous mgag200 xorg driver pll algorithm,
discrepencies were found.  Once the kms pll algorithm was
modified, the expected pll values were produced.  This fix was
tested on several monitors of varying native resolutions.

Signed-off-by: Julia Lemire <jlemire@matrox.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/mgag200/mgag200_mode.c