LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-10-2004, 07:50 AM   #1
g-rom
LQ Newbie
 
Registered: May 2004
Distribution: debian unstable
Posts: 3

Rep: Reputation: 0
ATI Proprietary Drivers (Radeon 9700) correctly installed but no 3D acceleration


I believe I have successfully installed the fglrx kernel module, loaded the agp_gart module,
configured XWindow (4.3) with fglrxconfig. The XFree86 log file shows :

(II) fglrx(0): driver needs XFree86 version: 4.3.x
(II) fglrx(0): detected XFree86 version: 4.3.0
(II) Loading extension ATIFGLRXDRI
(II) fglrx(0): doing DRIScreenInit
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmGetBusid returned ''
(II) fglrx(0): [drm] created "fglrx" driver at busid "PCI:1:0:0"
(II) fglrx(0): [drm] added 8192 byte SAREA at 0xe0a0e000
(II) fglrx(0): [drm] mapped SAREA 0xe0a0e000 to 0x40243000
(II) fglrx(0): [drm] framebuffer handle = 0xf0000000
(II) fglrx(0): [drm] added 1 reserved context for kernel
(II) fglrx(0): DRIScreenInit done
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0): Name: fglrx
(II) fglrx(0): Version: 3.7.6
(II) fglrx(0): Date: Mar 5 2004
(II) fglrx(0): Desc: ATI Fire GL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0): Build-Kernel UTS_RELEASE: 2.6.5
(II) fglrx(0): Build-Kernel MODVERSIONS: no
(II) fglrx(0): Build-Kernel __SMP__: no
(II) fglrx(0): Build-Kernel PAGE_SIZE: 0x1000
(II) fglrx(0): [drm] register handle = 0xff8f0000
(II) fglrx(0): [agp] Mode=0x1f000217 bridge: 0x8086/0x2560
(II) fglrx(0): [agp] AGP v1/2 disable mask 0x00000000
(II) fglrx(0): [agp] AGP v3 disable mask 0x00000000
(II) fglrx(0): [agp] enabling AGP with mode=0x1f000314
(II) fglrx(0): [agp] AGP protocoll is enabled for grafics board. (cmd=0x1f000314)
(II) fglrx(0): [agp] grafics chipset has AGP v2.0
(II) fglrx(0): [drm] ringbuffer size = 0x00100000 bytes
(II) fglrx(0): [drm] DRM buffer queue setup: nbufs = 100 bufsize = 28672
(II) fglrx(0): [drm] texture shared area handle = 0xe8bc0000
(II) fglrx(0): shared FSAAScale=1
(II) fglrx(0): DRI initialization successfull!

and :

(II) fglrx(0): Acceleration enabled
(II) fglrx(0): X context handle = 0x00000001
(II) fglrx(0): [DRI] installation complete
(II) fglrx(0): Direct rendering enabled


However, when I try to start an OpenGL application, I receive strange error messages. For example, with glxinfo :

jerome@cubitus:~$ glxinfo
name of display: :0.0
[fglrx] API ERROR: could not register entrypoint for DrawRangeElementsEXT
[fglrx] API ERROR: could not register entrypoint for MultiDrawArraysEXT
[fglrx] API ERROR: could not register entrypoint for MultiDrawElementsEXT
[fglrx] API ERROR: could not register entrypoint for WindowPos2dARB
[fglrx] API ERROR: could not register entrypoint for WindowPos2fARB
[fglrx] API ERROR: could not register entrypoint for WindowPos2iARB
[fglrx] API ERROR: could not register entrypoint for WindowPos2sARB
[fglrx] API ERROR: could not register entrypoint for WindowPos2ivARB
[fglrx] API ERROR: could not register entrypoint for WindowPos2svARB
[fglrx] API ERROR: could not register entrypoint for WindowPos2fvARB
[fglrx] API ERROR: could not register entrypoint for WindowPos2dvARB
[fglrx] API ERROR: could not register entrypoint for WindowPos3iARB
[fglrx] API ERROR: could not register entrypoint for WindowPos3sARB
[fglrx] API ERROR: could not register entrypoint for WindowPos3fARB
[fglrx] API ERROR: could not register entrypoint for WindowPos3dARB
[fglrx] API ERROR: could not register entrypoint for WindowPos3ivARB
[fglrx] API ERROR: could not register entrypoint for WindowPos3svARB
[fglrx] API ERROR: could not register entrypoint for WindowPos3fvARB
[fglrx] API ERROR: could not register entrypoint for WindowPos3dvARB
[fglrx] API ERROR: could not register entrypoint for PointParameterfARB
[fglrx] API ERROR: could not register entrypoint for PointParameterfvARB


