Bug 133936 - Can not get Rage 128 "r128" driver to work
Summary: Can not get Rage 128 "r128" driver to work
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Alpha 2plus
Hardware: Macintosh Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-15 23:48 UTC by arsavir bayraktar
Modified: 2005-11-16 21:02 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Sax Log with sax2 -r (20.21 KB, text/plain)
2005-11-16 08:33 UTC, arsavir bayraktar
Details
Xorg Log wth sax2 -r -a and driver changed to ati (36.29 KB, text/x-log)
2005-11-16 12:08 UTC, arsavir bayraktar
Details
xorg.conf generated by sax2 -r -a (4.81 KB, text/plain)
2005-11-16 12:12 UTC, arsavir bayraktar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arsavir bayraktar 2005-11-15 23:48:40 UTC
I am runing in particular the following versions of Xorg.
xorg-x11 6.8.2-119 			build 2005.11.08 01:02:18 
xorg-x11-libs 6.8.2-119			build 2005.11.08 01:02:18
xorg-x11-server 6.8.2-119 		build 2005.11.08 01:02:18

Basicall it fails due to following reason (extract from Xorg.log):
(II) LoadModule: "r128"
(II) Loading /usr/X11R6/lib/modules/drivers/r128_drv.so
dlopen: /usr/X11R6/lib/modules/drivers/r128_drv.so: undefined symbol: gR128EntityIndex
(EE) Failed to load /usr/X11R6/lib/modules/drivers/r128_drv.so
(II) UnloadModule: "r128"
(EE) Failed to load module "r128" (loader failed, 7)

Found the following input from the net (highlighting compile options?):
http://qa.mandriva.com/show_bug.cgi?id=18086


See below full configuration and log files: 
Note: fbdev option is working and is obviously slow

===========================

# generic XFree86 4.x configuration file

Section "Files"
  FontPath		"/usr/X11R6/lib/X11/fonts/uni/"
  FontPath		"/usr/X11R6/lib/X11/fonts/misc/"
  FontPath 		"/usr/local/share/fonts"
  ModulePath		"/usr/X11R6/lib/modules"
  RgbPath		"/usr/X11R6/lib/X11/rgb"
  InputDevices	"/dev/ttyS0"
  InputDevices	"/dev/ttyS1"
  InputDevices	"/dev/ttyS2"
  InputDevices	"/dev/ttyS3"
  InputDevices	"/dev/ttyS4"
  InputDevices	"/dev/ttyS5"
  InputDevices	"/dev/ttyS6"
  InputDevices	"/dev/ttyS7"
  InputDevices	"/dev/ttyS8"
  InputDevices	"/dev/psaux"
  InputDevices	"/dev/logibm"
  InputDevices	"/dev/atibm"
  InputDevices	"/dev/inportbm"
  InputDevices	"/dev/gpmdata"
  InputDevices	"/dev/input/mice"
  InputDevices	"/dev/input/event0"
EndSection

Section "ServerFlags"
  Option	"AllowMouseOpenFail"
  Option	"BlankTime"	"0"
EndSection

Section "Module"
  Load	"dbe"
  Load	"extmod"
  Load  "fbdevhw"
  Load	"glx"
  Load  "freetype"
  Load  "type1"
  Load  "record"
  Load  "dri"
EndSection

Section "InputDevice"
  Driver		"kbd"
  Identifier		"Keyboard[0]"
  Option		"Protocol"		"Standard"
  Option		"XkbRules"		"xfree86"
  Option		"XkbKeycodes"		"xfree86"
  Option		"XkbModel"		"pc105"
  Option		"XkbLayout"		"fr"
EndSection

Section "InputDevice"
  Driver     "mouse"
  Identifier "Mouse[1]"
  Option     "Protocol" "explorerps/2"
  Option     "Device"   "/dev/input/mice"
EndSection


Section "Monitor"
  Identifier	"Monitor[0]"
  DisplaySize  270 200
  ModelName	"iMac"
  VendorName	"Initial"
  HorizSync	60.0 - 60.0	
  VertRefresh	75.0 - 117.0
EndSection



# Screen Section for module X support
# -------------------------------------
Section "Screen"
  SubSection "Display"
    Depth		16
    Modes		"1024x768" "800x600" "640x480" 
  EndSubSection
  SubSection "Display"
    Depth		24
    Modes		"1024x768" "800x600" "640x480" 
  EndSubSection
  SubSection "Display"
    Depth		8
    Modes		"1024x768" "800x600" "640x480" 
  EndSubSection
  Device		"Device[0]"
  	Identifier	"Screen[0]"
  	Monitor		"Monitor[0]"
  	DefaultDepth     16
