6 Replies Latest reply on Oct 16, 2017 2:43 PM by t170925

    amdgpu-pro 17.30: building kernel module fails on openSUSE Leap 42.3

    t170925

      I followed the suggestions given in the thread: https://community.amd.com/message/2816979#comment-2816979 , and I followed the steps on: How To Install-Uninstall AMDGPU-PRO driver on a SUSE® Enterprise Linux System 

      (I updated the rpmbuild replacement value with the corresponding version number from AMD.)

      After applying the patch (and before) the build for the kernel fails with the following output:

       

      5/18) Installing: amdgpu-pro-dkms-17.30-465504.noarch ..........................................................................................................................................................[done]
      Additional rpm output:
      Loading new amdgpu-pro-17.30-465504 DKMS files...
      Building for 4.4.87-25-default
      Building initial module for 4.4.87-25-default
      Error! Bad return status for module build on kernel: 4.4.87-25-default (x86_64)
      Consult /var/lib/dkms/amdgpu-pro/17.30-465504/build/make.log for more information.
      warning: %post(amdgpu-pro-dkms-0:17.30-465504.noarch) scriptlet failed, exit status 10

      Make log file output: https://paste.opensuse.org/78197197

      I removed the DRM kernel package already.

       

      Any suggestions are welcome.

        • Re: amdgpu-pro 17.30: building kernel module fails on openSUSE Leap 42.3
          t170925

          In case it may help debugging output of

           

          /sbin/lspci -nnk |grep -A3 VGA

          00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R7 Graphics] [1002:1313]
            Subsystem: ASUSTeK Computer Inc. Device [1043:85cb]
            Kernel driver in use: radeon
            Kernel modules: radeon
            • Re: amdgpu-pro 17.30: building kernel module fails on openSUSE Leap 42.3
              cajus

              I also had this problem and I modified the recipe from https://community.amd.com/message/2816979#comment-2816979 until I was able to compile and load the kernel modules.

              My modifications are really quick and dirty, the modified RPM will not work on other Linux disributions or other versions than the amdgpu-pro 17.30

              I wrote a small script, that does the modifications.

              The script expects the amdgpu-pro 17.30 package extracted at ~/AMDGPU-PRO.

              Download the script and the patch file, e.g. to ~/Downloads. Extract the patch file (the zip archive seems to be created automatically, when attaching a file!?)

              cd ~/Downloads

              ./rebuild_dkms.sh

              This should create a modified amdgpu-pro-dkms-17.30-465504.noarch.rpm in ~/Downloads

              Copy the file to its original location at ~/AMDGPU-PRO/amdgpu-pro-17.30-465504/RPMS/noarch

              and install the driver with amdgpu-pro-install

              This worked for me with the latest kernel linux-4.4.87-25

               

              Some notes about the amdgpu-pro 17.30 on openSUSE-LEAP 42.3:

              The drivers for video-accelleration (mesa-amdgpu-pro-vdpau-drivers-17.0.1-465504_x86_64.rpm) cannot be installed, because the dependency to mesa-filesystem cannot be fulfilled. I did not find any matching package with the software-search on openSUSE. Therefore you will still have issues (like with the radeon driver), when watching videos. Any help with this will be appreciated!

              VMware Workstation 14 will not run with the amdgpu-pro driver and "Accellerate 3D" activated for a virtual machine (which was the main reason, why I tried the proprietary AMD driver).

              VMware will stick at "Waiting for connection" and only a reboot of the host will make VMware Workstation accessible again. It seems to work if you uncheck "Accellerate 3D" for all VMs, which is the same I have to do with the radeon driver. The radeon driver will crash my host, when I enable "Accellerate 3D" and use a function in my VM that uses 3D.

              I use a "VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Oland XT [Radeon HD 8670 / R7 250/350]", which seems to be more problematic than a 6570 or 5450, which I also tried, but the 6570 and 5450 are even slower and mostly unusable vor watching video in FullHD.

              2 of 2 people found this helpful
                • Re: amdgpu-pro 17.30: building kernel module fails on openSUSE Leap 42.3
                  juan37

                  Many thanks for Your help!

                   

                  With the driver amdgpu-pro-dkms-16.60 the video cards R7 240 was not supported (I had one), but now with 17.30 I see are all the R7 supported:

                   

                  AMDGPU-PRO Driver for Linux Release Notes

                   

                  Actually I'm using Mesa 17.2.1 from Get openSUSE and the opensource amdgpu driver, and it works fine. But they are 2 problems:

                  1- VLC crashes with the error:

                  [  102.940450] vlc[2836]: segfault at 22c0090 ip 00007f57e11adbe3 sp 00007f57d6d57fe0 error 4 in libLLVMSupport.so.4.0.1[7f57e1113000+fc000]

                  [  143.211138] vlc[2881]: segfault at 42040090 ip 00007f2ab61ddbe3 sp 00007f2aa2f47f80 error 4 in libLLVMSupport.so.4.0.1[7f2ab6143000+fc000]

                   

                  The library libLLVMSupport.so.4.0.1 is part of Mesa 17.2.1.

                   

                  2- I could'nt get to work Opencl of Mesa with Davinci Resolve 14

                   

                  Here are 2 test results with Mesa 17.2.1, I hope with amdgpu-pro 17.30 I will get better results than the actually with Mesa 17.2.1:

                   

                  Unigine Valley Benchmark 1.0

                  FPS:

                  55.4

                  Score:

                  2316

                  Min FPS:

                  6.5

                  Max FPS:

                  65.2

                  System

                  Platform:

                  Linux 4.4.87-25-default x86_64

                  CPU model:

                  AMD FX-8320E Eight-Core Processor (3440MHz) x8

                  GPU model:

                  Unknown GPU (256MB) x1

                  Settings

                  Render:

                  OpenGL

                  Mode:

                  1920x1080 fullscreen

                  Preset

                  Custom

                  Quality

                  Medium

                   

                  Unigine Heaven Benchmark 4.0

                  FPS:

                  75.8

                  Score:

                  1909

                  Min FPS:

                  13.6

                  Max FPS:

                  151.6

                  System

                  Platform:

                  Linux 4.4.87-25-default x86_64

                  CPU model:

                  AMD FX-8320E Eight-Core Processor (3440MHz) x8

                  GPU model:

                  Unknown GPU (256MB) x1

                  Settings

                  Render:

                  OpenGL

                  Mode:

                  1920x1080 fullscreen

                  Preset

                  Custom

                  Quality

                  Medium

                  Tessellation:Disabled
                  • Re: amdgpu-pro 17.30: building kernel module fails on openSUSE Leap 42.3
                    t170925

                    Thank you for your script and patch. I got the driver successfully installed. I did remove it however due to instability of the driver.