Results 1 to 6 of 6

Thread: Segfault with r6xx-r7xx-support drm

  1. #1
    Join Date
    Mar 2008
    Posts
    6

    Default Segfault with r6xx-r7xx-support drm

    I have been using the radeon and r6xx-r7xx-support drm on Archlinux 32bit without problems.

    Yesterday i installed Arch64 and installed xf86-video-ati and r6xx-r7xx-support drm using these packages:
    http://aur.archlinux.org/packages.php?ID=24235
    http://aur.archlinux.org/packages.php?ID=15374

    When i run startx i get a black screen and i have to use the reset button.
    This is the last messages in the log:
    Code:
    Apr 20 08:52:59 per kernel: [drm] Initialized drm 1.1.0 20060810
    Apr 20 08:52:59 per kernel: pci 0000:01:05.0: BAR 0: can't reserve mem region [0xd0000000-0xdfffffff]
    Apr 20 08:52:59 per kernel: pci 0000:01:05.0: setting latency timer to 64
    Apr 20 08:52:59 per kernel: [drm] Initialized radeon 1.29.0 20080613 on minor 0
    Apr 20 08:52:59 per kernel: [drm] Used old pci detect: framebuffer loaded
    Apr 20 08:52:59 per kernel: [drm] Setting GART location based on new memory map
    Apr 20 08:52:59 per kernel: [drm] Loading RS780 Microcode
    Apr 20 08:52:59 per kernel: [drm] Resetting GPU
    Apr 20 08:52:59 per kernel: [drm] writeback test succeeded in 1 usecs
    Apr 20 08:53:00 per kernel: X[5835]: segfault at 7ff0722de02b ip 00007ff0722de02b sp 00007fffab622b00 error 14 in card0[7ff08d264000+200000]
    Apr 20 08:53:00 per kernel: [drm] Resetting GPU
    Apr 20 08:53:00 per kernel: udevd[5861]: segfault at 4011cc ip 00007fb056071ef7 sp 00007fff5e283058 error 7 in ld-2.9.so[7fb056069000+1d000]
    Apr 20 08:53:00 per kernel: udevd[5863]: segfault at 4011cc ip 00007fb056071ef7 sp 00007fff5e283058 error 7 in ld-2.9.so[7fb056069000+1d000]
    Apr 20 08:53:01 per kernel: hald-addon-stor[5766]: segfault at 400f09 ip 00007f0e9b69def7 sp 00007fffa38b12f8 error 7 in ld-2.9.so[7f0e9b695000+1d000]
    Apr 20 08:53:01 per kernel: hald-runner[5624]: segfault at 400de7 ip 00007f0166c95ef7 sp 00007fff6eea87d8 error 7 in ld-2.9.so[7f0166c8d000+1d000]
    Apr 20 08:53:01 per kernel: hald[5620]: segfault at 403993 ip 00007f31d8ee3ef7 sp 00007fffe10f7858 error 7 in ld-2.9.so[7f31d8edb000+1d000]
    Apr 20 08:53:01 per kernel: hald-addon-cpuf[5767]: segfault at 7f956574d634 ip 00007f9565b84ef7 sp 00007fff6dd98018 error 7 in ld-2.9.so[7f9565b7c000+1d000]
    Apr 20 08:53:01 per kernel: hald-addon-inpu[5715]: segfault at 7f59ea3f160e ip 00007f59eaa65ef7 sp 00007ffff2c78378 error 7 in ld-2.9.so[7f59eaa5d000+1d000]
    Apr 20 08:53:14 per kernel: xinit[5834]: segfault at 4009c9 ip 00007ff6bc164ef7 sp 00007fffc4376838 error 7 in ld-2.9.so[7ff6bc15c000+1d000]
    Apr 20 08:53:14 per kernel: startx[5818]: segfault at 40ec8a ip 00007f161d057ef7 sp 00007fff2526b498 error 7 in ld-2.9.so[7f161d04f000+1d000]
    I am using a radeon HD3200 card with Archlinux 64bit, kernel 2.6.29 and xorg-server 1.6.1

    If i remove the r6xx-r7xx-support drm modules everything works.
    Anyone know what could be the problem?

    Edit:
    I found the problem. It was an option i the bios where i could choose "IGX framebuffer location" above or below 4G. I changed it to "below 4G" and now it works as it used to. I guess its something wrong with my hardware.
    Last edited by Pitmairen; 04-21-2009 at 03:49 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago, Illinois
    Posts
    36

    Default

    r6xx-r7xx support is pretty much dead now. You should try the r6xx-rewrite branch with agd5f's r6xx-r7xx 3d DRM modules.

  3. #3
    Join Date
    Oct 2007
    Location
    Toronto-ish
    Posts
    7,574

    Default

    I think Pitmairen may have been talking about the r6xx-r7xx-support branch of drm, not mesa. There have been some reported problems with the drm branch and 2.6.29+ since the fdo drm isn't really tracking the kernel drm tree these days.

    AFAIK the devs are recommending that users pick up a current 2.6.30 kernel which also has support for 6xx/7xx EXA and XV acceleration (but not for 6xx/7xx 3D acceleration, that's still in an agd5f/drm branch right now).

    One of the consequences moving from user modesetting to kernel modesetting is that picking up a new kernel is going to become an important part of getting open source driver support for the latest graphics hardware.
    Last edited by bridgman; 06-05-2009 at 05:20 PM.

  4. #4
    Join Date
    Jan 2008
    Posts
    195

    Default

    I'm a little confused. In my git pull of drm, using "master" there is still no support for r600. I only get r600 support if I checkout the r6xx-r7xx-support branch. I thought this branch was already merged into the master? The r6xx-r7xx-support branch is several months old here, the last commit I have in it is 0101127af on April 6. Did I miss something?

  5. #5
    Join Date
    Oct 2007
    Location
    Toronto-ish
    Posts
    7,574

    Default

    Neither of those branches is correct

    You want the r6xx-r7xx-3d branch of agd5f's drm repository :

    Building libdrm and radeon and drm kernel modules from git:

    1. git clone git://anongit.freedesktop.org/~agd5f/drm

    2. cd drm

    3. git checkout -b r6xx-r7xx-3d origin/r6xx-r7xx-3d

    4. ./autogen.sh --prefix=/usr

    5. make

    6. sudo make install

    7. cd linux-core

    8. make drm.o radeon.o

    9. copy the new modules into your kernel tree. Depending on your kernel, either:

    sudo cp drm.ko /lib/modules/`uname -r`/kernel/drivers/char/drm/

    sudo cp radeon.ko /lib/modules/`uname -r`/kernel/drivers/char/drm/

    or:

    sudo cp drm.ko /lib/modules/`uname -r`/kernel/drivers/gpu/drm/

    sudo cp radeon.ko /lib/modules/`uname -r`/kernel/drivers/gpu/drm/radeon/

    10. sudo depmod -a
    X driver and mesa should both come from master, while drm still needs to come from the branch in agd5f's repo.

  6. #6
    Join Date
    Jan 2008
    Posts
    195

    Default

    Ok, thanks for clearing that up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •