[PATCH] Make radeonfb work with R300

STALE8564d

2 messages, 2 authors, 2003-03-24 · open the first message on its own page

[PATCH] Make radeonfb work with R300

From: Kronos <hidden>
Date: 2003-03-23 16:01:11

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.


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

Re: [PATCH] Make radeonfb work with R300

From: James Simmons <hidden>
Date: 2003-03-24 18:47:04

Applied.
quoted hunk
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


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help