EndSection

# Screen Section for fbdev support
# ----------------------------------
Section "Screen"
  SubSection "Display"
    Depth		16
    Modes		"1024x768" "800x600" "640x480"
  EndSubSection
  SubSection "Display"
    Depth		24
    Modes		"1024x768" "800x600" "640x480"
  EndSubSection
  SubSection "Display"
    Depth		8
    Modes		"1024x768" "800x600" "640x480" 
  EndSubSection
  Device		"Device[fbdev]"
  	Identifier	"Screen[fbdev]"
  	Monitor		"Monitor[0]"
  	DefaultDepth     16
EndSection



# Device Sections...
# -------------------
Section "Device"
	Identifier	"Device[0]"
	Driver      	"r128"
	Option	    	"AGPMode" "2"
	VendorName  	"Videocard vendor"
	BoardName   	"ATI Rage 128 Pro Ultra"
	Option	    	"UseFBDev" "true"
EndSection

Section "Device"
  Driver		"fbdev"
  Identifier		"Device[fbdev]"
  # fbdev_options
  Option		"ShadowFB"	"off"
EndSection

Section "DRI"
	Group        0
	Mode         0666
EndSection


Section "ServerLayout"
  Identifier	"Layout[all]"
  InputDevice	"Keyboard[0]"	"CoreKeyboard"
  InputDevice  	"Mouse[1]" 	"CorePointer"
  Option	"Xinerama"		"off"
  Screen   	"Screen[0]"
EndSection

===============================

This is a pre-release version of the The X.Org Foundation X11.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the The X.Org Foundation "monolithic tree" CVS
repository hosted at http://www.freedesktop.org/Software/xorg/
X Window System Version 6.8.99.901 (6.9.0 RC 1)
Release Date: 18 October 2005 + cvs
X Protocol Version 11, Revision 0, Release 6.8.99.901
Build Operating System: SuSE Linux [ELF] SuSE
Current Operating System: Linux linux 2.6.14-3-default #1 Wed Nov 2 14:48:57 UTC 2005 ppc
Build Date: 09 November 2005
	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 Nov 13 13:23:01 2005
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Layout[all]"
(**) |-->Screen "Screen[0]" (0)
(**) |   |-->Monitor "Monitor[0]"
(**) |   |-->Device "Device[0]"
(**) |-->Input Device "Keyboard[0]"
(**) |-->Input Device "Mouse[1]"
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/uni/,/usr/X11R6/lib/X11/fonts/misc/,/usr/local/share/fonts"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(**) Input device list set to "/dev/ttyS0,/dev/ttyS1,/dev/ttyS2,/dev/ttyS3,/dev/ttyS4,/dev/ttyS5,/dev/ttyS6,/dev/ttyS7,/dev/ttyS8,/dev/psaux,/dev/logibm,/dev/atibm,/dev/inportbm,/dev/gpmdata,/dev/input/mice,/dev/input/event0"
(**) ModulePath set to "/usr/X11R6/lib/modules"
(**) Option "AllowMouseOpenFail"
(**) Option "BlankTime" "0"
(**) Option "Xinerama" "off"
(WW) Open ACPI failed (/proc/acpi/event) (No such file or directory)
(II) Open APM successful
(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/X11R6/lib/modules/fonts/libbitmap.so
(II) Module bitmap: vendor="X.Org Foundation"
	compiled for 6.8.99.901, 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/X11R6/lib/modules/libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
	compiled for 6.8.99.901, module version = 1.0.0
	ABI class: X.Org Video Driver, version 0.8
(--) using VT number 7

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:0b:0: chip 106b,0027 card 0000,0000 rev 00 class 06,00,00 hdr 00
(II) PCI: 00:10:0: chip 1002,5452 card 1002,5452 rev 00 class 03,80,00 hdr 00
(II) PCI: 10:0b:0: chip 106b,0028 card 0000,0000 rev 00 class 06,00,00 hdr 00
(II) PCI: 10:17:0: chip 106b,0025 card 0000,0000 rev 00 class ff,00,00 hdr 00
(II) PCI: 10:18:0: chip 106b,0026 card 0000,0000 rev 00 class 0c,03,10 hdr 00
(II) PCI: 10:19:0: chip 106b,0026 card 0000,0000 rev 00 class 0c,03,10 hdr 00
(II) PCI: 20:0b:0: chip 106b,0029 card 0000,0000 rev 00 class 06,00,00 hdr 00
(II) PCI: 20:0e:0: chip 106b,0030 card 106b,0030 rev 00 class 0c,00,10 hdr 00
(II) PCI: 20:0f:0: chip 106b,0024 card 0000,0000 rev 00 class 02,00,00 hdr 00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:11:0), (0,0,32), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
	[0] -1	0	0x00000000 - 0x00ffffff (0x1000000) 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) Host-to-PCI bridge:
