Announcement

Collapse
No announcement yet.

Debian + radeonsi

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • lorenzoz
    started a topic Debian + radeonsi

    Debian + radeonsi

    Hi all.
    This is my first post, I hope it's the right section. (and sorry for my poor english)

    I've never compiled anything from mesa.
    Yesterday I bought a r7 265 ati card. Now I boot up my debian box and it started with raster driver.

    I googled a lot and finally found this thread. Seems a very good solution.

    I followed all steps and finally all compiling stuff came to an end.
    But I have a problem. When I try to install: mesa-i386_10.3.0-devel-1_i386.deb (32-lib for steam, compiled in a chroot with 32bit stuff) I run into a problem.

    This package try to overwrite file and config from: mesa_10.3.0-devel-1_amd64.deb

    I'm doing it wrong, but I can't find a solution.

    Now I have a running mesa 10.3 (with llvm3.5) on amd64, but nothing on 32bit side.

    EDIT: this is going to be a disaster. I've tried to revert from mesa 10.3 to the standard realease of debian and now:
    Code:
    # glxinfo
    name of display: :0
    Error: couldn't find RGB GLX visual or fbconfig
    Error: couldn't find RGB GLX visual or fbconfig

  • lorenzoz
    replied
    Originally posted by dungeon View Post
    Well that one can explain some performance problems.



    There is a bug i hitting too with 32bit apps, is it dota2 32bit?

    https://bugs.freedesktop.org/show_bug.cgi?id=83436

    Workaround i found is to compile at least 32bit mesa with -mtune=native . That happens when you use 3.17+ kernel in combination with mesa 10.3+.
    Hell yeah!! this do the trick.
    However I have used -march=pentium3 like in oibaf repository.
    FPS now are back to 60 fps with my self compiled kernel and mesa stack.

    I'll try to dig more and find out wich is the better option between -march=pentium3 and -mtune=native.
    Sounds like your choice is better.


    EDIT: about drm warning/error.
    My GPU temperature with che custom 3.17 is always at 39?. Probably this drm fail disable dpm.
    Last edited by lorenzoz; 09-25-2014, 12:39 PM.

    Leave a comment:


  • dungeon
    replied
    Originally posted by lorenzoz View Post
    The only hint I've found is this error/warning in dmesg.
    Code:
    drm:si_dpm_set_power_state failed
    Well that one can explain some performance problems.

    Originally posted by lorenzoz
    But I don't know if it's related since graphics on 64bit run always flawlessly. I mean unigine benchmarks.
    There is a bug i hitting too with 32bit apps, is it dota2 32bit?

    https://bugs.freedesktop.org/show_bug.cgi?id=83436

    Workaround i found is to compile at least 32bit mesa with -mtune=native . That happens when you use 3.17+ kernel in combination with mesa 10.3+.
    Last edited by dungeon; 09-25-2014, 02:54 AM.

    Leave a comment:


  • lorenzoz
    replied
    Originally posted by dungeon View Post
    Well, kernel command what happens in userspace - eg. in mesa there is a code which depends how it will behave depending on what kernel you run. So it always depends what particular versions of software and drivers you run, some combinations works perfect, and some may bahave much worse or have bugs...

    But at first look at the logs and outputs of some commands: Xorg.0.log, glxinfo, dmesg... those usually can say something. If not, look at the output of the game you run...
    You mean running steam with MESA_DEBUG=1 variable and so on?
    Running steam from terminal doesn't print out errors.
    The only hint I've found is this error/warning in dmesg.
    Code:
    drm:si_dpm_set_power_state failed
    But I don't know if it's related since graphics on 64bit run always flawlessly. I mean unigine benchmarks.
    Last edited by lorenzoz; 09-25-2014, 02:38 AM.

    Leave a comment:


  • dungeon
    replied
    Originally posted by lorenzoz View Post
    I'm sorry for re-use this 3d but I think it's related with my current problem.

    My building script is working like a charme (again thanks dungeon), but I tried to compile my own kernel and I run into trouble.
    Long story short :
    - self compiled kernel+stock mesa/ddx/xserver/libdrm dota2 runs at ~60fps
    - stock Debian kernel (from sid)+ self compiled mesa/ddx/xserver/libdrm dota2 runs at ~60fps
    - self compiled kernel+self compiled mesa stack dota2 runs at 2fps.

    Wtf???
    Well, kernel command what happens in userspace - eg. in mesa there is a code which depends how it will behave depending on what kernel you run. So it always depends what particular versions of software and drivers you run, some combinations works perfect, and some may bahave much worse or have bugs...

    But at first look at the logs and outputs of some commands: Xorg.0.log, glxinfo, dmesg... those usually can say something. If not, look at the output of the game you run...

    Leave a comment:


  • lorenzoz
    replied
    I'm sorry for re-use this 3d but I think it's related with my current problem.

    My building script is working like a charme (again thanks dungeon), but I tried to compile my own kernel and I run into trouble.
    Long story short :
    - self compiled kernel+stock mesa/ddx/xserver/libdrm dota2 runs at ~60fps
    - stock Debian kernel (from sid)+ self compiled mesa/ddx/xserver/libdrm dota2 runs at ~60fps
    - self compiled kernel+self compiled mesa stack dota2 runs at 2fps.

    Wtf???

    Leave a comment:


  • lorenzoz
    replied
    Originally posted by dungeon View Post
    I am not here every day . As i see drm libs goes to wrong dir, which is actually fine for upstream but not for debian, so you need to adjust that with something like --libdir=/usr/lib/x86_64-linux-gnu

    BTW, why don't you build proper packages when they are there as i see

    http://anonscm.debian.org/cgit/pkg-xorg/lib/libdrm.git/
    Thank you very much dungeon
    Now it works without any issue. Here it is my script:

    Code:
    #!/bin/bash
    
    ./prepare.sh || exit $?
    aptitude update && aptitude upgrade || exit $?
    mv -- /completed/*.deb /backup &&
    rm -r /completed
    mkdir /completed
    
    cd /build/drm/drm &&
    git reset --hard &&
    git clean -xdf &&
    git pull &&
    ./autogen.sh --prefix=/usr --enable-radeon --enable-udev --libdir=/usr/lib/x86_64-linux-gnu &&
    pkgversion=$(git describe --tags) &&
    pkgversion=${pkgversion#libdrm-} &&
    fakeroot checkinstall --install=no --replaces=libdrm-radeon1,libdrm-dev,libdrm2,libdrm-intel1,libdrm-radeon1,libdrm-nouveau2 --pkgname=libdrm --pkgversion="${pkgversion}" --pkgarch=amd64 --backup=no --default &&
    mv -- ./*.deb /completed &&
    dpkg -i /completed/libdrm*.deb || exit $?
    
    cd /build/xf86-video-ati/xf86-video-ati &&
    git reset --hard &&
    git clean -xdf &&
    git pull &&
    ./autogen.sh --prefix=/usr &&
    pkgversion=$(git describe --tags) &&
    pkgversion=${pkgversion#xf86-video-ati-} &&
    fakeroot checkinstall --install=no --replaces=xserver-xorg-video-ati,xserver-xorg-video-radeon --pkgname=xserver-radeon --pkgversion=1:"${pkgversion}" --pkgarch=amd64 --backup=no --default &&
    mv -- ./*.deb /completed &&
    dpkg -i /completed/xserver-radeon*.deb || exit $?
    
    cd /build/mesa/mesa &&
    git reset --hard &&
    git clean -xdf &&
    git pull &&
    ./autogen.sh --sysconfdir=/etc --prefix=/usr --enable-debug CPPFLAGS="-m64" CXXFLAGS="-m64" --with-llvm-prefix=/usr/lib/llvm-3.5 --enable-64-bit --disable-32-bit --enable-texture-float --enable-gles1 --enable-gles2 --with-gallium-drivers="swrast,radeonsi" --with-dri-drivers="" --enable-vdpau --enable-gallium-egl --enable-glx-tls --with-egl-platforms="drm,x11" --enable-gbm --enable-gallium-egl --enable-osmesa --enable-shared-glapi --enable-llvm-shared-libs --disable-dri3 --libdir=/usr/lib/x86_64-linux-gnu &&
    pkgversion=$(git describe --tags) &&
    pkgversion=${pkgversion#mesa-} &&
    fakeroot checkinstall --install=no --replaces libgbm-dev,libgles1-mesa:amd64,libgl1-mesa-dev,libglapi-mesa:amd64,libgles2-mesa:amd64,libgbm1:amd64,libegl1-mesa-dev,libgl1-mesa-dri:amd64,libgl1-mesa-glx:amd64,libegl1-mesa:amd64,libegl1-mesa-drivers:amd64,libosmesa6:amd64,libosmesa6-dev,mesa-common-dev --pkgname=mesa --pkgversion="${pkgversion}" --pkgarch=amd64 --backup=no --default &&
    mv -- ./*.deb /completed &&
    dpkg -i /completed/mesa*.deb || exit $?
    
    cd /build/xserver/xserver &&
    git reset --hard &&
    git clean -xdf &&
    git pull &&
    ./autogen.sh --prefix=/usr --with-xkb-output=/var/lib/xkb --enable-glamor &&
    pkgversion=$(git describe --tags) &&
    pkgversion=${pkgversion#xorg-server-} &&
    fakeroot checkinstall --install=no --replaces xserver-xorg-core,xserver-common,xserver-xorg-dev,xserver-xorg,xorg --pkgname=xserver --pkgversion="${pkgversion}" --pkgarch=amd64 --backup=no --default &&
    mv -- ./*.deb /completed &&
    dpkg -i /completed/xserver*.deb || exit $?
    
    exit 0

    Leave a comment:


  • dungeon
    replied
    Originally posted by lorenzoz View Post
    None can help?
    I am not here every day . As i see drm libs goes to wrong dir, which is actually fine for upstream but not for debian, so you need to adjust that with something like --libdir=/usr/lib/x86_64-linux-gnu

    BTW, why don't you build proper packages when they are there as i see

    http://anonscm.debian.org/cgit/pkg-xorg/lib/libdrm.git/

    Leave a comment:


  • lorenzoz
    replied
    Originally posted by lorenzoz View Post
    I'm really sorry for these noob problems, but I don't know how to solve them.

    Today I've compiled mesa from git. It fails because now requires libdrm=>2.4.56 and I have only 2.4.55.
    So I've compiled and installed libdrm from git (2.4.56), but mesa continues to complain about libdrm lower than 2.4.56. Why?

    This is my lidrm deb builder:
    Code:
     ...
    pkgversion=$(git describe --tags) &&
    pkgversion=${pkgversion#libdrm-} &&
    fakeroot checkinstall --install=no --replaces libdrm-intel1,libdrm-nouveau2,libdrm-radeon1,libdrm-dev --pkgname=libdrm --pkgversion="${pkgversion}" --pkgarch=amd64 --backup=no --default && ...
    what's wrong?
    None can help?

    Leave a comment:


  • lorenzoz
    replied
    I'm really sorry for these noob problems, but I don't know how to solve them.

    Today I've compiled mesa from git. It fails because now requires libdrm=>2.4.56 and I have only 2.4.55.
    So I've compiled and installed libdrm from git (2.4.56), but mesa continues to complain about libdrm lower than 2.4.56. Why?

    This is my lidrm deb builder:
    Code:
     ...
    pkgversion=$(git describe --tags) &&
    pkgversion=${pkgversion#libdrm-} &&
    fakeroot checkinstall --install=no --replaces libdrm-intel1,libdrm-nouveau2,libdrm-radeon1,libdrm-dev --pkgname=libdrm --pkgversion="${pkgversion}" --pkgarch=amd64 --backup=no --default && ...
    what's wrong?

    Leave a comment:

Working...
X