Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[how-to] 3d hardware acc with ati open source driver.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6 ... 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Oct 01, 2009 6:57 pm    Post subject: Reply with quote

pingufunkybeat wrote:
This is what portage says:
Code:
- x11-base/x11-drm-99999999 (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Bryan Stine <battousai@gentoo.org> (18 Sep 2009)
# Mask for removal in 30 days. The x11-drm git tree is abandoned, modules have
# moved to the kernel. See bug #284598 for more information.

:?:


set
Quote:
cat /usr/src/linux/.config | grep DRM
# CONFIG_DRM is not set


to enabled (as a module) and the radeon drm-module

with kernels > 2.6.32-rc1 or 2.6.31-zen* which in the near future might have latest drm-tree pulled / included :idea:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Oct 01, 2009 7:05 pm    Post subject: Reply with quote

Yes, I have DRI2 running with both 2.6.32-rc1 and the git version with the drm-next bits pulled in.

I was referring to building the kernel module from git://anongit.freedesktop.org/~agd5f/drm . AFAIK, that tree isn't being developed anymore, the drm bits are now in the kernel tree and you should switch to building the drm included in the latest kernels.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Oct 01, 2009 7:26 pm    Post subject: Reply with quote

pingufunkybeat wrote:
Yes, I have DRI2 running with both 2.6.32-rc1 and the git version with the drm-next bits pulled in.

I was referring to building the kernel module from git://anongit.freedesktop.org/~agd5f/drm . AFAIK, that tree isn't being developed anymore, the drm bits are now in the kernel tree and you should switch to building the drm included in the latest kernels.


yeah, from what I read on forums over at phoronix.com that's the case:

the drm-stuff from agd5f and the in-kernel KMS are mutually exclusive so no need to use that anymore

you could - however - in the future merge dave airlied's repository or the drm-repository Linus is pulling from with your local kernel sources and anytime have latest drm-code (as long as the latest upstream / unstable kernel doesn't make too much changes compared to latest stable)


dunno how to do that right now but I'm sure they will be included in zen :D
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Oct 01, 2009 7:37 pm    Post subject: Reply with quote

It's quite easy -- it's described in the RadeonBuildHowto I linked to earlier.

