LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-24-2008, 06:13 PM   #1
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 217

Rep: Reputation: 30
After fglrx upgrade => libGL.so.1: cannot handle TLS data


Hello!
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 2.6.25.4. 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:
libGL.so.1: 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 06:19 PM.
 
Old 05-25-2008, 02:42 AM   #2
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 217

Original Poster
Rep: Reputation: 30
I found the problem. Fglrx changed libGL.so.1.2 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:
Code:
(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 libGL.so?
Anyways, if I use that library, nothing works (I can't even run glxinfo to see how things go).
 
Old 05-26-2008, 01:57 AM   #3
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 217

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:
Code:
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):

Code:
(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.

BUT:
Code:
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, 08:51 AM   #4
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 217

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 2.6.25.4, 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: "libGL.so.1: cannot handle TLS data". I found out that the driver installer had replaced the original (and working) libGL.so.1.2 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 libGL.so.1.2 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.
 
  


Reply


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 03:32 AM
Cyrus-imapd and TLS not working (cannot load ca data) vlad-the-emailer Linux - Server 1 08-17-2007 09:23 AM
How to handle a mb/cpu upgrade? Jukas Debian 4 11-25-2005 01:01 PM
Installation failed: file /usr/X11R6/lib/libGL.so.1.2 from install of fglrx-glc22-4. witchy2k1 Linux - Newbie 13 01-25-2004 05:26 AM
LibGL no working after kernel upgrade. nidua18 Linux - Software 4 10-17-2003 09:23 PM


All times are GMT -5. The time now is 09:56 PM.

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