Bug 6419 - dri does not work with xorg 7.0 and mga g550 on an amd64
Summary: dri does not work with xorg 7.0 and mga g550 on an amd64
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-29 01:55 UTC by markus gapp
Modified: 2006-04-15 02:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description markus gapp 2006-03-29 01:55:21 UTC
after upgrading to xorg version: X Window System Version 7.0.0 
 
under gentoo linux on an amd64 machine, dri does not work anymore:  
i tried this with and without kernel frambuffer and with and without fbdevhw. 
 
here is a sample session: 
 
markus@hope ~ $ X -ac :0& 
[1] 5603 
markus@hope ~ $ 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.16_hope2 x86_64 
Current Operating System: Linux hope 2.6.16_hope2 #5 SMP Sun Mar 26 18:49:24 
CEST 2006 x86_64 
Build Date: 25 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 Mar 26 18:53:31 2006 
(==) Using config file: "/etc/X11/xorg.conf" 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
No matching visual for __GLcontextMode with visual class = 1 (32774), nplanes = 
16 
 
markus@hope ~ $ The XKEYBOARD keymap compiler (xkbcomp) reports: 
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols 
>                   Ignoring extra symbols 
Errors from xkbcomp are not fatal to the X server 
 
markus@hope ~ $ Could not init font path element /usr/share/fonts/local/, 
removing from list! 
markus@hope ~ $ export DISPLAY=:0 
markus@hope ~ $ glxinfo 
name of display: :0.0 
libGL warning: 3D driver claims to not support visual 0x23 
libGL warning: 3D driver claims to not support visual 0x24 
libGL warning: 3D driver claims to not support visual 0x25 
libGL warning: 3D driver claims to not support visual 0x26 
libGL warning: 3D driver claims to not support visual 0x27 
libGL warning: 3D driver claims to not support visual 0x28 
libGL warning: 3D driver claims to not support visual 0x29 
libGL warning: 3D driver claims to not support visual 0x2a 
libGL warning: 3D driver claims to not support visual 0x2b 
libGL warning: 3D driver claims to not support visual 0x2c 
libGL warning: 3D driver claims to not support visual 0x2d 
libGL warning: 3D driver claims to not support visual 0x2e 
libGL warning: 3D driver claims to not support visual 0x2f 
libGL warning: 3D driver claims to not support visual 0x30 
libGL warning: 3D driver claims to not support visual 0x31 
libGL warning: 3D driver claims to not support visual 0x32 
Error: couldn't find RGB GLX visual 
 
   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav 
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat 
---------------------------------------------------------------------- 
0x23 16 tc  0 16  0 r  y  .  6  5  0  0  0 16  0  0  0  0  0  0 0 None 
0x24 16 tc  0 16  0 r  .  .  6  5  0  0  0 16  0  0  0  0  0  0 0 None 
0x25 16 tc  0 16  0 r  y  .  6  5  0  0  0 16  8  0  0  0  0  0 0 Slow 
0x26 16 tc  0 16  0 r  .  .  6  5  0  0  0 16  8  0  0  0  0  0 0 Slow 
0x27 16 tc  0 16  0 r  y  .  6  5  0  0  0 16  0 16 16 16  0  0 0 Slow 
0x28 16 tc  0 16  0 r  .  .  6  5  0  0  0 16  0 16 16 16  0  0 0 Slow 
0x29 16 tc  0 16  0 r  y  .  6  5  0  0  0 16  8 16 16 16  0  0 0 Slow 
0x2a 16 tc  0 16  0 r  .  .  6  5  0  0  0 16  8 16 16 16  0  0 0 Slow 
0x2b 16 dc  0 16  0 r  y  .  6  5  0  0  0 16  0  0  0  0  0  0 0 None 
0x2c 16 dc  0 16  0 r  .  .  6  5  0  0  0 16  0  0  0  0  0  0 0 None 
0x2d 16 dc  0 16  0 r  y  .  6  5  0  0  0 16  8  0  0  0  0  0 0 Slow 
0x2e 16 dc  0 16  0 r  .  .  6  5  0  0  0 16  8  0  0  0  0  0 0 Slow 
0x2f 16 dc  0 16  0 r  y  .  6  5  0  0  0 16  0 16 16 16  0  0 0 Slow 
0x30 16 dc  0 16  0 r  .  .  6  5  0  0  0 16  0 16 16 16  0  0 0 Slow 
0x31 16 dc  0 16  0 r  y  .  6  5  0  0  0 16  8 16 16 16  0  0 0 Slow 
0x32 16 dc  0 16  0 r  .  .  6  5  0  0  0 16  8 16 16 16  0  0 0 Slow 
0x4b 32 tc  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None 
markus@hope ~ $ FreeFontPath: FPE "/usr/share/fonts/misc/" refcount is 2, 
should be 1; fixing. 
 
   *** If unresolved symbols were reported above, they might not 
   *** be the reason for the server aborting. 
 