The only problem is waiting for the whole source to get downloaded via git without stalling (git can't resume broken downloads).
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Thu Oct 01, 2009 8:08 pm    Post subject: Reply with quote

pingufunkybeat wrote:
This is what portage says:
Code:
- x11-base/x11-drm-99999999 (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Bryan Stine <battousai@gentoo.org> (18 Sep 2009)
# Mask for removal in 30 days. The x11-drm git tree is abandoned, modules have
# moved to the kernel. See bug #284598 for more information.

:?:


according to radeonhd irc chat room his home folder got wiped out
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Oct 01, 2009 9:08 pm    Post subject: Reply with quote

Many things on freedesktop.org were nuked recently, which might explain the connection errors.

But regardless of that, the x11-drm ebuild has been masked for some time, and people should be using the in-kernel drm from the drm-next branch now, AFAIK.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Thu Oct 01, 2009 9:25 pm    Post subject: Reply with quote

pingufunkybeat wrote:
Many things on freedesktop.org were nuked recently, which might explain the connection errors.

But regardless of that, the x11-drm ebuild has been masked for some time, and people should be using the in-kernel drm from the drm-next branch now, AFAIK.

I was able to sync with that git after the ebuild was masked, buttom line 2.6.32 is in no way ready for use, so removing the git isn't logical, btw, did someone got the chance to save a copy? I have tuxonice 2.6.31 ready and I need the driver to emerge it in order to use it.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Oct 01, 2009 10:19 pm    Post subject: Reply with quote

Quote:
I was able to sync with that git after the ebuild was masked

I did it in the beginning as well, but I switched to the kernel one after deciding to try KMS.

Does it (the old agdf git repo) work with KMS?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Fri Oct 02, 2009 5:16 am    Post subject: Reply with quote

ok, I've went to the source and talked to Dave Airlie in order to geth thing straight up.
fact 1, all drm stuff went into the kernel, they are maintained directly into the kernel git.
fact 2, /home at freedesktop.org got nuked.
fact 3, agdf is traveling currently so he cannot help much.
fact 4, he probably have a copy on his hd.
fact 5, all most latest hd stuff can be located in drm-next here http://wiki.x.org/wiki/radeonBuildHowTo#head-a6271d23a9199673cea21478e0198d772a55fad3 which allows kms+3d for r6xx-r7xx.
fact 6, agdf's branch don't supports kms.

hope this clears up things.
now I haven't found any ebuild for drm-next, maybe someone could try and take a shot on creating one.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Fri Oct 02, 2009 1:38 pm    Post subject: Reply with quote

Thanks for the update.

With KMS, I prefer to build the drm stuff directly into the kernel. People were having trouble booting because you need the drm code even for the framebuffer console, and it has to be loaded at the right time, and other voodoo stuff.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Fri Oct 02, 2009 3:17 pm    Post subject: Reply with quote

pingufunkybeat wrote:
Thanks for the update.

With KMS, I prefer to build the drm stuff directly into the kernel. People were having trouble booting because you need the drm code even for the framebuffer console, and it has to be loaded at the right time, and other voodoo stuff.

yeah but the minimal acceptable level is in the 2.6.32 kernel... I need tuxonice 2.6.32 which will take more time to get into the tree.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Fri Oct 02, 2009 6:48 pm    Post subject: Reply with quote

DaggyStyle wrote:

now I haven't found any ebuild for drm-next, maybe someone could try and take a shot on creating one.


Code:

K_NOUSENAME="yes"
K_NOSETEXTRAVERSION="yes"
K_SECURITY_UNSUPPORTED="1"
ETYPE="sources"
inherit kernel-2
inherit git
detect_version

DESCRIPTION="Dave Airlie's drm sources"
HOMEPAGE="http://www.kernel.org"
EGIT_BRANCH="drm-next"
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git"


KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~x86"
IUSE=""


This is just a modified vanilla-sources-2.6.31.ebuild that uses git with airlied's repo as the url, and drm-next as the branch.
Disclaimer: I haven't tested this. I just have a clone of the repository in my home directory that I use to pull updates.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Fri Oct 02, 2009 6:53 pm    Post subject: Reply with quote

the question is, does it have agdf's repository too?
if not, then I'll rather wait till .32 will come out or agdf will come back.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Fri Oct 02, 2009 7:20 pm    Post subject: Reply with quote

DaggyStyle wrote:
the question is, does it have agdf's repository too?
if not, then I'll rather wait till .32 will come out or agdf will come back.


If you use drm-next, you don't need to use agd5f's libdrm. You can use libdrm-2.4.14.
And the drm-next branch is really .31-rc9 with .32s drm.

I think agd5f's drm kernel module was merged into drm-next and it's mostly the same with some updates.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Sun Oct 04, 2009 5:47 am    Post subject: Reply with quote

agdf's repository is up an running again :)
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Sun Oct 04, 2009 6:55 am    Post subject: Reply with quote

OK, I'm confused. Would someone mind summarizing what the state of play is for KMS and non-KMS? That is, what are the minimum/recommended kernel, x11-drm and xf86-video-ati versions (including repository if necessary)? At the moment I'm using 2.6.31, with x11-drm and xf86-video-ati both from [x11] (the plain overlay, no modifications). From what I've just been reading, maybe I should ditch x11-drm and switch to the in-kernel DRM? Or is that only for 2.6.32? Or only for KMS? KMS sounds like too much trouble for me right now, so I'm happy to stick with non-KMS until it all settles down a bit. Thanks!
Back to top
View user's profile Send private message
mikkoc
Apprentice
Apprentice


Joined: 24 May 2007
Posts: 231

PostPosted: Sun Oct 04, 2009 7:53 am    Post subject: Reply with quote

I'm assuming the vga is the one in your signature. If so, 3D/KMS support for your card is in 2.6.32.
You should use in-kernel module, since afaik x11-drm isn't maintained anymore.
To enable/disable KMS you can just pass "radeon.modeset=1/0" when booting.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5929

PostPosted: Sun Oct 04, 2009 8:07 am    Post subject: Reply with quote

if you are using agdf's drm, then that's the best out there currently, but kms might be a problem.
the radeon driver supports kms.
when kernel 2.6.32 will go stable, then you can safely switch.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Sun Oct 04, 2009 10:58 am    Post subject: Reply with quote

mikkoc wrote:
I'm assuming the vga is the one in your signature. If so, 3D/KMS support for your card is in 2.6.32.
You should use in-kernel module, since afaik x11-drm isn't maintained anymore.
To enable/disable KMS you can just pass "radeon.modeset=1/0" when booting.

<grumble> I appreciate people trying to help, but this is actually the kind of vagueness I was hoping to avoid.

It's not clear to me whether the "in-kernel module" to replace x11-drm is the same thing that you're referring to by "3D/KMS" in the previous sentence, and thus I should only use it if I'm using 2.6.32. But I presume it must be because as far as I can tell, the in-kernel DRM in 2.6.31 is ancient.
The x11-drm ebuild is fine so long as points to a useful repo (such as agd5f).
I guess I'll go back to using the agd5f repo now that everything seems back to normal.
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Sun Oct 04, 2009 2:32 pm    Post subject: Reply with quote

There are different ways to get what you need, but this is what I recommend as the most future-proof and hassle-free approach:

- Either kernel 2.6.32-rc1 or later, --OR-- a git kernel from the drm-next branch (git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git)
- libdrm from the X overlay (git://cgit.freedesktop.org/mesa/drm)
- mesa from the X overlay (git://anongit.freedesktop.org/mesa/mesa)
- xf86-video-ati from the X overlay (git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati)

It's the same as before, only instead of emerging x11-drm, you build a new kernel. I recommend upgrading to 2.6.32-rc1. In the future, the drm development will be in the kernel, so you'll have to switch eventually. Once you get this working, you can switch to a drm-next git kernel if you want to be closer to the bleeding edge.


If you don't want KMS:

- Turn on Drivers -> Graphics devices -> Direct Rendering Manager -> ATI Radeon (I recommend building it in, not as a module)

If you DO want KMS:

- Additionally, turn on Drivers -> Staging Drivers -> Enable modesetting on radeon by default

Install the new kernel, and voila.

KMS is very stable here, and in some ways provides a better experience, due to DRI2. Some rendering bugs are also absent with KMS. Unfortunately, a recent commit to mesa breaks some games (OpenArena, for example). If you can live with that, I think it's a good time to switch.
Back to top
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Sun Oct 04, 2009 8:43 pm    Post subject: Reply with quote

Awesome, thanks pingu.
Back to top
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Sun Oct 04, 2009 11:31 pm    Post subject: Reply with quote

If I want KMS (which I am warming to), should I be concerned that at the end of configuring xf86-video-ati, it says this:
Quote:
prefix: /usr
exec_prefix: ${prefix}
libdir: /usr/lib64
includedir: ${prefix}/include

Kernel modesetting: no

CFLAGS: -ggdb
CXXFLAGS: -ggdb
Macros:
Back to top
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Sun Oct 04, 2009 11:36 pm    Post subject: Reply with quote

Hmmm, after upgrading to xorg-server-1.7.0 because now the video driver depends on it, mesa fails to build:
Code:
glxcmds.c:43:38: error: X11/extensions/xf86vmode.h: No such file or directory           
glxcmds.c: In function ‘__driGetMscRateOML’:                                             
glxcmds.c:2336: error: ‘XF86VidModeModeLine’ undeclared (first use in this function)     
glxcmds.c:2336: error: (Each undeclared identifier is reported only once                 
glxcmds.c:2336: error: for each function it appears in.)                                 
glxcmds.c:2336: error: expected ‘;’ before ‘mode_line’                                   
glxcmds.c:2342: warning: implicit declaration of function ‘XF86VidModeQueryVersion’
glxcmds.c:2343: warning: implicit declaration of function ‘XF86VidModeGetModeLine’
glxcmds.c:2343: error: ‘mode_line’ undeclared (first use in this function)
gmake[2]: *** [glxcmds.o] Error 1

Is this happening to everyone?
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Sun Oct 04, 2009 11:51 pm    Post subject: Reply with quote

Quote:
If I want KMS (which I am warming to), should I be concerned that at the end of configuring xf86-video-ati, it says this:

Yes. I don't know why it's doing that, though. It doesn't say that for me.

Are you sure that you've compiled the packages in the correct order? It should be done exactly in the order I wrote.

EDIT: Does your libdrm ebuild have the following line:

Code:
CONFIGURE_OPTIONS="--enable-udev --enable-radeon-experimental-api"

The experimental-api is what enables KMS stuff. The driver is built against this lib, so if it doesn't have KMS support, the driver won't either.

Quote:
Hmmm, after upgrading to xorg-server-1.7.0 because now the video driver depends on it

Really? They must have changed it in the overlay, I'm using an older version in my local overlay.

In any case, it works fine with 1.6.3.

Anyway, it looks like you might have some older stuff lying around. xorg is modular now, so perhaps some parts didn't get upgraded? I'm just guessing here.
Back to top
View user's profile Send private message
Joseph K.
Guru
Guru


Joined: 07 Jun 2006
Posts: 436
Location: Sydney, Australia

PostPosted: Mon Oct 05, 2009 12:41 am    Post subject: Reply with quote

pingufunkybeat wrote:
Quote:
If I want KMS (which I am warming to), should I be concerned that at the end of configuring xf86-video-ati, it says this:

Yes. I don't know why it's doing that, though. It doesn't say that for me.

I was still using the agd5f repo for libdrm, so once I reverted back to regular [x11] it worked fine.

Still looking into the mesa issue. Yes, might be some un-upgraded modules.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6 ... 27, 28, 29  Next
Page 5 of 29

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum