Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118391 - vanilla-sources-2.6.15, ati-drivers-8.18.8-r1/8.20.8
Summary: vanilla-sources-2.6.15, ati-drivers-8.18.8-r1/8.20.8
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-09 05:02 UTC by Thomas Jäger
Modified: 2006-04-30 18:35 UTC (History)
6 users (show)

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


Attachments
Fixes fglrx for kernels >= 2.6.15-rc (fglrx-2.6.15-PageReserved.patch,453 bytes, patch)
2006-01-26 13:54 UTC, Geoff Mishkin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Jäger 2006-01-09 05:02:35 UTC
When logging off from X/Gnome the kernel freezes, there are no further actions (switching to console Alt-Ctrl F1 etc.) possible

In /var/log/critical/current i have an entry:

Jan  9 13:48:54 [kernel] kernel BUG at mm/swap.c:49!



# emerge info

Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15 i686)
=================================================================
System uname: 2.6.15 i686 AMD Athlon(TM) XP2400+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.ynet.sk/pub http://gentoo.mirror.solnet.ch http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X X509 aac acl alsa apache2 audiofile avi berkdb bitmap-fonts browserplugin bzip2 cdr chroot crypt cscope cups curl dedicated dga divx4linux dmx dvb dvd dvdr dvdread eds encode esd ethereal exif expat faad fam fame ffmpeg firefox flac foomaticdb fortran gd gdbm ggi gif gimp glut gmp gnome gnutls gpm gstreamer gtk gtk2 idn imagemagick imap imlib imlib2 insecure-drivers java jbig jpeg junit lcms libg++ libwww live lzw-tiff mad makecheck mbox mhash mikmod mmx mmx2 mmxext mng motif mozilla moznocompose moznoirc moznomail mp3 mpeg ncurses network nls nntp noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nsplugin oav ogg oggvorbis opengl openssh oss pam parse-clocks pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay png postgres ppds pwdb python qt quicktime readline real recode rtc samba sasl scanner sdl speex spell spf sse sse2 ssl svga tcltk tcpd theora tiff tls tools transcode truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vdr vidix vim-with-x vorbis win32codecs wmf xine xml xml2 xmms xprint xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Marcel Klein 2006-01-15 03:40:07 UTC
I'm using 2.6.15-suspend2-r1 and ati-drivers-8.18.8-r1 on my laptop and I get the same kernel BUG when I close OpenOffice, Enemy Territory, tmw, glxgears, mplayer -vo gl <file> (mplayer -vo xv <file> works fine!), and so on...

It looks like that this issue effects every program which uses opengl.

So I disabled the DRI support in my /etc/X11/xorg.conf via

Section "Device"
    ...
    Option        "no_dri" "yes"
    ...
EndSection

