Subject: Trouble with ProSavageDDR K4M256
To: None <current-users@netbsd.org>
From: Nenad Crnko <nc@pcmagic.net>
List: current-users
Date: 05/07/2003 14:45:37
Savage driver does not apper to set up the video chip correctly.
Monitors either remain blank, flash messages such as "over range",
"over size", or make horrible sqeaking noise.

The foregoing happens either upon startup or after switching back
from wscons. In either case it is always possible to bring the
chip to behave after cycling through the four modes with
<Ctrl><Alt><+/->. Thereafter everything appears to work flawlessly
in *any* of the tested four modes (unless switched again to wscons).

With one of the monitors the system behaves as described, but starts
correctly if the first mode listed is "1152x864".

Tested extensively with three different monitors in default color depth
of 16. A few sanity checks with other depths resulted in the same
behavior.

I can not see anything suspicious in /var/log/XFree86.* files
whether the system starts correctly or not.

The identical setup works flawlessly with a Savage4 AGP card,
which uses the same driver.

Is there something that can be fixed in the setup file?


The tests were performed on NetBSD 1.6Q GENERIC from 2003-03-24
and XFree86 version 4.3.0 from same date -current sources compiled
with the following options:

#define BuildXinerama           YES
#define SharedLibXinerama       YES
#define BuildGLXLibrary         YES
in /usr/xsrc/xfree/xc/config/cf/host.def


scanpci reports:
pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x5333 device 0x8d04
 S3 Inc. [ProSavageDDR K4M266]


Content of /etc/X11/XF86Config is as follows:
Section "ServerLayout"
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
	Load  "extmod"
	Load  "glx"
	Load  "dbe"
	Load  "record"
	Load  "xtrap"
	Load  "speedo"
	Load  "type1"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "wsmouse"
	Option	    "Device" "/dev/wsmouse"
	Option      "ZAxisMapping"   "4 5"
EndSection

Section "Monitor"
        #DisplaySize      290   210     # mm
        Identifier   "Monitor0"
        VendorName   "GVT"
        ModelName    " L4BX"         # Kogi 14" flat panel
        Option      "DPMS"
	HorizSync   31.5-68.7
	VertRefresh 56-85
EndSection

Section "Monitor"
        #DisplaySize      320   240     # mm
        Identifier   "Monitor1"
        VendorName   "SNY"
        ModelName    "570"              # Sony Multiscan200sx crt
        HorizSync    31.5 - 70.0
        VertRefresh  50.0 - 150.0
        Option      "DPMS"
EndSection

Section "Monitor"
        #DisplaySize     2550  2550     # mm
        Identifier   "Monitor2"
        VendorName   "SNY"
        ModelName    "450"              # Sony Multiscan100ES crt
#	HorizSync    31.5 - 64.3
#	VertRefresh  60.0 - 85.0
	HorizSync    30 - 70
	VertRefresh  50 - 120
        Option      "DPMS"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "HWCursor"           	# [<bool>]
        #Option     "SWCursor"           	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "Rotate"             	# [<str>]
        #Option     "UseBIOS"            	# [<bool>]
        #Option     "LCDClock"           	# <freq>
        #Option     "ShadowStatus"       	# [<bool>]
        #Option     "CrtOnly"            	# [<bool>]
        #Option     "TvOn"               	# [<bool>]
        #Option     "PAL"                	# [<bool>]
        #Option     "ForceInit"          	# [<bool>]
	Identifier  "Card0"
	Driver      "savage"
	VendorName  "S3 Inc."
	BoardName   "[ProSavageDDR K4M266]"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor2"
	DefaultDepth     16
	SubSection "Display"
		Depth     8
		Modes    "800x600" "1024x768" "1152x864" "1280x1024"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes    "800x600" "1024x768" "1152x864" "1280x1024"
	EndSubSection
	SubSection "Display"
		Depth     16
#		Modes    "800x600" "1024x768" "1152x864" "1280x1024"
#		Modes    "1280x1024" "1152x864" "1024x768" "800x600"
		Modes    "1152x864" "1280x1024" "800x600" "1024x768"
		Virtual  1280 1024
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "800x600" "1024x768" "1152x864" "1280x1024"
	EndSubSection
EndSection