Make radeonfb work with R300

Make radeonfb work with R300

Post by Krono » Mon, 24 Mar 2003 18:20:07



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

                                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://www.veryComputer.com/
Windows /win'dohz/ n. : thirty-two  bit extension and graphical shell to
a six*  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

More majordomo info at  http://www.veryComputer.com/
Please read the FAQ at  http://www.veryComputer.com/

 
 
 

Make radeonfb work with R300

Post by James Simmon » Tue, 25 Mar 2003 21:00:15


Applied.

> 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

>                            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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. radeonfb still not working in 2.4.20-rc1

The radeonfb is still broken on some systems in 2.4.20-rc1.

I would suggest updating to the version found in the -ac kernels. I think it's important to have it working in 2.4.20.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. I just lost my patience ...

3. radeonfb: compiles now, but does it work?

4. i get a *huge* font with dosemu, help!!!

5. Making GTK work in the background while my app works in foreground

6. SuSE on an IBM Thinkpad i1200

7. Radeonfb question

8. Where cvan I get the newest kernel from?

9. need help: radeonfb problem

10. Sync bit bug in drivers/video/radeonfb.c ?

11. radeonfb and latest 2.4.20-ac tree

12. radeonfb 2.4.19-pre2

13. [CLEANUP] radeonfb accelerator id in 2.4.19