Mint 17 and 18 and now 19 AMD GPU drivers! Look here before doing anything!

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kypec

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by kypec »

I have followed spitzak's instructions and went ahead with fresh installation of Linux Mint 18.3 Cinnamon. I let the Update manager update all available updates that were pending including kernel upgrade to 4.13.0-41. Once updated and rebooted I continued with sudo apt install xserver-xorg-hwe-16.04. Finally, after reboot I installed AMDGPU-PRO 17.50 for Ubuntu package with modified install script as needed i.e. replaced ubuntu) -> linuxmint) and run ./amdgpu-pro-install --opencl=legacy because I have Polaris card RX580. Everything went fine and my system booted to desktop environment without any issues, even OpenCL works as expected (running ethminer at the moment to test GPU under heavy load). :D
I have yet to verify audio over HDMI functionality as that is important for me too once I put this new HTPC next to TV set but hopefully it'll work as well.
UPDATE 2018/05/20: Yep, audio over HDMI works fine!
Here are few diagnostic logs for anybody's reference: :wink:
uname -a

Code: Select all

Linux HTPC 4.13.0-41-generic #46~16.04.1-Ubuntu SMP Thu May 3 10:06:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
sudo lshw -C video

Code: Select all

  *-display               
       description: VGA compatible controller
       product: Advanced Micro Devices, Inc. [AMD/ATI]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:0c:00.0
       version: e7
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
       configuration: driver=amdgpu latency=0
       resources: irq:340 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:fe800000-fe83ffff memory:c0000-dffff
glxinfo -B

Code: Select all

name of display: :0
display: :0  screen: 0
direct rendering: Yes
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Radeon RX 580 Series
OpenGL core profile version string: 4.5.13505 Core Profile Context 17.50.2.13
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5.13505 Compatibility Profile Context 17.50.2.13
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: 4.5.13505 Compatibility Profile Context 17.50.2.13
OpenGL ES profile shading language version string: 4.50
inxi -Gx

Code: Select all

Graphics:  Card: Advanced Micro Devices [AMD/ATI] Device 67df bus-ID: 0c:00.0
           Display Server: X.Org 1.19.5 driver: amdgpu
           Resolution: 1440x900@59.89hz
           GLX Renderer: Radeon RX 580 Series
           GLX Version: 4.5.13505 - CPC 17.50.2.13 Direct Rendering: Yes
clinfo

Code: Select all

Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (2527.3)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback cl_amd_offline_devices 
  Platform Host timer resolution                  <printPlatformInfo:5: get CL_PLATFORM_HOST_TIMER_RESOLUTION : error -30>
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     Ellesmere
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 1.2 AMD-APP (2527.3)
  Driver Version                                  2527.3
  Device OpenCL C Version                         OpenCL C 1.2 
  Device Type                                     GPU
  Device Profile                                  FULL_PROFILE
  Device Board Name (AMD)                         Radeon RX 580 Series
  Device Topology (AMD)                           PCI-E, 0c:00.0
  Max compute units                               36
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                16
  SIMD instruction width (AMD)                    1
  Max clock frequency                             1366MHz
  Graphics IP (AMD)                               8.0
  Device Partition                                (core)
    Max number of sub-devices                     36
    Supported partition types                     none specified
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             256
  Preferred work group size multiple              64
  Wavefront width (AMD)                           64
  Preferred / native vector sizes                 
    char                                                 4 / 4       
    short                                                2 / 2       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 1 / 1        (cl_khr_fp16)
    float                                                1 / 1       
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     No
    Infinity and NANs                             No
    Round to nearest                              No
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Single-precision Floating-point support         (core)
    Denormals                                     No
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Address bits                                    64, Little-Endian
  Global memory size                              4328013824 (4.031GiB)
  Global free memory (AMD)                        4181392 (3.988GiB)
  Global memory channels (AMD)                    8
  Global memory banks per channel (AMD)           16
  Global memory bank width (AMD)                  256 bytes
  Error Correction support                        No
  Max memory allocation                           3535387238 (3.293GiB)
  Unified memory for Host and Device              No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       2048 bits (256 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        16384
  Global Memory cache line                        64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            134217728 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   256 bytes
    Pitch alignment for 2D image buffers          256 bytes
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             2048x2048x2048 pixels
    Max number of read image args                 128
    Max number of write image args                8
  Local memory type                               Local
  Local memory size                               32768 (32KiB)
  Local memory syze per CU (AMD)                  65536 (64KiB)
  Local memory banks (AMD)                        32
  Max constant buffer size                        3535387238 (3.293GiB)
  Max number of constant args                     8
  Max size of kernel argument                     1024
  Queue properties                                
    Out-of-order execution                        No
    Profiling                                     Yes
  Prefer user sync for interop                    Yes
  Profiling timer resolution                      1ns
  Profiling timer offset since Epoch (AMD)        1526154605898039928ns (Sat May 12 21:50:05 2018)
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Thread trace supported (AMD)                  Yes
    SPIR versions                                 1.2
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Device Extensions                               cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_gl_event 

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              Success [AMD]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   Ellesmere
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   Ellesmere
Last edited by kypec on Sun May 20, 2018 2:54 pm, edited 1 time in total.
User avatar
MurphCID
Level 15
Level 15
Posts: 5908
Joined: Fri Sep 25, 2015 10:29 pm
Location: Near San Antonio, Texas

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by MurphCID »

kypec wrote: Mon May 14, 2018 4:25 am I have followed spitzak's instructions and went ahead with fresh installation of Linux Mint 18.3 Cinnamon. I let the Update manager update all available updates that were pending including kernel upgrade to 4.13.0-41. Once updated and rebooted I continued with sudo apt install xserver-xorg-hwe-16.04. Finally, after reboot I installed AMDGPU-PRO 17.50 for Ubuntu package with modified install script as needed i.e. replaced ubuntu) -> linuxmint) and run ./amdgpu-pro-install --opencl=legacy because I have Polaris card RX580. Everything went fine and my system booted to desktop environment without any issues, even OpenCL works as expected (running ethminer at the moment to test GPU under heavy load). :D
I have yet to verify audio over HDMI functionality as that is important for me too once I put this new HTPC next to TV set but hopefully it'll work as well. Here are few diagnostic logs for anybody's reference: :wink:
How did you modify the install script?
spitzak

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by spitzak »

Audio over Display Port is working fine for me, so I feel over HDMI is going to work as well. Good luck!
kypec

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by kypec »

MurphCID wrote: Mon May 14, 2018 6:31 am How did you modify the install script?
You need to edit amdgpu-install script and replace ubuntu) with linuxmint) in one of the functions in order to allow script operation to proceed when executed on different Linux distro (Linux Mint in our case) as opposed to original Ubuntu for which the script has been created.
kypec

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by kypec »

spitzak wrote: Wed May 16, 2018 3:13 pm Audio over Display Port is working fine for me, so I feel over HDMI is going to work as well. Good luck!
Yeah, I can confirm that audio works just fine over HDMI as well. Thank you one more time for that priceless advice on installation of crucial component! :P
User avatar
MurphCID
Level 15
Level 15
Posts: 5908
Joined: Fri Sep 25, 2015 10:29 pm
Location: Near San Antonio, Texas

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by MurphCID »

kypec wrote: Sun May 20, 2018 2:58 pm
MurphCID wrote: Mon May 14, 2018 6:31 am How did you modify the install script?
You need to edit amdgpu-install script and replace ubuntu) with linuxmint) in one of the functions in order to allow script operation to proceed when executed on different Linux distro (Linux Mint in our case) as opposed to original Ubuntu for which the script has been created.
Sorry I am being dense, where would I find that to edit it?
benm628

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by benm628 »

Has anyone tried with amdgpu-pro-18.10-572953? I'm running kernel 4.13.0-43. (I'd try it myself, but I don't want to go through the trouble of having to fix everything if it fails.)
ouck

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by ouck »

benm628 wrote: Fri Jun 08, 2018 6:36 am Has anyone tried with amdgpu-pro-18.10-572953? I'm running kernel 4.13.0-43. (I'd try it myself, but I don't want to go through the trouble of having to fix everything if it fails.)
viewtopic.php?p=1478416#p1478416

This method works for me, my problem was:

Code: Select all

3. Use this command to update the X.Org X Server from version 1.18 to 1.19 and reboot:
sudo apt install xserver-xorg-hwe-16.04
gauravcj

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by gauravcj »

Alchemek wrote: Fri Jun 23, 2017 12:52 pm For those who are interested primarily in open source video drivers for AMD video cards, I recommend referring to the following link: https://www.x.org/wiki/RadeonFeature

By referring to this link and choosing a video card based on it, you guarantee open source video driver support for yourself. I have done so personally. I bought the AMD Radeon R7 250 based on this information, and I have solid performance with this card because it is supported.
Hey Alchemek,
Thanks for this post. Needed help on two fronts:
1. How do I install these drivers. I could go and git clone them. What subsequent steps?
2. How do you measure and quantify "solid performance" are there standard benchmarks?

Thanks
User avatar
MurphCID
Level 15
Level 15
Posts: 5908
Joined: Fri Sep 25, 2015 10:29 pm
Location: Near San Antonio, Texas

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by MurphCID »

Is there anything good on the AMD Vega front with Kernel 4.15? Has AMD finally released stable Vega drivers?
focamichi

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by focamichi »