(II) Bus 16: bridge is at (16:11:0), (16,16,32), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 16 I/O range:
	[0] -1	0	0x00000000 - 0x00ffffff (0x1000000) IX[B]
(II) Bus 16 non-prefetchable memory range:
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 16 prefetchable memory range:
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[B]
(II) Host-to-PCI bridge:
(II) Bus 32: bridge is at (32:11:0), (32,32,32), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 32 I/O range:
	[0] -1	0	0x00000000 - 0x00ffffff (0x1000000) IX[B]
(II) Bus 32 non-prefetchable memory range:
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 32 prefetchable memory range:
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[B]
(--) PCI:*(0:16:0) ATI Technologies Inc Rage 128 Pro Ultra TR rev 0, Mem @ 0x94000000/26, 0x90000000/14, I/O @ 0x0400/8, BIOS @ 0xf1000000/17
(II) Addressable bus resource ranges are
	[0] -1	0	0x00000000 - 0xffffffff (0x0) MX[B]
	[1] -1	0	0x00000000 - 0x00ffffff (0x1000000) IX[B]
(II) OS-reported resource ranges:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0	0x00ffffff - 0x00ffffff (0x1) IX[B]
	[3] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
(II) Active PCI resource ranges:
	[0] -1	0	0xf5200000 - 0xf53fffff (0x200000) MX[B]
	[1] -1	0	0xf5000000 - 0xf5000fff (0x1000) MX[B]
	[2] -1	0	0x80080000 - 0x80080fff (0x1000) MX[B]
	[3] -1	0	0x80081000 - 0x80081fff (0x1000) MX[B]
	[4] -1	0	0x80000000 - 0x8007ffff (0x80000) MX[B]
	[5] -1	0	0xf1000000 - 0xf101ffff (0x20000) MX[B](B)
	[6] -1	0	0x90000000 - 0x90003fff (0x4000) MX[B](B)
	[7] -1	0	0x94000000 - 0x97ffffff (0x4000000) MX[B](B)
	[8] -1	0	0xf0000400 - 0xf00004ff (0x100) IX[B](B)
(II) Active PCI resource ranges after removing overlaps:
	[0] -1	0	0xf5200000 - 0xf53fffff (0x200000) MX[B]
	[1] -1	0	0xf5000000 - 0xf5000fff (0x1000) MX[B]
	[2] -1	0	0x80080000 - 0x80080fff (0x1000) MX[B]
	[3] -1	0	0x80081000 - 0x80081fff (0x1000) MX[B]
	[4] -1	0	0x80000000 - 0x8007ffff (0x80000) MX[B]
	[5] -1	0	0xf1000000 - 0xf101ffff (0x20000) MX[B](B)
	[6] -1	0	0x90000000 - 0x90003fff (0x4000) MX[B](B)
	[7] -1	0	0x94000000 - 0x97ffffff (0x4000000) MX[B](B)
	[8] -1	0	0xf0000400 - 0xf00004ff (0x100) IX[B](B)
(II) OS-reported resource ranges after removing overlaps with PCI:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0	0x00ffffff - 0x00ffffff (0x1) IX[B]
	[3] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
(II) All system resource ranges:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0	0xf5200000 - 0xf53fffff (0x200000) MX[B]
	[3] -1	0	0xf5000000 - 0xf5000fff (0x1000) MX[B]
	[4] -1	0	0x80080000 - 0x80080fff (0x1000) MX[B]
	[5] -1	0	0x80081000 - 0x80081fff (0x1000) MX[B]
	[6] -1	0	0x80000000 - 0x8007ffff (0x80000) MX[B]
	[7] -1	0	0xf1000000 - 0xf101ffff (0x20000) MX[B](B)
	[8] -1	0	0x90000000 - 0x90003fff (0x4000) MX[B](B)
	[9] -1	0	0x94000000 - 0x97ffffff (0x4000000) MX[B](B)
	[10] -1	0	0x00ffffff - 0x00ffffff (0x1) IX[B]
	[11] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
	[12] -1	0	0xf0000400 - 0xf00004ff (0x100) IX[B](B)
