DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th May 2008
harisman's Avatar
harisman harisman is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Hellas (Greece)
Posts: 66
Thanked 5 Times in 4 Posts
Default ATI DRI problems

Hi to all

I have an AMD64 laptop with the Ati 9600 mobility.
The glxinfo from compat linux, reports me:

libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
..
..
..
..

The dri troubleshooting guide didn't help me


The below apply:
112:haris@titan:~% uname -rps
FreeBSD 7.0-RELEASE-p1 amd64

111:haris@titan:~% dmesg -a |egrep -i 'drm|agp|radeon'
agp0: <VIA 8385 host to PCI bridge> on hostb0
drm0: <ATI Radeon RV350 Mobility 9600 M10 NP> on vgapci0
info: [drm] AGP at 0xe0000000 256MB
info: [drm] Initialized radeon 1.25.0 20060524
info: [drm] Setting GART location based on new memory map
info: [drm] Loading R300 Microcode
info: [drm] writeback test succeeded in 1 usecs
drm0: [ITHREAD]

115:haris@titan:~% ls -l /dev/dri/card0
crw-rw-rw- 1 root wheel 0, 112 May 10 12:07 /dev/dri/card0

xorg.conf snippet:
..
..
Load "dri"
Load "glx"
Load "glcore"
..
..
Section "Device"
Identifier "** ATI Radeon (generic) [radeon]"
Driver "radeon"
VideoRam 65536
Option "AGPMode" "4"
Option "EnablePageFlip" "true"
Option "EnableDepthMoves" "true"
Option "RenderAccel" "true"
Option "DynamicClocks" "true"
EndSection
...
...
DefaultDepth 24
..
..
Section "DRI"
Mode 0666
EndSection

Section "Extensions"
Option "Composite" "Disable"
Option "Render" "Enable"
EndSection

Some related installed ports:
xorg-7.3_1
dri-7.0.1,2
xdriinfo-1.0.2
xorg-drivers-7.3_1
xf86driproto-2.0.3
linux_base-fc-4_13

Any ideas?

Last edited by harisman; 10th May 2008 at 09:49 AM.
Reply With Quote
  #2   (View Single Post)  
Old 10th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Can you show us your /var/log/Xorg.0.log file? Please attach it to a post here.

Adam
Reply With Quote
  #3   (View Single Post)  
Old 10th May 2008
harisman's Avatar
harisman harisman is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Hellas (Greece)
Posts: 66
Thanked 5 Times in 4 Posts
Default

I have attached the Xorg.0.log

Thank you
Attached Files
File Type: gz Xorg.0.log.gz (8.9 KB, 8 views)
Reply With Quote
  #4   (View Single Post)  
Old 10th May 2008
Nirbo Nirbo is offline
Real Name: Nicholas Kirby
Fdisk Soldier
 
Join Date: May 2008
Location: Edmonton, Alberta, Canada
Posts: 68
Thanked 11 Times in 9 Posts
Default

Correct me if I'm wrong, but direct rendering has never worked on the radeon driver past the 9200 series (I was lucky enough to have a 9200 at the time).

Unless there are new drivers I'm not familiar with, and that is more than possible, you might be out of luck.

I haven't played with X in probably half a year... I hope they've been able to improve on the driver, but I don't know anything about it myself.
Reply With Quote
  #5   (View Single Post)  
Old 10th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

The person who wrote this about getting it working had a 9600. I don't know how it applies to current FreeBSD releases and X.Org 7.3 but PC-BSD later integrated much of it into their setup.


I've used FreeBSD, PC-BSD, and OpenBSD on nVidia, ATI, and Matrox cards without any major problems but my needs can generally be met by the vesa driver .
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.

Last edited by TerryP; 10th May 2008 at 05:18 PM. Reason: typo
Reply With Quote
  #6   (View Single Post)  
Old 10th May 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

AFAIK, AMD/ATI cards now should use the radeonhd driver, while every non-AMD cards have been merged into the ati driver.
__________________
da more I know I know I know nuttin'
Reply With Quote
  #7   (View Single Post)  
Old 10th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

radeonhd is for the newer R5xx and R6xx based cards and lacks good 3D support. They rolled the radeon driver into the ati driver or vice versa for more normal (old) ATI/AMD and Radeon cards.

They are working on improving it, but afaik otherwise it's only good for 2D...

