From: Michel <mi...@da...> - 2002-10-11 12:50:28
|
On Mon, 2002-10-07 at 19:32, Giorgio Terzi wrote:=20 >=20 > as i said time ago i had problems with XFree86 some still remain > but one i think i have solved: > I had a problem of bad addressing during Xdm (Kdm-Gdm) loading > that trashed all the graphics with these symptoms: background sometimes > trashed, graphics and widgets in the greetings window become invisible > but selectable. > Note that these problems was found also before the CyberstormPPC > firmware upgrading. > After firmware upgrading i have seen that there was some differences betw= een > the PCI addressing declaration in apus_pci.c & pm2fb.c files and what the= new > ROM firmware reported. > I attack my dmesg file where is possible to see this adresses difference > and some (i think) non-influent Zorro vs. PCI address space conflicts. >=20 > I have tried the modifies below and now seems that this problem is solved= : >=20 > diff -urN orig/apus_pci.c modif/apus_pci.c > --- orig/apus_pci.c Sun Oct 28 12:44:01 2001 > +++ modif/apus_pci.c Sun Sep 1 11:46:07 2002 > @@ -167,7 +167,9 @@ > DEFW(); > writel(CVPPC_FB_APERTURE_ONE, apus_hose->cfg_data + PCI_BASE_ADDRESS_1)= ; > DEFW(); > - writel(CVPPC_FB_APERTURE_TWO, apus_hose->cfg_data + PCI_BASE_ADDRESS_2)= ; > + writel(0xe0800000, apus_hose->cfg_data + PCI_BASE_ADDRESS_2); > + DEFW(); > + writel(CVPPC_FB_APERTURE_TWO, apus_hose->cfg_data + PCI_BASE_ADDRESS_3)= ; > DEFW(); > writel(CVPPC_ROM_ADDRESS, apus_hose->cfg_data + PCI_ROM_ADDRESS); > DEFW(); > diff -urN orig/pm2fb.c modif/pm2fb.c > --- orig/pm2fb.c Tue Aug 20 14:47:29 2002 > +++ modif/pm2fb.c Sun Sep 1 11:47:22 2002 > @@ -998,7 +998,8 @@ > WR32(p->pci_config, PCI_CACHE_LINE_SIZE, 0xff00); > WR32(p->pci_config, PCI_BASE_ADDRESS_0, CVPPC_REGS_REGION); > WR32(p->pci_config, PCI_BASE_ADDRESS_1, CVPPC_FB_APERTURE_ONE); > - WR32(p->pci_config, PCI_BASE_ADDRESS_2, CVPPC_FB_APERTURE_TWO); > + WR32(p->pci_config, PCI_BASE_ADDRESS_2, 0xe0800000); > + WR32(p->pci_config, PCI_BASE_ADDRESS_3, CVPPC_FB_APERTURE_TWO); > WR32(p->pci_config, PCI_ROM_ADDRESS, CVPPC_ROM_ADDRESS); > DEFW(); > WR32(p->pci_config, PCI_COMMAND, 0xef000000 | >=20 > I wish to submit these modifies if you think they have "a sense" . Will these modifications also work with older firmware or whatever makes th= e difference? > The warbled text problem i signaled succedes only in the X text windows a= s > Xterm or Mozilla and so on. I think this is a driver's limitation because= =20 > with 1024x768x16 resolution this succedes only when the machine is very=20 > stressed but with 1152x864x16 and over this succedes everytime i open a=20 > window. With these high resolutions it warbles also the graphics. Sounds like bus contention and/or synchronization problems in the 2D acceleration code. --=20 Earthling Michel D=E4nzer (MrCooper)/ Debian GNU/Linux (powerpc) developer XFree86 and DRI project member / CS student, Free Software enthusiast |