[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Xorg + Matrox mga on PPC64 : is it possible ?



Hi there,
I'm trying to get X-window working on a IBM pSeries 650 POWER4+ (powerpc64).

I installed Debian Etch without problems but without the graphical installer (still in development, with many problems).
Problems came out when tried to install xorg & co. Unfortunately, Xfree86 doesn't work on ppc architecture within Etch, afaik.

My graphics adapter is a GXT135P (i.e. Matrox G450), with a mga g400 chipset.
Bugs between Xorg and MGA are well known, and I got them all  :S

As a matter of facts, I always get "(EE) No devices detected" when starting X

I even tried getting original v4.4.0 drivers from ftp.matrox.com, or v4.4.2 unofficial drivers from the net, but couldn't manage to compile in my ppc64 architecture...
Any help on this particular point ?

Btw, I both tried the Debian Etch shipped kernel 2.6.18-3 image, loading external fb/mga modules, and also customizing and compiling my own kernel 2.6.18-7 from patched sources. If needed, I could post the required .config statements... Let me know about.

Here we go with the Xorg configuration and output:

---------------------------------------------------------------
lspci
---------------------------------------------------------------
0000:00:01.0 Co-processor: IBM Unknown device 00e0 (rev 01)
0000:00:03.0 ISA bridge: Symphony Labs W83C553 (rev 10)
0001:00:02.0 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0001:00:02.2 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0001:00:02.3 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0001:00:02.4 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0001:00:02.6 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0001:01:01.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1010 66MHz  Ultra3 SCSI Adapter (rev 01)
0001:01:01.1 SCSI storage controller: LSI Logic / Symbios Logic 53c1010 66MHz  Ultra3 SCSI Adapter (rev 01)
0001:21:01.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 0d)
0001:41:01.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100] (rev 0d)
0001:61:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
0002:00:02.0 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0002:00:02.2 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0002:00:02.4 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0002:00:02.6 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0002:21:01.0 SCSI storage controller: Mylex Corporation AcceleRAID 600/500/400/Sapphire support Device (rev 04)
0002:41:01.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) (rev 13)
0002:42:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400/G450 (rev 85)
0003:00:02.0 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0003:00:02.2 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0003:00:02.4 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0003:00:02.6 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0004:00:02.0 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0004:00:02.2 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0004:00:02.6 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0004:61:01.0 RAID bus controller: Mylex Corporation AcceleRAID 600/500/400/Sapphire support Device (rev 04)
0005:00:02.0 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0005:00:02.2 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0005:00:02.4 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0005:00:02.6 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0005:61:01.0 RAID bus controller: Mylex Corporation AcceleRAID 600/500/400/Sapphire support Device (rev 04)
0006:00:02.0 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0006:00:02.2 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0006:00:02.6 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0006:61:01.0 RAID bus controller: Mylex Corporation AcceleRAID 600/500/400/Sapphire support Device (rev 04)
0007:00:02.0 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0007:00:02.2 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0007:00:02.4 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0007:00:02.6 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0007:61:01.0 RAID bus controller: Mylex Corporation AcceleRAID 600/500/400/Sapphire support Device (rev 04)
0008:00:02.0 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0008:00:02.2 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0008:00:02.6 PCI bridge: IBM EADS-X PCI-X to PCI-X Bridge (rev 02)
0008:61:01.0 RAID bus controller: Mylex Corporation AcceleRAID 600/500/400/Sapphire support Device (rev 04)
---------------------------------------------------------------


As you can see, my matrox g400/g450 PCI is located at the address 0002:42:00.0; when converted from hex to dec, I get that PCI:66:0:0 address automatically detected by
# dpkg-reconfigure xserver-xorg

Actually I haven't fully understood wether I'd translated the 0002 bus channel prefix.
Sould I put PCI:2:66:0 instead ???
Hwr, Xorg isn't able to find my graphical adapter ...


---------------------------------------------------------------
xorg.conf
---------------------------------------------------------------
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
 FontPath "/usr/share/fonts/X11/misc"
 FontPath "/usr/X11R6/lib/X11/fonts/misc"
 FontPath "/usr/share/fonts/X11/cyrillic"
 FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
 FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
 FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
 FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
 FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
 FontPath "/usr/share/fonts/X11/Type1"
 FontPath "/usr/X11R6/lib/X11/fonts/Type1"
 FontPath "/usr/share/fonts/X11/100dpi"
 FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
 FontPath "/usr/share/fonts/X11/75dpi"
 FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
 # path to defoma fonts
 FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
 Load "bitmap"
 Load "ddc"
 Load "dri"
 Load "extmod"
 Load "freetype"
 Load "glx"
 Load "vbe"
