You are not logged in.

#1 2009-12-22 10:50:44

jose1711
Member
Registered: 2006-07-08
Posts: 144

segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

hello, i switched to testing yesterday and since then glxgears, glxinfo (!), WorldOfGoo, googleearth, well.. pretty much all openGL programs i tried terminated with segfault. i am using kms (and do not plan to turn it off due to huge performance hit) and RV250 - ati mobility radeon 9000 graphic card.

anyone experiences similar behaviour?

joe

Offline

#2 2009-12-22 11:49:04

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

did you read the arch-dev mailing list?

here's a relevant quote

---
Radeon kms is still buggy like hell and unusable for my RC410 [Radeon
Xpress 200M] card. It makes X and the whole system freeze instantly when
moving windows around or when I try to start 3d apps. Sometimes even
at Xorg start at all. This has been introduced with 2.6.32
kernels. Upstream recommends to try the various drm trees:

http://article.gmane.org/gmane.comp.vid … evel/40626

Any opinions from other ati users what branch is the most stable and
useful these days? I'm thinking about adding a radeon-drm kernel module
package to solve the tons of speed and stability issues.

As already written on the closed devel list, I'd like to get help for
these packages from other devs and community members. Whoever is well
informed in Xorg/kernel drm development and wants to help to stabilize
our drivers please contact me.

it seems it will take a bit of time for ati kms to stabilize.

Offline

#3 2009-12-22 12:26:23

spookyln
Member
From: Czech Rep
Registered: 2009-02-10
Posts: 39

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

its not KMS.
its libdrm problem. try downgrade.

Offline

#4 2009-12-22 16:21:51

jose1711
Member
Registered: 2006-07-08
Posts: 144

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

thanks, that helped (xf86-video-ati 6.12.99.git20091221-1 -> 6.12.99.git20091014-1)

Offline

#5 2009-12-22 20:46:48

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

Actually I posted here too: http://bbs.archlinux.org/viewtopic.php? … 20#p675620 smile
So anyone who needs it:
http://omploader.org/vMzF4Mg
Last working version afaik (libdrm-git 20091219-1)


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

#6 2009-12-22 21:15:40

jose1711
Member
Registered: 2006-07-08
Posts: 144

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

ok no more segfaults now but the performance is really poor. i guess it's because of

[dri] radeon kernel module version is 2.0.0 but version 1.8.0 or newer is needed.
[dri] Disabling DRI.

but what do i do now?

Offline

#7 2009-12-22 23:03:05

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

Seems like the newest update renders kms a little unusable.
I've stumble uppon this too ....

I've found something like this:

apexo: [dri] radeon.o kernel module version is 2.0.0 but version 1.17.0 or newer is needed.
apexo: [dri] Disabling DRI.
apexo: mh. found in Xorg.0.log ...
apexo: that's with xf86-video-ati from git
airlied: apexo: you need to build libdrm with --enable-radeon-experimental-api

But there are other solutions to similar problems that point to rebuilding mesa ... I guess I'll look into the pkgbuilds and try to figure it out.

Edit:
Look here http://repos.archlinux.org/wsvn/package … ra-x86_64/ it seems it really is the case, I'll try to rebuild it and I'll edit this again and post if it works for me.

Edit2:
It seems libdrm needs to be recompiled with --enable-radeon-experimental-api and a new driver is needed. For the driver go here http://aur.archlinux.org/packages.php?ID=15374 and just build it as is and install it (remove xf86-video-ati first).

For libdrm download COPYING and no-pthread-stubs.patch from the link above _but_ use this PKGBUILD (the one on the link is not 100% correct):

# $Id: PKGBUILD 61726 2009-12-22 16:03:19Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libdrm
pkgver=2.4.17
pkgrel=2
pkgdesc="Userspace interface to kernel DRM services"
arch=(i686 x86_64)
license=('custom')
depends=('glibc')
options=('!libtool')
url="http://dri.freedesktop.org/"
source=(http://dri.freedesktop.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2
        no-pthread-stubs.patch
        COPYING)
md5sums=('667d81f993f7fd8a1b1b1b830a28a748'
         '9b5ec3bbebe86921e2057694c42f65b8'
         'ba65e71c481b94ef0fb6c23c7f21ffa1')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i "${srcdir}/no-pthread-stubs.patch" || return 1
  libtoolize --force || return 1
  aclocal || return 1
  autoconf || return 1
  automake || return 1
  ./configure --prefix=/usr \
      --enable-nouveau-experimental-api \
      --enable-radeon-experimental-api \
      --enable-udev || return 1

  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
}

Build libdrm and install. I rebooted the machine and everything seems to be working, I have dri and xv working (or so xdriinfo and xvinfo say).

At least glxgears runs without problems but I have no 3D acceleration (R600) but at least I have KMS tongue which fixes a nasty bug with audacity.

Last edited by R00KIE (2009-12-22 23:30:42)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#8 2009-12-23 21:45:50

jose1711
Member
Registered: 2006-07-08
Posts: 144

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

hello, i followed your steps now i got

(EE) RADEON(0): [dri] RADEONDRIGetVersion failed because of a version mismatch.
[dri] This chipset requires a kernel module version of 1.8.0,
[dri] but the kernel reports a version of 2.0.0.[dri] If using legacy modesetting, upgrade your kernel.
[dri] If using kernel modesetting, make sure your module is
[dri] loaded prior to starting X, and that this driver was built
[dri] with support for KMS.
[dri] Disabling DRI.

Offline

#9 2009-12-27 06:29:03

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

jose, did you put "radeon" into rc.conf?

Offline

#10 2009-12-27 09:21:43

jose1711
Member
Registered: 2006-07-08
Posts: 144

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

yup, it's in the MODULES section

Offline

#11 2009-12-27 12:25:27

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: segfaults of openGL apps with xf86-video-ati 6.12.99.git20091221

KMS doesn't work for me with the latest kernel in [testing] so that may be your problem.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB