Announcement

Collapse
No announcement yet.

Getting Open Source 3D graphics on R6XX/R7XX cards (NO FGLRX)

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

  • #31
    Originally posted by Neo_The_User View Post
    edit: ^I have been asking that question everywhere for 2 years. Nobody never ever answers it.
    You mean LD_LIBRARY_PATH? (At least iirc it should work)

    Comment


    • #32
      Originally posted by Neo_The_User View Post
      I didn't know the correct enviornmental varibles to set so if anybody could state some exact examples on what to do when not installed to /usr that would be great!

      edit: ^I have been asking that question everywhere for 2 years. Nobody never ever answers it.
      I'll break the curse:
      For the OpenGL programs, set LIBGL_DRIVERS_PATH to the directory where you have the *_dri.so mesa drivers. This is actually documented on http://dri.freedesktop.org/wiki/TestingAndDebugging

      Comment


      • #33
        Originally posted by tormod View Post
        I'll break the curse:
        For the OpenGL programs, set LIBGL_DRIVERS_PATH to the directory where you have the *_dri.so mesa drivers. This is actually documented on http://dri.freedesktop.org/wiki/TestingAndDebugging
        Neat, I remembered wrong then. Thanks for correcting.
        Last edited by nanonyme; 07 June 2009, 08:55 AM.

        Comment


        • #34
          I'm running a 2.6.29 kernel; for step 6a you should be using kernel/drivers/gpu/drm/ and gpu/drm/radeon/ instead of char/drm/, since that's where the existing drm and radeon modules got installed. I.e., you want to replace the stock modules with the ones you just built.

          Comment


          • #35
            Originally posted by highlandsun View Post
            I'm running a 2.6.29 kernel; for step 6a you should be using kernel/drivers/gpu/drm/ and gpu/drm/radeon/ instead of char/drm/, since that's where the existing drm and radeon modules got installed. I.e., you want to replace the stock modules with the ones you just built.
            Kinda right. To be exact, the path is irrelevant as long as you have one drm.ko and one radeon.ko under your modules tree. Running depmod -a sets it up anyhow. I recommend doing a
            Code:
            find . -name drm.ko -o -name radeon.ko
            in the kernel module root directory to find out where they are. (or replace . with the directory under which to search)

            Comment


            • #36
              Not getting DRI/DRI2 enabled?

              Hi,
              I followed the directions for Ubuntu 9.04 (with stock 2.6.28-13 ubuntu kernel, etc), and I'm still not getting DRI/DRI2 accel?

              from Xorg.0.log:
              Code:
              (--) PCI:*(0@2:0:0) ATI Technologies Inc RV770 [Radeon HD 4870] rev 0, Mem @ 0xd
              0000000/268435456, 0xf3ee0000/65536, I/O @ 0x00007e00/256, BIOS @ 0x????????/131
              072
              (II) Open ACPI successful (/var/run/acpid.socket)
              (II) System resource ranges:
              	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
              	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
              	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
              	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
              	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
              	[5] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
              (II) LoadModule: "extmod"
              (II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
              (II) Module extmod: vendor="X.Org Foundation"
              	compiled for 1.6.0, module version = 1.0.0
              	Module class: X.Org Server Extension
              	ABI class: X.Org Server Extension, version 2.0
              (II) Loading extension MIT-SCREEN-SAVER
              (II) Loading extension XFree86-VidModeExtension
              (II) Loading extension XFree86-DGA
              (II) Loading extension DPMS
              (II) Loading extension XVideo
              (II) Loading extension XVideo-MotionCompensation
              (II) Loading extension X-Resource
              (II) LoadModule: "dbe"
              (II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
              (II) Module dbe: vendor="X.Org Foundation"
              	compiled for 1.6.0, module version = 1.0.0
              	Module class: X.Org Server Extension
              	ABI class: X.Org Server Extension, version 2.0
              (II) Loading extension DOUBLE-BUFFER
              (II) LoadModule: "glx"
              (II) Loading /usr/lib/xorg/modules/extensions//libglx.so
              (II) Module glx: vendor="X.Org Foundation"
              	compiled for 1.6.0, module version = 1.0.0
              	ABI class: X.Org Server Extension, version 2.0
              (==) AIGLX enabled
              (II) Loading extension GLX
              (II) LoadModule: "record"
              (II) Loading /usr/lib/xorg/modules/extensions//librecord.so
              (II) Module record: vendor="X.Org Foundation"
              	compiled for 1.6.0, module version = 1.13.0
              	Module class: X.Org Server Extension
              	ABI class: X.Org Server Extension, version 2.0
              (II) Loading extension RECORD
              (II) LoadModule: "dri"
              (II) Loading /usr/lib/xorg/modules/extensions//libdri.so
              (II) Module dri: vendor="X.Org Foundation"
              	compiled for 1.6.0, module version = 1.0.0
              	ABI class: X.Org Server Extension, version 2.0
              (II) Loading extension XFree86-DRI
              (II) LoadModule: "dri2"
              (II) Loading /usr/lib/xorg/modules/extensions//libdri2.so
              (II) Module dri2: vendor="X.Org Foundation"
              	compiled for 1.6.0, module version = 1.0.0
              	ABI class: X.Org Server Extension, version 2.0
              (II) Loading extension DRI2
              (II) LoadModule: "radeonhd"
              (II) Loading /usr/lib/xorg/modules/drivers//radeonhd_drv.so
              (II) Module radeonhd: vendor="AMD GPG"
              	compiled for 1.6.0, module version = 1.2.5
              	Module class: X.Org Video Driver
              	ABI class: X.Org Video Driver, version 5.0
              (II) RADEONHD: X driver for the following AMD GPG (ATI) graphics devices:
              	RV505 : Radeon X1550, X1550 64bit.
              	RV515 : Radeon X1300, X1550, X1600; FireGL V3300, V3350.
              	RV516 : Radeon X1300, X1550, X1550 64-bit, X1600; FireMV 2250.
              	R520  : Radeon X1800; FireGL V5300, V7200, V7300, V7350.
              	RV530 : Radeon X1300 XT, X1600, X1600 Pro, X1650; FireGL V3400, V5200.
              	RV535 : Radeon X1300, X1650.
              	RV550 : Radeon X2300 HD.
              	RV560 : Radeon X1650.
              	RV570 : Radeon X1950, X1950 GT; FireGL V7400.
              	R580  : Radeon X1900, X1950; AMD Stream Processor.
              	R600  : Radeon HD 2900 GT/Pro/XT; FireGL V7600/V8600/V8650.
              	RV610 : Radeon HD 2350, HD 2400 Pro/XT, HD 2400 Pro AGP; FireGL V4000.
              	RV620 : Radeon HD 3450, HD 3470.
              	RV630 : Radeon HD 2600 LE/Pro/XT, HD 2600 Pro/XT AGP; Gemini RV630;
              		FireGL V3600/V5600.
              	RV635 : Radeon HD 3650, HD 3670.
              	RV670 : Radeon HD 3690, 3850, HD 3870, FireGL V7700, FireStream 9170.
              	R680  : Radeon HD 3870 X2.
              	M52   : Mobility Radeon X1300.
              	M54   : Mobility Radeon X1400; M54-GL.
              	M56   : Mobility Radeon X1600; Mobility FireGL V5200.
              	M58   : Mobility Radeon X1800, X1800 XT; Mobility FireGL V7100, V7200.
              	M62   : Mobility Radeon X1350.
              	M64   : Mobility Radeon X1450, X2300.
              	M66   : Mobility Radeon X1700, X1700 XT; FireGL V5250.
              	M68   : Mobility Radeon X1900.
              	M71   : Mobility Radeon HD 2300.
              	M72   : Mobility Radeon HD 2400; Radeon E2400.
              	M74   : Mobility Radeon HD 2400 XT.
              	M76   : Mobility Radeon HD 2600;
              		(Gemini ATI) Mobility Radeon HD 2600 XT.
              	M82   : Mobility Radeon HD 3400.
              	M86   : Mobility Radeon HD 3650, HD 3670, Mobility FireGL V5700.
              	M88   : Mobility Radeon HD 3850, HD 3850 X2, HD 3870, HD3870 X2.
              	RS600 : Radeon Xpress 1200, Xpress 1250.
              	RS690 : Radeon X1200, X1250, X1270.
              	RS740 : RS740, RS740M.
              	RS780 : Radeon HD 3100/3200/3300 Series.
              	R700  : Radeon R700.
              	RV710 : Radeon HD4570, HD4350.
              	RV730 : Radeon HD4670, HD4650.
              	RV740 : Radeon HD4770. EXPERIMENTAL AND UNTESTED.
              	RV770 : Radeon HD 4800 Series; Everest, K2, Denali ATI FirePro.
              	RV790 : Radeon HD 4890.
              	M92   : Mobility Radeon HD4330, HD4530, HD4570. EXPERIMENTAL.
              	M93   : Mobility Radeon M93. EXPERIMENTAL AND UNTESTED.
              	M96   : Mobility Radeon HD4600.
              	M97   : Mobility Radeon HD4860. EXPERIMENTAL AND UNTESTED.
              	M98   : Mobility Radeon HD4850, HD4870.
              
              (II) RADEONHD: version 1.2.5, built from git branch master, commit afc94a3b
              
              (II) Primary Device is: PCI 02@00:00:0
              (II) resource ranges after xf86ClaimFixedResources() call:
              	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
              	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
              	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
              	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
              	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
              	[5] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
              (II) resource ranges after probing:
              	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
              	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
              	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
              	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
              	[4] 0	0	0x000a0000 - 0x000affff (0x10000) MS[B]
              	[5] 0	0	0x000b0000 - 0x000b7fff (0x8000) MS[B]
              	[6] 0	0	0x000b8000 - 0x000bffff (0x8000) MS[B]
              	[7] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
              	[8] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
              	[9] 0	0	0x000003b0 - 0x000003bb (0xc) IS[B]
              	[10] 0	0	0x000003c0 - 0x000003df (0x20) IS[B]
              (II) Setting vga for screen 0.
              (==) RADEONHD(0): Depth 24, (--) framebuffer bpp 32
              (**) RADEONHD(0): Selected ShadowFB.
              (II) RADEONHD(0): Unknown card detected: 0x9440:0x174B:0x0851.
              	If - and only if - your card does not work or does not work optimally
              	please contact [email protected] to help rectify this.
              	Use the subject: 0x9440:0x174B:0x0851: <name of board>
              	and *please* describe the problems you are seeing
              	in your message.
              (--) RADEONHD(0): Detected an RV770 on an unidentified card
              (II) RADEONHD(0): Mapped IO @ 0xf3ee0000 to 0x7fe5bfa79000 (size 0x00010000)
              (II) RADEONHD(0): PCIE Card Detected
              (II) RADEONHD(0): Getting BIOS copy from legacy VBIOS location
              (II) RADEONHD(0): ATOM BIOS Rom: 
              	SubsystemVendorID: 0x174b SubsystemID: 0x0851
              	IOBaseAddress: 0x7e00
              	Filename: S851GQIN.008
              	BIOS Bootup Message: 
              TXOFF2 WEKIVA RV770 B50701 BOARD                                            
              
              (II) RADEONHD(0): Analog TV Default Mode: 8
              (II) RADEONHD(0): Found default TV Mode PAL
              (II) RADEONHD(0): The detected amount of videoram exceeds the PCI BAR aperture.
              (II) RADEONHD(0): Using only 262144kB of the total 1048576kB.
              (--) RADEONHD(0): VideoRAM: 262144 kByte
              (II) RADEONHD(0): Framebuffer space used by Firmware (kb): 20
              (II) RADEONHD(0): Start of VRAM area used by Firmware: 0xfffec
              (II) RADEONHD(0): AtomBIOS requests 20kB of VRAM scratch space
              (II) RADEONHD(0): AtomBIOS VRAM scratch base: 0xfffec
              (WW) RADEONHD(0): rhdAtomAllocateFbScratch: FW FB scratch area not located at th
              e end of VRAM. Scratch End: 0x104fec VRAM End: 0x10000000
              (II) RADEONHD(0): Cannot get VRAM scratch space. Allocating in main memory inste
              ad
              (II) RADEONHD(0): Default Engine Clock: 750000
              (II) RADEONHD(0): Default Memory Clock: 900000
              (II) RADEONHD(0): Maximum Pixel ClockPLL Frequency Output: 1200000
              (II) RADEONHD(0): Minimum Pixel ClockPLL Frequency Output: 0
              (II) RADEONHD(0): Maximum Pixel ClockPLL Frequency Input: 16000
              (II) RADEONHD(0): Minimum Pixel ClockPLL Frequency Input: 6000
              (II) RADEONHD(0): Maximum Pixel Clock: 400000
              (II) RADEONHD(0): Reference Clock: 100000
              (II) RADEONHD(0): Direct rendering not officially supported on R600 and up
              (...)

              Code:
              (II) AIGLX: Screen 0 is not DRI2 capable
              (II) AIGLX: Screen 0 is not DRI capable
              (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
              (II) GLX: Initialized DRISWRAST GL provider for screen 0
              My /etc/X11/xorg.conf, sans comments:
              Code:
              Section "Monitor"
              	Identifier	"Configured Monitor"
              EndSection
              
              Section "Screen"
              	Identifier	"Default Screen"
              	Monitor		"Configured Monitor"
              	Device		"Configured Video Device"
              	SubSection "Display"
              		Virtual	3520 1200
              	EndSubSection
              EndSection
              
              Section "Device"
              	Identifier	"Configured Video Device"
              	Driver		"radeonhd"
              EndSection
              Here's dmesg output from the modprobe radeon (which I have to do manually, since it seems xorg isn't doing it?):
              Code:
              [ 1633.112005] [drm] Initialized drm 1.1.0 20060810
              [ 1633.129370] radeon 0000:02:00.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
              [ 1633.129374] radeon 0000:02:00.0: setting latency timer to 64
              [ 1633.129554] [drm] Initialized radeon 1.29.0 20080613 on minor 0
              Am I missing anything? I see drm/drm2 loading in the xorg log, but somehow it's not working with the radeonhd driver built from git source? It's certainly a pickle..

              TIA!
              - Matt

              Comment


              • #37
                Originally posted by MattH View Post
                Hi,
                I followed the directions for Ubuntu 9.04 (with stock 2.6.28-13 ubuntu kernel, etc), and I'm still not getting DRI/DRI2 accel?
                Code:
                Section "Device"
                	Identifier	"Configured Video Device"
                	Driver		"radeonhd"
                EndSection
                You don't have dri enabled in xorg.conf, enable it. (also see the radeonhd manpage)

                Comment


                • #38
                  Originally posted by chithanh View Post
                  You don't have dri enabled in xorg.conf, enable it. (also see the radeonhd manpage)
                  Yeah, for some odd reason while the ati driver has DRI enabled by default, radeonhd doesn't. Might run into some funny situations changing between the two if one doesn't keep that in mind.

                  Comment


                  • #39
                    Hey guys sorry. This guide was out of date and I fixed some stuff. This works now. I tested it too now that I got a PCI E 4650! WOO!!!

                    DRI and EXA are both on by default in radeonhd thanks to yangman!

                    Best Regards! -Neo_The_User Playstation 3 developer
                    Last edited by Neo_The_User; 23 August 2009, 12:02 AM.

                    Comment


                    • #40
                      For x86_64 archlinux users, I have a binary repo where you can grab the packages from :


                      Here is the list of the packages you need:
                      drm-radeon-module-git-r6xx-r7xx-3d libdrm-git glproto-git mesa-git libgl-git ati-dri-r6xx-r7xx xf86-video-ati-git

                      I know I should recompile everything for 32bits users, just give me a few hours.

                      Comment

                      Working...
                      X