Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Radeon 9500 (and newer) with DRI
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 12, 13, 14  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Slippery Jim
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 152

PostPosted: Fri Sep 07, 2007 7:44 pm    Post subject: Reply with quote

lordcris wrote:
licor wrote:


any update on this? I'm getting this same error on the current cvs.. :S



nope.
you should temporally switch to the stable version ...


or scratch the itch yourself...
Back to top
View user's profile Send private message
mikb
n00b
n00b


Joined: 14 Dec 2005
Posts: 65
Location: Sydney Australia

PostPosted: Wed Sep 12, 2007 8:05 pm    Post subject: Reply with quote

Slippery Jim wrote:
lordcris wrote:
licor wrote:


any update on this? I'm getting this same error on the current cvs.. :S



nope.
you should temporally switch to the stable version ...


or scratch the itch yourself...


Scratching the itch is a non-trivial amount of work, but for those who'd like to try, there is a "pci-rework" branch in the git repository on freedesktop.org. At the moment only the ati driver has been reworked, the radeon, r128 and theatre drivers are commented out of the config.

There is a PCI Rework howto at http://wiki.x.org/wiki/PciReworkHowto. It's based on what was done to the Intel driver, but it explains a lot (but by no means all) of what needs to be done.

I don't have a working cut of the code at the moment, but I do have a work around.

There is a "no-pci-rework" branch in the git repository for xorg-server. I made a local overlay by copying the r300-driver overlay of xorg-server into my local overlay tree, and got this working in two steps:

  • Create the following patch file in the ./files directory of the overlay as
    Code:
    xorg-server-1.3.99.999-fix-xorgcfg-pixman.patch
    :
    Code:
    --- hw/xfree86/utils/xorgcfg/Makefile.am.orig   2007-09-02 19:54:30.000000000 +0000
    +++ hw/xfree86/utils/xorgcfg/Makefile.am        2007-09-02 20:01:46.000000000 +0000
    @@ -29,7 +29,7 @@
     if BUILD_XORGCFG
     bin_PROGRAMS = xorgcfg

    -INCLUDES = $(XORG_INCS) -I$(top_srcdir)/hw/xfree86/parser
    +INCLUDES = $(XORG_INCS) -I$(top_srcdir)/hw/xfree86/parser -I$(includedir)/pixman-1

     OPTIONSPATH=$(libdir)/X11


  • Apply the following patch to xorg-server-1.3.99.999.ebuild:
    Code:
    --- layman/r300-driver/x11-base/xorg-server/xorg-server-1.3.99.999.ebuild    2007-06-21 23:21:40.000000000 +1000
    +++ overlay/x11-base/xorg-server/xorg-server-1.3.99.999.ebuild       2007-09-12 11:52:53.000000000 +1000
    @@ -275,7 +275,9 @@
     pkg_setup() {
            use minimal || ensure_a_server_is_building

    -       PATCHES="${FILESDIR}/${P}-fix-sysconfdir-references.patch"
    +       PATCHES="${FILESDIR}/${P}-fix-sysconfdir-references.patch
    +           ${FILESDIR}/${P}-fix-xorgcfg-pixman.patch
    +           "

            # Patches required for compiz to work with AIGLX,
            # but they slow EXA down.
    @@ -567,8 +569,8 @@
     xorg_src_unpack() {
            local EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver"
            local EGIT_PROJECT="xorg-server"
    -       local EGIT_BRANCH="master"
    -       local EGIT_TREE="master"
    +       local EGIT_BRANCH="no-pci-rework"
    +       local EGIT_TREE=${EGIT_BRANCH}
            git_src_unpack
     }


    remake the manifest, and emerge xorg-server.


Seems to be working for me - I have X, and glxinfo reports direct rendering is working.
_________________
With sufficient thrust, pigs fly just fine (RFC 1925, not actually talking about Gentoo)
Back to top
View user's profile Send private message
Shamus397
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 100
Location: Earth

PostPosted: Mon Sep 17, 2007 10:13 pm    Post subject: Reply with quote

It seems that the r300-driver overlay has been abandoned, but at least what's in portage seems to work now. :)

I unmerged all the stuff from the overlay and re-emerged all the packages from the regular portage tree and amazingly enough, it worked (where it == 3D acceleration ;)). So I guess this thread is no longer needed--at least for R300 based cards. I'm using the 1.4 xorg-server in portage on ~x86. 8)