Backtrace: 
0: X(xf86SigHandler+0x94) [0x481094] 
1: /lib/libc.so.6 [0x2adfcaa158b0] 
2: /usr/lib64/xorg/modules/extensions/libdri.so(DRILock+0x20) [0x2adfcb2d7400] 
3: /usr/lib64/xorg/modules/drivers/mga_drv.so(MGAGetQuiescence+0x2f) 
[0x2adfcba3e4df] 
4: /usr/lib64/xorg/modules/drivers/mga_drv.so(MGAStormEngineInit+0x1ba) 
[0x2adfcba4227a] 
5: /usr/lib64/xorg/modules/drivers/mga_drv.so [0x2adfcba371c2] 
6: X(AddScreen+0x1fe) [0x432f8e] 
7: X(InitOutput+0x21f) [0x4662ef] 
8: X(main+0x2a8) [0x432898] 
9: /lib/libc.so.6(__libc_start_main+0xf6) [0x2adfcaa03136] 
10: X(FontFileCompleteXLFD+0xa1) [0x432059] 
 
Fatal server error: 
Caught signal 11.  Server aborting 
 
 
[1]+  Aborted                 X -ac 
markus@hope ~ $ 
 
even though this is not a gentoo site, i will put he output of emerge --info 
here, since it is a rather good description of the environment used: 
 
Portage 2.1_pre7-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r1, 
2.6.16_hope2 x86_64) 
================================================================= 
System uname: 2.6.16_hope2 x86_64 AMD Opteron(tm) Processor 242 
Gentoo Base System version 1.12.0_pre16 
dev-lang/python:     2.3.5-r2, 2.4.2-r1 
sys-apps/sandbox:    1.2.17 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 
sys-devel/binutils:  2.16.1-r2 
sys-devel/libtool:   1.5.22 
virtual/os-headers:  2.6.11-r3 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env 
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config 
/usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config 
/var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo 
/etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig ccache digest distlocks metadata-transfer sandbox sfperms 
strict userpriv" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/linux/distributions/gentoo" 
LINGUAS="en de" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="amd64 X aalib alsa apache2 arts auctex bash-completion berkdb bitmap-fonts 
bzip2 cairo cdda cddb cdparanoia chroot cli cpudetection crypt ctype cups curl 
dba dri dvd dvdr dvdread dvi eds emboss encode exif expat fam fastbuild fb 
fbcon fbdev ffmpeg flac fontconfig foomaticdb force-cgi-redirect fortran ftp gd 
gdbm gif glut gpm gstreamer gtk gtk2 guile idn imagemagick imap imlib immqt 
ipv6 java jpeg kde kdeenablefinal lcd lcms lm_sensors lua lzw matrox memlimit 
mng motif mozilla mp3 mpeg mpeg2 mpeg4 mplayer ncurses nfs nls nptl nptlonly 
ogg openal opengl pam pcre pdf pdflib perl php png posix postgres python qt 
quicktime readline sasl sdl session simplexml soap sockets spell spl ssl tcltk 
tcpd tetex tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb 
utf8 vorbis xine xinetd xml xpm xsl xv zlib elibc_glibc input_devices_keyboard 
input_devices_mouse kernel_linux linguas_en linguas_de userland_GNU 
video_cards_mga video_cards_fbdev video_cards_vesa video_cards_vga" 
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS 
 
and here is 
 
/etc/X11/xorg.conf 
 