and the problem is gone but same goes for the DRI support. :(


I can't say if the same problem appears with ati-drivers-8.20.8 too, I'm not able to use newer versions due bug#: 115301 http://bugs.gentoo.org/show_bug.cgi?id=115301 .
Comment 2 manolis 2006-01-15 08:22:11 UTC
I think my problem is related to this:
III use 8.19.10 ati-drivers and the system freezes when I quit kde...(xorg)
also I get these lines in my system when using openoffice:

Jan 15 10:58:54 [kernel] ----------- [cut here ] --------- [please bite here ] ---------
Jan 15 10:58:54 [kernel] Kernel BUG at mm/swap.c:49
Jan 15 10:58:55 [kernel] CPU 0 
Jan 15 10:58:55 [kernel] Modules linked in: udf fglrx sch_sfq cls_fw sch_htb pppoatm amedyn2 usbatm ppp_async ppp_generic slhc crc_ccitt ipt_mark ipt_multiport ipt_length ipt_MARK iptable_mangle iptable_filter ipt_MASQUERADE iptable_nat ip_nat ip_conntrack nfnetlink ip_tables w83627hf hwmon_vid i2c_isa atm tuner tvaudio msp3400 bttv video_buf firmware_class i2c_algo_bit btcx_risc tveeprom i2c_nforce2 i2c_core snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_bt87x snd_pcm snd_timer snd snd_page_alloc ntfs subfs forcedeth ahci sata_sx4 sata_promise sbp2 ohci1394 ieee1394 usb_storage usbhid
Jan 15 10:58:55 [kernel] Pid: 8670, comm: soffice.bin Tainted: P    B 2.6.15-gentoo #1
Jan 15 10:58:55 [kernel] RIP: 0010:[<ffffffff80157bce>] <ffffffff80157bce>{put_page+88}
Jan 15 10:58:55 [kernel] RSP: 0018:ffff81003b777dd0  EFLAGS: 00010256
Jan 15 10:58:55 [kernel] RAX: 0000000000000000 RBX: ffff8100022a1878 RCX: ffff8100022a1878
Jan 15 10:58:55 [kernel] RDX: ffff8100022a1878 RSI: 0000000057029000 RDI: ffff8100022a1878
Jan 15 10:58:55 [kernel] RBP: 00000000552b9020 R08: 00000000552b9067 R09: ffff8100022a1878
Jan 15 10:58:55 [kernel] R10: 0000000000000000 R11: 0000000000000001 R12: ffff81003706c148
Jan 15 10:58:55 [kernel] R13: 0000000057029000 R14: 0000000000000000 R15: ffff810002510300
Jan 15 10:58:55 [kernel] FS:  00002aaaaecbb010(0000) GS:ffffffff80526800(0063) knlGS:0000000056e501a0
Jan 15 10:58:55 [kernel] CS:  0010 DS: 002b ES: 002b CR0: 000000008005003b
Jan 15 10:58:55 [kernel] CR2: 00000000008d3000 CR3: 000000001b511000 CR4: 00000000000006e0
Jan 15 10:58:55 [kernel] Process soffice.bin (pid: 8670, threadinfo ffff81003b776000, task ffff81000e246dc0)
Jan 15 10:58:55 [kernel] Stack: ffffffff8015c2d6 00000000ffffffe7 ffff810001c097b0 ffffffff00000000 
Jan 15 10:58:55 [kernel]        ffff81005e18a540 000000005702a000 ffff81002f4ff5c0 000000005702a000 
Jan 15 10:58:55 [kernel]        ffff810021971008 000000005702a000 
Jan 15 10:58:55 [kernel] Call Trace:<ffffffff8015c2d6>{unmap_vmas+1258} <ffffffff801602d3>{unmap_region+200}
Jan 15 10:58:55 [kernel]        <ffffffff80160672>{do_munmap+516} <ffffffff80160e2b>{sys_munmap+57}
Jan 15 10:58:55 [kernel]        <ffffffff8011f51f>{cstar_do_call+27} 
Jan 15 10:58:55 [kernel] Code: 0f 0b 68 4d 18 3e 80 c2 31 00 f0 83 42 08 ff 0f 98 c0 84 c0 
Jan 15 10:58:55 [kernel] RIP <ffffffff80157bce>{put_page+88} RSP <ffff81003b777dd0>
Jan 15 10:58:55 [kernel]  <6>note: soffice.bin[8670] exited with preempt_count 2
Jan 15 10:58:55 [kernel] scheduling while atomic: soffice.bin/0x00000002/8670
Jan 15 10:58:55 [kernel] Call Trace:<ffffffff803be1aa>{__sched_text_start+122} <ffffffff801316c6>{vprintk+675}
Jan 15 10:58:55 [kernel]        <ffffffff80283f85>{vt_console_print+122} <ffffffff8012a76f>{activate_task+140}
Jan 15 10:58:55 [kernel]        <ffffffff803bf7ca>{__down_read+134} <ffffffff80146ed9>{do_futex+688}
Jan 15 10:58:55 [kernel]        <ffffffff801313df>{release_console_sem+377} <ffffffff801316c6>{vprintk+675}
Jan 15 10:58:55 [kernel]        <ffffffff801316c6>{vprintk+675} <ffffffff801317a7>{printk+141}
Jan 15 10:58:55 [kernel]        <ffffffff80147618>{sys_futex+203} <ffffffff80132ae2>{exit_mm+22}
Jan 15 10:58:55 [kernel]        <ffffffff80133165>{do_exit+524} <ffffffff80284d88>{do_unblank_screen+95}
Jan 15 10:58:55 [kernel]        <ffffffff8010f436>{die_nmi+0} <ffffffff8010f7bb>{do_invalid_op+145}
Jan 15 10:58:55 [kernel]        <ffffffff80157bce>{put_page+88} <ffffffff881fe8c4>{:fglrx:firegl_aperture_free+452}
Jan 15 10:58:55 [kernel]        <ffffffff8010e6c5>{error_exit+0} <ffffffff80157bce>{put_page+88}
Jan 15 10:58:55 [kernel]        <ffffffff8015c2d6>{unmap_vmas+1258} <ffffffff801602d3>{unmap_region+200}
Jan 15 10:58:55 [kernel]        <ffffffff80160672>{do_munmap+516} <ffffffff80160e2b>{sys_munmap+57}
Jan 15 10:58:55 [kernel]        <ffffffff8011f51f>{cstar_do_call+27} 
Comment 3 Thomas Jäger 2006-01-25 00:38:46 UTC
Some additional information

This bug is also know at debian, a patch is available there
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345040

Comment 4 Geoff Mishkin 2006-01-26 13:51:52 UTC
This also applies to the current stable version 8.14.23-r3.  There are a few posts about it on the forums.  I'm attaching the patch I used.
Comment 5 Geoff Mishkin 2006-01-26 13:54:42 UTC
Created attachment 78218 [details, diff]
Fixes fglrx for kernels >= 2.6.15-rc

This patch is based on the patch found here: http://lkml.org/lkml/2005/12/11/26

I made it myself because that patch was for 8.20.8.  This one has been tested on 8.14.13-r3, the current stable version.
Comment 6 Thomas Jäger 2006-01-27 09:41:06 UTC
The combination vanilla-sources-2.6.15.1 and ati-drivers-8.21.7 seems to be ok.
With this combination, together with the appropriate patch (ati-drivers-8.21.7-linux-2.6.15.patch) everything is running well

Comment 7 t35t0r 2006-01-27 13:17:55 UTC
works for me, someone close this bug.
Comment 8 Geoff Mishkin 2006-01-27 17:41:51 UTC
Any plans to make a new -r# release of 8.14.13 (stable) with this patch?
Comment 9 t35t0r 2006-01-28 01:10:00 UTC
8.14.13 works without the patch for me
Comment 10 Remy Blank 2006-01-30 11:57:38 UTC
Unpatched 8.14.13-r3 *doesn't work* for me with 2.6.15-r1.
Comment 11 Diego Liziero 2006-02-01 04:16:16 UTC
Also on amd64 the patch linux-2.6.15.patch is needed,
otherwise I got a
Bad page state at free_hot_cold_page in process 'X'
and then a Kernel BUG.

The patch contains just a
-#if 0
+#if LINUX_VERSION_CODE >= 0x02060f
That is it enables this code just for the latest kernel,
so I think it won't break any previous kernel compatibility.
Comment 12 t35t0r 2006-02-02 21:06:53 UTC
ok i upgraded my system to 8.21.7 and 2.6.15 vanilla sources, it applied the patch, but I still get the system freeze/crash when I logout of fluxbox and try to relogin through gdm.
Comment 13 t35t0r 2006-02-02 21:26:33 UTC
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
fglrx: Unknown symbol verify_area

damn 8.14.13-r5 won't work with 2.6.15 i'm going back to the 2.6.13 kernel and 8.14.13-r5.
Comment 14 Thomas Jäger 2006-02-02 22:33:16 UTC
After a few days without problems using kernel 2.6.15.1 and ati-drivers 8.21.7 the  problems are back now - system freeze after login out from gnome/restarting gdm (sometimes its ok, sometimes the system freezes)

Now im running 2.6.15.1 with xorg driver radeon (without 3D support) and hope the radeon driver in xorg 7 will work much better
Comment 15 t35t0r 2006-02-03 05:54:37 UTC
does the radeon driver in xorg 7 accelerate a R9600?
Comment 16 t35t0r 2006-02-03 05:55:50 UTC
(In reply to comment #15)
> does the radeon driver in xorg 7 accelerate a R9600?
> 

sorry didn't see without 3d support ..that's not an option for me :(
Comment 17 Jory A. Pratt 2006-04-30 18:35:59 UTC
(In reply to comment #16)
> (In reply to comment #15)
> > does the radeon driver in xorg 7 accelerate a R9600?
> > 
> 
> sorry didn't see without 3d support ..that's not an option for me :(
> 
If 3d support is not an option for you I suggest ya get a system with an nvidia. This should have been sent upstream a while ago.