I came here just to confirm that OpenCL is working fine on this set:

AMD R9 390
Linux Mint 19 Beta
kernel 4.15.0-20-generic
amdgpu-pro-18.20-606296
xnaskos

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by xnaskos »

Hi! I have a Radeon HD6600. Is it possible to install the AMD proprietary drivers, since I do have some glitches even in apps like chromium?
I have Mint 18.3 Cinnamon installed with kernel 4.13.0-45-generic...
User avatar
MurphCID
Level 15
Level 15
Posts: 5908
Joined: Fri Sep 25, 2015 10:29 pm
Location: Near San Antonio, Texas

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by MurphCID »

The Spouse-Unit's laptop is an HP 15.6" AMD FX9800 with Radeon R7 graphics, 8gb ram, 1tb 7200 rpm HD. Since it is an older machine, would Linux Mint 18.3 or 19.x work on that hardware? It is last generation hardware. I was thinking of updating her to a newer Ryzen system for Christmas, and taking her machine for me as a gaming/work laptop.
Citizen229

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by Citizen229 »

Murph,
As a mobile user you will have open source only as an option. As per the first post of this thread.
patrikx3

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by patrikx3 »

ciao!

do you guys know if to install it for linix mint 19 tara?
my laptop just crash and reboot often and i can see artifacts on the screen, little often.
this is only fo 18.3 and 17, do you guys it is possible to use with 19?

thanks! :( :shock:
focamichi

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by focamichi »

patrikx3 wrote: Tue Jul 03, 2018 1:55 pm and i can see artifacts on the screen
Sometimes those artifacts could be indication of a faulty GPU.
this is only fo 18.3 and 17, do you guys it is possible to use with 19?
Could you give a bit more information about that laptop, please? What GPU does it have... to begin with?
User avatar
MurphCID
Level 15
Level 15
Posts: 5908
Joined: Fri Sep 25, 2015 10:29 pm
Location: Near San Antonio, Texas

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by MurphCID »

Citizen229 wrote: Mon Jul 02, 2018 9:04 am Murph,
As a mobile user you will have open source only as an option. As per the first post of this thread.
Thanks, but do the open source drivers work worth a darn?
Citizen229

Re: Mint 17 and 18 AMDGPU drivers! Look here before doing anything!

Post by Citizen229 »

MurphCID wrote: Tue Jul 03, 2018 8:04 pm
Citizen229 wrote: Mon Jul 02, 2018 9:04 am Murph,
As a mobile user you will have open source only as an option. As per the first post of this thread.
Thanks, but do the open source drivers work worth a darn?
/shrugs. Nvidia user now.
olay1

Re: Mint 17 and 18 and now 19 AMD GPU drivers! Look here before doing anything!

Post by olay1 »

Would this work on a 2200g on Linux mint cinnamon?
iptvengineer

Re: Mint 17 and 18 and now 19 AMD GPU drivers! Look here before doing anything!

Post by iptvengineer »

I have read a lot of posts and 'successfully' installed the amdgpu-pro driver on Mint 19 (Tara). However, regardless of what I install, on the second boot after the OS installation, the screen dims during boot and nothing brings it back to bright. I even did a fresh install of Mint 18.3. Problem exists regardless of whether I take the updates or not. No brightness issues during install, nor during the first running on the local hard drive. The problem always occurs on the second boot and thereafter.I am currently using a functional workaround by adding nomodeset to the grub load (something easily reversed).

The laptop is new, a Lenovo ideapad 320-15ABR. Single boot directly into Linux. I have tried with both Legacy and UEFI settings. The video card reports the following:
Graphics: Card: Advanced Micro Devices [AMD/ATI] Carrizo bus-ID: 00:01.0
Display Server: x11 (X.Org 1.19.6 )
drivers: fbdev,ati (unloaded: modesetting,vesa,radeon)
Resolution: 1366x768@76.00hz
OpenGL: renderer: llvmpipe (LLVM 6.0, 128 bits)
version: 3.3 Mesa 18.0.0-rc5 Direct Render: Yes
Audio: Card-1 Advanced Micro Devices [AMD] Device 157a
driver: snd_hda_intel bus-ID: 00:09.2
Card-2 Advanced Micro Devices [AMD/ATI] Kabini HDMI/DP Audio
driver: snd_hda_intel bus-ID: 00:01.1
Sound: Advanced Linux Sound Architecture v: k4.15.0-24-generic

Kernel:4.15.0-24-generic

Is there a config file that is written the first time it runs locally that could be causing the issue? I have looked at a lot of settings, and found no difference between the status when it is working (during install and first run) and when it fails (after second boot). Any help is appreciated. Thanks in advance.
Locked

Return to “Graphics Cards & Monitors”