Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79146 - x11-drm-20050104 borks on xorg startup
Summary: x11-drm-20050104 borks on xorg startup
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-22 15:20 UTC by Marcin Kurek
Modified: 2005-03-23 11:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
X11 log from faulty start with new drm radeon module (drm-fault.log,41.74 KB, text/plain)
2005-02-05 15:57 UTC, Marcin Kurek
Details
drm-loading.log (drm-loading.log,1.52 KB, text/plain)
2005-02-06 16:02 UTC, Donnie Berkholz (RETIRED)
Details
glxinfo.log (glxinfo.log,4.38 KB, text/plain)
2005-02-06 16:02 UTC, Donnie Berkholz (RETIRED)
Details
xorg.conf (xorg.conf,3.04 KB, text/plain)
2005-02-06 16:03 UTC, Donnie Berkholz (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Kurek 2005-01-22 15:20:57 UTC
I decide to give a try to the new drm modules on my current ppc box. And emerge goes without any problems. But when I try to start X I get only a crash from drm module.

It seems I can load the modules without any problems (modprobe cause no crash) but starting X does.

This is syslog output from crash:

========
Jan 22 23:47:31 pegasos kernel: radeon: Ignoring new-style parameters in presence of obsolete ones
Jan 22 23:47:31 pegasos kernel: [drm] Initialized radeon 1.13.0 20041207 on minor 0: ATI Technologies Inc Radeon RV250 If [Radeon 9000]
Jan 22 23:47:31 pegasos kernel: [drm] Used old pci detect: framebuffer loaded
Jan 22 23:47:42 pegasos kernel: Oops: kernel access of bad area, sig: 11 [#1]
Jan 22 23:47:42 pegasos kernel: NIP: E2378438 LR: E23785D8 SP: CCAA9E40 REGS: ccaa9d90 TRAP: 0300    Not tainted
Jan 22 23:47:42 pegasos kernel: MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
Jan 22 23:47:42 pegasos kernel: DAR: 0000003C, DSISR: 40000000
Jan 22 23:47:42 pegasos kernel: TASK = df0be720[21951] 'X' THREAD: ccaa8000
Jan 22 23:47:42 pegasos kernel: Last syscall: 54
Jan 22 23:47:42 pegasos kernel: GPR00: E2495000 CCAA9E40 DF0BE720 E2D80000 E2F7F000 DC24FEE0 00306400 00800000
Jan 22 23:47:42 pegasos kernel: GPR08: C4000000 E2300000 00000000 D49EE300 88042444 102047D0 101A0000 101A0000
Jan 22 23:47:42 pegasos kernel: GPR16: 101A0000 10200000 10200000 107D5C4C 7FFFF5E4 00000007 7FFFF170 DF681230
Jan 22 23:47:42 pegasos kernel: GPR24: D6F57180 E2390000 E2390000 CCAA9E50 D49EE2A0 D49EE300 D6913000 DFB4E000
Jan 22 23:47:42 pegasos kernel: NIP [e2378438] radeon_cp_init+0x614/0x960 [radeon]
Jan 22 23:47:42 pegasos kernel: LR [e23785d8] radeon_cp_init+0x7b4/0x960 [radeon]
Jan 22 23:47:42 pegasos kernel: Call trace:
Jan 22 23:47:42 pegasos kernel: [e237178c] radeon_ioctl+0x194/0x1cc [radeon]
Jan 22 23:47:42 pegasos kernel: [c006ce24] sys_ioctl+0x2fc/0x498
Jan 22 23:47:42 pegasos kernel: [c0004400] ret_from_syscall+0x0/0x44
========

Currently I use a Radeon 9000 card:

0001:01:08.0 VGA compatible controller: ATI Technologies Inc Radeon RV250 If [Radeon 9000] (rev 01) (prog-if 00 [VGA])
        Subsystem: Hightech Information System Ltd. RV250 If [Excalibur Radeon 9000]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 0 (2000ns min)
        Interrupt: pin A routed to IRQ 9
        Region 0: Memory at c0000000 (32-bit, prefetchable)
        Region 1: I/O ports at ffff1000 [size=256]
        Region 2: Memory at c4000000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [58] AGP version 2.0
                Status: RQ=48 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2
                Command: RQ=1 ArqSz=0 Cal=0 SBA+ AGP- GART64- 64bit- FW- Rate=<none>
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Gentoo Base System version 1.6.8
Portage 2.0.51-r14 (default-ppc-2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.
10-slaughter ppc)
=================================================================
System uname: 2.6.10-slaughter ppc 7447/7457, altivec supported
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 13 2004, 00:31:53)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.90.0.3-r4
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -O2 -fomit-frame-pointer 
-fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/
share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /
usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ 
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/
share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -O2 -fomit-frame-
pointer -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl ftp://pandemonium.tiscali.de/pub/
gentoo/ http://gentoo.blueyonder.co.uk http://pandemonium.tiscali.de/pub/gentoo/ 
http://ftp.heanet.ie/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit X Xaw3d a52 aac aalib acl alsa altivec amd ansi apache2 
artswrappersuid artworkextra async audiofile bash-completion beepmp berkdb 
bindist
bitmap-fonts blender-game bmp bonobo bzlib cairo cap cddb cdf cdparanoia cdr 
chroot clamav cpdflib crypt cscope css ctype cups dbase dbx dga dio directfb 
divx4linux djbfft doc dts dv dvd dvdr dvdread emacs emacs-w3 emoticon encode 
exif f2c f77 faac faad fam fame fbcon ffmpeg flac flash flatfile flood font-
server fortran freetype ftp ftruncate gd gdbm ggi gif gimp gimpprint gnome 
gnome-libs gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile
hal iconv image imagemagick imap imlib inifile ipv6 jabber jack java javacomm 
javascript jce joystick jp2 jpeg jpeg2k justify kadu-modules kadu-voice
kde kerberos krb4 ladcca lcd lcms ldap leim lesstif libcaca libclamav libwww 
lirc live lzo lzw lzw-tiff mad matroska mikmod mime ming mixer mjpeg mmap mng 
monkey motif mp3 mpeg mpeg4 mpi mplayer msession mule multi-tty mysqli mythtv 
mzscheme native ncurses netcdf network nls nocd nptl oggvorbis openal opengl oss 
pam pcntl pcre pda pdflib perl physfs pic pie plotutils png portaudio posix 
postgresql povray ppc ppds private python qt quicktime readline recode rtc samba 
scanner sdl session shared sharedmem simplexml slang slp sms sndfile sockets 
softmmu speex spell ssl svg sysvipc szip tcltk tcpd
&#9500;etex tga theora threads tidy tiff timidity tlen transcode truetype truetype-
fonts unicode usb v4l v4l2 videos vim-with-x winbind wmf wxwindows xanim
&#9474;ine xml xml2 xmlrpc xmms xosd xpm xprint xscreensaver xv xvid xvmc yv12 zlib 
zvbi video_cards_radeon"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-05 11:50:04 UTC
Can you attach /var/log/Xorg.0.log please? Reopen when you do.

Also, if you comment out Load "dri" in your xorg.conf, does that work around this?
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-05 11:50:27 UTC
Closing.
Comment 3 Marcin Kurek 2005-02-05 15:57:19 UTC
Created attachment 50491 [details]
X11 log from faulty start with new drm radeon module

And yes, this problem is solved when I comment out the dri extension in the
configuration file.

I wonder can this be a PCI related problem. My card currently works as PCI one
(Forced by BusType "PCI" option)
Comment 4 Marcin Kurek 2005-02-05 16:00:07 UTC
Log added
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-05 16:22:46 UTC
This is interesting, although not sure of its relation:
(WW) ****INVALID IO ALLOCATION**** b: 0x1000 e: 0x10ff correcting
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-05 16:25:29 UTC
BTW, I've got a Pegasos with the same setup except Radeon 9200 SE, with x11-base/x11-drm-20050104 and x11-base/xorg-x11-6.8.1.902, and it works great. Kernel's 2.6.10-pegasos-r1.
Comment 7 Marcin Kurek 2005-02-06 02:10:15 UTC
This InvalidIO allocation is "normal" I mean it's present in all X11 versions and no one knows why, but this cause no side effects.
Comment 8 Marcin Kurek 2005-02-06 04:35:15 UTC
And about drm. Are you sure it's working ? First take a look at logs and try to figure out what version is loaded 1.11.0 means old version and on my system if I have drm enabled in kernel (as module) X always load the old version and don't touch new one. If you see 1.13.0 it means it loads new version for you, which doesn't work for me.

The line with version can be located in syslog when starting X. Look for something like this:

kernel: [drm] Initialized radeon 1.11.0 20020828 on minor 0

Second thing. If you have not BusType "PCI" option drm will be loaded on startup but because missing AGPGart it wont be used (In that case it works for me, works mean no crash on startup but no DRI of coz). Run glxinfo command and look at line

direct rendering:

It should be 'Yes' Is it ?
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-06 16:02:14 UTC
Created attachment 50569 [details]
drm-loading.log

Ah yeah, it shows in my Pegasos log too.

Heh, trust me it's working. You don't get direct rendering without a working
DRM.

Anyhow, your proof is attached, despite some error messages.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-06 16:02:41 UTC
Created attachment 50570 [details]
glxinfo.log
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-06 16:03:20 UTC
Created attachment 50571 [details]
xorg.conf
Comment 12 Marcin Kurek 2005-03-05 08:56:52 UTC
I installed 2.6.11 kernel from www.kernel.org which has already new DRM incorporated. And it still fails when starting X with similar error message as with snapshoot.
Comment 13 Marcin Kurek 2005-03-22 12:05:02 UTC
Fixed in recent version of DRM. Fix included in 2.6.11.3
Comment 14 Marcin Kurek 2005-03-22 13:57:54 UTC
Hmmmm, I marked it as resolved too fast. The error is still there but DRM works fine. Now I can use it but when DRm initialization I'v got following message in logs:

========
pegasos kernel: Linux agpgart interface v0.100 (c) Dave Jones
pegasos kernel: [drm] Initialized drm 1.0.0 20040925
pegasos kernel: [drm] Initialized radeon 1.14.0 20050125 on minor 0: ATI Technologies Inc Radeon RV250 If [Radeon 9000]
pegasos kernel: [drm] Loading R200 Microcode
pegasos kernel: [drm] Loading R200 Microcode
pegasos kernel: Trying to vfree() nonexistent vm area (e246e000)
pegasos kernel: Badness in __vunmap at mm/vmalloc.c:368
pegasos kernel: Call trace:
pegasos kernel: [c0005214] check_bug_trap+0x98/0xdc
pegasos kernel: [c0005404] ProgramCheckException+0x1ac/0x268
pegasos kernel: [c00049d4] ret_from_except_full+0x0/0x4c
pegasos kernel: [c004fb64] __vunmap+0xf8/0x100
pegasos kernel: [c000fe58] iounmap+0x5c/0x60
pegasos kernel: [e2357340] radeon_do_cleanup_cp+0x254/0x418 [radeon]
pegasos kernel: [e2361c20] radeon_driver_pretakedown+0x10/0x20 [radeon]
pegasos kernel: [e2347980] drm_takedown+0x378/0x53c [drm]
pegasos kernel: [e2348b6c] drm_release+0x4cc/0x57c [drm]
pegasos kernel: [c005a52c] __fput+0x188/0x1ac
pegasos kernel: [c005891c] filp_close+0x6c/0xd8
pegasos kernel: [c0004360] ret_from_syscall+0x0/0x44
pegasos kernel: [drm] Loading R200 Microcode
pegasos kernel: [drm] Loading R200 Microcode
pegasos kernel: [drm] Loading R200 Microcode
pegasos kernel: Trying to vfree() nonexistent vm area (e246e000)
pegasos kernel: Badness in __vunmap at mm/vmalloc.c:368
pegasos kernel: Call trace:
pegasos kernel: [c0005214] check_bug_trap+0x98/0xdc
pegasos kernel: [c0005404] ProgramCheckException+0x1ac/0x268
pegasos kernel: [c00049d4] ret_from_except_full+0x0/0x4c
pegasos kernel: [c004fb64] __vunmap+0xf8/0x100
pegasos kernel: [c000fe58] iounmap+0x5c/0x60
pegasos kernel: [e2357340] radeon_do_cleanup_cp+0x254/0x418 [radeon]
pegasos kernel: [e2361c20] radeon_driver_pretakedown+0x10/0x20 [radeon]
pegasos kernel: [e2347980] drm_takedown+0x378/0x53c [drm]
pegasos kernel: [e2348b6c] drm_release+0x4cc/0x57c [drm]
pegasos kernel: [c005a52c] __fput+0x188/0x1ac
pegasos kernel: [c005891c] filp_close+0x6c/0xd8
pegasos kernel: [c0004360] ret_from_syscall+0x0/0x44
pegasos kernel: [drm] Loading R200 Microcode
========

Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2005-03-23 00:02:18 UTC
Please try a CVS snapshot from http://dri.freedesktop.org/wiki/Download -- read the "Snapshots" section.
Comment 16 Marcin Kurek 2005-03-23 09:58:17 UTC
The result is realy funny. The X'es wont start when I try to use recent cvs snap. In the log's I can found a infinite messages like that:

========
Mar 23 17:45:44 pegasos entrance: entrance_ipc_init: Success
Mar 23 17:45:47 pegasos kernel: Linux agpgart interface v0.100 (c) Dave Jones
Mar 23 17:45:47 pegasos kernel: [drm] Initialized drm 1.0.0 20040925
Mar 23 17:45:47 pegasos kernel: [drm] Initialized radeon 1.16.0 20050311 on minor 0: ATI Technologies Inc Radeon RV250 If [Radeon 9000]
Mar 23 17:45:47 pegasos kernel: [drm] Used old pci detect: framebuffer loaded
Mar 23 17:45:47 pegasos kernel: Oops: kernel access of bad area, sig: 11 [#1]
Mar 23 17:45:47 pegasos kernel: NIP: E2359DD8 LR: E2359C68 SP: DBE5DE00 REGS: dbe5dd50 TRAP: 0300    Not tainted
Mar 23 17:45:47 pegasos kernel: MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
Mar 23 17:45:47 pegasos kernel: DAR: 0000003C, DSISR: 40000000
Mar 23 17:45:47 pegasos kernel: TASK = df45e110[9314] 'X' THREAD: dbe5c000
Mar 23 17:45:47 pegasos kernel: Last syscall: 54
Mar 23 17:45:47 pegasos kernel: GPR00: E2493000 DBE5DE00 DF45E110 E2D80000 E2F7F000 DC605500 00306400 00800000
Mar 23 17:45:47 pegasos kernel: GPR08: C4000000 E2380000 00000000 DC605D80 84042444 102047D0 101A0000 101A0000
Mar 23 17:45:47 pegasos kernel: GPR16: 101A0000 10200000 10200000 107BCA2C 7FFFF474 00000007 7FFFF000 DC605D80
Mar 23 17:45:47 pegasos kernel: GPR24: E2350000 E2350000 FFFFFFEA E2493000 DBE5DE10 00000040 DC7FA000 DBED9800
Mar 23 17:45:47 pegasos kernel: NIP [e2359dd8] radeon_cp_init+0x888/0xdc8 [radeon]
Mar 23 17:45:47 pegasos kernel: LR [e2359c68] radeon_cp_init+0x718/0xdc8 [radeon]
Mar 23 17:45:47 pegasos kernel: Call trace:
Mar 23 17:45:47 pegasos kernel: [e2348a00] drm_ioctl+0x1c4/0x22c [drm]
Mar 23 17:45:47 pegasos kernel: [c006e280] do_ioctl+0x68/0x9c
Mar 23 17:45:47 pegasos kernel: [c006e36c] vfs_ioctl+0xb8/0x400
Mar 23 17:45:47 pegasos kernel: [c006e6f4] sys_ioctl+0x40/0x74
Mar 23 17:45:47 pegasos kernel: [c0004360] ret_from_syscall+0x0/0x44
Mar 23 17:45:47 pegasos kernel: [drm:drm_release] *ERROR* Device busy: 1 0
Mar 23 17:45:47 pegasos entranced: The X server was terminated with signal 11.
Mar 23 17:45:47 pegasos entranced: Attempting to restart X server.
========
Comment 17 Donnie Berkholz (RETIRED) gentoo-dev 2005-03-23 11:30:38 UTC
In that case, please file a DRI bug at bugs.freedesktop.org and post the URL here.

Thanks!