(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 6.8.99.901, 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/X11R6/lib/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 6.8.99.901, 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 XFree86-DGA
(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: "fbdevhw"
(II) Loading /usr/X11R6/lib/modules/linux/libfbdevhw.so
(II) Module fbdevhw: vendor="X.Org Foundation"
	compiled for 6.8.99.901, module version = 0.0.2
	ABI class: X.Org Video Driver, version 0.8
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
	compiled for 6.8.99.901, 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/X11R6/lib/modules/extensions/libGLcore.so
(II) Module GLcore: vendor="X.Org Foundation"
	compiled for 6.8.99.901, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading extension GLX
(II) LoadModule: "freetype"
(II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
	compiled for 6.8.99.901, module version = 2.1.0
	Module class: X.Org Font Renderer
	ABI class: X.Org Font Renderer, version 0.4
(II) Loading font FreeType
(II) LoadModule: "type1"
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.so
(II) Module type1: vendor="X.Org Foundation"
	compiled for 6.8.99.901, module version = 1.0.2
	Module class: X.Org Font Renderer
	ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Type1
(II) Loading font CID
(II) LoadModule: "record"
(II) Loading /usr/X11R6/lib/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
	compiled for 6.8.99.901, module version = 1.13.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 0.2
(II) Loading extension RECORD
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
	compiled for 6.8.99.901, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.so
(II) Module drm: vendor="X.Org Foundation"
	compiled for 6.8.99.901, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading extension XFree86-DRI
(II) LoadModule: "r128"
(II) Loading /usr/X11R6/lib/modules/drivers/r128_drv.so
dlopen: /usr/X11R6/lib/modules/drivers/r128_drv.so: undefined symbol: gR128EntityIndex
(EE) Failed to load /usr/X11R6/lib/modules/drivers/r128_drv.so
(II) UnloadModule: "r128"
(EE) Failed to load module "r128" (loader failed, 7)
(II) LoadModule: "kbd"
(II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 6.8.99.901, module version = 1.0.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 0.5
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 6.8.99.901, module version = 1.0.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 0.5
(EE) No drivers available.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support 
	 at http://wiki.X.Org
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Comment 1 Stefan Dirsch 2005-11-16 07:10:53 UTC
Could you please reconfigure X11 with "sax2 -r" and attach /etc/X11/xorg.conf and /var/log/Xorg.0.log? Thanks.
Comment 2 arsavir bayraktar 2005-11-16 08:33:58 UTC
Created attachment 57447 [details]
Sax Log with sax2 -r
Comment 3 arsavir bayraktar 2005-11-16 08:38:51 UTC
See sax log attached, it looks to identify the hw fine but X11 does not start, therefore xorg.conf and Xorg.0.log are actually part of sax log.
  Thanks, Arsa
Comment 4 Stefan Dirsch 2005-11-16 08:45:09 UTC
Ok. This time use "sax2 -r -a" and replace "r128" with "ati" in 

  Section "Device"

of /etc/X11/xorg.conf afterwards.
	
	
Comment 5 arsavir bayraktar 2005-11-16 12:08:47 UTC
Created attachment 57487 [details]
Xorg Log wth sax2 -r -a  and driver changed to ati
Comment 6 arsavir bayraktar 2005-11-16 12:10:05 UTC
Progressing....
X11 is now up and running but the display shifted by 15% to left:
(K menu in bottom left is not visible any more)
See attached Conf and log files.
Comment 7 arsavir bayraktar 2005-11-16 12:12:23 UTC
Created attachment 57488 [details]
xorg.conf generated by sax2 -r -a
Comment 8 Stefan Dirsch 2005-11-16 13:03:23 UTC
Adjust your monitor to fix the shifted display issue. I'll change the x11 database entry to "ati" for Alpha4.
Comment 9 arsavir bayraktar 2005-11-16 21:02:54 UTC
Thanks,
Basically I could not find any way to shift the display:
   - Sax2 does not do it on my iMac with ATY Rage128 TR Ultra AGP?
Actually I realised the Sax2 sync detection created the display shift problem:
Sax2 configured: Modeline "1024x768" 79.52 1024 1080 1192 1360 768 769 772 801
In my case it should be: "1024x768"  78.80 1024 1040 1136 1312  768 769 772 800 
Finally commenting out Modes configuration solved the final problem.

Summary: Remaining problems on iMaC not impacting myself on short term:
 Modeline parameters.
 Display movements not possible by by Sax2 

Thanks again for your help.
Cheers,
  Arsa