Make radeonfb work with R300
PATCH 1/1 Make radeonfb work with R300
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:
video/radeonfb.c renamed from video/radeonfb.orig.c +10 -0
@@ -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
Signature · 5 lines
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.
James Simmons
AppliedApplied.
Quoted 45 lines
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:
video/radeonfb.c renamed from video/radeonfb.orig.c +10
-0@@ -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_BIOSsegment is:0xc000I've no idea of what
V_BIOSis (Video BIOS?), but it may be useful ;)HTH,
Luca