EndSection

Section "InputDevice"
 Identifier "Generic Keyboard"
 Driver  "kbd"
 Option  "CoreKeyboard"
 Option  "XkbRules" "xorg"
 Option  "XkbModel" "pc105"
 Option  "XkbLayout" "it"
 Option  "XkbOptions" "lv3:lwin_switch"
EndSection

Section "InputDevice"
 Identifier "Configured Mouse"
 Driver  "mouse"
 Option  "CorePointer"
 Option  "Device"  "/dev/psaux"
 Option  "Protocol"  "ImPS/2"
 Option  "Emulate3Buttons" "true"
EndSection

Section "Device"
 Identifier "Matrox Graphics, Inc. MGA G400/G450"
 Driver  "mga"
 BusID    "PCI:66:0:0"
  VideoRam 32768
  Option  "UseFBDev" "true"
EndSection

Section "Monitor"
 Identifier "Generic Monitor"
 Option  "DPMS"
 HorizSync 28-50
 VertRefresh 43-75
EndSection

Section "Screen"
 Identifier "Default Screen"
 Device  "Matrox Graphics, Inc. MGA G400/G450"
 Monitor  "Generic Monitor"
 DefaultDepth 15
 SubSection "Display"
  Depth  1
  Modes  "1024x768" "800x600" "640x480"
 EndSubSection
 SubSection "Display"
  Depth  4
  Modes  "1024x768" "800x600" "640x480"
 EndSubSection
 SubSection "Display"
  Depth  8
  Modes  "1024x768" "800x600" "640x480"
 EndSubSection
 SubSection "Display"
  Depth  15
  Modes  "1024x768" "800x600" "640x480"
 EndSubSection
 SubSection "Display"
  Depth  16
  Modes  "1024x768" "800x600" "640x480"
 EndSubSection
 SubSection "Display"
  Depth  24
  Modes  "1024x768" "800x600" "640x480"
 EndSubSection
EndSection

Section "ServerLayout"
 Identifier "Default Layout"
 Screen  "Default Screen"
 InputDevice "Generic Keyboard"
 InputDevice "Configured Mouse"
EndSection

Section "DRI"
 Mode 0666
EndSection
---------------------------------------------------------------

When I startx, I get the "(EE) No devices detected." message, at a strange PCI address.


---------------------------------------------------------------
xorg.0.log
---------------------------------------------------------------
X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: UNKNOWN
Current Operating System: Linux aristotele 2.6.18-7-Aristos #3 SMP Tue Feb 6 16:48:59 CET 2007 ppc64
Build Date: 07 February 2007
 Before reporting problems, check http://wiki.x.org <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: Sat Feb 10 19:30:51 2007
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Default Screen" (0)
(**) |   |-->Monitor "Generic Monitor"
(**) |   |-->Device "Matrox Graphics, Inc. MGA G400/G450"
(**) |-->Input Device "Generic Keyboard"
(**) |-->Input Device "Configured Mouse"
(WW) The directory "/usr/X11R6/lib/X11/fonts/cyrillic" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/100dpi/" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/75dpi/" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/Type1" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/100dpi" does not exist.
 Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/75dpi" does not exist.
 Entry deleted from font path.
(WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
 Entry deleted from font path.
(**) FontPath set to:
 /usr/share/fonts/X11/misc,
 /usr/X11R6/lib/X11/fonts/misc,
 /usr/share/fonts/X11/cyrillic,
 /usr/share/fonts/X11/100dpi/:unscaled,
 /usr/share/fonts/X11/75dpi/:unscaled,
 /usr/share/fonts/X11/100dpi,
 /usr/share/fonts/X11/75dpi
(==) RgbPath set to "/etc/X11/rgb"
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) No APM support in BIOS or kernel
(II) Module ABI versions:
 X.Org ANSI C Emulation: 0.3
 X.Org Video Driver: 1.0
 X.Org XInput driver : 0.6
 X.Org Server Extension : 0.3
 X.Org Font Renderer : 0.5