It looks like the application is requesting unavailable functions from the fglrx kernel module. It is not an access rights problem (I've the same problem when logged as root).

My linux kernel is 2.6.5 (recompiled debian source), I use the kernel agpgart module, lsmod shows :
fglrx 205700 7
intel_agp 15772 1
agpgart 27432 2 intel_agp

I am using Debian unstable.
fglrx : 3.7.6

XWindow is using the DRI capabilities :

cubitus:/proc/dri/0# ls -l
total 0
-r--r--r-- 1 root root 0 2004-05-10 14:44 clients
-r--r--r-- 1 root root 0 2004-05-10 14:44 lock
-r--r--r-- 1 root root 0 2004-05-10 14:44 mem
-r--r--r-- 1 root root 0 2004-05-10 14:44 mem1
-r--r--r-- 1 root root 0 2004-05-10 14:44 name
-r--r--r-- 1 root root 0 2004-05-10 14:44 umm
-r--r--r-- 1 root root 0 2004-05-10 14:44 vm
-r--r--r-- 1 root root 0 2004-05-10 14:44 vma
cubitus:/proc/dri/0# cat clients
a dev pid uid magic ioctls context

n 0 2767 0 0 13767 0x00000001
cubitus:/proc/dri/0# ps auwx | grep 2767
root 2767 10.5 7.1 51396 36728 ? SL 12:46 12:23 /usr/X11R6/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
root 3381 0.0 0.1 2276 760 pts/11 R+ 14:44 0:00 grep 2767
 
Old 05-10-2004, 10:11 AM   #2
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
AFAIK ATI drivers don't support 2.6 kernel.
 
Old 05-10-2004, 10:59 AM   #3
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,037

Rep: Reputation: 54
I think there's a patch for 2.6.x kernel series (i'm quite sure)
 
Old 05-10-2004, 11:05 AM   #4
g-rom
LQ Newbie
 
Registered: May 2004
Distribution: debian unstable
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your reply, but they seem to support 2.6.x

from /lib/modules/fglrx/build_mod/make.log :

patching 'highmem.h'...
skipping patch for 'drmP.h', not needed
skipping patch for 'drm_os_linux.h', not needed
assuming new VMA API since we do have kernel 2.6.x...
def_vma_api_version=-DFGL_LINUX253P1_VMA_API
doing Makefile based build for kernel 2.6.x and higher
make -C /lib/modules/2.6.5/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: entrant dans le répertoire « /usr/src/kernel-source-2.6.5 »

and later :

LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.o
Building modules, stage 2.
MODPOST
CC /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
LD [M] /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
make[1]: quittant le répertoire « /usr/src/kernel-source-2.6.5 »
build succeeded with return value 0

The module loads and unloads succesfully. Is there a special problem ? I didn't see that in the ATI documentation.

Moreover If I remember correctly I had the same problem with 2.4.21.
 
Old 05-10-2004, 02:06 PM   #5
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
then maybe you've got some problems with libdri.a
When I had an ATI card, I couldn't enable 3d because I had wrong libdri version. Also you should install the XFree86-GLX package.
btw. What does ATI Control report?
 
Old 05-11-2004, 05:59 AM   #6
g-rom
LQ Newbie
 
Registered: May 2004
Distribution: debian unstable
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

My libdri.a comes from debian package "xfree86-xserver". So it is probably the appropriate version.

ATI Control reports :

Transfer Mode : AGP 4x, SBA, FW

Driver version : 3.07.06

OpenGL vendor unavailable
OpenGL renderer unavailable
OpenGL version unavailable

I installed all xlibmesa related packages ( dri, gl, glu support).

Okay, I just found the problem :

cubitus:/usr/X11R6/lib# ls -l libGL.so*
lrwxrwxrwx 1 root root 12 2004-05-11 00:46 libGL.so -> libGL.so.1.2
lrwxrwxrwx 1 root root 40 2004-05-11 00:47 libGL.so.1 -> libGL.so.1.2.orig.xlibmesa-gl1-dri-trunk
-rwxr-xr-x 1 root root 798806 2004-03-06 02:23 libGL.so.1.2
-rw-r--r-- 1 root root 462896 2003-09-13 20:17 libGL.so.1.2.orig.xlibmesa-gl1-dri-trunk
cubitus:/usr/X11R6/lib# ln -sf libGL.so.1.2 libGL.so.1
cubitus:/usr/X11R6/lib# ls -l libGL.so*
lrwxrwxrwx 1 root root 12 2004-05-11 00:46 libGL.so -> libGL.so.1.2
lrwxrwxrwx 1 root root 12 2004-05-11 12:54 libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 798806 2004-03-06 02:23 libGL.so.1.2
-rw-r--r-- 1 root root 462896 2003-09-13 20:17
libGL.so.1.2.orig.xlibmesa-gl1-dri-trunk

The problem was this symlink from libGL.so.1 to libGL.so.1.2.orig.xlibmesa-gl1-dri-trunk
I think this file came from an old attempt to get working the xfree86 dri, prior to downloading the ATI drivers.

Now I have :

cubitus:/usr/X11R6/lib# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9700 Generic
OpenGL version string: 1.3 (X4.3.0-3.7.6)


And it does work !

Thanks for you messages. I thought to check these things when you asked about ATI Control.
 
  


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
ATI (not hw acceleration!) radeon 9700 mimithebrain Linux - Hardware 4 11-05-2005 12:56 PM
ATI 9700 Radeon AIW 3d Acceleration Sako73 Linux - Hardware 0 11-29-2004 10:14 AM
[Debian (Knoppix)] ATI Radeon Mobility 9600 Proprietary Drivers? Do they work? false-hopes Linux - Laptop and Netbook 0 08-22-2004 11:19 PM
ATI radeon 9700 drivers zygor Linux - Hardware 12 05-25-2003 07:08 PM
ati radeon 9700 pro drivers || slackware 9 centr0 Linux - Newbie 6 04-15-2003 06:09 PM


All times are GMT -5. The time now is 11:17 AM.

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