Announcement

Collapse
No announcement yet.

how to get XV, DRI working on HD 3300 (rv620) ??

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

  • #16
    Originally posted by tettamanti View Post
    Ah, I think you didn't overwrite the old modules. drm.ko should be in /lib/modules/2.6.27-gentoo-r8/kernel/drivers/gpu/drm, while radeon.ko should be in /lib/modules/2.6.27-gentoo-r8/kernel/drivers/gpu/drm/radeon.
    Just to be sure you can rmmod the two modules (without X running) and load them from the compiled sources (using insmod); in this way you are sure to load the correct drivers
    If it's still not working check that your card is listed in shared-core/drm_pciids.txt (if you don't know how post the output of lspci -nn).
    Thanks for the input! That was one of my first thoughts too. But I recompiled the kernel completely without the DRM and RADEON module. So there was no gpu/ dir in the corresponding /lib/modules/2.6.27-gentoo-r8/ I created the gpu/ dir myself and simply copied the modules over. Of course did a depmod -a after that. Just to be sure:
    Code:
    yea 2.6.27-gentoo-r8 # cd /lib/modules/2.6.27-gentoo-r8/
    yea 2.6.27-gentoo-r8 # find -name 'drm.ko'
    ./kernel/drivers/gpu/drm.ko
    yea 2.6.27-gentoo-r8 # find -name 'radeon.ko'
    ./kernel/drivers/gpu/radeon.ko
    Here's my lspci -nn output:
    Code:
    yea 2.6.27-gentoo-r8 # lspci -nn
    00:00.0 Host bridge [0600]: Advanced Micro Devices [AMD] RS780 Host Bridge [1022:9600]
    00:01.0 PCI bridge [0604]: ASRock Incorporation Device [1849:9602]
    00:0a.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 5) [1022:9609]
    00:11.0 SATA controller [0106]: ATI Technologies Inc SB700/SB800 SATA Controller [AHCI mode] [1002:4391]
    00:12.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397]
    00:12.1 USB Controller [0c03]: ATI Technologies Inc SB700 USB OHCI1 Controller [1002:4398]
    00:12.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396]
    00:13.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397]
    00:13.1 USB Controller [0c03]: ATI Technologies Inc SB700 USB OHCI1 Controller [1002:4398]
    00:13.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396]
    00:14.0 SMBus [0c05]: ATI Technologies Inc SBx00 SMBus Controller [1002:4385] (rev 3a)
    00:14.1 IDE interface [0101]: ATI Technologies Inc SB700/SB800 IDE Controller [1002:439c]
    00:14.2 Audio device [0403]: ATI Technologies Inc SBx00 Azalia (Intel HDA) [1002:4383]
    00:14.3 ISA bridge [0601]: ATI Technologies Inc SB700/SB800 LPC host controller [1002:439d]
    00:14.4 PCI bridge [0604]: ATI Technologies Inc SBx00 PCI to PCI Bridge [1002:4384]
    00:14.5 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller [1002:4399]
    00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100]
    00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101]
    00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102]
    00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103]
    01:05.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon HD 3300 Graphics [1002:9614]
    As you suggested I looked up the ID of my HD 3300 in the database. Seems it's not listed ATM, only the older models:
    Code:
    yea shared-core # cat drm_pciids.txt | grep "961"
    0x1002 0x5961 CHIP_RV280 "ATI Radeon RV280 9200"
    0x1002 0x9610 CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP "ATI Radeon HD 3200 Graphics"
    0x1002 0x9611 CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP "ATI Radeon 3100 Graphics"
    0x1002 0x9612 CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP "ATI Radeon HD 3200 Graphics"
    0x1002 0x9613 CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP "ATI Radeon 3100 Graphics"
    So it is the missing PCI-ID which prevents the drm module from picking up my card?

    My main motivation to run this development drivers is to get the XVIDEO-Extension working. If I don't need the drm module to achieve this, then it's ok for me.

    But as long as xvinfo says
    Code:
    yea ~ # xvinfo 
    
    X-Video Extension version 2.2
    screen #0
     no adaptors present
    i have to continue

    Comment


    • #17
      Yep, sounds like the missing ID is a problem. You could probably confirm that by looking at the drm log messages with dmesg.

      You can update the ID list on your local copy of the source and see if that helps; I'll also mention it to agd5f.

      Comment


      • #18
        I've added the id to drm git.

        Comment


        • #19
          OK, guess I won't bother mentioning it to agd5f then

          Comment


          • #20
            Originally posted by bridgman View Post
            Thanks; I'll try to play with the KDE settings here.

            Just for completeness I have to ask.. is disabling functionality check and choosing XRender an option ?
            Nope, It is not BTW I played with that again but this time it could not enabled composite with "OpenGL" and "Disable test" options.
            Last edited by rahman.duran; 02-03-2009, 11:58 AM.

            Comment


            • #21
              Originally posted by agd5f View Post
              I've added the id to drm git.
              Thanks bridgman & agd5f! The drm module gets loaded now - awesome dudes!

              But now I got another problem After X has started with DRI enabled & radeonhd, switching to terminal via CTRL-F1 and switching back to X crashes the machine completely. It turns the screen to black, though it gets some kind of signal (the monitor LED shows it's still active). The only way to get out is a soft reset.

              Here's my xorg.0.log:
              http://pastebin.ch/969

              Out of curiosity I tried using the new drm module in connection with the xf86-video-ati-6.10.0. According to the log the drm module gets utilized too, but at some point there's an error and the xf86-video-ati-6.10.0 doesn't get to X using drm.

              Here's the xorg.log with xf86-video-ati-6.10.0:
              http://pastebin.ch/970

              The dmesg output with the ati driver is:
              Code:
              [drm] Initialized radeon 1.29.0 20080613 on minor 0
              [drm] Used old pci detect: framebuffer loaded
              [drm] Setting GART location based on new memory map
              [drm] GART aligned down from 0x00010000 to 0x00000000
              [drm] Num pipes: 2
              [drm] writeback test failed
              [drm] Setting GART location based on new memory map
              [drm] GART aligned down from 0x00010000 to 0x00000000
              [drm] Num pipes: 2
              [drm] writeback test failed
              [drm] Setting GART location based on new memory map
              [drm] GART aligned down from 0x00010000 to 0x00000000
              [drm] Num pipes: 2
              [drm] writeback test failed
              BTW I only compiled the kernel modules from the drm-git sources. Is it necessary to use the libdrm-git too? ATM I am using libdrm-2.3.1

              Comment


              • #22
                Originally posted by schwarzygesetzlos View Post
                Out of curiosity I tried using the new drm module in connection with the xf86-video-ati-6.10.0. According to the log the drm module gets utilized too, but at some point there's an error and the xf86-video-ati-6.10.0 doesn't get to X using drm.

                Here's the xorg.log with xf86-video-ati-6.10.0:
                http://pastebin.ch/970
                This is expected, RADEONAccelInit fails for anything >= R600; IOW ATM only radeonhd supports acceleration with R600 and newer.

                Comment


                • #23
                  Todays git :

                  EXA corruption is still there. (But not as bad )
                  The font corruption seems to be replaced with wrong letters
                  Switching consoles ended with black screen and killed keyboard. (Init 0 via acpid power button worked ..)

                  EDIT: My mistake - XV won't work with "XAA" as agd5f correctly pointed out.
                  (I just wonder why it is faster than "none" and video tearing isn't there as with "shadowfb" ?)
                  Last edited by PWMx; 02-04-2009, 02:13 PM.

                  Comment


                  • #24
                    There is no XAA support. If you specify XAA you're probably falling back to shadowfb.

                    Comment


                    • #25
                      Alex just pushed fixes for all the known corruption issues, and also some performance optimizations for scrolling and dragging. For anyone running 6xx/7xx open source drivers this is a good time to update your drm and radeonhd drivers.

                      Comment


                      • #26
                        Looks like one of the performance optimizations introduced some *different* corruption so agd5f has reverted that one change. Anyone who picked up source in the last few minutes should pull the latest.

                        Comment


                        • #27
                          Originally posted by bridgman View Post
                          Looks like one of the performance optimizations introduced some *different* corruption so agd5f has reverted that one change. Anyone who picked up source in the last few minutes should pull the latest.
                          Gna, so I was a little bit to fast.

                          You're speaking about corruption like this?
                          http://www.stud.tu-ilmenau.de/~johi-...chirmfoto4.jpg
                          (after scrolling in konqueror)

                          Comment


                          • #28
                            Probably. Alex tried a few different cards and hasn't been able to see corruption on any of them. That's not unusual though...

                            Comment


                            • #29
                              Originally posted by bridgman View Post
                              Looks like one of the performance optimizations introduced some *different* corruption so agd5f has reverted that one change. Anyone who picked up source in the last few minutes should pull the latest.
                              I bet some compiz users would have liked the smearing effect

                              Ok with latest git looks like all corruption and hangs are gone, Xv is working and scrolling performance in Firefox looks acceptable but improvement is welcome.

                              Comment


                              • #30
                                Originally posted by bridgman View Post
                                Probably. Alex tried a few different cards and hasn't been able to see corruption on any of them. That's not unusual though...
                                If I can help debugging this, let me know. The logs didn't show anything so far.

                                edit: Still does not survive switching back from console to X. The switch from X to console (Ctrl+Alt+F1) works, but when switching back to X I only get a black screen.
                                Last edited by PuckPoltergeist; 02-05-2009, 08:19 PM.

                                Comment

                                Working...
                                X