Bug 7112

Summary: [solved again] Xorg 7.0.0: S3 driver doesn't work
Product: xorg Reporter: Evgeny Zubok <zoubok>
Component: Driver/s3Assignee: Evgeny Zubok <zoubok>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: high CC: alexdeucher, libv, spamtrap
Version: 7.0.0   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Evgeny Zubok 2006-06-04 13:33:48 UTC
* Distribution: Debian/Etch
* Linux Kernel: 2.6.16
* Video: S3 Trio64V2

S3 driver doesn't work after last upgrade from Xorg 6.9.0 to Xorg 7.0.0. Before
that all was ok. Now I get blank screen, but syncronization signal is set right
to 85 Hz (from monitor status info). Both Xorg server and XDM doesn't start.
Ctrl+Alt+Del works well. "vesa" driver also works well even with Xorg 7.0.0.
Maybe recent changes (8 weeks ago) broke driver.

=====================
xorg.conf:

Section "Module"
    Load        "dbe"  	# Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load       "glx"
EndSection

Section "Files"
    FontPath   "unix/:7100"
EndSection

Section "InputDevice"
    Identifier	"Keyboard1"
    Driver	"kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"	"xorg"
    Option "XkbModel"	"pc105"
    Option "XkbLayout"	"us,ru(winkeys)"
    Option "XkbOptions"	"grp:rwin_toggle,ctrl:nocaps,grp_led:caps"
EndSection

Section "InputDevice"
    Identifier	"Mouse1"
    Driver	"mouse"
    Option "Device"      "/dev/input/mouse0"
    Option "Emulate3Buttons"
EndSection

Section "Monitor"
    Identifier  "ViewSonic_E651-3"
    HorizSync   30-56
    VertRefresh 50-120
EndSection

Section "Device"
    Identifier  "s3_trio64v2"
    Driver      "s3" 
    Option	"DPMS"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "s3_trio64v2"
    Monitor     "ViewSonic_E651-3"
    DefaultDepth 16

    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection




=====================
Xorg.1.log:
X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.12-1-686 i686
Current Operating System: Linux debian 2.6.16-1-486 #2 Thu Apr 20 20:28:12 UTC
2006 i586
Build Date: 16 March 2006
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun  4 23:30:27 2006
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Simple Layout"
(**) |-->Screen "Screen 1" (0)
(**) |   |-->Monitor "ViewSonic_E651-3"
(**) |   |-->Device "s3_trio64v2"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
(**) FontPath set to
"unix/:7100,/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/TTF/,/usr/share/fonts/X11/OTF,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/CID/,/usr/share/fonts/X11/100dpi/,/usr/share/fonts/X11/75dpi/"
(==) RgbPath set to "/usr/share/X11/rgb"
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.2
	X.Org Video Driver: 0.8
	X.Org XInput driver : 0.5
	X.Org Server Extension : 0.2
	X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/lib/xorg/modules/fonts/libbitmap.so
(II) Module bitmap: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.0
	Module class: X.Org Font Renderer
	ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/lib/xorg/modules/libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.0
	ABI class: X.Org Video Driver, version 0.8
(++) using VT number 7

(WW) xf86OpenConsole: setpgid failed: Operation not permitted
(WW) xf86OpenConsole: setsid failed: Operation not permitted
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 8086,7100 card 0000,0000 rev 01 class 06,00,00 hdr 00
(II) PCI: 00:01:0: chip 8086,7110 card 0000,0000 rev 01 class 06,01,00 hdr 80
(II) PCI: 00:01:1: chip 8086,7111 card 0000,0000 rev 01 class 01,01,80 hdr 00
(II) PCI: 00:01:2: chip 8086,7112 card 0000,0000 rev 01 class 0c,03,00 hdr 00
(II) PCI: 00:01:3: chip 8086,7113 card 0000,0000 rev 01 class 06,80,00 hdr 00
(II) PCI: 00:09:0: chip 1033,0035 card 1033,0035 rev 43 class 0c,03,10 hdr 80
(II) PCI: 00:09:1: chip 1033,0035 card 1033,0035 rev 43 class 0c,03,10 hdr 00
(II) PCI: 00:09:2: chip 1033,00e0 card 0ee4,3383 rev 04 class 0c,03,20 hdr 00
(II) PCI: 00:0a:0: chip 12eb,0001 card 1092,2110 rev 02 class 04,01,00 hdr 00
(II) PCI: 00:0b:0: chip 5333,8901 card 5333,8901 rev 14 class 03,00,00 hdr 00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,0), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
	[0] -1	0	0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 0 non-prefetchable memory range:
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[B]
(II) PCI-to-ISA bridge:
(II) Bus -1: bridge is at (0:1:0), (0,-1,-1), BCTRL: 0x0008 (VGA_EN is set)
(--) PCI:*(0:11:0) S3 Inc. 86c775/86c785 [Trio 64V2/DX or /GX] rev 20, Mem @
0xe0000000/26
(II) Addressable bus resource ranges are
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[B]
	[1] -1	0	0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) OS-reported resource ranges:
	[0] -1	0	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[6] -1	0	0x00000000 - 0x000000ff (0x100) IX[B]
