Announcement

Collapse
No announcement yet.

AMD Unleashes Initial AMDGPU Driver Support For GCN 1.0 / Southern Islands GPUs

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

  • then ¿which version of these components i need to get gcn1.0 support on my curaçao pro r9 270 video card ?
    (in braketes the current version i am using)

    kernel(4.6.4-gentoo), xorg-server(1.18.4), llvm(3.8.1), mesa(12.0.1), libdrm(2.4.69), drivers(xf86-video-ati-7.7.0), others?...

    thanks so much.
    Last edited by papu; 07-25-2016, 10:21 AM.

    Comment


    • Obligatory disclaimer that the driver is not finished and may not be usable at all so far.

      First you need the drm-next-4.8-wip-si branch from this kernel repository: https://cgit.freedesktop.org/~agd5f/...ext-4.8-wip-si
      In the config, set CONFIG_DRM_AMDGPU_SI=y.
      But with only that branch you will likely not be able to render anything with mesa because it will hang. A clever user (?) has figured out how to make at least the hang go away, so you need to apply this patch: https://github.com/flto/linux/commit...4048304c.patch

      With the kernel alone you can run some "offscreen tests", but not use mesa yet.
      For that there are a couple of amdgpu-si branches that are mostly just wiring already existing things up and adding pciids:
      Mesa: https://cgit.freedesktop.org/~mareko...g/?h=amdgpu-si
      libdrm: https://cgit.freedesktop.org/~mareko...g/?h=amdgpu-si
      amdgpu: https://cgit.freedesktop.org/~mareko...g/?h=amdgpu-si

      Then, if xf86-video-ati is installed, uninstall it. X will hang on startup if it is installed and you try to run your GPU with amdgpu.

      Then, blacklist radeon. Create
      /etc/modprobe.d/graphicdrivers.conf
      with
      Code:
      install radeon /bin/false
      I did not try running an X server on my GPU, but I'm pretty sure I heard someone say that it's buggy. I just used it with PRIME. xonotic and csgo work, bioshock causes TTM errors and then it requires a reboot.
      I did not try much more, because right now power management doesn't seem to be working for anyone who has tried it so everything is pretty slow. But now that rendering with mesa works, we'll probably see something usable very soon once Alex Deucher is back.

      As for the question:
      xorg-server needs no changes, just the xf86-video-amdgpu driver. Maybe it just works with modesetting even, but I don't know.
      llvm needs no change either, but might just as well update it to the latest development version when you're testing cutting edge stuff anyway.

      Obligatory repeating of the disclaimer that the driver is still largely broken and not fit for anything but satisfying your curiosity about its current state.

      Comment


      • What haagch said... if you are not working on the driver as a developer or (whatever comes before alpha) tester then please stay with the radeon stack that gets installed by default. The GCN 1.0 support for amdgpu is still in development and not ready for general use.

        Comment


        • ok then i need at less kernerl4.8 , new mesa and amdgpu drivers with the kernel amd gpu options actived( all they?)



          i don't know what are cik and userptr options...


          and in my case have to change
          VIDEO_CARDS="radeon radeonsi" to VIDEO_CARDS="amdgpu radeonsi" in my make.conf from gentoo.
          Last edited by papu; 07-26-2016, 06:44 AM.

          Comment


          • Originally posted by papu View Post
            ok then i need at less kernerl4.8 , new mesa and amdgpu drivers
            Specifically the repositories and branches I mentioned. The code is not merged anywhere else. It's still in the "bring-up" phase. Once the developers have something that works reliably enough to be widely tested, it will become available in upstream mesa, libdrm, xf86-video-amdgpu and the kernel.

            Originally posted by papu View Post
            with the kernel amd gpu options actived( all they?)

            https://i.imgur.com/4GH1B3m.png

            i don't know what are cik and userptr options...
            CIK is the codename for the GCN 1.1. Whether that is enabled or not makes no difference for your GPU. You only need CONFIG_DRM_AMDGPU_SI.
            userptr is just some feature. Something about sharing pointers to buffers in userspace memory with the GPUs. Not sure what it's used for, but there's no reason not to enable it.

            No idea about gentoo.

            Is there a specific reason you want to test this? It seriously isn't all ready yet...

            Maybe for testing Vulkan? That's what I tried at least. With the amdgpu-si libdrm branch this happens:
            Code:
            vulkaninfo: symbol lookup error: /amdgpu//usr/lib/x86_64-linux-gnu/amdvlk64.so: undefined symbol: amdgpu_get_marketing_name
            The modified libdrm and xf86-video-amdgpu from the amdgpu-pro are still not available, so there's no way to merge these two together. It may be possible to implement the missing functions yourself, but that gets into the area of unreasonably much work for what simply isn't ready yet.

            Comment


            • FYI userptr is about taking an OS-allocated buffer (eg via malloc/mmap) and turning it into a graphics driver buffer so the GPU can operate on it.

              It's interesting because sometimes the OS decides to move physical pages around underneath OS-allocated buffers (and the GPU doesn't normally read CPU page tables) so you need to plant an MMU notifier and then kinda go bottom-up through the driver stack on a mapping change instead of top-down fixing everything up. IIRC locking order issues make it really fun.

              Comment


              • I thought that with kernel 4.7 i could use amdgpu but seems it's not ready and i have to wait for kernel 4.8.

                i asked for to know what i will need when was posible to use gnc1.0

                then i will enable amd gpu, userptr and may be powerplay in kernel.

                ah one thing: what about ac3, dts... hdmi bitstream support on agmgpu, woud be better than radeon? i have to use windows to take maximum profit of my multimedia on dual monitor through my hifi.

                thanks
                Last edited by papu; 07-26-2016, 09:36 AM.

                Comment


                • Originally posted by papu View Post
                  I thought that with kernel 4.7 i could use amdgpu but seems it's not ready and i have to wait for kernel 4.8.
                  You can clone this:
                  https://cgit.freedesktop.org/~agd5f/...ext-4.8-wip-si
                  with the command:git clone -b drm-next-4.8-wip-si git://people.freedesktop.org/~agd5f/linux


                  Originally posted by papu View Post
                  ah one thing: what about ac3, dts... hdmi bitstream support on agmgpu, woud be better than radeon? i have to use windows to take maximum profit of my multimedia on dual monitor through my hifi.
                  hdmi audio can problematic, Test it with you monitor. Disable it with amdgpu.audio=0 in the kernel command line if it causes problems.

                  Comment


                  • If anyone is interested in creating the Kernel packages for Arch with one command, here's my PKGBUILD for reference (or just direct use): https://raw.githubusercontent.com/am...aster/PKGBUILD

                    config: https://raw.githubusercontent.com/am.../master/config
                    config.x86_64: https://raw.githubusercontent.com/am.../config.x86_64

                    I'll later post the scripts to build Mesa, and libdrm (currently compiling the Kernel).

                    I'm compiling Mesa against LLVM 3.9 (svn, from the AUR).
                    Last edited by Amarildo; 07-27-2016, 02:10 AM.

                    Comment


                    • Originally posted by debianxfce View Post

                      You can clone this:
                      https://cgit.freedesktop.org/~agd5f/...ext-4.8-wip-si
                      with the command:git clone -b drm-next-4.8-wip-si git://people.freedesktop.org/~agd5f/linux
                      then the future options will be like this?


                      I'm tempted to try these options but...i need specífic mesa and newer amgpu drivers, how somebody have written here.
                      it not worked, may be mesa-9999 https://tinyurl.com/gvlvz9l not have amdgpu-si support right now
                      it't too early
                      Last edited by papu; 07-27-2016, 11:26 AM.

                      Comment

                      Working...
                      X