Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting Intel's GEM?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
movi
n00b
n00b


Joined: 10 Jul 2008
Posts: 10
Location: Warsaw, Poland

PostPosted: Wed Oct 22, 2008 5:39 pm    Post subject: Reply with quote

I think you got my question wrong - why is it a waste of time? (according to your post). I've actually been waiting for this since forever.
Back to top
View user's profile Send private message
Master of the Darkside
Tux's lil' helper
Tux's lil' helper


Joined: 02 Sep 2004
Posts: 94
Location: Iasi, Romania

PostPosted: Fri Oct 24, 2008 8:05 pm    Post subject: Reply with quote

So here's how I got intel's GEM working on my system:

1) install the latest kernel (vanilla-sources): 2.6.28-rc1 has gem support
Code:

cd /usr/src
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.tar.bz2
tar jxf linux-2.6.27.tar.bz2
ln -sf linux-2.6.27 linux
cd linux
wget http://kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.28-rc1.bz2
bunzip2 patch-2.6.28-rc1.bz2
patch -p1 < patch-2.6.28-rc1
make menuconfig
... configure your kernel and bootloader...


Reboot, or wait 'til later;

2) Get xf86-video-intel
Code:

mkdir /usr/local/portage/x11-drivers   <-- adjust to your preferred overlay location
cp -r /usr/portage/x11-drivers/xf86-video-intel /usr/local/portage/x11-drivers/
wget http://xorg.freedesktop.org/archive/individual/driver/xf86-video-intel-2.5.0.tar.bz2 -O /usr/portage/distfiles/xf86-video-intel-2.5.0.tar.bz2
cp /usr/local/portage/x11-drivers/xf86-video-intel/xf86-video-intel-2.4.98.0.ebuild /usr/local/portage/x11-drivers/xf86-video-intel/xf86-video-intel-2.5.0.ebuild
ebuild /usr/local/portage/x11-drivers/xf86-video-intel/xf86-video-intel-2.5.0.ebuild digest
emerge xf86-video-intel  <-- should emerge 2.5.0


3) Get libdrm, dri2proto, mesa from git
We can find ebuilds in the x11 overlay:
Code:

layman -a x11
layman -s x11  <-- not sure it's really needed


Unmask and emerge:
Code:

echo media-libs/mesa >> /etc/portage/package.unmask
echo x11-proto/dri2proto >> /etc/portage/package.unmask
echo x11-libs/libdrm >> /etc/portage/package.unmask
emerge mesa


Restart X and enjoy!
_________________
No weight nor mass nor beauty of execution can outweigh a grain or fragment of thought
Back to top
View user's profile Send private message
brot
Guru
Guru


Joined: 06 Apr 2004
Posts: 320

PostPosted: Mon Oct 27, 2008 7:30 am    Post subject: :) Reply with quote

Thanks for the howto Master of the Darkside, now gem works here. But it didnt fix the problem i have with my gmax3100 right now, like wine freezing X when trying to start wc3 or only 59 fps in glxgears ;)
Back to top
View user's profile Send private message
Master of the Darkside
Tux's lil' helper
Tux's lil' helper


Joined: 02 Sep 2004
Posts: 94
Location: Iasi, Romania

PostPosted: Mon Oct 27, 2008 9:52 am    Post subject: Reply with quote

The fps you get in glxgears is synced with your refresh rate, that's why you get ~60fps. emerge driconf to fix that.

unfortunately, wine does freeze X, I just tried it myself, and also, I can't see much improvement in 2d.

Last but not least, I don't really like how the latest kernel runs my system, so I'm back to stable versions for now, although downgrading has led now to poor 3d performance, like ~500 fps in glxgears (glxgears is not a benchmark, I know)
_________________
No weight nor mass nor beauty of execution can outweigh a grain or fragment of thought
Back to top
View user's profile Send private message
Ampheus
l33t
l33t


Joined: 19 Oct 2005
Posts: 814
Location: Rheine, NRW, Germany

PostPosted: Mon Oct 27, 2008 12:18 pm    Post subject: Reply with quote

I switched to GEM and I am very happy with it. Before, I had about 120fps with the old driver falling back to calssic in glxgears. Now i have about 1200fps and it is the first time i can use KDE4's wobbly windows. Before it was very slow.

Thanks a lot for the guide.
_________________
Für alle doubleposter ;)
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1224
Location: Jefferson, USA