(II) Active PCI resource ranges:
	[0] -1	0	0xe5800000 - 0xe581ffff (0x20000) MX[B]
	[1] -1	0	0xe6000000 - 0xe60000ff (0x100) MX[B]
	[2] -1	0	0xe6800000 - 0xe6800fff (0x1000) MX[B]
	[3] -1	0	0xe7000000 - 0xe7000fff (0x1000) MX[B]
	[4] -1	0	0xe0000000 - 0xe3ffffff (0x4000000) MX[B](B)
	[5] -1	0	0x0000d000 - 0x0000d007 (0x8) IX[B]
	[6] -1	0	0x0000d400 - 0x0000d407 (0x8) IX[B]
	[7] -1	0	0x0000d800 - 0x0000d81f (0x20) IX[B]
	[8] -1	0	0x0000e000 - 0x0000e00f (0x10) IX[B]
(II) Active PCI resource ranges after removing overlaps:
	[0] -1	0	0xe5800000 - 0xe581ffff (0x20000) MX[B]
	[1] -1	0	0xe6000000 - 0xe60000ff (0x100) MX[B]
	[2] -1	0	0xe6800000 - 0xe6800fff (0x1000) MX[B]
	[3] -1	0	0xe7000000 - 0xe7000fff (0x1000) MX[B]
	[4] -1	0	0xe0000000 - 0xe3ffffff (0x4000000) MX[B](B)
	[5] -1	0	0x0000d000 - 0x0000d007 (0x8) IX[B]
	[6] -1	0	0x0000d400 - 0x0000d407 (0x8) IX[B]
	[7] -1	0	0x0000d800 - 0x0000d81f (0x20) IX[B]
	[8] -1	0	0x0000e000 - 0x0000e00f (0x10) IX[B]
(II) OS-reported resource ranges after removing overlaps with PCI:
	[0] -1	0	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[6] -1	0	0x00000000 - 0x000000ff (0x100) IX[B]
