Subject: Re: New X diffs
To: Charles M. Hannum <abuse@spamalicious.com>
From: Nathan J. Williams <nathanw@MIT.EDU>
List: port-macppc
Date: 10/03/2001 22:09:12
"Charles M. Hannum" <abuse@spamalicious.com> writes:

> This is a new set of diffs, against the -current (i.e. as of right
> now) xsrc/xfree tree.  It uses /dev/pci now, so: a) it should work on
> machines with the bandit or grackle bridges, and b) it *requires* a
> -current kernel.
> 
> I also fixed a byte-swapping problem with Xvideo, so it works cleanly
> now (at least with planar YUV).  And I added a couple more missing
> keys.
> 
> Let me know if you try this, whether or not it works.

I tried this out on my iBook (dual USB), with a fresh -current
kernel. It didn't work; it hung the machine, and the LCD started
displaying slowly-intensifying putple stripes and blobs (which went
away after I rebooted). 

I'm using a XF86Config that is the same as what you posted, except
that I removed all the modes in the Display subsection other than
"1024x768".

Here's the output that it generated:

XFree86 Version 4.1.0 / X Window System
(protocol Version 11, revision 0, vendor release 6510)
Release Date: 2 June 2001
        If the server is older than 6-12 months, or if your card is
        newer than the above date, look for a newer version before
        reporting problems.  (See http://www.XFree86.Org/FAQ)
Build Operating System: NetBSD/macppc 1.5Y [ELF] The NetBSD Foundation, Inc.
(==) Log file: "/var/log/XFree86.0.log", Time: Wed Oct  3 21:26:02 2001
(==) Using config file: "/etc/XF86Config"
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) ServerLayout "Main Layout"
(**) |-->Screen "Screen1" (0)
(**) |   |-->Monitor "Generic Monitor"
(**) |   |-->Device "Rage 128"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
(**) Keyboard: Protocol: wskbd
(**) XKB: rules: "xfree86"
(**) XKB: model: "macadb"
(**) XKB: layout: "us"
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(==) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(--) Using wscons driver
xf86OpenConsole
(--) PCI: (0:16:0) ATI Rage 128 Mobility LF rev 2, Mem @ 0x94000000/26, 0x90000000/14, I/O @ 0x0400/8, BIOS @ 0x90020000/17
(II) ATI: ATI driver (version 6.3.6) for chipsets: ati
(II) R128: Driver for ATI Rage 128 chipsets: ATI Rage 128 RE (PCI),
        ATI Rage 128 RF (AGP), ATI Rage 128 RG (AGP), ATI Rage 128 RK (PCI),
        ATI Rage 128 RL (AGP), ATI Rage 128 Pro PD (PCI),
        ATI Rage 128 Pro PF (AGP), ATI Rage 128 Mobility LE (PCI),
        ATI Rage 128 Mobility LF (AGP), ATI Rage 128 Mobility MF (AGP),
        ATI Rage 128 Mobility ML (AGP)
(II) RADEON: Driver for ATI Radeon chipsets: ATI Radeon QD (AGP),
        ATI Radeon QE (AGP), ATI Radeon QF (AGP), ATI Radeon QG (AGP),
        ATI Radeon VE (AGP)
