Subject: Re: Re: PGX64 and XFree
To: Michael <macallan18@earthlink.net>
From: Joel CARNAT <joel@carnat.net>
List: port-sparc64
Date: 09/21/2005 18:03:48
So here's where I am :

-> onboard set as "output-device screen"
-> PGX64 removed
* dmesg's display on the onboard.
* startx displays (1280x1204x60@16bits)

-> onboard set as "output-device screen:r1280x1024x60"
-> PGX64 pluggued in
* dmesg's display on the onboard.
machfb0 at pci1 dev 2 function 0: ATI Technologies 3D Rage Pro (rev.  0x5c)
machfb0: 16 MB aperture at 0xe1000000, 4 KB registers at 0xe2000000 memctl: 00651a77
machfb0: 4096 KB SGRAM 98.924 MHz, maximum RAMDAC clock 230 MHz
machfb0: initial resolution 1280x1024 at 8 bpp
wsdisplay0 at machfb0 kbdmux 1: console (default, sun emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (default, sun emulation)
<snip>
machfb1 at pci2 dev 1 function 0: ATI Technologies Rage XL (rev. 0x27)
machfb1: 16 MB aperture at 0x11000000, 4 KB registers at 0x12000000
memctl: 10a57a3b
ref_freq=29.498MHz
machfb1: 8188 KB SGRAM 114.992 MHz, maximum RAMDAC clock 230 MHz
machfb1: initial resolution 1152x864 at 8 bpp
<HERE WHERE A VISUAL "SCREEN RESIZE" HAPPENS>
initializing the DSP
wsdisplay1 at machfb1 kbdmux 1
wsmux1: connecting to wsdisplay1
wsdisplay1: screen 0-3 added (default, sun emulation)
* it's using 1280x1024x60 till there is some visual kind of resize.
* then I can't see anything when I type things with the keyboard,
  startx, ... The LCD still says it's resolution is 1280x1204x60
* if I try to startx (with the working XF86Config.onboard or
  XF86Config.pgx64), X dies saying :
Fatal server error:
xf86MapVidMem: could not mmap screen [s=2000,a=12000000] (Invalid argument)

-> PGX64 pluggued in
-> PGX64 set as "output-device screen2:r1280x1024x60" (with
show-displays/nvalias)
* dmesg's display on the PGX64
machfb0 at pci1 dev 2 function 0: ATI Technologies 3D Rage Pro (rev.  0x5c)
machfb0: 16 MB aperture at 0xe1000000, 4 KB registers at 0xe2000000
memctl: 00651a77
machfb0: 4096 KB SGRAM 98.924 MHz, maximum RAMDAC clock 230 MHz
machfb0: initial resolution 1152x900 at 8 bpp
wsdisplay0 at machfb0 kbdmux 1: console (default, sun emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (default, sun emulation)
<snip>
machfb1 at pci2 dev 1 function 0: ATI Technologies Rage XL (rev. 0x27)
machfb1: 16 MB aperture at 0x11000000, 4 KB registers at 0x12000000
memctl: 10a57a3b
ref_freq=29.498MHz
machfb1: 8188 KB SGRAM 114.992 MHz, maximum RAMDAC clock 230 MHz
machfb1: initial resolution 1152x864 at 8 bpp
initializing the DSP
wsdisplay1 at machfb1 kbdmux 1
wsmux1: connecting to wsdisplay1
wsdisplay1: screen 0-3 added (default, sun emulation)
* it's using 1280x1024x60
* I can type and see typed things on the screen.
* `XFree86 -configure` still dies saying
Fatal server error:
xf86MapVidMem: could not mmap screen [s=2000,a=e2000000] (Invalid argument)

-> PGX64 pluggued in
-> "output-device screen" and "pcib-probe-list 1,3"
* dmesg's display on the PGX64
machfb0 at pci1 dev 2 function 0: ATI Technologies 3D Rage Pro (rev.  0x5c)
machfb0: 16 MB aperture at 0xe1000000, 4 KB registers at 0xe2000000
memctl: 00651a77
machfb0: 4096 KB SGRAM 98.924 MHz, maximum RAMDAC clock 230 MHz
machfb0: initial resolution 1152x900 at 8 bpp
wsdisplay0 at machfb0 kbdmux 1: console (default, sun emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-3 added (default, sun emulation)
<snip>
machfb1 at pci2 dev 1 function 0: ATI Technologies Rage XL (rev. 0x27)
machfb1: 16 MB aperture at 0x11000000, 4 KB registers at 0x12000000
memctl: 10a57a3b
ref_freq=29.498MHz
machfb1: 8188 KB SGRAM 114.992 MHz, maximum RAMDAC clock 230 MHz
machfb1: initial resolution 1152x864 at 8 bpp
initializing the DSP
wsdisplay1 at machfb1 kbdmux 1
wsmux1: connecting to wsdisplay1
wsdisplay1: screen 0-3 added (default, sun emulation)
* it's using 1152x900x66
* `XFree86 -configure` don't crash. The XF86Config.new only contains one
  Card (the "Rage XL")
* startx runs but LCD says "can't display"
* same behaviour, when I use "output-device screen:r1280x1024x60"

So the only way to have the onboard working (1280x1024x60@16bits) is
when no other video card is pluggued. I'll remove the PGX64 to get the
X modes you talked about, and try to apply them when PGX64 is pluggued.
But I'll do it tomorrow, gotta get back home now :)

cheers,
	Jo

Dans l'épisode précédent (Wed, Sep 21 2005 - 11:21), Michael nous apprenait que :
> Hello,
> 
> > OK, I took my finger out of my *** and unpluggued the PGX64.
> > Now I have XFree86 running and displaying on my LCD.
> > 
> > BTW, you were right, in 16Bits I can do 1280x1024 :)
> 
> Good :)
> Does the LCD tell you which frequencies it's running on? According to
> your log XFree tried to use 60Hz / 64kHz with the PGX64
> 
> > > > Any idea why X don't appears nicely on my LCD ?
> > > 
> > > Not yet. Either X programmed some weird video timings or your LCD is
> > > picky - no way for me to tell which one it is.
> > > 
> > 
> > What next then to guess why the PGX64 works but don't display anything
> ?
> 
> I think we need to figure out which frequencies the onboard ATI uses to
> make the LCD happy. In you XFree log there will be a list of rejected
> video modes, like this: (II) ATI(0): Not using default mode "2048x1536"
> (insufficient memory for mode) (II) ATI(0): Not using default mode
> "1024x768" (bad mode clock/interlace/doublescan) (II) ATI(0): Not using
> default mode "2048x1536" (insufficient memory for mode) (II) ATI(0): Not
> using default mode "1024x768" (bad mode clock/interlace/doublescan)
> 
> after that there will be a list of usable modes and something to
> identify what it's using: (--) ATI(0): Virtual size is 1280x1024 (pitch
> 1280) (**) ATI(0): *Default mode "1280x1024": 108.0 MHz, 64.0 kHz, 60.0
> Hz (II) ATI(0): Modeline "1280x1024"  108.00  1280 1328 1440 1688  1024
> 1025 1028 1066 +hsync +vsync
> 
> please check what the onboard chip is using.
> Then it may be worth checking what the card does when you tell it to do
> 1280x1024 in 16bit.  
> 
> You can tell the firmware which mode to use:
> setenv output-device /path/to/device/ATY,something:r1280x1024x60
> 
> have fun
> Michael



-- 
,-- This mail runs ---------.
`------------ NetBSD/i386 --'