(II) All system resource ranges:
	[0] -1	0	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0	0xe5800000 - 0xe581ffff (0x20000) MX[B]
	[6] -1	0	0xe6000000 - 0xe60000ff (0x100) MX[B]
	[7] -1	0	0xe6800000 - 0xe6800fff (0x1000) MX[B]
	[8] -1	0	0xe7000000 - 0xe7000fff (0x1000) MX[B]
	[9] -1	0	0xe0000000 - 0xe3ffffff (0x4000000) MX[B](B)
	[10] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[11] -1	0	0x00000000 - 0x000000ff (0x100) IX[B]
	[12] -1	0	0x0000d000 - 0x0000d007 (0x8) IX[B]
	[13] -1	0	0x0000d400 - 0x0000d407 (0x8) IX[B]
	[14] -1	0	0x0000d800 - 0x0000d81f (0x20) IX[B]
	[15] -1	0	0x0000e000 - 0x0000e00f (0x10) IX[B]
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 0.2
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 0.2
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/lib/xorg/modules/extensions/libGLcore.so
(II) Module GLcore: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading extension GLX
(II) LoadModule: "s3"
(II) Loading /usr/lib/xorg/modules/drivers/s3_drv.so
(II) Module s3: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 0.3.5
	Module class: X.Org Video Driver
	ABI class: X.Org Video Driver, version 0.8
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.4
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 0.5
(II) LoadModule: "kbd"
(II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.1
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 0.5
(II) S3: driver (version 0.3.5 for S3 chipset: 964-0, 964-1, 968,
	Trio32/64, Aurora64V+, Trio64UV+, Trio64V2/DX/GX
(II) Primary Device is: PCI 00:0b:0
(--) Assigning device section with no busID to primary device
(--) Chipset Trio64V2/DX/GX found
(II) resource ranges after xf86ClaimFixedResources() call:
	[0] -1	0	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0	0xe5800000 - 0xe581ffff (0x20000) MX[B]
	[6] -1	0	0xe6000000 - 0xe60000ff (0x100) MX[B]
	[7] -1	0	0xe6800000 - 0xe6800fff (0x1000) MX[B]
	[8] -1	0	0xe7000000 - 0xe7000fff (0x1000) MX[B]
	[9] -1	0	0xe0000000 - 0xe3ffffff (0x4000000) MX[B](B)
	[10] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[11] -1	0	0x00000000 - 0x000000ff (0x100) IX[B]
	[12] -1	0	0x0000d000 - 0x0000d007 (0x8) IX[B]
	[13] -1	0	0x0000d400 - 0x0000d407 (0x8) IX[B]
	[14] -1	0	0x0000d800 - 0x0000d81f (0x20) IX[B]
	[15] -1	0	0x0000e000 - 0x0000e00f (0x10) IX[B]
(II) resource ranges after probing:
	[0] -1	0	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[1] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[2] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[3] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[4] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[5] -1	0	0xe5800000 - 0xe581ffff (0x20000) MX[B]
	[6] -1	0	0xe6000000 - 0xe60000ff (0x100) MX[B]
	[7] -1	0	0xe6800000 - 0xe6800fff (0x1000) MX[B]
	[8] -1	0	0xe7000000 - 0xe7000fff (0x1000) MX[B]
	[9] -1	0	0xe0000000 - 0xe3ffffff (0x4000000) MX[B](B)
	[10] 0	0	0x000a0000 - 0x000affff (0x10000) MS[B]
	[11] 0	0	0x000b0000 - 0x000b7fff (0x8000) MS[B]
	[12] 0	0	0x000b8000 - 0x000bffff (0x8000) MS[B]
	[13] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[14] -1	0	0x00000000 - 0x000000ff (0x100) IX[B]
	[15] -1	0	0x0000d000 - 0x0000d007 (0x8) IX[B]
	[16] -1	0	0x0000d400 - 0x0000d407 (0x8) IX[B]
	[17] -1	0	0x0000d800 - 0x0000d81f (0x20) IX[B]
	[18] -1	0	0x0000e000 - 0x0000e00f (0x10) IX[B]
	[19] 0	0	0x100003b0 - 0x100003bb (0xc) IS[B]
	[20] 0	0	0x100003c0 - 0x100003df (0x20) IS[B]
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/lib/xorg/modules/libvgahw.so
(II) Module vgahw: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 0.1.0
	ABI class: X.Org Video Driver, version 0.8
(II) s3(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(**) s3(0): Depth 16, (--) framebuffer bpp 16
(==) s3(0): RGB weight 565
(==) s3(0): Default visual is TrueColor
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Loading /usr/lib/xorg/modules/libint10.so
(II) Module int10: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.0
	ABI class: X.Org Video Driver, version 0.8
(II) s3(0): Primary V_BIOS segment is: 0xc000
(II) Loading sub module "vbe"
(II) LoadModule: "vbe"
(II) Loading /usr/lib/xorg/modules/libvbe.so
(II) Module vbe: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.1.0
	ABI class: X.Org Video Driver, version 0.8
(II) s3(0): VESA BIOS detected
(II) s3(0): VESA VBE Version 1.2
(II) s3(0): VESA VBE Total Mem: 2048 kB
(II) s3(0): VESA VBE OEM: S3 Incorporated. 86C775/86C785
(==) s3(0): Using gamma correction (1.0, 1.0, 1.0)
(**) s3(0): Chipset: "Trio64V2/DX/GX"
(--) s3(0): Framebuffer @ 0xe0000000
(--) s3(0): MMIO @ 0xe1000000
(--) s3(0): videoRam = 2048 Kb
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Loading /usr/lib/xorg/modules/libramdac.so
(II) Module ramdac: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 0.1.0
	ABI class: X.Org Video Driver, version 0.8
(--) s3(0): MCLK 55.036 Mhz
(--) s3(0): RefClock: 16000
(--) s3(0): Max pixel clock at this depth is 80 Mhz
(II) s3(0): ViewSonic_E651-3: Using hsync range of 30.00-56.00 kHz
(II) s3(0): ViewSonic_E651-3: Using vrefresh range of 50.00-120.00 Hz
(II) s3(0): Clock range:  15.60 to  80.00 MHz
(II) s3(0): Not using default mode "1024x768" (hsync out of range)
(II) s3(0): Not using default mode "512x384" (hsync out of range)
(II) s3(0): Not using default mode "1024x768" (hsync out of range)
(II) s3(0): Not using default mode "512x384" (hsync out of range)
(II) s3(0): Not using default mode "1152x864" (hsync out of range)
(II) s3(0): Not using default mode "576x432" (hsync out of range)
(II) s3(0): Not using default mode "1280x960" (insufficient memory for mode)
(II) s3(0): Not using default mode "640x480" (hsync out of range)
(II) s3(0): Not using default mode "1280x960" (insufficient memory for mode)
(II) s3(0): Not using default mode "640x480" (hsync out of range)
(II) s3(0): Not using default mode "1280x1024" (insufficient memory for mode)
(II) s3(0): Not using default mode "640x512" (hsync out of range)
(II) s3(0): Not using default mode "1280x1024" (insufficient memory for mode)
(II) s3(0): Not using default mode "640x512" (hsync out of range)
(II) s3(0): Not using default mode "1280x1024" (insufficient memory for mode)
(II) s3(0): Not using default mode "640x512" (hsync out of range)
(II) s3(0): Not using default mode "1600x1200" (insufficient memory for mode)
(II) s3(0): Not using default mode "800x600" (hsync out of range)
(II) s3(0): Not using default mode "1600x1200" (insufficient memory for mode)
(II) s3(0): Not using default mode "800x600" (hsync out of range)
(II) s3(0): Not using default mode "1600x1200" (insufficient memory for mode)
(II) s3(0): Not using default mode "800x600" (hsync out of range)
(II) s3(0): Not using default mode "1600x1200" (insufficient memory for mode)
(II) s3(0): Not using default mode "800x600" (hsync out of range)
(II) s3(0): Not using default mode "1600x1200" (insufficient memory for mode)
(II) s3(0): Not using default mode "800x600" (hsync out of range)
(II) s3(0): Not using default mode "1792x1344" (insufficient memory for mode)
(II) s3(0): Not using default mode "896x672" (hsync out of range)
(II) s3(0): Not using default mode "1792x1344" (insufficient memory for mode)
(II) s3(0): Not using default mode "896x672" (hsync out of range)
(II) s3(0): Not using default mode "1856x1392" (insufficient memory for mode)
(II) s3(0): Not using default mode "928x696" (hsync out of range)
(II) s3(0): Not using default mode "1856x1392" (insufficient memory for mode)
(II) s3(0): Not using default mode "928x696" (hsync out of range)
(II) s3(0): Not using default mode "1920x1440" (insufficient memory for mode)
(II) s3(0): Not using default mode "960x720" (hsync out of range)
(II) s3(0): Not using default mode "1920x1440" (insufficient memory for mode)
(II) s3(0): Not using default mode "960x720" (hsync out of range)
(II) s3(0): Not using default mode "1152x864" (hsync out of range)
(II) s3(0): Not using default mode "576x432" (hsync out of range)
(II) s3(0): Not using default mode "1400x1050" (insufficient memory for mode)
(II) s3(0): Not using default mode "700x525" (hsync out of range)
(II) s3(0): Not using default mode "1400x1050" (insufficient memory for mode)
(II) s3(0): Not using default mode "700x525" (hsync out of range)
(II) s3(0): Not using default mode "1400x1050" (insufficient memory for mode)
(II) s3(0): Not using default mode "700x525" (hsync out of range)
(II) s3(0): Not using default mode "1400x1050" (insufficient memory for mode)
(II) s3(0): Not using default mode "700x525" (hsync out of range)
(II) s3(0): Not using default mode "1440x900" (insufficient memory for mode)
(II) s3(0): Not using default mode "720x450" (hsync out of range)
(II) s3(0): Not using default mode "1600x1024" (insufficient memory for mode)
(II) s3(0): Not using default mode "800x512" (hsync out of range)
(II) s3(0): Not using default mode "1680x1050" (insufficient memory for mode)
(II) s3(0): Not using default mode "840x525" (hsync out of range)
(II) s3(0): Not using default mode "1920x1200" (insufficient memory for mode)
(II) s3(0): Not using default mode "960x600" (hsync out of range)
(II) s3(0): Not using default mode "1920x1200" (insufficient memory for mode)
(II) s3(0): Not using default mode "960x600" (hsync out of range)
(II) s3(0): Not using default mode "1920x1440" (insufficient memory for mode)
(II) s3(0): Not using default mode "960x720" (hsync out of range)
(II) s3(0): Not using default mode "2048x1536" (insufficient memory for mode)
(II) s3(0): Not using default mode "1024x768" (hsync out of range)
(II) s3(0): Not using default mode "2048x1536" (insufficient memory for mode)
(II) s3(0): Not using default mode "1024x768" (hsync out of range)
(II) s3(0): Not using default mode "2048x1536" (insufficient memory for mode)
(II) s3(0): Not using default mode "1024x768" (hsync out of range)
(II) s3(0): Not using mode "1280x800" (bad mode clock/interlace/doublescan)
(II) s3(0): Not using mode "1280x768" (bad mode clock/interlace/doublescan)
(II) s3(0): Not using default mode "1152x768" (width too large for virtual size)
(II) s3(0): Not using default mode "1024x768" (width too large for virtual size)
(II) s3(0): Not using default mode "1024x768" (width too large for virtual size)
(II) s3(0): Not using default mode "1024x768" (width too large for virtual size)
(II) s3(0): Not using default mode "832x624" (width too large for virtual size)
(--) s3(0): Virtual size is 800x600 (pitch 800)
(**) s3(0): *Default mode "800x600": 56.3 MHz, 53.7 kHz, 85.1 Hz
(II) s3(0): Modeline "800x600"   56.30  800 832 896 1048  600 601 604 631 +hsync
+vsync
(**) s3(0): *Default mode "640x480": 36.0 MHz, 43.3 kHz, 85.0 Hz
(II) s3(0): Modeline "640x480"   36.00  640 696 752 832  480 481 484 509 -hsync
-vsync
(**) s3(0):  Default mode "800x600": 49.5 MHz, 46.9 kHz, 75.0 Hz
(II) s3(0): Modeline "800x600"   49.50  800 816 896 1056  600 601 604 625 +hsync
+vsync
(**) s3(0):  Default mode "800x600": 50.0 MHz, 48.1 kHz, 72.2 Hz
(II) s3(0): Modeline "800x600"   50.00  800 856 976 1040  600 637 643 666 +hsync
+vsync
(**) s3(0):  Default mode "800x600": 40.0 MHz, 37.9 kHz, 60.3 Hz
(II) s3(0): Modeline "800x600"   40.00  800 840 968 1056  600 601 605 628 +hsync
+vsync
(**) s3(0):  Default mode "800x600": 36.0 MHz, 35.2 kHz, 56.2 Hz
(II) s3(0): Modeline "800x600"   36.00  800 824 896 1024  600 601 603 625 +hsync
+vsync
(**) s3(0):  Default mode "640x480": 31.5 MHz, 37.5 kHz, 75.0 Hz
(II) s3(0): Modeline "640x480"   31.50  640 656 720 840  480 481 484 500 -hsync
-vsync
(**) s3(0):  Default mode "640x480": 31.5 MHz, 37.9 kHz, 72.8 Hz
(II) s3(0): Modeline "640x480"   31.50  640 664 704 832  480 489 491 520 -hsync
-vsync
(**) s3(0):  Default mode "640x480": 25.2 MHz, 31.5 kHz, 60.0 Hz
(II) s3(0): Modeline "640x480"   25.20  640 656 752 800  480 490 492 525 -hsync
-vsync
(**) s3(0):  Default mode "720x400": 35.5 MHz, 37.9 kHz, 85.0 Hz
(II) s3(0): Modeline "720x400"   35.50  720 756 828 936  400 401 404 446 -hsync
+vsync
(**) s3(0):  Default mode "640x400": 31.5 MHz, 37.9 kHz, 85.1 Hz
(II) s3(0): Modeline "640x400"   31.50  640 672 736 832  400 401 404 445 -hsync
+vsync
(**) s3(0):  Default mode "640x400": 41.7 MHz, 49.7 kHz, 60.0 Hz (D)
(II) s3(0): Modeline "640x400"   41.73  640 672 740 840  400 400 402 414 doublescan
(**) s3(0):  Default mode "640x384": 40.1 MHz, 47.7 kHz, 60.1 Hz (D)
(II) s3(0): Modeline "640x384"   40.07  640 672 740 840  384 384 386 397 doublescan
(**) s3(0):  Default mode "640x350": 31.5 MHz, 37.9 kHz, 85.1 Hz
(II) s3(0): Modeline "640x350"   31.50  640 672 736 832  350 382 385 445 +hsync
-vsync
(**) s3(0):  Default mode "576x384": 32.5 MHz, 44.2 kHz, 54.8 Hz (D)
(II) s3(0): Modeline "576x384"   32.50  576 589 657 736  384 385 388 403
doublescan +hsync +vsync
(**) s3(0):  Default mode "512x384": 37.5 MHz, 56.5 kHz, 70.1 Hz (D)
(II) s3(0): Modeline "512x384"   37.50  512 524 592 664  384 385 388 403
doublescan -hsync -vsync
(**) s3(0):  Default mode "512x384": 32.5 MHz, 48.4 kHz, 60.0 Hz (D)
(II) s3(0): Modeline "512x384"   32.50  512 524 592 672  384 385 388 403
doublescan -hsync -vsync
(**) s3(0):  Default mode "512x384": 22.4 MHz, 35.5 kHz, 87.1 Hz (D)
(II) s3(0): Modeline "512x384"   22.45  512 516 604 632  384 384 388 409
interlace doublescan +hsync +vsync
(**) s3(0):  Default mode "416x312": 28.6 MHz, 49.7 kHz, 74.7 Hz (D)
(II) s3(0): Modeline "416x312"   28.64  416 432 464 576  312 312 314 333
doublescan -hsync -vsync
(**) s3(0):  Default mode "400x300": 28.1 MHz, 53.7 kHz, 85.3 Hz (D)
(II) s3(0): Modeline "400x300"   28.15  400 416 448 524  300 300 302 315
doublescan +hsync +vsync
(**) s3(0):  Default mode "400x300": 24.8 MHz, 46.9 kHz, 75.1 Hz (D)
(II) s3(0): Modeline "400x300"   24.75  400 408 448 528  300 300 302 312
doublescan +hsync +vsync
(**) s3(0):  Default mode "400x300": 25.0 MHz, 48.1 kHz, 72.2 Hz (D)
(II) s3(0): Modeline "400x300"   25.00  400 428 488 520  300 318 321 333
doublescan +hsync +vsync
(**) s3(0):  Default mode "400x300": 20.0 MHz, 37.9 kHz, 60.3 Hz (D)
(II) s3(0): Modeline "400x300"   20.00  400 420 484 528  300 300 302 314
doublescan +hsync +vsync
(**) s3(0):  Default mode "400x300": 18.0 MHz, 35.2 kHz, 56.3 Hz (D)
(II) s3(0): Modeline "400x300"   18.00  400 412 448 512  300 300 301 312
doublescan +hsync +vsync
(**) s3(0):  Default mode "320x240": 18.0 MHz, 43.3 kHz, 85.2 Hz (D)
(II) s3(0): Modeline "320x240"   18.00  320 348 376 416  240 240 242 254
doublescan -hsync -vsync
(**) s3(0):  Default mode "320x240": 15.8 MHz, 37.5 kHz, 75.0 Hz (D)
(II) s3(0): Modeline "320x240"   15.75  320 328 360 420  240 240 242 250
doublescan -hsync -vsync
(**) s3(0):  Default mode "320x240": 15.8 MHz, 37.9 kHz, 72.8 Hz (D)
(II) s3(0): Modeline "320x240"   15.75  320 332 352 416  240 244 245 260
doublescan -hsync -vsync
(**) s3(0):  Default mode "360x200": 17.8 MHz, 37.9 kHz, 85.0 Hz (D)
(II) s3(0): Modeline "360x200"   17.75  360 378 414 468  200 200 202 223
doublescan -hsync +vsync
(**) s3(0):  Default mode "320x200": 15.8 MHz, 37.9 kHz, 85.3 Hz (D)
(II) s3(0): Modeline "320x200"   15.75  320 336 368 416  200 200 202 222
doublescan -hsync +vsync
(**) s3(0):  Default mode "320x175": 15.8 MHz, 37.9 kHz, 85.3 Hz (D)
(II) s3(0): Modeline "320x175"   15.75  320 336 368 416  175 191 192 222
doublescan +hsync -vsync
(==) s3(0): DPI set to (75, 75)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/lib/xorg/modules/libxaa.so
(II) Module xaa: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.2.0
	ABI class: X.Org Video Driver, version 0.8
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
	[0] 0	0	0xe0000000 - 0xe3ffffff (0x4000000) MS[B]
	[1] -1	0	0xffe00000 - 0xffffffff (0x200000) MX[B](B)
	[2] -1	0	0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
	[3] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[4] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[5] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[6] -1	0	0xe5800000 - 0xe581ffff (0x20000) MX[B]
	[7] -1	0	0xe6000000 - 0xe60000ff (0x100) MX[B]
	[8] -1	0	0xe6800000 - 0xe6800fff (0x1000) MX[B]
	[9] -1	0	0xe7000000 - 0xe7000fff (0x1000) MX[B]
	[10] -1	0	0xe0000000 - 0xe3ffffff (0x4000000) MX[B](B)
	[11] 0	0	0x000a0000 - 0x000affff (0x10000) MS[B](OprD)
	[12] 0	0	0x000b0000 - 0x000b7fff (0x8000) MS[B](OprD)
	[13] 0	0	0x000b8000 - 0x000bffff (0x8000) MS[B](OprD)
	[14] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[15] -1	0	0x00000000 - 0x000000ff (0x100) IX[B]
	[16] -1	0	0x0000d000 - 0x0000d007 (0x8) IX[B]
	[17] -1	0	0x0000d400 - 0x0000d407 (0x8) IX[B]
	[18] -1	0	0x0000d800 - 0x0000d81f (0x20) IX[B]
	[19] -1	0	0x0000e000 - 0x0000e00f (0x10) IX[B]
	[20] 0	0	0x100003b0 - 0x100003bb (0xc) IS[B]
	[21] 0	0	0x100003c0 - 0x100003df (0x20) IS[B]
(==) s3(0): Backing store disabled

=== END ===
Comment 1 Federico Tello Gentile 2006-06-08 16:58:35 UTC
I experience the same issue. The S3 driver hangs the machine. It freezes, only a
hard reset is possible after it tries to load the X server. I can use the VESA
driver (with poor resolution). I have a Diamond Steath 64DRAM with 2MB of RAM.
It is a PCI card. I'm using the official xorg packages from the latest Ubuntu
(6.06). Ubuntu 5.10 works fine. 
I ran dpkg-reconfigure xserver-xorg and the card was detected as S3 86c764/765
[Trio32/64/64V+].

The monitor does not blank or lose signal, it just displays a foggy cursor at
the center of the screen forever (since the machine is freezed).
Comment 2 Luc Verhaegen 2006-06-08 18:25:08 UTC
Tempting to throw in a V2/DX and test and fix this... Must resist for at least
several more days.
Comment 3 Anton Marčukov 2006-07-25 00:12:53 UTC
I also have the same issue after upgrading to Xorg 7.0, please, see bug #377386
in the Debian BTS:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=377386
Comment 4 Evgeny Zubok 2006-10-03 16:55:46 UTC
(In reply to comment #2)
> Tempting to throw in a V2/DX and test and fix this... Must resist for at least
> several more days.

Temporary workaround is to disable 2D acceleration in xorg.conf

Section "Device"
    Identifier  "s3_trio64v2"
    Driver      "s3" 
    Option     "noaccel"
    ^^^^^^     ^^^^^^^^^
    Option     "DPMS"
EndSection

I think it helps to locate the bug.
Comment 5 Anton Marčukov 2006-10-04 08:29:04 UTC
(In reply to comment #4)
> (In reply to comment #2)
> Temporary workaround is to disable 2D acceleration in xorg.conf
>     Option     "noaccel"
>     ^^^^^^     ^^^^^^^^^

I can confirm that s3 driver works with this "noaccel" option for xorg 7.0.22, 
but it seems to be even slower that with a vesa driver.

Comment 6 Evgeny Zubok 2006-10-06 12:13:40 UTC
I downloaded xserver-xorg-video-s3 sources of Xorg 7.0.22 and discovered that
the S3_NEWMMIO doesn't defined. I don't know exactly where it need to be
defined, so I added #define S3_NEWMMIO into s3.h and recompiled the driver. Now
it works perfectly with acceleration! 

I don't supply a patch because don't know yet when and where the S3_NEMMIO
should be defined. It used for conditional compilation of s3_accel.c and s3_reg.h
Comment 7 Evgeny Zubok 2006-10-07 17:09:06 UTC
This is a patch that solves the problem. A C preprocessor macro 
#define S3_NEWMMIO was lost while transition from Xorg 6.9 to Xorg 7.0/7.1. This
patch should be applied against configure.ac. After that it need to reconfigure
a package: autoreconf -v --install to generate new scripts and headers. Now the
S3 driver works as before.

--- orig/configure.ac	2006-02-13 03:48:46.000000000 +0000
+++ new/configure.ac	2006-10-08 02:31:54.000000000 +0000
@@ -62,6 +62,8 @@
 # Checks for header files.
 AC_HEADER_STDC
 
+AC_DEFINE(S3_NEWMMIO, 1, [Enable support for the new MMIO])
+
 AC_SUBST([XORG_CFLAGS])
 AC_SUBST([moduledir])
 
Comment 8 Alex Deucher 2006-11-23 10:37:21 UTC
Fix committed.  I suppose I should do a new release?
Comment 9 Evgeny Zubok 2006-11-24 01:50:23 UTC
I'm reopening this bug. I've got a feedback after the patch was published in the
Debian BTS. My patch solves the problem only for those S3 cards which are
support S3 New MMIO. But more ancient cards still don't work.

The problem is in the compilation of s3_accel.c. While moving from xorg 6.9 to
7.0/7.1 the rules for compilation this source were lost. Following these 'Imake'
rules, s3_accel.c should be compliled twice: with S3_NEWMMIO=1 and without it.
I'll publish new patch soon here.
Comment 10 Evgeny Zubok 2006-11-24 12:03:43 UTC
A new patch. As we can see, s3_accel is compiled twice: with and without
S3_NEWMMIO and then linked together with other objects files. This patch has to
be applied against /xorg/driver/xf86-video-s3/src/Makefile.am . My previous
patch above for configure.ac must be removed!!! Version number can be increased,
I think.


--- xf86-video-s3.orig/src/Makefile.am 2006-11-24 22:49:28.000000000 +0000
+++ xf86-video-s3/src/Makefile.am 2006-11-24 22:51:19.000000000 +0000
@@ -30,7 +30,6 @@

 s3_drv_la_SOURCES = \
          newmmio.h \
-         s3_accel.c \
          s3_bios.c \
          s3_cursor.c \
          s3_dga.c \
@@ -41,3 +40,12 @@
          s3_Ti.c \
          s3_Trio64DAC.c \
          s3_video.c
+
+noinst_LTLIBRARIES = libs3_accel_newmmio.la libs3_accel_pio.la
+s3_drv_la_LIBADD = libs3_accel_newmmio.la libs3_accel_pio.la
+
+libs3_accel_newmmio_la_SOURCES = s3_accel.c
+libs3_accel_newmmio_la_CFLAGS = $(AM_CFLAGS) -DS3_NEWMMIO=1
+
+libs3_accel_pio_la_SOURCES = s3_accel.c
+libs3_accel_pio_la_CFLAGS = $(AM_CFLAGS)
Comment 11 Alex Deucher 2006-11-25 20:37:51 UTC
(In reply to comment #10)
> A new patch. As we can see, s3_accel is compiled twice: with and without
> S3_NEWMMIO and then linked together with other objects files. This patch has to
> be applied against /xorg/driver/xf86-video-s3/src/Makefile.am . My previous
> patch above for configure.ac must be removed!!! Version number can be increased,
> I think.
>

I've committed this.  let me know if all is well, I'll go ahead and make a
release.  Any interest in becoming the s3 maintainer?
Comment 12 Evgeny Zubok 2006-11-27 02:43:54 UTC
>I've committed this.  let me know if all is well, I'll go ahead and make a
release.

I looked at git tree. All seems fine.

>Any interest in becoming the s3 maintainer?

I'll think about it. I need to learn more about working with git tree. I started
to port the s3 driver to EXA. Some work is done: Solid/Copy fuctionality and EXA
driver intialization was written. But I got some artefacts. The main problem is
the absence of any documentation for s3 chips. There is only source code
(XFree86-S3 3.3.6 and present driver) without any helpful comments. When I'll
get the results then I decide to maintain s3. But not today. I'm not ready yet :)
Comment 13 Alex Deucher 2006-11-27 15:27:48 UTC
xf86-video-s3 0.5.0 released.
Comment 14 Adam Jackson 2007-03-11 18:53:12 UTC
*** Bug 8901 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.