(II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w,
        mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI, mgag400
(II) GLINT: driver for 3Dlabs chipsets: gamma, ti_pm2, ti_pm, pm3, pm2v,
        pm2, pm, 300sx, 500tx, mx, delta
(II) S3VIRGE: driver (version 1.6.0) for S3 ViRGE chipsets: virge, 86C325,
        virge vx, 86C988, virge dx, virge gx, 86C375, 86C385, virge gx2,
        86C357, virge mx, 86C260, virge mx+, 86C280, trio 3d, 86C365,
        trio 3d/2x, 86C362, 86C368
(II) SIS: driver for SiS chipsets: SIS5597, SIS5598, SIS530, SIS6326,
        SIS300, SIS630, SIS540
(II) SAVAGE: driver (version 1.1.16) for S3 Savage chipsets: Savage4,
        Savage3D, Savage3D-MV, Savage2000, Savage/MX-MV, Savage/MX,
        Savage/IX-MV, Savage/IX, ProSavage PM133, ProSavage KM133, Twister,
        TwisterK
(II) TRIDENT: driver for Trident chipsets: tvga8900d, cyber9320, cyber9388,
        cyber9397, cyber9397dvd, cyber9520, cyber9525dvd, cyberblade/e4,
        tgui9420dgi, tgui9440agi, tgui9660, tgui9680, providia9682,
        providia9685, cyber9382, cyber9385, 3dimage975, 3dimage985, blade3d,
        cyberbladei7, cyberbladei7d, cyberbladei1, cyberbladei1d,
        cyberbladeAi1, cyberbladeAi1d, cyberbladeXP, cyberbladeXPm
(II) CHIPS: Driver for Chips and Technologies chipsets: ct65520, ct65525,
        ct65530, ct65535, ct65540, ct65545, ct65546, ct65548, ct65550,
        ct65554, ct65555, ct68554, ct69000, ct69030, ct64200, ct64300
(II) TDFX: Driver for 3dfx Banshee/Voodoo3 chipsets: 3dfx Banshee,
        3dfx Voodoo3, 3dfx Voodoo5
(II) FBDev: driver for framebuffer: fbdev, afb
(II) VGA: Generic VGA driver (version 4.0) for chipsets: generic
(--) Chipset ATI Rage 128 Mobility LF (AGP) found
(II) R128(0): PCI bus 0 card 16 func 0
(**) R128(0): Depth 24, (--) framebuffer bpp 32
(II) R128(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) R128(0): Default visual is TrueColor
(==) R128(0): RGB weight 888
(II) R128(0): Using 8 bits per RGB (8 bit DAC)
(II) R128(0): initializing int10
mapVidMem a0000, 20000, fd = 5
(WW) R128(0): Unable to retrieve all of segment 0x0C0000.
(EE) R128(0): Cannot read V_BIOS (5)
(--) R128(0): Chipset: "ATI Rage 128 Mobility LF (AGP)" (ChipID = 0x4c46)
(--) R128(0): Linear framebuffer at 0x94000000
(--) R128(0): MMIO registers at 0x90000000
(--) R128(0): BIOS at 0x90020000
mapVidMem 90000000, 4000, fd = 5
(--) R128(0): VideoRAM: 8192 kByte (128-bit SDR SGRAM 1:1)
(**) R128(0): Using flat panel for display
(WW) R128(0): Video BIOS not detected in PCI space!
(WW) R128(0): Attempting to read Video BIOS from legacy ISA space!
(WW) R128(0): Video BIOS not found!
mapVidMem 90000000, 4000, fd = 5
(II) R128(0): PLL parameters: rf=2950 rd=59 min=12500 max=25000; xclk=10500
(==) R128(0): Using gamma correction (1.0, 1.0, 1.0)
(II) R128(0): Generic Monitor: Using hsync range of 27.00-82.00 kHz
(II) R128(0): Generic Monitor: Using vrefresh range of 50.00-72.00 Hz
(II) R128(0): Clock range:  12.50 to 250.00 MHz
(II) R128(0): Not using default mode "640x350" (vrefresh out of range)
(II) R128(0): Not using default mode "640x400" (vrefresh out of range)
(II) R128(0): Not using default mode "720x400" (vrefresh out of range)
(II) R128(0): Not using default mode "640x480" (vrefresh out of range)
(II) R128(0): Not using default mode "640x480" (vrefresh out of range)
(II) R128(0): Not using default mode "640x480" (vrefresh out of range)
(II) R128(0): Not using default mode "800x600" (vrefresh out of range)
(II) R128(0): Not using default mode "800x600" (vrefresh out of range)
(II) R128(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
(II) R128(0): Not using default mode "1024x768" (vrefresh out of range)
(II) R128(0): Not using default mode "1024x768" (vrefresh out of range)
(II) R128(0): Not using default mode "1152x864" (vrefresh out of range)
(II) R128(0): Not using default mode "1280x960" (hsync out of range)
(II) R128(0): Not using default mode "1280x1024" (vrefresh out of range)
(II) R128(0): Not using default mode "1280x1024" (hsync out of range)
(II) R128(0): Not using default mode "1600x1200" (hsync out of range)
(II) R128(0): Not using default mode "1600x1200" (hsync out of range)
(II) R128(0): Not using default mode "1600x1200" (hsync out of range)
(II) R128(0): Not using default mode "1792x1344" (insufficient memory for mode)
(II) R128(0): Not using default mode "1792x1344" (insufficient memory for mode)
(II) R128(0): Not using default mode "1856x1392" (insufficient memory for mode)
(II) R128(0): Not using default mode "1856x1392" (insufficient memory for mode)
(II) R128(0): Not using default mode "1920x1440" (insufficient memory for mode)
(II) R128(0): Not using default mode "1920x1440" (insufficient memory for mode)
(II) R128(0): Not using default mode "1400x1050" (vrefresh out of range)
(--) R128(0): Virtual size is 1024x768 (pitch 1024)
(**) R128(0): Default mode "1024x768": 75.0 MHz, 56.5 kHz, 70.1 Hz
(==) R128(0): DPI set to (75, 75)
(--) Depth 24 pixmap format is 32 bpp
mapVidMem 90000000, 4000, fd = 5
mapVidMem 94000000, 800000, fd = 5
(WW) R128(0): Cannot read colourmap from VGA.  Will restore with default
mapVidMem a0000, 10000, fd = 5
(II) R128(0): Memory manager initialized to (0,0) (1024,2048)
(II) R128(0): Reserved area from (0,768) to (1024,770)
(II) R128(0): Largest offscreen area available: 1024 x 1278
(==) R128(0): Backing store disabled
(==) R128(0): Silken mouse enabled
(II) R128(0): Using XFree86 Acceleration Architecture (XAA)
        Screen to screen bit blits
        Solid filled rectangles
        8x8 mono pattern filled rectangles
        Indirect CPU to Screen color expansion
        Solid Lines
        Dashed Lines
        Scanline Image Writes
        Offscreen Pixmaps
        Setting up tile and stipple cache:
                32 128x128 slots
                10 256x256 slots
(II) R128(0): Acceleration enabled
(II) R128(0): Using hardware cursor (scanline 3080)
(II) R128(0): Largest offscreen area available: 1024 x 1276


Whereas the old messages from the hack-o-matic 4.0.1 server were:



XFree86 Version 4.0.1 / X Window System
(protocol Version 11, revision 0, vendor release 6400)
Release Date: 1 July 2000
        If the server is older than 6-12 months, or if your card is newer
        than the above date, look for a newer version before reporting
        problems.  (see http://www.XFree86.Org/FAQ)
Operating System: NetBSD/macppc 1.5 [ELF] The NetBSD Foundation, Inc.
(==) Log file: "/var/log/XFree86.0.log", Time: Wed Oct  3 21:59:31 2001
(==) Using config file: "/etc/XF86Config"
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (??) unknown.
(==) ServerLayout "Main Layout"
(**) |-->Screen "Screen1" (0)
(**) |   |-->Monitor "Generic Monitor"
(**) |   |-->Device "Rage 128"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
(**) Keyboard: Protocol: wskbd
(**) XKB: rules: "xfree86"
(**) XKB: model: "macadb"
(**) XKB: layout: "us"
(**) XKB: variant: "us"
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(==) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(--) Using wscons driver (/dev/ttyE0)
(**) PCI-HOST bridge is UniNorth
(--) PCI: (0:16:0) ATI Rage 128 Mobility LF rev 2, Mem @ 0x94000000/26, 0x90000000/14, I/O @ 0x0400/8
(II) ATI: ATI driver (version 5.3.5) for chipsets: ati, ativga
(II) r128: Driver for ATI Rage 128 chipset: ATI Rage 128 RE (PCI),
        ATI Rage 128 RF (AGP), ATI Rage 128 RK (PCI), ATI Rage 128 RL (AGP),
        ATI Rage 128 Pro PF (AGP), ATI Rage 128 Mobility LE (PCI),
        ATI Rage 128 Mobility LF (AGP)
(II) CHIPS: Driver for Chips and Technologies chipsets: ct65520, ct65525,
        ct65530, ct65535, ct65540, ct65545, ct65546, ct65548, ct65550,
        ct65554, ct65555, ct68554, ct69000, ct69030, ct64200, ct64300
(II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w,
        mga2164w AGP, mgag100, mgag200, mgag200 PCI, mgag400
(II) FBDev: driver for framebuffer: fbdev, afb
(--) Chipset ATI Rage 128 Mobility LF (AGP) found
(II) r128(0): PCI bus 0 card 16 func 0
(**) r128(0): Depth 24, (--) framebuffer bpp 32
(II) r128(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) r128(0): Default visual is TrueColor
(==) r128(0): RGB weight 888
(II) r128(0): Using 8 bits per RGB (8 bit DAC)
(--) r128(0): Chipset: "ATI Rage 128 Mobility LF (AGP)" (ChipID = 0x4c46)
(--) r128(0): Linear framebuffer at 0x94000000
(--) r128(0): MMIO registers at 0x90000000
(--) r128(0): BIOS at 0x90020000
(II) r128(0): mapVidMem 90000000, 4000, fd = 4
(--) r128(0): VideoRAM: 8192 kByte (128-bit SDR SGRAM 1:1)
(II) r128(0): Panel dimensions: 8x1
(WW) r128(0): Video BIOS not detected, using default PLL parameters!
(II) r128(0): PLL parameters: rf=2950 rd=65 min=12500 max=25000; xclk=10300
(==) r128(0): Using gamma correction (1.0, 1.0, 1.0)
(II) r128(0): Generic Monitor: Using hsync range of  27.00- 82.00 kHz
(II) r128(0): Generic Monitor: Using vrefresh range of  50.00- 72.00 Hz
(II) r128(0): Clock range:  12.50 to 250.00 MHz
(WW) r128(0): Mode "640x350" deleted (vrefresh out of range)
(WW) r128(0): Mode "640x400" deleted (vrefresh out of range)
(WW) r128(0): Mode "720x400" deleted (vrefresh out of range)
(WW) r128(0): Mode "640x480" deleted (vrefresh out of range)
(WW) r128(0): Mode "640x480" deleted (vrefresh out of range)
(WW) r128(0): Mode "640x480" deleted (vrefresh out of range)
(WW) r128(0): Mode "800x600" deleted (vrefresh out of range)
(WW) r128(0): Mode "800x600" deleted (vrefresh out of range)
(WW) r128(0): Mode "1024x768" deleted (vrefresh out of range)
(WW) r128(0): Mode "1024x768" deleted (vrefresh out of range)
(WW) r128(0): Mode "1024x768" deleted (vrefresh out of range)
(WW) r128(0): Mode "1152x864" deleted (vrefresh out of range)
(WW) r128(0): Mode "1280x960" deleted (hsync out of range)
(WW) r128(0): Mode "1280x1024" deleted (vrefresh out of range)
(WW) r128(0): Mode "1280x1024" deleted (hsync out of range)
(WW) r128(0): Mode "1600x1200" deleted (hsync out of range)
(WW) r128(0): Mode "1600x1200" deleted (hsync out of range)
(WW) r128(0): Mode "1600x1200" deleted (hsync out of range)
(WW) r128(0): Mode "1792x1344" deleted (insufficient memory for mode)
(WW) r128(0): Mode "1792x1344" deleted (insufficient memory for mode)
(WW) r128(0): Mode "1856x1392" deleted (insufficient memory for mode)
(WW) r128(0): Mode "1856x1392" deleted (insufficient memory for mode)
(WW) r128(0): Mode "1920x1440" deleted (insufficient memory for mode)
(WW) r128(0): Mode "1920x1440" deleted (insufficient memory for mode)
(--) r128(0): Virtual size is 1024x768 (pitch 1024)
(**) r128(0): Default mode "1024x768": 75.0 MHz, 56.5 kHz, 70.1 Hz
(==) r128(0): DPI set to (75, 75)
(--) Depth 24 pixmap format is 32 bpp
(II) r128(0): mapVidMem 90000000, 4000, fd = 4
(II) r128(0): mapVidMem 94000000, 800000, fd = 4
(WW) r128(0): Cannot read colourmap from VGA.  Will restore with default
vgaHWMapMem ...return TRUE
3b, 0, 0
(II) r128(0): Memory manager initialized to (0,0) (1024,2048)
(II) r128(0): Reserved area from (0,768) to (1024,770)
(II) r128(0): Largest offscreen area available: 1024 x 1278
(==) r128(0): Backing store disabled
(II) r128(0): Using XFree86 Acceleration Architecture (XAA)
        Screen to screen bit blits
        Solid filled rectangles
        8x8 mono pattern filled rectangles
        Indirect CPU to Screen color expansion
        Solid Lines
        Dashed Lines
        Offscreen Pixmaps
        Setting up tile and stipple cache:
                32 128x128 slots
                10 256x256 slots
(II) r128(0): Acceleration enabled
(II) r128(0): Using hardware cursor (scanline 3080)
(II) r128(0): Largest offscreen area available: 1024 x 1276
(**) Mouse1: Protocol: wsmouse
(**) Mouse1: Core Pointer
(==) Mouse1: Buttons: 3
(II) Keyboard "Keyboard1" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)

        - Nathan