Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-24-2008, 07:13 PM   #1
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 219

Rep: Reputation: 30
After fglrx upgrade => cannot handle TLS data

I was happily using my computer with Slackware 10.1, KDE 3.5.7 and kernel 2.6.19 when I decided to recompile the kernel and upgrade to The new kernel worked fine, but I had to recompile some kernel modules, like fglrx (ATI card driver). After recompilation of the kernel module and after installation of the latest version of the fglrx X drivers, KDE hasn't started anymore (X complains about kdeinit), and the error log reports:
Code: cannot handle TLS data
Also programs like xmoto and even glxinfo exit with the same error message. Luckily WindowMaker works so I can launch Firefox to write this help message!
Can anyone help me?
Thank you!

edit: I also tried not using the fglrx driver in xorg.conf, and using vesa, but the problem remains.

Last edited by simopal6; 05-24-2008 at 07:19 PM.
Old 05-25-2008, 03:42 AM   #2
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 219

Original Poster
Rep: Reputation: 30
I found the problem. Fglrx changed with its own version of the same file, and renamed the original one as backup. I changed names in order to use the original library, and KDE starts (and everything GL-related) starts again.
Tha problem is DRI doesn't work anymore! The kernel module seems to be correctly loaded (lsmod reports both fglrx and agpgart), but the X log file reports some warnings and errors:
(EE) fglrx(0): [agp] unable to acquire AGP, error -1023
(EE) fglrx(0): cannot init AGP(EE) fglrx(0): atiddxDriScreenInit failed, GPS not been initialized.
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *
Can this be caused by the fact that it thinks to be using fglrx's
Anyways, if I use that library, nothing works (I can't even run glxinfo to see how things go).
Old 05-26-2008, 02:57 AM   #3
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 219

Original Poster
Rep: Reputation: 30
Module problem found. I had to recompile the fglrx kernel module.

But another problem arose (maybe I should create a more appropriate topic).

dmesg says:
dmesg | egrep -i (fglrx|agp)

Linux agpgart interface v0.103
agpgart: Detected an Intel 855PM Chipset.
agpgart: AGP aperture is 256M @ 0xe0000000
fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
[fglrx] Adapter chains initialized successfully!
[fglrx] CF object manager initialized successfully!
[fglrx]   vendor: 1002 device: 4e50 count: 1
[fglrx] Maximum main memory to use for locked dma buffers: 429 MBytes.
[fglrx] ASYNCIO init succeed!
[fglrx] PAT is enabled successfully!
[fglrx] module loaded - fglrx 8.49.7 [May 12 2008] with 1 minors
[fglrx] Internal AGP support requested, but kernel AGP support active.
[fglrx] Have to use kernel AGP support to avoid conflicts.
[fglrx] AGP detected, AgpState   = 0x1f000217 (hardware caps of chipset)agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode
[fglrx] AGP enabled,  AgpCommand = 0x1f000314 (selected caps)
[fglrx] Setup AGP aperture
[fglrx] GART Table is not in FRAME_BUFFER range
[fglrx] Reserved FB block: Shared offset:0, size:0
[fglrx] Reserved FB block: Unshared offset:3ff5000, size:0
[fglrx] interrupt source 20008000 successfully enabled
[fglrx] enable ID = 0x00000004
[fglrx] Receive enable interrupt message with irqEnableMask: 20008000
[fglrx] interrupt source 10000000 successfully enabled
[fglrx] enable ID = 0x00000005
[fglrx] Receive enable interrupt message with irqEnableMask: 10000000
which seems fine, doesn't it?

As for Xorg.0.log (some meaningful lines):

(II) fglrx(0): [agp] AGP protocol is enabled for graphics board. (cmd=0x1f000314)
(II) fglrx(0): [agp] graphics chipset has AGP v2.0
(II) fglrx(0): [pcie] 261120 kB allocated
(II) fglrx(0): [drm] DRM buffer queue setup: nbufs = 100 bufsize = 65536
(==) fglrx(0): UseFastTLS=0
(==) fglrx(0): BlockSignalsOnLock=1
(II) Loading extension ATIFGLRXDRI
(II) fglrx(0): doing DRIScreenInit
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenByBusid: Searching for BusID PCI:1:0:0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenByBusid: drmOpenMinor returns 6
drmOpenByBusid: drmGetBusid reports PCI:1:0:0
(II) fglrx(0): [drm] DRM interface version 1.0
(II) fglrx(0): [drm] created "fglrx" driver at busid "PCI:1:0:0"
(II) fglrx(0): [drm] added 8192 byte SAREA at 0x00002000
(II) fglrx(0): [drm] mapped SAREA 0x00002000 to 0xb80d2000
(II) fglrx(0): [drm] framebuffer handle = 0x00003000
(II) fglrx(0): [drm] added 1 reserved context for kernel
(II) fglrx(0): DRIScreenInit done
(II) fglrx(0): DRI initialization successfull!
(**) fglrx(0): DPMS enabled
(II) fglrx(0): Using XFree86 Acceleration Architecture (XAA)
(II) fglrx(0): Acceleration enabled
(WW) fglrx(0): Option "VendorName" is not used
(WW) fglrx(0): Option "ModelName" is not used
(II) fglrx(0): X context handle = 0x00000001
(II) fglrx(0): [DRI] installation complete
(II) fglrx(0): Direct rendering enabled
(==) fglrx(0): Silken mouse enabled
(==) fglrx(0): Using hardware cursor
Everything seems ok.

glxinfo | grep render

direct rendering: No
OpenGL renderer string: Mesa GLX Indirect
Why doesn't it enable direct rendering, if Xorg.0.log says "Direct rendering enabled"?

By the way, if I try to output a video to TV, the quality is quite bad. Is this related to direct rendering?
Old 05-26-2008, 09:51 AM   #4
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 219

Original Poster
Rep: Reputation: 30
I reverted everything back to how it was before installing the new kernel. DRI works again.

Anyway, I'd like to summarize what happened, in case the same problem happens to someone else or somebody find a solution.

I installed kernel version, and tried to install the ATI proprietary drivers, in order to enable DRI.
I downloaded the drivers (version 8.5, 2008-05-21 probably) and installed them.
At first, anything GL-related (KDE included) didn't start: " cannot handle TLS data". I found out that the driver installer had replaced the original (and working) with its own version of the library, which for me didn't work. So I put the original library back to its place, and KDE started again.
The fglrx module compiled and seemed to be working (Xorg.0.log reported "fglrx: Direct rendering enabled") but glxinfo reported "Direct rendering: No".
I tried to install an older version of the fglrx drivers, but they don't seem to compile with the new kernel.
So, I decided to go back to good old 2.6.19.

MAYBE everything would have worked if the installed by the driver had worked, i.e. if I had not got that TLS error.

P.S. TV output works again. I didn't think it depended on direct rendering.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mesa-libGL* with kmod-fglrx ?? Pango853 Linux - Hardware 0 12-28-2007 04:32 AM
Cyrus-imapd and TLS not working (cannot load ca data) vlad-the-emailer Linux - Server 1 08-17-2007 10:23 AM
How to handle a mb/cpu upgrade? Jukas Debian 4 11-25-2005 02:01 PM
Installation failed: file /usr/X11R6/lib/ from install of fglrx-glc22-4. witchy2k1 Linux - Newbie 13 01-25-2004 06:26 AM
LibGL no working after kernel upgrade. nidua18 Linux - Software 4 10-17-2003 10:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration