Announcement

Collapse
No announcement yet.

R600/r700 kms + 3d dri1/dri2

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

  • #61
    Thanks everybody for the information!

    BTW, what is the best place now to take latest drm updates?
    Should I take a git snapshot of the stable linux kernel branch and then merge Dave Airlie's drm-next branch into it? Or should I follow the mainline Linus' git tree instead?

    I want to have the latest drm bits, but I don't like current linux-2.6.31-gits as they brake VirtualBox modules compilation...

    Comment


    • #62
      When is 3D acceleration coming back to Karmic ...?

      Just a day or two more than week ago after utilizing all from radeon PPA I've got 3D acceleration on my ASUS 3650 HD (a.k.a. ATI HD650) for the first time for the quite awhile. But that did not last for long. A day or two. Now it is gone again. When can I expect it back? My machine is fully upgraded according to xorg-edgers PPA and radeon PPA. Yes the numbers in gtkperf are lower that ever but I would like to try compiz, again, just for fun of it. I do not use it permanently ...
      Last edited by zika; 09-26-2009, 11:53 PM. Reason: typo

      Comment


      • #63
        Originally posted by zika View Post
        Just a day or two more than week ago after utilizing all from radeon PPA I've got 3D acceleration on my ASUS 3650 HD (a.k.a. ATI HD650) for the first time for the quite awhile. But that did not last for long. A day or two. Now it gone again. When can I expect it back? My machine is fully upgraded according to xorg-edgers PPA and radeon PPA. Yes the numbers in gtkperf are lower that ever but I would like to try compiz, again, just for fun of it. I do not use it permanently ...
        Maybe you upgraded to a newer kernel and did not rebuild the drm modules?

        Comment


        • #64
          No, I did rebuild and it happens in both kernels I use 2.6.31-999-generic and 2.6.31-11-generic, it also happened in 2.6.31.10-generic. DRM shows fine in dmesg and 2D acceleration is great.
          Code:
          ~$ dmesg|grep radeon
          [   19.832559] radeon 0000:01:00.0: setting latency timer to 64
          [   19.832710] [drm] Initialized radeon 1.29.0 20080613 on minor 0
          Code:
          ~$ lsmod
          Module                  Size  Used by
          binfmt_misc            10412  1 
          radeon                415456  0 
          drm                   195296  1 radeon
          snd_hda_codec_atihdmi     4352  1 
          snd_hda_intel          34120  0 
          snd_hda_codec          90272  2 snd_hda_codec_atihdmi,snd_hda_intel
          snd_usb_audio         103680  1 
          snd_pcm_oss            47200  0 
          snd_mixer_oss          19744  1 snd_pcm_oss
          iptable_filter          3904  0 
          snd_pcm                95784  4 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_pcm_oss
          snd_usb_lib            21024  1 snd_usb_audio
          ip_tables              21072  1 iptable_filter
          snd_seq_dummy           3588  0 
          snd_hwdep               9512  2 snd_hda_codec,snd_usb_audio
          x_tables               25608  1 ip_tables
          snd_seq_oss            33984  0 
          snd_seq_midi            8352  0 
          snd_rawmidi            27008  2 snd_usb_lib,snd_seq_midi
          snd_seq_midi_event      8384  2 snd_seq_oss,snd_seq_midi
          snd_seq                60544  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
          snd_timer              27440  2 snd_pcm,snd_seq
          snd_seq_device          8244  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
          snd                    77096  14 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
          lp                     11812  0 
          soundcore              10240  1 snd
          parport                42864  1 lp
          psmouse                56932  0 
          amd64_edac_mod         29440  0 
          snd_page_alloc         10864  2 snd_hda_intel,snd_pcm
          serio_raw               6724  0 
          edac_core              51116  1 amd64_edac_mod
          i2c_piix4              11760  0 
          usb_storage            65856  0 
          r8169                  41316  0 
          mii                     6176  1 r8169
          Code:
          less /var/log/Xorg.0.log
          .....
          (==) RADEON(0): Backing store disabled
          (WW) RADEON(0): Direct rendering disabled
          (EE) RADEON(0): Acceleration initialization failed
          (II) RADEON(0): Acceleration disabled
          (II) RADEON(0): DPMS enabled
          .....
          Last edited by zika; 09-27-2009, 01:56 AM.

          Comment


          • #65
            Originally posted by zika View Post
            No, I did rebuild and it happens in both kernels I use 2.6.31-999-generic and 2.6.31-11-generic, it also happened in 2.6.31.10-generic. DRM shows fine in dmesg and 2D acceleration is great.
            Code:
            ~$ dmesg|grep radeon
            [   19.832559] radeon 0000:01:00.0: setting latency timer to 64
            [   19.832710] [drm] Initialized radeon 1.29.0 20080613 on minor 0
            You are not loading the modules from the radeon PPA, because they are patched to show another date, see the PPA page please.

            Comment


            • #66
              Originally posted by tormod View Post
              You are not loading the modules from the radeon PPA, because they are patched to show another date, see the PPA page please.
              Yes, I've noticed that but I'm doing just what the PPA states:
              Code:
              sudo module-assistant -t auto-install drm-modules
              What am I doing wrong?
              The important thing is that it worked and now it doesn't.
              Any help would be greatly appreciated.

              P.S. I've just checked and I have drm-modules source installed.
              Now I see that there is only a file for 32-bit and my machine is 64-bit.
              I'm not sure if I installed 64-bit several weeks ago or it was 32-bit also then ... I, simply, do not see how it worked then ... and it doesn't work now.
              I'll reinstall both kernels and uninstall drm-... and wait for further instructions how to install it properly. (I thought I did ...)
              My machine is AMD Phenom X3 with ATI HD 3650 (512M).
              Now, after cleaning everything, reinstalling both kernels after I uninstalled drm-sorce and drm... generated with the command given above from PPA, with 2.6.31-999 I get
              Code:
              ~$ dmesg|grep radeon
              [    8.128965] [drm] radeon default to kernel modesetting.
              [    8.128970] [drm] radeon kernel modesetting enabled.
              [    8.129083] radeon 0000:01:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
              [    8.129090] radeon 0000:01:00.0: setting latency timer to 64
              [    8.131347] [drm] radeon: Initializing kernel modesetting.
              [    8.131351] [drm:radeon_driver_load_kms] *ERROR* Failed to initialize radeon, disabling IOCTL
              [    8.131496] radeon 0000:01:00.0: PCI INT A disabled
              [    8.131534] radeon: probe of 0000:01:00.0 failed with error -22
              and with 2.6.31-11-36 I get
              Code:
              ~$ dmesg|grep radeon
              [   14.736302] [drm] radeon default to kernel modesetting DISABLED.
              [   14.736982] [drm] Initialized radeon 1.31.0 20080528 for 0000:01:00.0 on minor 0
              Thank You, again, for any kind of help. It is not so important, but it is intriguing ...
              Last edited by zika; 09-27-2009, 10:32 AM.

              Comment


              • #67
                KMS+DRI2+3D works just great!

                A small update after the weekend of dancing around my r700 KMS+DRI2+3D setup with shaman tambourine...

                Originally posted by Aostrich View Post
                The biggest issue I've observed is Xv... It is not tear-free with KMS. There are visible artifacts (some color lines) appear on the video in both, windowed and full-screen modes. Switching Mplayer from full-screen to windowed mode and back removes them, but in a second or two these lines appear again...
                After the sunday's update of ati ddx from Git, Xv became much better. I can't observe tearing anymore!

                Regarding the color lines issue, it is still there, but I've found a workaround for it. I think this issue is related to colorspace conversions. I came to this conclusion as I observed the artifacts only in Mplayer, and not in tvtime. Tvtime uses YUY2 format, and Mplayer seems to use YV12, however I'm not sure. Adding "-vf yuy2" to mplayer parameters wiped the color lines away!

                Originally posted by Aostrich View Post
                3D for me is quite OK (checked with ioqake3), except some artifacts in the bottom and rightmost 1-pixel lines. Probably this is already fixed in mesa.
                1-pixel lines corruptions in 3D with KMS gone away since friday's Mesa Git update.
                BTW, ioquake3 runs ~1.5 times faster with KMS and DRI2 than with DRI1!

                So right now KMS+DRI2+3D on RHD4870 works almost perfectly for me.

                HUGE THANKS TO EVERYBODY WHO HAS CONTRIBUTED INTO THIS GREAT JOB!

                Comment


                • #68
                  One more question, should PM Suspend to RAM work with HD4870 and KMS? For me it doesn't... However, neither it does without KMS...
                  After resume I have screen corruptions which go away only after rebooting the whole system.

                  Comment


                  • #69
                    Now that 2.6.32-rc1 is out is there a point for me to pursue further trying to get 3D acceleration to work from xog-edgers (including radeon) PPA or should I just wait for tomorrow and try the new kernel ...?

                    Comment


                    • #70
                      I've just tried KMS on a R710 here.

                      It works fine (1920x1080 fb console) until X starts, at which point it hangs with the mother of all hangs (even cold reset doesn't work).

                      I'll look around for potential solutions (it looks like pvtcupcakes' problem). I'm using 2.6.32-rc1 from www.kernel.org and all libdrm, mesa and ddx from today.


                      EDIT: Is there any kernel that is downloadable at the moment that works with KMS? I cannot clone the git repository of that size, it chokes at 10% and it's not resumable.
                      Last edited by pingufunkybeat; 09-28-2009, 03:30 PM.

                      Comment


                      • #71
                        Originally posted by pingufunkybeat View Post
                        I've just tried KMS on a R710 here.

                        It works fine (1920x1080 fb console) until X starts, at which point it hangs with the mother of all hangs (even cold reset doesn't work).

                        I'll look around for potential solutions (it looks like pvtcupcakes' problem). I'm using 2.6.32-rc1 from www.kernel.org and all libdrm, mesa and ddx from today.


                        EDIT: Is there any kernel that is downloadable at the moment that works with KMS? I cannot clone the git repository of that size, it chokes at 10% and it's not resumable.
                        .32-rc1 is on kernel.org. It might just be the git tree wrapped in a .tar.bz2; I haven't tried it.

                        And do you use the right libdrm? I was using agd5f's libdrm which wasn't working with kms, so you need to use: http://cgit.freedesktop.org/mesa/drm

                        Comment


                        • #72
                          This might very well be the case! My error looks very much like the one you had.

                          When I read your post, I thought you were referring to the x11-drm module that gets loaded into the kernel, not the libdrm, so I didn't realise that it could be a problem. I'll give it another shot now.

                          Thanks already, in any case.

                          EDIT: W00t, that did it. DRI2+KMS is working like a charm here!

                          Compositing slows down 3d stuff, but that was to be expected.

                          Openarena gives the following in dmesg:

                          Code:
                          [ 2219.397082] [drm:r600_cs_packet_parse] *ERROR* Can not parse packet at 548 after CS end 548 !
                          [ 2219.397085] [drm:r600_packet3_check] *ERROR* bad DRAW_INDEX
                          [ 2219.397087] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
                          I'm also getting all sorts of corruption after using it for a while. So I guess it's not fully stable yet. Still, exciting developments.
                          Last edited by pingufunkybeat; 09-28-2009, 06:49 PM.

                          Comment


                          • #73
                            Originally posted by zika View Post
                            Now that 2.6.32-rc1 is out is there a point for me to pursue further trying to get 3D acceleration to work from xog-edgers (including radeon) PPA or should I just wait for tomorrow and try the new kernel ...?
                            I have uploaded a new drm-modules-source (snapshot of agd5f's drm tree) to the radeon PPA. But I guess a drm-next or 2.6.32-rc1 kernel would be better.

                            Comment


                            • #74
                              Originally posted by tormod View Post
                              I have uploaded a new drm-modules-source (snapshot of agd5f's drm tree) to the radeon PPA. But I guess a drm-next or 2.6.32-rc1 kernel would be better.
                              Thank You, I guess I'll just wait for 2.6.32-rc1, I hope it will show up in a couple of days ...

                              drm-next=?

                              Comment


                              • #75
                                Originally posted by zika View Post
                                Thank You, I guess I'll just wait for 2.6.32-rc1, I hope it will show up in a couple of days ...
                                I would be curious to know if the new drm-modules-source fixes your issue, so if you have the chance to test...
                                drm-next=?
                                I mean building the kernel from http://git.kernel.org/?p=linux/kerne...log;h=drm-next or merge that branch into another kernel.

                                Comment

                                Working...
                                X