Also, I just wanted to say a great big THANK YOU to all of the people who supported and contributed to the overlay. We'd all have been stuck without decent free 3D acceleration on radeon without your dedication and support. :D
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Mon Sep 17, 2007 10:38 pm    Post subject: Reply with quote

Anyone here has a working dualhead configuration when using the opensource driver?
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
Slippery Jim
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 152

PostPosted: Fri Oct 19, 2007 4:13 pm    Post subject: Reply with quote

Shamus397 wrote:
It seems that the r300-driver overlay has been abandoned, but at least what's in portage seems to work now. :)

I unmerged all the stuff from the overlay and re-emerged all the packages from the regular portage tree and amazingly enough, it worked (where it == 3D acceleration ;)). So I guess this thread is no longer needed--at least for R300 based cards. I'm using the 1.4 xorg-server in portage on ~x86. 8)

Also, I just wanted to say a great big THANK YOU to all of the people who supported and contributed to the overlay. We'd all have been stuck without decent free 3D acceleration on radeon without your dedication and support. :D


If you still want to test on the bleeding edge, you can install the x11 overlay to get most of the good stuff that was in primozic's r300 overlay. There were compilation issues last week, but I submitted some patches to the overlay ebuilds, and everything listed below emerges cleanly now. Note that you can't compile xf86-video-ati-6* against xorg-server-9999, due to API changes. This affects downgrading to stable too, because portage tries to downgrade xf86-video-ati before downgrading xorg-server, and therefore tries to build xf86-video-ati-6* against the installed xorg-server, which fails. Manually downgrade xorg-server first to work around this, if you're having trouble.

Code:
layman -a x11


Here's the relevant sections of my /etc/portage files, to pull in the git versions:

package.keywords:
Code:

# Mesa DRI stuff: #
#~~~~~~~~~~~~~~~~~#
x11-libs/libdrm ~amd64
x11-base/x11-drm ~amd64
media-libs/mesa ~amd64
x11-apps/mesa-progs ~amd64
x11-misc/driconf ~amd64

# xorg 1.4 stuff: #
# Add to package.mask:
# =x11-base/xorg-server-9999
# =x11-proto/inputproto-9999
#
#~~~~~~~~~~~~~~~~~#
x11-proto/renderproto ~amd64
x11-libs/pixman ~amd64
x11-libs/libXrender ~amd64
x11-libs/libXtst ~amd64
x11-libs/libXaw ~amd64
x11-libs/libXpm ~amd64
x11-libs/libX11 ~amd64
x11-libs/xtrans ~amd64
x11-libs/libXfont ~amd64
x11-libs/libXi ~amd64
x11-apps/xinit ~amd64
x11-drivers/xf86-input-keyboard ~amd64
x11-base/xorg-server ~amd64

#x11-misc/xkeyboard-config ~amd64

### X11 overlay stuff: ###
# Remove from package.mask:
# =x11-base/xorg-server-9999
# =x11-proto/inputproto-9999
#
# Uncomment these as necessary:
#~~~~~~~~~~~~~~~~~~~~~~~~#
x11-proto/inputproto ~amd64
x11-proto/xf86dgaproto ~amd64
x11-libs/libpciaccess ~amd64

x11-drivers/xf86-video-ati ~amd64


package.mask:
Code:

# comment out for overlay (-9999) versions:
=x11-base/xorg-server-9999
=x11-proto/inputproto-9999
=x11-libs/pixman-9999


package.unmask:
Code:

### uncomment the one you want, and comment out the others:
#=x11-drivers/xf86-video-ati-6.6*
#=x11-drivers/xf86-video-ati-6.7*
=x11-drivers/xf86-video-ati-9999*
Back to top
View user's profile Send private message
blazi
n00b
n00b


Joined: 12 Jan 2008
Posts: 3

PostPosted: Sun Jan 13, 2008 2:05 am    Post subject: Reply with quote