PostPosted: Mon Oct 27, 2008 2:55 pm    Post subject: Reply with quote

Ampheus wrote:
I switched to GEM and I am very happy with it. Before, I had about 120fps with the old driver falling back to calssic in glxgears. Now i have about 1200fps and it is the first time i can use KDE4's wobbly windows. Before it was very slow.

Thanks a lot for the guide.

Whoa, are you using UXA and DRI2, or just the latest driver/kernel?
Back to top
View user's profile Send private message
movi
n00b
n00b


Joined: 10 Jul 2008
Posts: 10
Location: Warsaw, Poland

PostPosted: Mon Oct 27, 2008 11:50 pm    Post subject: Reply with quote

@Master of the Dark side

I'm trying to get this to work with your guide, but i can't seem to compile the xserver with --enable-dri2. I'm hitting an error in dri2ext.c with a lot of missing members. Do i have to compile the xserver out of git (-9999)?
Back to top
View user's profile Send private message
Ampheus
l33t
l33t


Joined: 19 Oct 2005
Posts: 814
Location: Rheine, NRW, Germany

PostPosted: Tue Oct 28, 2008 11:11 pm    Post subject: Reply with quote

wswartzendruber wrote:
Ampheus wrote:
I switched to GEM and I am very happy with it. Before, I had about 120fps with the old driver falling back to calssic in glxgears. Now i have about 1200fps and it is the first time i can use KDE4's wobbly windows. Before it was very slow.

Thanks a lot for the guide.

Whoa, are you using UXA and DRI2, or just the latest driver/kernel?

I'm just using latest driver, libdrm, mesa and kernel(all scm). Now i have another question: How can I enable Kernel Modesetting? For radeon chips it should be radeon.modeset=1 and on Fedora wiki I got told for intel it is i915.modeset=1 but I get
Code:
Kernel command line: root=/dev/sda3 i915.modeset=1
Unknown boot option `i915.modeset=1': ignoring

So what should I do to enable it?
_________________
Für alle doubleposter ;)
Back to top
View user's profile Send private message
Xake
Guru
Guru


Joined: 11 Feb 2004
Posts: 588
Location: Göteborg, the rainy part of scandinavia

PostPosted: Wed Oct 29, 2008 7:34 am    Post subject: Reply with quote

Ampheus wrote:
wswartzendruber wrote:
Ampheus wrote:
I switched to GEM and I am very happy with it. Before, I had about 120fps with the old driver falling back to calssic in glxgears. Now i have about 1200fps and it is the first time i can use KDE4's wobbly windows. Before it was very slow.

Thanks a lot for the guide.

Whoa, are you using UXA and DRI2, or just the latest driver/kernel?

I'm just using latest driver, libdrm, mesa and kernel(all scm). Now i have another question: How can I enable Kernel Modesetting? For radeon chips it should be radeon.modeset=1 and on Fedora wiki I got told for intel it is i915.modeset=1 but I get
Code:
Kernel command line: root=/dev/sda3 i915.modeset=1
Unknown boot option `i915.modeset=1': ignoring

So what should I do to enable it?


Needs patches, patches and more patches if IIRC... But do not ask me from where...
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1636
Location: Poland => Lodz

PostPosted: Wed Oct 29, 2008 12:25 pm    Post subject: Reply with quote

Things have moved forward a bit.

- vanilla 2.6.28-rc2 is in portage
- intel-2.5.0 is ~ already
- libdrm-2.4 is ~ also
- mesa 7.2 is the newest in portage

So am I right thinking that if I get myself a newer mesa and above mentioned portage packages I can have real HW acceleration on my GM965?

If so is there an overlay with such mesa version?
Back to top
View user's profile Send private message
lopan
n00b
n00b


Joined: 26 Dec 2005
Posts: 16
Location: Brasil

PostPosted: Wed Oct 29, 2008 1:26 pm    Post subject: Reply with quote

szczerb wrote:
Things have moved forward a bit.

- vanilla 2.6.28-rc2 is in portage
- intel-2.5.0 is ~ already
- libdrm-2.4 is ~ also
- mesa 7.2 is the newest in portage

So am I right thinking that if I get myself a newer mesa and above mentioned portage packages I can have real HW acceleration on my GM965?

If so is there an overlay with such mesa version?