Section "Files" 
    RgbPath     "/usr/share/X11/rgb" 
    # For XFS, uncomment this and comment the others 
    # FontPath  "unix/:-1" 
    FontPath    "/usr/share/fonts/local/" 
    FontPath    "/usr/share/fonts/misc/" 
    FontPath    "/usr/share/fonts/75dpi/:unscaled" 
    FontPath    "/usr/share/fonts/100dpi/:unscaled" 
    FontPath    "/usr/share/fonts/Type1/" 
    FontPath    "/usr/share/fonts/TTF/" 
    FontPath    "/usr/share/fonts/CID/" 
    FontPath    "/usr/share/fonts/Speedo/" 
    FontPath    "/usr/share/fonts/75dpi/" 
    FontPath    "/usr/share/fonts/100dpi/" 
EndSection 
Section "Module" 
    Load        "dbe" 
    SubSection  "extmod" 
        Option  "omit xfree86-dga" 
    EndSubSection 
    Load        "type1" 
    Load        "freetype" 
    Load        "dri" 
    Load        "glx" 
EndSection 
Section "ServerFlags" 
    Option      "blank time"    "10"    # 10 minutes 
    Option      "standby time"  "20" 
    Option      "suspend time"  "30" 
    Option      "off time"      "60" 
EndSection 
Section "InputDevice" 
    Identifier  "Keyboard1" 
    Driver      "kbd" 
    Option      "AutoRepeat"    "500 5" 
    Option      "XkbModel"      "pc105" 
    Option      "XkbLayout"     "de" 
    Option      "XkbVariant"    "nodeadkeys" 
EndSection 
Section "InputDevice" 
    Identifier  "Mouse1" 
    Driver      "mouse" 
    Option      "Device"        "/dev/input/mice" 
    Option      "Protocol"      "Auto" 
    Option "ZAxisMapping" "4 5" 
EndSection 
Section "Monitor" 
    Identifier  "Generic Monitor" 
    Option      "dpms" 
EndSection 
Section "Device" 
    Identifier  "MGA G550 AGP" 
    Driver      "mga" 
    BusID       "PCI:1:0:0" 
    Option      "hw cursor" "off" 
    #Option     "pci retry" 
    Option      "UseFBDev" "on" 
    Option      "AGPMode" "4" 
    Option      "RenderAccel" "true" 
    Option "AllowGLXWithComposite" "true" 
    #Option "ShadowFB" "on" 
   # Option "Rotate" "CCW" 
EndSection 
Section "Screen" 
    Identifier          "Screen MGA2" 
    Device              "MGA G550 AGP" 
    Monitor             "Generic Monitor" 
    DefaultDepth        16 
    SubSection "Display" 
        Depth           16 
        Modes           "1280x1024" "1024x768" "800x600" 
        Option          "rgb bits" "8" 
        Visual          "TrueColor" 
    EndSubSection 
 
    SubSection "Display" 
        Depth           24 
        Modes           "1280x1024" "1024x768" "800x600" 
        Visual          "TrueColor" 
    EndSubSection 
EndSection 
Section "ServerLayout" 
    Identifier  "Main Layout" 
    Screen      "Screen MGA2" 
    InputDevice "Mouse1" "CorePointer" 
    InputDevice "Keyboard1" "CoreKeyboard" 
EndSection 
Section "DRI" 
        Mode 0666 
EndSection 
Section "Extensions" 
        Option "Composite" "Enable" 
EndSection 
 
 
 
thank you very much!! 
 
 
markus
Comment 1 Donnie Berkholz 2006-03-29 02:04:22 UTC
I think Gentoo's simply missing a couple of required 64-bit patches in its
latest xorg-server update. I'll make a 1.0.2-r2 available later -- try that out
and please close this bug if that fixes it.
Comment 2 markus gapp 2006-03-30 00:27:15 UTC
hi!

I'm afraid gentoos xorg-server 1.0.2-r2 behaves just like -r1 did, and 
produces -- on my system -- exactly the same error as reported above.

thanks a lot anyway.

markus
Comment 3 Donnie Berkholz 2006-03-30 02:17:53 UTC
Missed another of the stupid patches, sorry, only got 2 out of 3 and assumed
glcontextmodes.[ch] included glheader.h, which it actually doesn't.
Comment 4 markus gapp 2006-04-15 19:22:06 UTC
dri works since xorg-server-1.0.2-r3 -- thank you!!!

the server crash still happens if its terminal is not active but this seems to 
be bug 3236, so this one can be closed.

markus


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.