[PATCH] Make radeonfb work with R300

From: Kronos (kronos@kronoz.cjb.net)
Date: Sun Mar 23 2003 - 12:11:56 EST


Hi,
radeonfb is unable to acquire the pll clock values from the BIOS on
newer radeon cards and uses default values which don't work.

Using ATI binary driver for X I founded this in the log:

(II) fglrx(0): PLL parameters: rf=2700 rd=12 min=20000 max=40000; xclk=27000

This patch (against 2.5.65) sets pll values according to X:

--- drivers/video/radeonfb.orig.c Sun Mar 23 16:15:04 2003
+++ drivers/video/radeonfb.c Sun Mar 23 18:01:48 2003
@@ -881,6 +881,16 @@
                                 rinfo->pll.ref_div = 12;
                                 rinfo->pll.ref_clk = 2700;
                                 break;
+ case PCI_DEVICE_ID_ATI_RADEON_ND:
+ case PCI_DEVICE_ID_ATI_RADEON_NE:
+ case PCI_DEVICE_ID_ATI_RADEON_NF:
+ case PCI_DEVICE_ID_ATI_RADEON_NG:
+ rinfo->pll.ppll_max = 40000;
+ rinfo->pll.ppll_min = 20000;
+ rinfo->pll.xclk = 27000;
+ rinfo->pll.ref_div = 12;
+ rinfo->pll.ref_clk = 2700;
+ break;
                         case PCI_DEVICE_ID_ATI_RADEON_QD:
                         case PCI_DEVICE_ID_ATI_RADEON_QE:
                         case PCI_DEVICE_ID_ATI_RADEON_QF:

It works on a R300 NE (9500 Pro), but should be ok also for the other
R300 chips (don't have the hw to make a test though).

In X log there is also this line:

(II) fglrx(0): Primary V_BIOS segment is: 0xc000

I've no idea of what V_BIOS is (Video BIOS?), but it may be useful ;)

HTH,
Luca

-- 
Home: http://kronoz.cjb.net
Windows /win'dohz/ n. : thirty-two  bit extension and graphical shell to
a sixteen  bit patch to an  eight bit operating system  originally coded
for a  four bit microprocessor  which was  written by a  two-bit company
that can't stand a bit of competition.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:44 EST