It could be worse, we could be stuck with Intel graphics !
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #8   (View Single Post)  
Old 10th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Quote:
Originally Posted by lvlamb View Post
AFAIK, AMD/ATI cards now should use the radeonhd driver, while every non-AMD cards have been merged into the ati driver.
That is not correct. The 'ati' driver is simply a wrapper that loads the correct driver for nearly any ATI card.

Adam
Reply With Quote
  #9   (View Single Post)  
Old 10th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Quote:
Originally Posted by Nirbo View Post
Correct me if I'm wrong, but direct rendering has never worked on the radeon driver past the 9200 series (I was lucky enough to have a 9200 at the time).
All cards up to and including the radeon x850 are supported by the open source driver. Even, as of just a few days ago, the Xpress chipsets work.

Adam
Reply With Quote
Old 10th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Well the X server has enabled direct rendering, which means that it's not working due to a problem with the libGL.so.1 library or the r300_dri.so driver.

Does the glxinfo from mesa-demos (*not* the linux compat version) show that you have direct rendering? Did you also install the linux_dri port?

Adam
Reply With Quote
Old 11th May 2008
harisman's Avatar
harisman harisman is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Hellas (Greece)
Posts: 66
Thanked 5 Times in 4 Posts
Default

I have installed mesa-demos and I have attached the output of the native glxinfo. I think that the results are ok.

I have concluded that his problem appears to be compat-linux specific.. For some reason - that I cannot understand - glxinfo from linux-compat (and all other linux applications as well ,including googleearth) cannot access /dev/dri/card0 ..
Attached Files
File Type: gz glxinfo.out.gz (1.2 KB, 5 views)

Last edited by harisman; 11th May 2008 at 06:35 AM.
Reply With Quote
Old 11th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

As I asked previously, do you have the linux_dri port installed? If you do, run:

LIBGL_DEBUG=1 /compat/linux/usr/X11R6/bin/glxinfo

And show us the results of that command.

Adam
Reply With Quote
Old 11th May 2008
harisman's Avatar
harisman harisman is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Hellas (Greece)
Posts: 66
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by adamk View Post
As I asked previously, do you have the linux_dri port installed? If you do, run:

LIBGL_DEBUG=1 /compat/linux/usr/X11R6/bin/glxinfo

And show us the results of that command.

Adam
Yes (it is mentioned on my first port)

Please find attached the complete output of linux glxinfo with the debug info enabled.

Thanks
Attached Files
File Type: gz glxinfo.out.gz (1.3 KB, 5 views)
Reply With Quote
Old 11th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Quote:
Originally Posted by harisman View Post
Yes (it is mentioned on my first port)
No, it's not mentioned.. This is your list:

xorg-7.3_1
dri-7.0.1,2
xdriinfo-1.0.2
xorg-drivers-7.3_1
xf86driproto-2.0.3
linux_base-fc-4_13

linux_dri is not listed there :-)

If you are sure it's installed, I'm not sure of the problem, then... Based on the "Operation not permitted" error, I would have guessed that your DRI mode in /etc/X11/xorg.conf was too restrictive, but that's clearly not the case based on your post.

Do you make out any better if you install the linux_dri-devel port instead of linux-dri? I believe the -devel port is actually older, but it'd be interesting to see if it works.

Adam
Reply With Quote
Old 11th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Sorry. I finally see the problem... I'm amazed it took me this long.

FreeBSD/AMD64 does not support linux compatibility. If you want to run linux apps, you would need to use FreeBSD/i386.
Reply With Quote
Old 11th May 2008
harisman's Avatar
harisman harisman is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Hellas (Greece)
Posts: 66
Thanked 5 Times in 4 Posts
Default

Quote:
No, it's not mentioned.. This is your list:

xorg-7.3_1
dri-7.0.1,2
xdriinfo-1.0.2
xorg-drivers-7.3_1
xf86driproto-2.0.3
linux_base-fc-4_13

linux_dri is not listed there :-)
Sorry my bad I had listed the native dri , not the linux one (linux_dri-7.0)

I tried the devel port, but it is only for i386 arch

I think this is time to do some PR's .....
Reply With Quote
Old 11th May 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Quote:
Originally Posted by harisman View Post
Sorry my bad I had listed the native dri , not the linux one (linux_dri-7.0)

I tried the devel port, but it is only for i386 arch

I think this is time to do some PR's .....
To my knowledge, as I said above, I don't believe the AMD64 version of FreeBSD supports linux compat (for either the 32bit version of linux or amd64 version)... I'd love to be proven wrong, though :-)

Adam
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick