DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th September 2013
gmawby gmawby is offline
New User
 
Join Date: Sep 2013
Posts: 2
Thanked 0 Times in 0 Posts
Default glxgears @ 1FPS!

(moved from another thread)

Hi,
I'm depressed to read that folks think 300 FPS is poor, anything would be an improvement on 1FPS!

I've included information from the logs etc but I can't find any errors. DRI appears to be loaded so I've no idea why the low frame rate.

Messing about I changed the permissions on /dev/drm0 from
crw-rw---- to crw------- and performance improves.

sudo chmod g-rw /dev/drm0
$ glxgears
481 frames in 5.0 seconds = 95.993 FPS
479 frames in 5.0 seconds = 95.743 FPS
478 frames in 5.0 seconds = 95.471 FPS
481 frames in 5.0 seconds = 96.019 FPS

then change it back.
sudo chmod g+rw /dev/drm0
$ glxgears
9 frames in 6.0 seconds = 1.496 FPS
8 frames in 6.0 seconds = 1.333 FPS
7 frames in 6.0 seconds = 1.167 FPS


Information from logs etc
uname -a
OpenBSD hobnob.home 5.3 GENERIC.MP#62 amd64


glxinfo |grep renderer
OpenGL renderer string: Mesa DRI R600 (RV630 9581) TCL

dmesg | grep vga
vga1 at pci1 dev 0 function 0 "ATI Mobility Radeon HD 2600" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16

and from Xorg log.

[ 117.945] drmOpenDevice: node name is /dev/drm0
[ 117.947] drmOpenDevice: open result is 10, (OK)
[ 117.949] drmOpenByBusid: Searching for BusID pci:0000:01:00.0
[ 117.949] drmOpenDevice: node name is /dev/drm0
[ 117.951] drmOpenDevice: open result is 10, (OK)
[ 117.951] drmOpenByBusid: drmOpenMinor returns 10
[ 117.951] drmOpenByBusid: Interface 1.4 failed, trying 1.1
[ 117.951] drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
[ 117.953] (II) RADEON(0): [dri] Found DRI library version 1.3.0 and kernel module version 1.31.0

[ 117.770] (II) LoadModule: "glx"
[ 117.771] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[ 117.791] (II) Module glx: vendor="X.Org Foundation"
[ 117.791] compiled for 1.12.3, module version = 1.0.0
[ 117.791] ABI class: X.Org Server Extension, version 6.0
[ 117.792] (==) AIGLX enabled
[ 117.792] (II) Loading extension GLX
[ 117.792] (II) LoadModule: "record"
[ 117.793] (II) Loading /usr/X11R6/lib/modules/extensions/librecord.so
[ 117.793] (II) Module record: vendor="X.Org Foundation"
[ 117.793] compiled for 1.12.3, module version = 1.13.0
[ 117.793] Module class: X.Org Server Extension
[ 117.793] ABI class: X.Org Server Extension, version 6.0
[ 117.794] (II) Loading extension RECORD
[ 117.794] (II) LoadModule: "dri"
[ 117.794] (II) Loading /usr/X11R6/lib/modules/extensions/libdri.so
[ 117.816] (II) Module dri: vendor="X.Org Foundation"
[ 117.816] compiled for 1.12.3, module version = 1.0.0
[ 117.816] ABI class: X.Org Server Extension, version 6.0
[ 117.816] (II) Loading extension XFree86-DRI
[ 117.817] (II) LoadModule: "dri2"
[ 117.817] (II) Loading /usr/X11R6/lib/modules/extensions/libdri2.so
[ 117.818] (II) Module dri2: vendor="X.Org Foundation"

and I can see no errors in the Xorg Log.

Any help appreciated.

Glenn,
Sydney Aus
Reply With Quote
  #2   (View Single Post)  
Old 12th September 2013
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 330
Thanked 9 Times in 9 Posts
Default

http://marc.info/?l=openbsd-misc&m=135063765901253&w=2

Long story short, the work to make r600 chipsets' interrupt polling work hasn't been done yet.
__________________
Linux Admin by Profession. OpenBSD user by choice.
Reply With Quote
  #3   (View Single Post)  
Old 12th September 2013
gmawby gmawby is offline
New User
 
Join Date: Sep 2013
Posts: 2
Thanked 0 Times in 0 Posts
Default

Rocket357,

I created /etc/drirc and copied in the code from the link. I'm astonished! Thank you.

glxgears
IRQ's not enabled, falling back to busy waits: 0 10
3741 frames in 5.0 seconds = 748.191 FPS
3745 frames in 5.0 seconds = 748.883 FPS
3739 frames in 5.0 seconds = 747.655 FPS
3745 frames in 5.0 seconds = 748.852 FPS
Reply With Quote
  #4   (View Single Post)  
Old 20th September 2013
angryfirelord angryfirelord is offline
Port Guard
 
Join Date: Jul 2008
Posts: 20
Thanked 0 Times in 0 Posts
Default

KMS support for the radeon cards has been pulled into 5.4-CURRENT for at least a month now, so you should have pretty good 3D support in OpenBSD 5.4.
Reply With Quote
  #5   (View Single Post)  
Old 18th October 2013
virtuvoos virtuvoos is offline
Port Guard
 
Join Date: Oct 2013
Posts: 28
Thanked 0 Times in 0 Posts
Default

I don't know if it is relevant for your hardware(hd6310)/problem but I can second angryfirelord's suggestion on better support. I just upgraded from 5.3 to 5.4-CURRENT because I was having issues with hardware acceleration in X. See this thread. Now I'm running -current and everything worked out of the box.
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 08:37 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