So, i have the same system, have a only one difference. I use the sys-kernel/git-sources-2.6.28_rc2-r3. My GEM is not enable.
When i try glxinfo:
Code:

Failed to initialize TTM buffer manager.  Falling back to classic.


That's versions have a support for GEM enable?
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1224
Location: Jefferson, USA

PostPosted: Wed Oct 29, 2008 2:28 pm    Post subject: Reply with quote

szczerb wrote:
Things have moved forward a bit.

- vanilla 2.6.28-rc2 is in portage
- intel-2.5.0 is ~ already
- libdrm-2.4 is ~ also
- mesa 7.2 is the newest in portage

So am I right thinking that if I get myself a newer mesa and above mentioned portage packages I can have real HW acceleration on my GM965?

If so is there an overlay with such mesa version?

Shouldn't that be in the X11 overlay?
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1636
Location: Poland => Lodz

PostPosted: Wed Oct 29, 2008 6:47 pm    Post subject: Reply with quote

Yes, it is. I just didn't have git installed so 'layman -L' didn't list this overlay.

Anyway I have this emerged:
- vanilla 2.6.28_rc2
- xf86-video-intel-2.5.0
- mesa-9999
- xorg-x11-7.4 (xorg-server-1.5.2)
- libdrm-9999
- dri2proto-1.1

glxinfo stopped complaining about TTM, so I guess I'm using GEM. Now it complains about this:
Code:
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.

And I actually do get about 120fps less then with mesa 7.2 and tuxonice-sources 2.6.25-r7.

Google doesn't have anything with this DRM... name in index yet.

Anyone encountered this?
Back to top
View user's profile Send private message
brot
Guru
Guru


Joined: 06 Apr 2004
Posts: 320

PostPosted: Thu Oct 30, 2008 12:09 pm    Post subject: Reply with quote

Is it only me or does GEM+EXA give really really bad performance. I am running XAA+GEM now, and everything works. With EXA i got several errors in the .xsession-errors like
Code:
kwin: X Error (error: <unknown>[DAMAGE+0], request: XDamageDestroy[DAMAGE+2], resource: 0x140002d)
kwin: X Error (error: <unknown>[DAMAGE+0], request: XDamageDestroy[DAMAGE+2], resource: 0x1400b23)


Well, anyway, GEM really already works nice, i am really looking forward when everything will be implemented and optimised, that should give really nice performance.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1636
Location: Poland => Lodz

PostPosted: Thu Oct 30, 2008 1:29 pm    Post subject: Reply with quote

I just tried GEM with EXA and it simply crashed. So now I'm back with mesa 7.2 but the 28 kernel seems faster :)
Back to top
View user's profile Send private message
Kate Monster
Apprentice
Apprentice


Joined: 13 Jun 2006
Posts: 222
Location: Clarkston, Michigan

PostPosted: Thu Oct 30, 2008 7:52 pm    Post subject: Reply with quote

szczerb wrote:
Yes, it is. I just didn't have git installed so 'layman -L' didn't list this overlay.

Anyway I have this emerged:
- vanilla 2.6.28_rc2
- xf86-video-intel-2.5.0
- mesa-9999
- xorg-x11-7.4 (xorg-server-1.5.2)
- libdrm-9999
- dri2proto-1.1

glxinfo stopped complaining about TTM, so I guess I'm using GEM. Now it complains about this:
Code:
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.

And I actually do get about 120fps less then with mesa 7.2 and tuxonice-sources 2.6.25-r7.

Google doesn't have anything with this DRM... name in index yet.

Anyone encountered this?
I get this too. Also, DRI2 seems to cause mplayer to hiccup...haven't played around much with it though.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2289
Location: Canada

PostPosted: Thu Oct 30, 2008 8:42 pm    Post subject: Reply with quote

IvanMajhen wrote:
Mesa now defaults to sync to vblank. The 60fps mean's that glxgears are updated with rates based on monitor HZ.
If you wanna earlier behavior, add something like this in your home folder in .driconf file:
Code:
<driconf>
    <device screen="0" driver="i915">
        <application name="Default">
            <option name="force_s3tc_enable" value="false" />
            <option name="fthrottle_mode" value="2" />
            <option name="vblank_mode" value="0" />
            <option name="allow_large_textures" value="2" />
        </application>
    </device>
</driconf>

or emerge driconf.



Somewho driconf tells me

