View previous topic :: View next topic |
Author |
Message |
movi n00b
Joined: 10 Jul 2008 Posts: 10 Location: Warsaw, Poland
|
Posted: Wed Oct 22, 2008 5:39 pm Post subject: |
|
|
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 |
|
|
Master of the Darkside Tux's lil' helper
Joined: 02 Sep 2004 Posts: 94 Location: Iasi, Romania
|
Posted: Fri Oct 24, 2008 8:05 pm Post subject: |
|
|
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 |
|
|
brot Guru
Joined: 06 Apr 2004 Posts: 322
|
Posted: Mon Oct 27, 2008 7:30 am Post subject: :) |
|
|
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 |
|
|
Master of the Darkside Tux's lil' helper
Joined: 02 Sep 2004 Posts: 94 Location: Iasi, Romania
|
Posted: Mon Oct 27, 2008 9:52 am Post subject: |
|
|
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 |
|
|
Ampheus l33t
Joined: 19 Oct 2005 Posts: 814 Location: Rheine, NRW, Germany
|
Posted: Mon Oct 27, 2008 12:18 pm Post subject: |
|
|
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 |
|
|
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Mon Oct 27, 2008 2:55 pm Post subject: |
|
|
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? _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
movi n00b
Joined: 10 Jul 2008 Posts: 10 Location: Warsaw, Poland
|
Posted: Mon Oct 27, 2008 11:50 pm Post subject: |
|
|
@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 |
|
|
Ampheus l33t
Joined: 19 Oct 2005 Posts: 814 Location: Rheine, NRW, Germany
|
Posted: Tue Oct 28, 2008 11:11 pm Post subject: |
|
|
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 |
|
|
Xake Guru
Joined: 11 Feb 2004 Posts: 588 Location: Göteborg, the rainy part of scandinavia
|
Posted: Wed Oct 29, 2008 7:34 am Post subject: |
|
|
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 |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Wed Oct 29, 2008 12:25 pm Post subject: |
|
|
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 |
|
|
lopan n00b
Joined: 26 Dec 2005 Posts: 16 Location: Brasil
|
Posted: Wed Oct 29, 2008 1:26 pm Post subject: |
|
|
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 |
|
|
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Wed Oct 29, 2008 2:28 pm Post subject: |
|
|
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? _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Wed Oct 29, 2008 6:47 pm Post subject: |
|
|
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 |
|
|
brot Guru
Joined: 06 Apr 2004 Posts: 322
|
Posted: Thu Oct 30, 2008 12:09 pm Post subject: |
|
|
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 |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Thu Oct 30, 2008 1:29 pm Post subject: |
|
|
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 |
|
|
Kate Monster Apprentice
Joined: 13 Jun 2006 Posts: 226 Location: Clarkston, Michigan
|
Posted: Thu Oct 30, 2008 7:52 pm Post subject: |
|
|
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 |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Thu Oct 30, 2008 8:42 pm Post subject: |
|
|
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 |
|
|
yokem55 Guru
Joined: 18 Apr 2002 Posts: 360 Location: Oregon
|
Posted: Sun Nov 09, 2008 4:55 am Post subject: |
|
|
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 |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Sun Nov 09, 2008 5:37 pm Post subject: |
|
|
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 |
|
|
wswartzendruber Veteran
Joined: 23 Mar 2004 Posts: 1261 Location: Idaho, USA
|
Posted: Sun Nov 09, 2008 9:23 pm Post subject: |
|
|
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 _________________ Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP. |
|
Back to top |
|
|
Ampheus l33t
Joined: 19 Oct 2005 Posts: 814 Location: Rheine, NRW, Germany
|
Posted: Tue Nov 11, 2008 7:59 pm Post subject: |
|
|
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 |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Tue Nov 11, 2008 8:07 pm Post subject: |
|
|
It's also in .28-rc4 - but I don't if KMS is there also. |
|
Back to top |
|
|
Ampheus l33t
Joined: 19 Oct 2005 Posts: 814 Location: Rheine, NRW, Germany
|
Posted: Tue Nov 11, 2008 8:13 pm Post subject: |
|
|
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 |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
|
Back to top |
|
|
Ampheus l33t
Joined: 19 Oct 2005 Posts: 814 Location: Rheine, NRW, Germany
|
Posted: Tue Nov 11, 2008 8:28 pm Post subject: |
|
|
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 |
|
|
|