Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161964 - x11-drivers/ati-drivers - hard locks w/ Xorg 7.1 on amd64 / DVI
Summary: x11-drivers/ati-drivers - hard locks w/ Xorg 7.1 on amd64 / DVI
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-13 22:29 UTC by Marcin Deranek
Modified: 2007-11-26 15:39 UTC (History)
4 users (show)

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


Attachments
Xorg configuration (xorg.conf,2.19 KB, text/plain)
2007-01-14 16:17 UTC, Marcin Deranek
Details
xorg.conf (xorg.conf,2.40 KB, text/plain)
2007-01-28 16:47 UTC, Ian Po
Details
.config IanPo's (config,35.26 KB, text/plain)
2007-01-28 16:51 UTC, Ian Po
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Deranek 2007-01-13 22:29:45 UTC
I am experiencing hard locks of system when using ati-drivers (fglrx) on amd64 platform with Xorg 7.1 over DVI connector. System locks up whenever I try to switch to VT, logout, shutdown, reboot (basically any operation which includes switching to VT/console at some point).
After some investigation I found out the following..
1. The very same setup works over D-SUB but locks up over DVI
2. Seems like problem only exists on amd64 platform (X700 Pro) - other machine I have (Pentium 4, X300) runs without any problems over DVI
3. It is only related to Xorg 7.1 (haven't tried 7.2rcX yet); Xorg 7.0 works fine (that's what I'm running right now) with exactly same setup.

Most probably there's not much we can do about it (only ATI/AMD can), but it would be nice to document it and still keep Xorg 7.0 till bug gets fixed :-)

Reproducible: Always

Steps to Reproduce:
1. Machine: amd64, ati-drivers, Xorg 7.1, monitor over DVI
2. switch to VT
3.

Actual Results:  
System hard lock

Expected Results:  
System is still operational

Portage 2.1.2_rc4-r9 (default-linux/amd64, gcc-4.1.1, glibc-2.5-r0, 2.6.19-reiser4-r4 x86_64)
=================================================================
System uname: 2.6.19-reiser4-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.8
Timestamp of tree: Sat, 13 Jan 2007 21:20:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -mtune=athlon64 -ftracer -frename-registers -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -mtune=athlon64 -ftracer -frename-registers -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acpi adns alsa amd64 ao apm audiofile bash-completion bcmath berkdb bidi bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr clamav cli cracklib crypt cscope ctype cups curl curlwrappers dbus dga dio directfb dlloader dri dts dv dvb dvd dvdr dvdread encode exif expat fbcon ffmpeg fftw firefox flac flatfile foomaticdb ftp gb gd gdbm ggi gif ginac glut gmp gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal iconv idn imagemagick imlib isdnlog javascript jbig jikes jpeg jpeg2k kdehiddenvisibility lcms lesstif libcaca libedit libgda libwww lm_sensors m17n-lib mad maildir matroska mbox mcal memlimit mhash mikmod mime mmap mng motif mp3 mpeg mpi mplayer msession musepack ncurses nocd nptl nsplugin offensive ogg openal opengl osc oss pam pcntl pcre pda pdf pic plotutils png portaudio posix ppds pppd quicktime readline recode reflection scanner sdl session sharedmem shorten simplexml skey slang slp sndfile snmp sockets sox speex spell ssl svg sysvipc szip tcpd test theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd videos vim-syntax vorbis wifi wmf wxwindows x264 xine xml xmlrpc xorg xosd xpm xsl xv xvid yaz zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en pl" USERLAND="GNU" VIDEO_CARDS="fglrx radeon v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ian S. 2007-01-14 04:02:07 UTC
You don't seem to mention what version of ati-drivers you are trying. I believe this bug id 737-24421
from ati(amd ...) might fix your problem. (basically it says upgrade to 8.32.5)

there is also already a later version of ati-drivers 8.33.6, looking at the release notes it's doubtful they fixed it there, might be worth a try though. This driver claims to support Xorg 7.2 though.
Comment 2 Marcin Deranek 2007-01-14 09:09:23 UTC
I tried all drivers which support Xorg 7.1 (starting from 8.29.6) except the latest 8.33.6 since it's not in the portage yet..
I'll try it when it's available..
Comment 3 Marcin Deranek 2007-01-14 16:17:46 UTC
Created attachment 106949 [details]
Xorg configuration
Comment 4 Marcin Deranek 2007-01-15 22:24:48 UTC
Just tried ati-drivers-8.33.6 with Xorg 7.2rc3 and result is the same as with previous drivers - system hard locks :-((
Comment 5 Ian Po 2007-01-28 16:47:38 UTC
Created attachment 108394 [details]
xorg.conf

xorg.conf for fglrx
Comment 6 Ian Po 2007-01-28 16:48:53 UTC
I get the same hard locks when exit from X to console.
ASUS A8V Deluxe
AMD64 X2 4200
AGP X800 Pro, DVI (D-SUB not tested)
2X1024 PC3200
Had worked fine with Xorg 6.8.2 (tested on Gentoo 2006.0 amd64), 6.9 (Slackware 11, Slamd64 11)
Hard locks with xorg 7.1 (gentoo 2006.1 amd64 and gentoo 2006.1 32 bit!!),
xorg 7.2 (gentoo 2006.1 amd64)
Drivers tested from 8.30.5 to 8.33.6. They all give hard lock after i exit.
Direct rendering: Yes
2D, 3D Accelerations work OK.
Used HOWTO ATI (including one for amd64) from Gentoo-wiki.

Portage 2.1.1-r2 (default-linux/amd64/2006.1/no-multilib, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.6
Last Sync: Sat, 27 Jan 2007 13:31:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo http://mirror.uni-c.dk/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://mirror.aiya.ru/pub/gentoo/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib acpi alsa alsa_cards_emu10k1 alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol ao asf audiofile berkdb bitmap-fonts bzip2 cli cracklib crypt cups curl dlloader dri dts dvd dvdread dxr3 elibc_glibc esd ffmpeg flac font-server fortran fpx gdbm gif gimp gimpprint gphoto2 gpm gs gtk gtk2 iconv ieee1394 input_devices_keyboard input_devices_mouse isdnlog java jbig jpeg jpeg2k kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text libcaca libg++ linguas_ru lirc lirc_devices_livedrive_midi mad mikmod mng modplug mp3 musepack ncurses nls nptl nptlonly ogg opengl oss pam pcre pdf perl png ppds pppd python qt qt3 qt4 readline reflection rle sdl session slang smp spl ssl symlink tcpd theora tiff tk truetype truetype-fonts type1-fonts udev unicode usb userland_GNU utf8 vcd vdr video_cards_fglrx video_cards_radeon vorbis wmf xine xorg xprint xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Ian Po 2007-01-28 16:51:19 UTC
Created attachment 108396 [details]
.config IanPo's
Comment 8 Ian Po 2007-01-28 17:15:40 UTC
I'm glad to inform you that it works without hard locks via D-SUB !!!
Just've tested it.
Comment 9 Marcin Deranek 2007-02-06 21:26:46 UTC
Yes, that's true as I described it in initial report...
.. but I still would like to use DVI :-))
Comment 10 Ian Po 2007-02-07 19:01:16 UTC
2 Marcin Deranek:
No, no , you misunderstood me.
I just have the same problem.
The thing is, i haven't been known why my PC locks (for 2 months)
so i was glad to find it out.
Sorry for misleading.
P.S.
I posted about this bug to xorg bugzilla (9794) as well, no answer so far.
Comment 11 Ian Abbott 2007-02-07 20:12:28 UTC
I'm currently using ati-drivers-8.32.5 on 2.6.19-gentoo-r5 on amd64 and don't get any hard lock-ups when switching between VT and Xorg 7.1. I am using the DVI connector.  Direct rendering is not currently working on my system for some reason (probably kernel version related), so maybe that has something to do with it not locking up.

Does yours still lock up if you disable direct rendering in the xorg.conf file?
Comment 12 Marcin Deranek 2007-02-07 22:53:01 UTC
I can check it out, but as far as I remember without Direct Rendering it should work: when I forgot to re-compile fglrx module when changing kernel version, Xorg was working fine..
Comment 13 Marcin Deranek 2007-02-07 23:16:52 UTC
Seems I was wrong..
Disabling DRI (Options "NoDRI" "yes") or not loading fglrx kernel module does not help either - system harl locks in any case.. Currently I'm using Xorg 7.2.
Comment 14 Ian Po 2007-02-08 18:43:26 UTC
Hard locks aren't connected with DRI (in my case, too).
Direct rendering: Yes or No, it locks.
I get hard locks even if DVI cable is just connected (and not used), whilst 
i use D-Sub (both connected, but only d-sub used). After disconnecting DVI cable from video card Xorg works OK.

Marcin Deranek wrote:
"not loading fglrx kernel module does not help either - system harl locks in any case.."

I don't understand the bit about "not loading fglrx" - if it's written in your xorg.conf as a driver, it being loaded, right? How can you not load it?
Comment 15 Marcin Deranek 2007-02-08 19:23:30 UTC
By "not loading fglrx" I meant not loading fglrx kernel module.. Xorg driver (fglrx_drv.so) is still loaded (otherwise Xorg wouldn;t start at all). You can achieve that by just removing fglrx.ko kernel module from the disk :-)
It looks like fault is not on fglrx kernel module side..
Comment 16 Ronny Perinke 2007-02-10 18:32:51 UTC
This problem is not only limited to amd64 and ati, but also to x86 and nvidia.

Only solution: do not use a framebuffer at all or do not change the display mode (which means forget about vesfb-tng, because it sets a mode).


http://www.nvnews.net/vbulletin/showthread.php?t=85939
Comment 17 Ian Po 2007-02-10 20:17:41 UTC
2 Ronny Perinke:
Did you check this solution with ATI card?
As far as i now, it works for nVIDIA only.
I personally never used framebuffer; it's disabled in my .config.
I think our case is different and has smth. to do with ATI DVI.
I also agree that the problem appears on x86 (as i reported before).
Comment 18 Marcin Deranek 2007-02-12 09:23:02 UTC
I don't use framebuffer either.
Comment 19 Marcin Deranek 2007-02-12 12:02:58 UTC
Ian, you mentioned that you experience hard locks on x86 platform as well.. I run Gentoo on x86 and do not have such hard locks..
Having a quick look at the card (X300 PCIE) I see that my card does not have D-SUB output at all - only DVI. Maybe that makes difference..
Comment 20 Ian Po 2007-02-12 18:30:10 UTC
2 Marcin Deranek:
Unfortunately i can't test it with DVI+DVI card.
I tested on my only PC with AGP ATI X800 Pro (R420), DVI+D-SUB.
Maybe fglrx "thinks" D-SUB has a priority over DVI, by developer's mistake.
Have you tested new 8.33.6-r1, by any chance?
Comment 21 Marcin Deranek 2007-02-12 21:24:17 UTC
I have tested all ati-drivers which support Xorg 7.1 including 8.33.6 (all failed), but had no chance to test any newer ebuild yet eg. 8.33.6-r1 (probably it won't make any difference anyway)
Comment 22 Paulinux 2007-02-18 09:21:58 UTC
Like you say.Occurs the same error. When i start the system using the DVI connectorthe, X hangs. The ati-drivers is 8.33.6-r1 and xorg-x11-7.2. With VGA connector works fine.

(In reply to comment #21)
> I have tested all ati-drivers which support Xorg 7.1 including 8.33.6 (all
> failed), but had no chance to test any newer ebuild yet eg. 8.33.6-r1 (probably
> it won't make any difference anyway)
> 

Comment 23 Daniel Jakob 2007-02-20 06:04:27 UTC
I've the same problem on x86. All versions >=ati-drivers-8.32.5 (Xorg 7.1 or 7.2) causing a hard lock.
I'm using the dvi-port, too...
Comment 24 Ian Po 2007-02-23 10:30:04 UTC
8.34.8 ain't working as well :-((((
Comment 25 Liviu Balan 2007-03-16 18:11:13 UTC
Same problem happens here. I guess that after so many confirms the status of the bug should be changed.
Comment 26 Marcin Deranek 2007-07-02 19:08:07 UTC
Just slightly upgraded hardware, but kept ATI X700 Pro. Basically motherboard (VIA KT890 -> nVidia 590 SLI) and CPU (Athlon64 -> Athlon64 x2) have changed. Installed fresh Gentoo from scratch and problem still persists with exactly the same behavior.
Comment 27 Marcin Deranek 2007-10-31 05:54:53 UTC
Seems like 8.42.3 work fine (not in the portage yet) Can anyone confirm ?
Look into BUG#196820 for instructions how to install.
Comment 28 Ian Po 2007-11-20 18:22:28 UTC
Nah, 8.42.3 still locks it up :(
I've bought nvidia card already :)
Comment 29 Marcin Deranek 2007-11-20 22:49:42 UTC
Which xorg-server version do you use ?
I tested ati-drivers 8.42.3 and xorg-server-1.4 with framebuffer and text console and it's running fine. I remember at some point I was trying with xorg-server-1.3 and my system locked up.
Comment 30 Ian Po 2007-11-21 18:22:41 UTC
xorg-server 1.3.0.0-r2
I'll test 1.4 and write back then.
Comment 31 Marcin Deranek 2007-11-21 18:54:18 UTC
Cool :-) If xorg-server-1.4 won't help then we'll try to narrow the problem (probably some configuration change)..
Comment 32 Ian Po 2007-11-22 19:23:11 UTC
Yeah, it helped!!!
Works OK now :)

x11-base/xorg-server 1.4-r2
x11-drivers/ati-drivers 8.42.3

direct rendering: Yes
glxgears are rolling all right

The guide to installing xorg 1.4 & ati-drivers 8.42.3 here:
http://allmybrain.com/2007/11/01/upgrading-to-xorg-x11-73-with-ati-drivers-8423-on-gentoo/
I reemerged 4 packages as it was said in emerge log: ati-drivers, xf86-video-ati (if VIDEO_CARDS string in /etc/make.conf contains "radeon"), xf86-input-keyboard and xf86-input-mouse.
Comment 33 Ian Po 2007-11-22 19:25:52 UTC
> I reemerged 4 packages as it was said in emerge log: ati-drivers,
> xf86-video-ati (if VIDEO_CARDS string in /etc/make.conf contains "radeon"),
> xf86-input-keyboard and xf86-input-mouse.
I mean, having xorg-server emerged i reemerged 4 packages after.

Comment 34 Jeffrey Gardner (RETIRED) gentoo-dev 2007-11-26 15:39:30 UTC
8.433 is in the tree... any more problems feel free to reopen.