(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.1.1, module version = 1.0.0
 Module class: X.Org Font Renderer
 ABI class: X.Org Font Renderer, version 0.5
(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.1.1, module version = 1.0.0
 ABI class: X.Org Video Driver, version 1.0
(--) using VT number 7

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:01:0: chip 1014,00e0 card 1014,00e1 rev 01 class 0b,40,ff hdr 80
(II) PCI: 00:03:0: chip 10ad,0565 card 0000,0000 rev 10 class 06,01,00 hdr 80
(II) PCI: End of PCI scan
(II) PCI-to-ISA bridge:
(II) Bus -1: bridge is at (0:3:0), (0,-1,-1), BCTRL: 0x0008 (VGA_EN is set)
(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) 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 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B«»)
 [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
 [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
 [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
 [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [5] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
(II) Active PCI resource ranges:
 [0] -1 0 0xd8000000 - 0xdbffffff (0x4000000) MX[B]
 [1] -1 0 0xd4000000 - 0xd7ffffff (0x4000000) MX[B]
 [2] -1 0 0xdd800000 - 0xdd87ffff (0x80000) MX[B]
 [3] -1 0 0xdd700000 - 0xdd700fff (0x1000) MX[B]
(II) Active PCI resource ranges after removing overlaps:
 [0] -1 0 0xd8000000 - 0xdbffffff (0x4000000) MX[B]
 [1] -1 0 0xd4000000 - 0xd7ffffff (0x4000000) MX[B]
 [2] -1 0 0xdd800000 - 0xdd87ffff (0x80000) MX[B]
 [3] -1 0 0xdd700000 - 0xdd700fff (0x1000) MX[B]
(II) OS-reported resource ranges after removing overlaps with PCI:
 [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B«»)
 [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
 [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
 [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
 [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [5] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
(II) All system resource ranges:
 [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B«»)
 [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
 [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
 [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
 [4] -1 0 0xd8000000 - 0xdbffffff (0x4000000) MX[B]
 [5] -1 0 0xd4000000 - 0xd7ffffff (0x4000000) MX[B]
 [6] -1 0 0xdd800000 - 0xdd87ffff (0x80000) MX[B]
 [7] -1 0 0xdd700000 - 0xdd700fff (0x1000) MX[B]
 [8] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
 [9] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
(II) LoadModule: "bitmap"
(II) Reloading /usr/lib/xorg/modules/fonts/libbitmap.so
(II) Loading font Bitmap
(II) LoadModule: "ddc"
(II) Loading /usr/lib/xorg/modules/libddc.so
(II) Module ddc: vendor="X.Org Foundation"
 compiled for 7.1.1, module version = 1.0.0
 ABI class: X.Org Video Driver, version 1.0
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
 compiled for 7.1.1, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.3
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/lib/xorg/modules/linux/libdrm.so
(II) Module drm: vendor="X.Org Foundation"
 compiled for 7.1.1, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.3
(II) Loading extension XFree86-DRI
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
 compiled for 7.1.1, module version = 1.0.0
 Module class: X.Org Server Extension
 ABI class: X.Org Server Extension, version 0.3
(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: "freetype"
(II) Loading /usr/lib/xorg/modules/fonts/libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
 compiled for 7.1.1, module version = 2.1.0
 Module class: X.Org Font Renderer
 ABI class: X.Org Font Renderer, version 0.5
(II) Loading font FreeType
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
 compiled for 7.1.1, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.3
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "vbe"
(II) Loading /usr/lib/xorg/modules/libvbe.so
(II) Module vbe: vendor="X.Org Foundation"
 compiled for 7.1.1, module version = 1.1.0
 ABI class: X.Org Video Driver, version 1.0
(II) LoadModule: "mga"
(II) Loading /usr/lib/xorg/modules/drivers/mga_drv.so
(II) Module mga: vendor="X.Org Foundation"
 compiled for 7.1.1, module version = 1.4.4
 Module class: X.Org Video Driver
 ABI class: X.Org Video Driver, version 1.0
(II) LoadModule: "kbd"
(II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
 compiled for 7.1.1, module version = 1.1.0
 Module class: X.Org XInput Driver
 ABI class: X.Org XInput driver, version 0.6
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
 compiled for 7.1.1, module version = 1.1.1
 Module class: X.Org XInput Driver
 ABI class: X.Org XInput driver, version 0.6
(II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w,
 mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI,
 mgag200 SE A PCI, mgag200 SE B PCI, mgag400, mgag550
(II) Primary Device is: PCI 00:01:0
(EE) No devices detected.

Fatal server error:
no screens found
---------------------------------------------------------------

Some warnings about fonts, but don't think they affect the main problem.
It seems there's a wrong pci address, but I'm not able to correct it.

After two-weeks googling, I only found some bug-reports about "Xorg vs. mga", but no effective workarounds for powerpc64 architecture. Even it's a 2005's issue... :(

Any idea how to solve that ?

Thank you very very much.


Valerio




Reply to: