1.9.16 bugfix for GeForce3 cards

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Mon 29 Jul 2002 - 22:17:37 IDT


Hello,


There's a problem in the reference frequency detection of the nvidia
driver, which makes it fail on some GeForce3 cards.
The attached patch should solve the problem.

Thanks to Dimitar Zhekov for finding this bug.

--- /usr/src/svgalib/svgalib-1.9.16/src/drivers/nv3.c   Fri Jul 26 14:24:56 2002
+++ svgalib/src/drivers/nv3.c   Mon Jul 29 17:49:28 2002
@@ -729,8 +729,10 @@
              break;
           case GEFORCE:
           default:
-             PLL_INPUT_FREQ= (temp&0x400000) ? 27000 :
-                            (temp&0x40  ) ? 14318 : 13500;
+             PLL_INPUT_FREQ= (temp&0x40  ) ? 14318 : 13500;
+             if(nvnum==0x17 ||  nvnum==0x25) {
+                 if(temp&0x400000) PLL_INPUT_FREQ=27000;
+             }
              MAXVCLOCK=350000;
              P_MAX=4;
              if(PLL_INPUT_FREQ==13500)M_MAX=13; else M_MAX=14;


-- 
Matan Ziv-Av.                         matan@svgalib.org




------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:25 IST