could not connect any configurable direct-rendering devices

while

Code:

$ xdriinfo
Screen 0: i965
$ xdriinfo options i965
Driver "i965" is not installed or does not support configuration


This is with GM965, xf86-video-intel-2.5.0, mesa-7.2.
glxinfo is of course all right with everything enabled, and glxgears at 50 fps :(
Back to top
View user's profile Send private message
yokem55
Guru
Guru


Joined: 18 Apr 2002
Posts: 360
Location: Oregon

PostPosted: Sun Nov 09, 2008 4:55 am    Post subject: Reply with quote

Quote:
glxinfo stopped complaining about TTM, so I guess I'm using GEM. Now it complains about this:

Code:
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.

And I actually do get about 120fps less then with mesa 7.2 and tuxonice-sources 2.6.25-r7.

Google doesn't have anything with this DRM... name in index yet.



This is a function that's been implimented in anholt's drm-intel-next tree, but hasn't yet been merged to linus's tree. If you're sufficiently motivated, you can clone anholt's git repo and build your kernel from that and this will go away.
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1636
Location: Poland => Lodz

PostPosted: Sun Nov 09, 2008 5:37 pm    Post subject: Reply with quote

Thanks, but I'm not really that motivated ;]

BTW Is there a site with progress in intel acceleration support (because I can't find anything official), or do you just have to follow the dev's mailing list to know? I'd like to know when it's a good time to check out the new mesa-9999 and/or video-intel-9999 ;]
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1224
Location: Jefferson, USA

PostPosted: Sun Nov 09, 2008 9:23 pm    Post subject: Reply with quote

szczerb wrote:
Thanks, but I'm not really that motivated ;]

BTW Is there a site with progress in intel acceleration support (because I can't find anything official), or do you just have to follow the dev's mailing list to know? I'd like to know when it's a good time to check out the new mesa-9999 and/or video-intel-9999 ;]

www.phoronix.com
Back to top
View user's profile Send private message
Ampheus
l33t
l33t


Joined: 19 Oct 2005
Posts: 814
Location: Rheine, NRW, Germany

PostPosted: Tue Nov 11, 2008 7:59 pm    Post subject: Reply with quote

yokem55 wrote:
Quote:
glxinfo stopped complaining about TTM, so I guess I'm using GEM. Now it complains about this:

Code:
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.

And I actually do get about 120fps less then with mesa 7.2 and tuxonice-sources 2.6.25-r7.

Google doesn't have anything with this DRM... name in index yet.



This is a function that's been implimented in anholt's drm-intel-next tree, but hasn't yet been merged to linus's tree. If you're sufficiently motivated, you can clone anholt's git repo and build your kernel from that and this will go away.


This is now included in zen-sources git. It also has intel kms support.
Although the kms support doesn't work that good for now because there are some regressions like unusabe vts.
_________________
Für alle doubleposter ;)
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1636
Location: Poland => Lodz

PostPosted: Tue Nov 11, 2008 8:07 pm    Post subject: Reply with quote

It's also in .28-rc4 - but I don't if KMS is there also.
Back to top
View user's profile Send private message
Ampheus
l33t
l33t


Joined: 19 Oct 2005
Posts: 814
Location: Rheine, NRW, Germany

PostPosted: Tue Nov 11, 2008 8:13 pm    Post subject: Reply with quote

No. There's only support for radeon in Vanilla.
The support in zen-sources is there since about 15 minutes and is not yet ready for everyone's use. It also needed some changes to work on x86, but now it compiles fine and even runs (a bit) ;)
_________________
Für alle doubleposter ;)
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1636
Location: Poland => Lodz

PostPosted: Tue Nov 11, 2008 8:23 pm    Post subject: Reply with quote

But I found this:
Quote:
i915: Add GEM ioctl to get available aperture size.
in the .28-rc4 changelog (http://kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.28-rc4)

Did I misunderstand it?

(it's in commit 30ef898c535bffd105c1a9b9b6563969b3deb31e)
Back to top
View user's profile Send private message
Ampheus
l33t
l33t


Joined: 19 Oct 2005
Posts: 814
Location: Rheine, NRW, Germany

PostPosted: Tue Nov 11, 2008 8:28 pm    Post subject: Reply with quote

Ah ok if you mean that. I also meant kms support which is not in 2.6.28-rc4.
_________________
Für alle doubleposter ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
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