I have a problem when im compilind dri module. Look:
darkstar linux-core # DRM_MODULES="radeon" make
make -C /lib/modules/2.6.22-gentoo-r5/source SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.22-gentoo-r5'
CC [M] /usr/src/r300/drm/linux-core/drm_stub.o
/usr/src/r300/drm/linux-core/drm_stub.c:51: error: size of array 'type name' is negative
/usr/src/r300/drm/linux-core/drm_stub.c: In function 'drm_get_dev':
/usr/src/r300/drm/linux-core/drm_stub.c:220: warning: ignoring return value of 'pci_request_regions', declared with attribute warn_unused_result
/usr/src/r300/drm/linux-core/drm_stub.c:223: warning: ignoring return value of 'pci_enable_device', declared with attribute warn_unused_result
make[2]: *** [/usr/src/r300/drm/linux-core/drm_stub.o] Błąd 1
make[1]: *** [_module_/usr/src/r300/drm/linux-core] Błąd 2
make[1]: Leaving directory `/usr/src/linux-2.6.22-gentoo-r5'
make: *** [modules] Błąd 2
Back to top
View user's profile Send private message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Tue Jan 22, 2008 11:27 pm    Post subject: Reply with quote

I'm sorry, but emerging from X11 overlay, can't get out of this:
Code:
x86_64-pc-linux-gnu-gcc -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/kerberos/include -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr -I../../fb -I/usr/include/freetype2 -DXPRINT -DPRINT_ONLY_SERVER -D_XP_PRINT_SERVER_ -DXPRINTDIR=\"/usr/lib64/X11/xserver\" -DXPRASTERDDX -DXPPCLDDX -DXPMONOPCLDDX -DXPPSDDX -DXFree86Server -march=athlon64 -O2-pipe -Wl,-z -Wl,lazy -Wl,-z -Wl,lazy -o Xprt Xprt-attributes.o Xprt-AttrValid.o Xprt-ddxInit.o Xprt-Init.o Xprt-mediaSizes.o Xprt-Oid.o Xprt-spooler.o Xprt-Util.o Xprt-miinitext-wrapper.o Xprt-dpmsstubs-wrapper.o Xprt-fbcmap_mi.o  -L/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999 ../../dbe/.libs/libdbe.a ../../XTrap/.libs/libxtrap.a ../../record/.libs/librecord.a ../../composite/.libs/libcomposite.a ../../randr/.libs/librandr.a ../../xfixes/.libs/libxfixes.a ../../damageext/.libs/libdamageext.a ../../Xi/.libs/libXi.a ../../GL/glx/.libs/libglx.a ../../GL/mesa/.libs/libGLcore.a ../../miext/damage/.libs/libdamage.a ps/.libs/libps.a raster/.libs/libraster.a pcl/.libs/libpcl.a pcl-mono/.libs/libpcl.a ../../fb/.libs/libfb.a ../../render/.libs/librender.a ../../dix/.libs/libdix.a ../../config/libconfig.a ../../mi/.libs/libmi.a ../../Xext/.libs/libXext.a ../../xkb/.libs/libxkb.a ../../xkb/.libs/libxkbstubs.a ../../os/.libs/libos.a /usr/lib64/libX11.so /usr/lib64/libxcb-xlib.so /usr/lib64/libxcb.so -ldl /usr/lib64/libXfont.so /usr/lib64/libfreetype.so /usr/lib64/libXau.so /usr/lib64/libfontenc.so -lz /usr/lib64/libpixman-1.so /usr/lib64/libhal.so /usr/lib64/libdbus-1.so /usr/lib64/libXdmcp.so -lcrypto -lm -lrt
ps/.libs/libps.a(PsInit.o): In function `InitializePsDriver':
PsInit.c:(.text+0xd36): undefined reference to `GlxWrapInitVisuals'
collect2: ld returned 1 exit status
make[3]: *** [Xprt] Error 1
make[3]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/hw/xprint'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/hw/xprint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/hw'
make: *** [all-recursive] Error 1


My USEFLAG and make.conf are:
Code:

CFLAGS="-march=athlon64 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"

FEATURES="collision-protect"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

GENTOO_MIRRORS="http://mirror.ing.unibo.it/gentoo/ http://ftp.caliu.info/gentoo/ "

USE="3dnow 3dnowext a52 aac acl acpi apache2 bash-completion bluetooth bzip2 cdparanoia cups divx4linux dts exif flac gdbm glitz glx gphoto2 gpm gps gtk2 icqimlib jabber java javascript joystick junit ieee1394 libwww lirc lm_sensors matroska mmx mmxext mono mplayer msn multiuser nsplugin nptl nptlonly ocaml pcre perl php python ruby scanner speex sse sse2 usb v4l vim-syntax x264 xcb xcomposite xml2 xmlrpc xpm xprint xscreensever xvid xaw3d -arts -emboss -esd -evo -oss"
VIDEO_CARDS="radeon"
ALSA_CARDS="cs46xx hda-intel"
INPUT_DEVICES="evdev keyboard mouse joystick"
LINGUAS="it"
PORTDIR_OVERLAY=""
source /usr/portage/local/layman/make.conf
LIRC_DEVICE="serial"
APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajpproxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"

all the stuff above in /etc/portage/package.{keywords|mask|unmask}
and:
Code:
# emerge -pv xorg-server
[ebuild     U ]    x11-base/xorg-server-9999 [1.4.0.90-r2] USE="dri hal ipv6 sdl xorg xprint (-3dfx) -debug -dmx -kdrive -minimal (-nptl)" INPUT_DEVICES="evdev joystick keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="radeon -fbdev -i810 -mach64 -mga -nv -r128 -rendition -savage -tdfx -vesa -vmware (-xgi) (-amd%) (-apm%) (-ark%) (-chips%) (-cirrus%) (-cyrix%) (-dummy%) (-epson%) (-fglrx%) (-glint%) (-i128%) (-i740%) (-impact%) (-imstt%) (-neomagic%) (-newport%) (-nsc%) (-nvidia%) (-s3%) (-s3virge%) (-siliconmotion%) (-sis%) (-sisusb%) (-sunbw2%) (-suncg14%) (-suncg3%) (-suncg6%) (-sunffb%) (-sunleo%) (-suntcx%) (-tga%) (-trident%) (-tseng%) (-v4l%) (-vermilion%) (-vga%) (-via%) (-voodoo%)" 0 kB [0=>1]

Total: 2 packages (2 upgrades), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/x11

_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Back to top
View user's profile Send private message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Sun Jan 27, 2008 9:24 am    Post subject: Finally compiled ...but doesn't work yet! Reply with quote

Hi,
I've merged out the xorg-server-9999 removing the 'xprint' use flag!!

Now that everything looks to be in order:
Code:
laj@NeXT ~ $ glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

I don't know how to use LIBGL_DEBUG=verbose!

$ less /var/log/Xorg.0.log:
Code:
(II) RADEON(0): [DRI] installation complete
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0x1efff000 at 0x2af6c443e000
(II) RADEON(0): [drm] Closed DRM master.
(WW) RADEON(0): Direct rendering disabled


and messages from kernel:
Code:
$ dmesg | tail
[drm] Initialized drm 1.1.0 20060810
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 18 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:03:00.0 to 64
[drm] Initialized radeon 1.28.0 20060524 on minor 0
[drm] Setting GART location based on new memory map
[drm:radeon_do_init_cp] *ERROR* Cannot use PCI Express without GART in FB memory

_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Back to top
View user's profile Send private message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Fri Feb 15, 2008 4:21 pm    Post subject: Reply with quote

It look like this problem is never been posted since now on the net.

Considering I'm trying open-source dri from ati-drivers after unsuccessful work I've only to change the device!

Posting a bug...

:roll:
_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Wed Mar 05, 2008 11:05 pm    Post subject: Reply with quote

any updates on this? How do you guys build the latest driver?
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
lordcris
Apprentice
Apprentice


Joined: 09 Jul 2002
Posts: 248

PostPosted: Wed Mar 05, 2008 11:30 pm    Post subject: Reply with quote

Phlogiston wrote:
any updates on this? How do you guys build the latest driver?



i'm using the ones in the official kernel.
they work pretty well.
Back to top
View user's profile Send private message
LAj
Apprentice
Apprentice


Joined: 22 May 2004
Posts: 294
Location: Avellino[Italy]

PostPosted: Mon Apr 07, 2008 7:57 pm    Post subject: Reply with quote

I'm trying it!
Stay tuned :lol:

Edit: yes it works
_________________
They produce notes of any size as their own properties askng interests also.This is seignorage and goes to privates banks(FED, BCE).You don't have to pay to use $$,you can simply use your notes recovering monetary sovereignty.Public debt is not right!
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 ... 12, 13, 14
Page 14 of 14

 
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