Announcement

Collapse
No announcement yet.

17 Fresh AMDGPU DC Patches Posted Today

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

  • 17 Fresh AMDGPU DC Patches Posted Today

    Phoronix: 17 Fresh AMDGPU DC Patches Posted Today

    Seventeen more "DC" display code patches were published today for the AMDGPU DRM driver, but it's still not clear if it will be ready -- or accepted -- for Linux 4.12...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Anyone know a decent walk through for compiling a kernel with the DC patches on Ubuntu? I'm tired of not having audio through the HDMI connection on my RX480!

    Comment


    • #3
      I haven't used this in a while, so it might not work out the box, but:

      Code:
      git clone git://people.freedesktop.org/~agd5f/linux agd5f
      cd agd5f
      git checkout amd-staging-4.9
      export LOCAL_VERSION=-amd-staging-4.9-`date +%Y%m%d`
      export KERNEL_VERSION=`grep -Po "^VERSION = \K.*" Makefile`.`grep -Po "PATCHLEVEL = \K.*" Makefile`.`grep -Po "SUBLEVEL = \K.*" Makefile``grep -Po "EXTRAVERSION = \K.*" Makefile`
      export MAINLINE_VERSION=v`grep -Po "^VERSION = \K.*" Makefile`.`grep -Po "PATCHLEVEL = \K.*" Makefile``grep -Po "EXTRAVERSION = \K.*" Makefile`
      export PACKAGE_VERSION=$KERNEL_VERSION$LOCAL_VERSION
      wget -q -O - http://kernel.ubuntu.com/~kernel-ppa/mainline/$MAINLINE_VERSION/SOURCES | grep -oP '.*\.patch' | sed -e 's#^#http://kernel.ubuntu.com/~kernel-ppa/mainline/'$MAINLINE_VERSION'/#' | wget -i -
      git apply *.patch
      cp /boot/config-`uname -r` .config
      make oldconfig
      KBUILD_CFLAGS=-march=native make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=$LOCAL_VERSION
      cd ..
      sudo dpkg -i linux-libc-dev_$PACKAGE_VERSION-1_amd64.deb linux-image-$PACKAGE_VERSION\_$PACKAGE_VERSION-1_amd64.deb linux-headers-$PACKAGE_VERSION\_$PACKAGE_VERSION-1_amd64.deb linux-firmware-image-$PACKAGE_VERSION\_$PACKAGE_VERSION-1_amd64.deb

      Comment


      • #4
        Originally posted by sandain View Post
        Anyone know a decent walk through for compiling a kernel with the DC patches on Ubuntu? I'm tired of not having audio through the HDMI connection on my RX480!


        Not as easy as a PPA, but still

        If you didnt mind using Fedora Mystro compiles one that he updates quite regularly

        Comment


        • #5
          I realise a massive amount of code and Dave's part in the blasting last kernel.
          With his involvement in radv wonder if he'll put the push on it and review. Could already be happening behind the scenes I guess.

          Comment


          • #6
            Originally posted by Grim85 View Post



            Not as easy as a PPA, but still/
            Would you really trust a fish? https://github.com/M-Bab

            Open source projects are one thing, but kernel binary from a totally random Github account?

            Comment


            • #7
              Originally posted by BenPope View Post
              I haven't used this in a while, so it might not work out the box, but:

              Code:
              git clone git://people.freedesktop.org/~agd5f/linux agd5f
              cd agd5f
              git checkout amd-staging-4.9
              export LOCAL_VERSION=-amd-staging-4.9-`date +%Y%m%d`
              export KERNEL_VERSION=`grep -Po "^VERSION = \K.*" Makefile`.`grep -Po "PATCHLEVEL = \K.*" Makefile`.`grep -Po "SUBLEVEL = \K.*" Makefile``grep -Po "EXTRAVERSION = \K.*" Makefile`
              export MAINLINE_VERSION=v`grep -Po "^VERSION = \K.*" Makefile`.`grep -Po "PATCHLEVEL = \K.*" Makefile``grep -Po "EXTRAVERSION = \K.*" Makefile`
              export PACKAGE_VERSION=$KERNEL_VERSION$LOCAL_VERSION
              wget -q -O - http://kernel.ubuntu.com/~kernel-ppa/mainline/$MAINLINE_VERSION/SOURCES | grep -oP '.*\.patch' | sed -e 's#^#http://kernel.ubuntu.com/~kernel-ppa/mainline/'$MAINLINE_VERSION'/#' | wget -i -
              git apply *.patch
              cp /boot/config-`uname -r` .config
              make oldconfig
              KBUILD_CFLAGS=-march=native make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=$LOCAL_VERSION
              cd ..
              sudo dpkg -i linux-libc-dev_$PACKAGE_VERSION-1_amd64.deb linux-image-$PACKAGE_VERSION\_$PACKAGE_VERSION-1_amd64.deb linux-headers-$PACKAGE_VERSION\_$PACKAGE_VERSION-1_amd64.deb linux-firmware-image-$PACKAGE_VERSION\_$PACKAGE_VERSION-1_amd64.deb
              This way you're missing all fixes that were applied to the 4.9-branch. I don't think that HDMI audio is worth this.

              Comment


              • #8
                PuckPoltergeist you can always apply the latest patch on top (4.9.17 right now) and ignore all the already applied patches included in the kernel (all the AMD related fixes). This is what I do for the kernel I build. (I also add Fedora's patchset/kconfigs on top of that).

                Comment


                • #9
                  Originally posted by Mystro256 View Post
                  PuckPoltergeist you can always apply the latest patch on top (4.9.17 right now) and ignore all the already applied patches included in the kernel (all the AMD related fixes). This is what I do for the kernel I build. (I also add Fedora's patchset/kconfigs on top of that).
                  As long as you have enough programming experiences for fixing the merge conflicts. It's not only amd code but at least ttm too (4.9.16).

                  Comment


                  • #10
                    Originally posted by PuckPoltergeist View Post

                    As long as you have enough programming experiences for fixing the merge conflicts. It's not only amd code but at least ttm too (4.9.16).
                    Last time I checked, there was no need to merge any changes. IIRC, anything that doesn't apply has been already applied; I noticed a few patch hunks fail, but I believe they can be ignored.

                    If it helps people out, I can mirror my kernel code on github.

                    Comment

                    Working...
                    X