3D on Intel SandyBridge?

X.Org on FreeBSD installation & configuration.

Postby cpm » 27 Apr 2013, 14:25

Code: Select all
drmOpenDevice: node name is /dev/dri/card0
Failed to change owner or group for file /dev/dri! 2: No such file or directory
Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory
drmOpenDevice: open result is -1, (No such file or directory)
Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed


Problem seems that X looks for drm source in [FILE]card0[/FILE] but this node is not created under [FILE]/dev/dri[/FILE] directory.

Please, show following outputs [CMD]# ll /dev/dri[/CMD] and [CMD]# glxinfo | grep direct[/CMD]
cpm
Senior Member
 
Posts: 1370
Joined: 30 Jul 2011, 20:10

Postby YZMSQ » 27 Apr 2013, 14:57

cpu82 wrote:
Code: Select all
drmOpenDevice: node name is /dev/dri/card0
Failed to change owner or group for file /dev/dri! 2: No such file or directory
Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory
drmOpenDevice: open result is -1, (No such file or directory)
Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed


Problem seems that X looks for drm source in [FILE]card0[/FILE] but this node is not created under [FILE]/dev/dri[/FILE] directory.

Please, show following outputs [CMD]# ll /dev/dri[/CMD] and [CMD]# glxinfo | grep direct[/CMD]

Hi, thank you for your reply, your commands give me these outputs:
Code: Select all
justin@darkgeek.pts/2 ~ % ll /dev/dri
total 0
crw-rw----  1 root  wheel    0, 136  4 27 22:08 card0
justin@darkgeek.pts/2 ~ % glxinfo | grep direct
direct rendering: Yes

And what's more, there're also these lines in the [FILE]xorg.0.log[/FILE] which you might have missed:
Code: Select all
[    70.154] drmOpenByBusid: Searching for BusID pci:0000:00:02.0
[    70.154] drmOpenDevice: node name is /dev/dri/card0
[    70.155] drmOpenDevice: open result is 10, (OK)
We are all in the gutter, but some of us are looking at the stars.
Unix Toolbox: http://cb.vu/unixtoolbox.xhtml
User avatar
YZMSQ
Member
 
Posts: 218
Joined: 01 Nov 2010, 14:09
Location: Hangzhou,Zhejiang,PRC

Postby pkubaj » 27 Apr 2013, 17:44

I seem to have a similar issue:
[FILE]xorg.conf[/FILE]: http://pastebin.com/1pAB7c6T
[FILE]/var/log/Xorg.0.log[/FILE]: http://pastebin.com/AAxfLvuy
[FILE]/var/log/Xorg.1.log[/FILE]: http://pastebin.com/x3XcNfA4
Any ideas?
I use 10.0-CURRENT, but the same happened on 9.1-RELEASE.
pkubaj
Member
 
Posts: 405
Joined: 02 Jun 2010, 21:49

Postby cpm » 27 Apr 2013, 17:46

Try using this temporal workaround, use flag [FILE]LIBGL_ALWAYS_INDIRECT[/FILE] related to the Mesa 3D client-side OpenGL implementation, tells Mesa to ignore normal direct rendering and use instead indirect rendering.
Code: Select all
# setenv LIBGL_ALWAYS_INDIRECT 1


Then OpenGL is forced to use indirect rendering using an environment variable, meaning that all rendering commands are sent to the X server. However, the X server actually uses hardware accelerated rendering.
Code: Select all
# glxinfo | grep direct
direct rendering: No (LIBGL_ALWAYS_INDIRECT set)
# glxinfo | grep renderer
OpenGL renderer string: Mesa DRI R300 (RV350 4153) 20090101 AGP 4x x86/MMX/SSE2 TCL


Add to your [FILE].cshrc[/FILE]
Code: Select all
setenv LIBGL_ALWAYS_INDIRECT 1


Definitely, when the underlying issue is fixed, you will remove this flag environment variable. You will experience a low performance due to OpenGL is fast, and Mesa driver is slow.
cpm
Senior Member
 
Posts: 1370
Joined: 30 Jul 2011, 20:10

Postby cpm » 27 Apr 2013, 18:27

Take a look to Kosachenko's thread. Note that the patch included, solved the Sandy Bridge IRQ stalls.
cpm
Senior Member
 
Posts: 1370
Joined: 30 Jul 2011, 20:10

Postby pkubaj » 27 Apr 2013, 20:08

I forgot to add that when having run [CMD]glxinfo[/CMD], I get
Code: Select all
name of display: :0.0
Error: couldn't find RGB GLX visual or fbconfig
Error: couldn't find RGB GLX visual or fbconfig
pkubaj
Member
 
Posts: 405
Joined: 02 Jun 2010, 21:49

Postby YZMSQ » 28 Apr 2013, 15:19

cpu82 wrote:Try using this temporal workaround, use flag [FILE]LIBGL_ALWAYS_INDIRECT[/FILE] related to the Mesa 3D client-side OpenGL implementation, tells Mesa to ignore normal direct rendering and use instead indirect rendering.
Code: Select all
# setenv LIBGL_ALWAYS_INDIRECT 1


Then OpenGL is forced to use indirect rendering using an environment variable, meaning that all rendering commands are sent to the X server. However, the X server actually uses hardware accelerated rendering.
Code: Select all
# glxinfo | grep direct
direct rendering: No (LIBGL_ALWAYS_INDIRECT set)
# glxinfo | grep renderer
OpenGL renderer string: Mesa DRI R300 (RV350 4153) 20090101 AGP 4x x86/MMX/SSE2 TCL


Add to your [FILE].cshrc[/FILE]
Code: Select all
setenv LIBGL_ALWAYS_INDIRECT 1


Definitely, when the underlying issue is fixed, you will remove this flag environment variable. You will experience a low performance due to OpenGL is fast, and Mesa driver is slow.

With this variable set, my GPU has not hanged for a long time (3D and WebGL apps seem not able to run though).;)
We are all in the gutter, but some of us are looking at the stars.
Unix Toolbox: http://cb.vu/unixtoolbox.xhtml
User avatar
YZMSQ
Member
 
Posts: 218
Joined: 01 Nov 2010, 14:09
Location: Hangzhou,Zhejiang,PRC

Previous

Return to X.Org

Who is online

Users browsing this forum: No registered users and 2 guests