Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: Coyn on August 19, 2017, 10:52:16 AM



Title: Linux Driver for Blockchain Compute 17.30.1029
Post by: Coyn on August 19, 2017, 10:52:16 AM
We all know that the new Radeon Software Crimson ReLive Edition Beta for Blockchain Compute Driver Version 17.30.1029 was released for Windows a few days ago.
When is this driver actually going to be compiled for Linux? We really need it AMD. Most of the huge farms are running on Linux.

Fix it!  ;D


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: QuintLeo on August 19, 2017, 08:47:47 PM
Try posting on AMD's website, they MIGHT pay attention to that.

 IMO AMD dropped the ball BADLY when they released this driver for Windows AND NOT FOR LINUX, since the bulk of cryptocoin rigs run LINUX.



Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: cpunkt on August 29, 2017, 08:48:04 AM
Here is the solution:
The new ROCm Kernel works great, my hashrate went from 155 > 167Mhs/s with 6*RX470 with Ubuntu 16.4

#Install new ROCm Kernel:

wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo apt-get update
sudo apt-get install rocm

#edit grub
sudo nano  /etc/default/grub
#2MB fragments for Ellesmere are enabled with a grub option:
GRUB_CMDLINE_LINUX="amdgpu.vm_fragment_size=9"

sudo update-grub
sudo reboot

choose new Kernel and its done!

Thx to gstoner from ROCm Github.


Feel free to donate if you happy ;-)

ETH:0xccad3d66b29ae2924df835df1417169ca59943b5
BTC:12F7uXSpTwVhf4ppdh92uieAvrevZ4ShEf

Greetz


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: parshuram on August 29, 2017, 01:16:37 PM
This does not works in ethos ! Anything else?


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: drrobert on August 29, 2017, 04:09:42 PM
did you try with last from amd website 17.30... ?


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: parshuram on August 29, 2017, 05:08:33 PM
did you try with last from amd website 17.30... ?

No...How?


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: drrobert on August 29, 2017, 05:47:15 PM
did you try with last from amd website 17.30... ?

No...How?
bit easy go on amd web site and get amd for linux there is instruction to install driver


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: jstefanop on August 29, 2017, 06:37:04 PM
I worked with gstoner at AMD to fix this on linux side. Donations welcome :P


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: Serdar_Aydin on August 30, 2017, 08:40:50 PM
Dear Friends,
i tried on two rig, all rig has RX570 GPU,
i complated all steps but system does not working.
when system complate reboot process, it can not connect  mining pool (eu1.ethermine.org:4444) :(((


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: fandemonium on August 31, 2017, 06:19:46 AM
Here is the solution:
The new ROCm Kernel works great, my hashrate went from 155 > 167Mhs/s with 6*RX470 with Ubuntu 16.4

#Install new ROCm Kernel:

wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo apt-get update
sudo apt-get install rocm

#edit grub
sudo nano  /etc/default/grub
#2MB fragments for Ellesmere are enabled with a grub option:
GRUB_CMDLINE_LINUX="amdgpu.vm_fragment_size=9"

sudo update-grub
sudo reboot

choose new Kernel and its done!

Thx to gstoner from ROCm Github.


Feel free to donate if you happy ;-)

ETH:0xccad3d66b29ae2924df835df1417169ca59943b5
BTC:12F7uXSpTwVhf4ppdh92uieAvrevZ4ShEf

Greetz


Has anyone managed to get this working on ethOS? Any instructions for it?


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: osnwt on August 31, 2017, 08:03:05 AM
I worked with gstoner at AMD to fix this on linux side. Donations welcome :P

I tried 2 scenarios to install that and both had failed.

#1: ubuntu-16.04.2 server with already installed amdgpu-17.10 (running system).
Attempt to install rocm failed at amdgpu module rebuild stage (version 17.10).
Attempt to boot new kernel resulted in black screen during kernel start at the moment when a video mode should be changed.

#2: ubuntu-16.04.3 desktop (new installation, no yet amdgpu driver - used built-in one).
rocm installation succeeded, after reboot the new kernel is running well.
Attempt to install amdgpu-17.30 failed at module rebuild stage: "headers 4.11 not supported" message, build log contains errors with incompatible argument types of atomic vs struct.
Original amdgpu driver (built-in) mining with the same hash rate as before (2 MH/s lower that it does on Windows).

Any hints from those who has it working: your ubuntu version, amdgpu version (if not built-in), order of installation?


Title: (SOLVED) Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: osnwt on August 31, 2017, 04:43:50 PM
I tried 2 scenarios to install that and both had failed.
Any hints from those who has it working: your ubuntu version, amdgpu version (if not built-in), order of installation?

Success!

HowTo:
1) Install ubuntu 16.04.3.
2) Install rocm as described above.
3) Add amdgpu parameter as described above. It is the key to success, don't miss that step.
4) Install amdgpu-17.30 as told by AMD.
Kernel module build fails, but correct driver is in the rocm installation. AMD driver is necessary for libOpenCL, etc.
5) Overclock using any tool (if desired).
6) Enjoy!

ETH hashrate under linux seems to be 0.3MH/s lesser than on Windows, it is a known issue and probably just measurement difference (see Claymore's FAQ).

But I should be able to run more than 8 cards per MB, will try ASAP.


Title: Re: (SOLVED) Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: laik2 on August 31, 2017, 08:56:32 PM
I tried 2 scenarios to install that and both had failed.
Any hints from those who has it working: your ubuntu version, amdgpu version (if not built-in), order of installation?

Success!

HowTo:
1) Install ubuntu 16.04.3.
2) Install rocm as described above.
3) Add amdgpu parameter as described above. It is the key to success, don't miss that step.
4) Install amdgpu-17.30 as told by AMD.
Kernel module build fails, but correct driver is in the rocm installation. AMD driver is necessary for libOpenCL, etc.
5) Overclock using any tool (if desired).
6) Enjoy!

ETH hashrate under linux seems to be 0.3MH/s lesser than on Windows, it is a known issue and probably just measurement difference (see Claymore's FAQ).

But I should be able to run more than 8 cards per MB, will try ASAP.

1.Download latest linux 4.12.10 from kernel.org
2.Apply patches from here: https://patchwork.freedesktop.org/project/amd-xorg-ddx/series/?ordering=-last_updated( more advanced way)
3.Compile kernel -> the ubuntu way.
4.Install kernel using dpkg
5. Download amdgpu-pro-17.30 latest, unarchive and edit amdgpu-pro-install, under the --compute function remove amdgpu-pro-dkms.
6. Exec ./amdgpu-pro-install --compute to install only opencl and libdrm
7. dpkg -x amdgpu-pro-dkms.... /out; cd out/usr/src/amdgpu-pro/lib/firmware && rm /lib/firmware/amdgpu/* && cp * /lib/firmware/amdgpu
8. add amdgpu.vm_fragment_size=9 to /etc/default/grub as stated in previous posts.
8.1. add if you are using user to video group usermod -a -G video $user
9. update-grub && update-initramfs -u
10. Reboot and mine.




Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: osnwt on September 01, 2017, 04:13:46 AM
Much better way, does not pull whole rocm.
But which patches to apply from the link above? All?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: drrobert on September 01, 2017, 06:18:04 AM
It works but, as I've said on SMOS thread, using roc kernel and changing boot parameter makes power consumption goes from 1150W to 1550W (on the wall, at least on my rx580 rig). Have you checked your power consumption after this change?

I use roc kernel on smos and consume it is the same, maybe you changed power step (consume is setup at level of bios of gpu, i have steps from 2 to 7 to my target voltage), check them on console.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: osnwt on September 01, 2017, 07:17:27 AM
It works but, as I've said on SMOS thread, using roc kernel and changing boot parameter makes power consumption goes from 1150W to 1550W (on the wall, at least on my rx580 rig). Have you checked your power consumption after this change?
On Windows I had 1162W. After switch to this kernel on Linux I tried to downvolt my rx470 by changing voltage table offsets in the DPM stages (that is, set offset of stage 4 or 6, or directly 1000-1050mV, to stage 7, so power consumption is lesser). At the same time I overclock memory and downclock GPU (mostly the same as on Windows). Used ohgodatool for that in realtime.

At the moment I was unable to get the same power consumption, it went from 1162 to 1300 now.

I know that it is not the best way to downvolt. I tried to change VDDC offset in the BIOS (since realtime VDDC change tools are not publicly available, and I have too few cards to hack it myself). This way works with my Sapphire cards, but it requires many reflashes when tuning every card for a stable operation. So I hoped to use only software ways to overclock and downvolt without changing BIOS (except timings).

Probably I have to use the BIOS way anyway if I want a comparable consumption to Windows rig.

As for the hashrate: even if displayed rates are bit lower (Claymore's miner) than on Windows, actual pool rates are the same. So the consumption is only my headache yet.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: drrobert on September 01, 2017, 09:17:39 AM

- how to check these power steps on linux console?
- how to change them?
- my power consumption at wall were too high also before change (4x rx580 @ 1150W at wall) with smos (oc 1175-2250 dpm state 2). what about yours?

Thank you in advance

If you use smos you can change them on web app, my power consume is 1090 watt at wall 8 x rx480 (1170/2200 -> 30.6mhs each)
/sys/class/drm/card(Number)/device/power_dpm_force_performance_level must be manual
/sys/class/drm/card(Number) should be number of dpm state that you choiched


Title: Re: (SOLVED) Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: osnwt on September 01, 2017, 03:37:16 PM
1.Download latest linux 4.12.10 from kernel.org
2.Apply patches from here: https://patchwork.freedesktop.org/project/amd-xorg-ddx/series/?ordering=-last_updated( more advanced way)
3.Compile kernel -> the ubuntu way.
4.Install kernel using dpkg
5. Download amdgpu-pro-17.30 latest, unarchive and edit amdgpu-pro-install, under the --compute function remove amdgpu-pro-dkms.
6. Exec ./amdgpu-pro-install --compute to install only opencl and libdrm
7. dpkg -x amdgpu-pro-dkms.... /out; cd out/usr/src/amdgpu-pro/lib/firmware && rm /lib/firmware/amdgpu/* && cp * /lib/firmware/amdgpu
8. add amdgpu.vm_fragment_size=9 to /etc/default/grub as stated in previous posts.
8.1. add if you are using user to video group usermod -a -G video $user
9. update-grub && update-initramfs -u
10. Reboot and mine.

Is a real reason to build new kernel such as performance or stability issues?

Since I wasn't sure what patches to apply, I used a mix of both ways:
1. Installed not whole rocm package but only kernel image and headers 4.11 from rocm repository.
2. Installed compute-only 17.30 amd driver as recommended above (without dkms).
3. Added amdgpu module option.

Still there are issues with very slow boot (known issue if VBIOS was patched). But it runs.
Is 4.12 kernel somehow better?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: xmonkx on September 05, 2017, 04:31:04 AM
Here is the solution:
The new ROCm Kernel works great, my hashrate went from 155 > 167Mhs/s with 6*RX470 with Ubuntu 16.4

#Install new ROCm Kernel:

wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo apt-get update
sudo apt-get install rocm

#edit grub
sudo nano  /etc/default/grub
#2MB fragments for Ellesmere are enabled with a grub option:
GRUB_CMDLINE_LINUX="amdgpu.vm_fragment_size=9"

sudo update-grub
sudo reboot

choose new Kernel and its done!

Thx to gstoner from ROCm Github.


Feel free to donate if you happy ;-)

ETH:0xccad3d66b29ae2924df835df1417169ca59943b5
BTC:12F7uXSpTwVhf4ppdh92uieAvrevZ4ShEf

Greetz


There is 6 rx570 and 6 GTX1060 in my rig.
After applying ROCm kernel, if I pull out all the Nvidia cards, everything works perfectly.
If there is any Nvidia card plugged in my rig, rig is broken, hangs at miner or even cannot boot.

Any idea?

Thanks!



Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: H0RNET on September 05, 2017, 02:32:52 PM
Here is the solution:
The new ROCm Kernel works great, my hashrate went from 155 > 167Mhs/s with 6*RX470 with Ubuntu 16.4

#Install new ROCm Kernel:

wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo apt-get update
sudo apt-get install rocm

#edit grub
sudo nano  /etc/default/grub
#2MB fragments for Ellesmere are enabled with a grub option:
GRUB_CMDLINE_LINUX="amdgpu.vm_fragment_size=9"

sudo update-grub
sudo reboot

choose new Kernel and its done!

Thx to gstoner from ROCm Github.


Feel free to donate if you happy ;-)

ETH:0xccad3d66b29ae2924df835df1417169ca59943b5
BTC:12F7uXSpTwVhf4ppdh92uieAvrevZ4ShEf

Greetz

It's work! (ubuntu 16.04)
Thank you


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: NameTaken on September 05, 2017, 03:16:31 PM
Ubuntu 17.04, RX 470 Strix 4GB, 4.11.0-kfd-compute-rocm-rel-1.6-148 kernel made no difference.

Code:
Sep 05 08:10:51 ethdcrminer64[1518]:  LBC: Share accepted (144 ms)!
Sep 05 08:10:53 ethdcrminer64[1518]:  LBC: 09/05/17-08:10:53 - New job from lbry.suprnova.cc:6256
Sep 05 08:10:58 ethdcrminer64[1518]: GPU0 t=67C fan=87%, GPU1 t=54C fan=87%, GPU2 t=59C fan=87%, GPU3 t=66C fan=87%, GPU4 t=65C fan=87%, GPU5 t=62C fan=87%
Sep 05 08:11:11 ethdcrminer64[1518]:  LBC: 09/05/17-08:11:11 - SHARE FOUND - (GPU 3)
Sep 05 08:11:12 ethdcrminer64[1518]:  LBC: Share accepted (143 ms)!
Sep 05 08:11:17 ethdcrminer64[1518]:  LBC: 09/05/17-08:11:16 - SHARE FOUND - (GPU 0)
Sep 05 08:11:17 ethdcrminer64[1518]:  LBC: Share accepted (143 ms)!
Sep 05 08:11:27 ethdcrminer64[1518]: GPU0 t=67C fan=87%, GPU1 t=54C fan=87%, GPU2 t=60C fan=87%, GPU3 t=66C fan=87%, GPU4 t=65C fan=87%, GPU5 t=62C fan=87%
Sep 05 08:11:30 ethdcrminer64[1518]: ETH: 09/05/17-08:11:30 - SHARE FOUND - (GPU 3)
Sep 05 08:11:30 ethdcrminer64[1518]: ETH: Share accepted (66 ms)!
Sep 05 08:11:39 ethdcrminer64[1518]: ETH: 09/05/17-08:11:38 - SHARE FOUND - (GPU 5)
Sep 05 08:11:39 ethdcrminer64[1518]: ETH: Share accepted (66 ms)!
Sep 05 08:11:44 ethdcrminer64[1518]: ETH: 09/05/17-08:11:43 - New job from us2.ubiqpool.io:8008
Sep 05 08:11:44 ethdcrminer64[1518]: ETH - Total Speed: 122.668 Mh/s, Total Shares: 6, Rejected: 0, Time: 00:04
Sep 05 08:11:44 ethdcrminer64[1518]: ETH: GPU0 22.521 Mh/s, GPU1 17.889 Mh/s, GPU2 20.122 Mh/s, GPU3 19.981 Mh/s, GPU4 21.968 Mh/s, GPU5 20.187 Mh/s
Sep 05 08:11:44 ethdcrminer64[1518]:  LBC - Total Speed: 352.666 Mh/s, Total Shares: 17, Rejected: 0
Sep 05 08:11:44 ethdcrminer64[1518]:  LBC: GPU0 64.748 Mh/s, GPU1 51.430 Mh/s, GPU2 57.850 Mh/s, GPU3 57.444 Mh/s, GPU4 63.156 Mh/s, GPU5 58.038 Mh/s
Sep 05 08:11:48 ethdcrminer64[1518]:  LBC: 09/05/17-08:11:48 - New job from lbry.suprnova.cc:6256                                                                             
Sep 05 08:11:49 ethdcrminer64[1518]:  LBC: 09/05/17-08:11:49 - SHARE FOUND - (GPU 1)                                                                                         
Sep 05 08:11:49 ethdcrminer64[1518]:  LBC: Share accepted (143 ms)!                                                                                                           
Sep 05 08:11:52 ethdcrminer64[1518]:  LBC: 09/05/17-08:11:52 - SHARE FOUND - (GPU 5)                                                                                         
Sep 05 08:11:52 ethdcrminer64[1518]:  LBC: Share accepted (142 ms)!                                                                                                           
Sep 05 08:11:58 ethdcrminer64[1518]: GPU0 t=67C fan=87%, GPU1 t=54C fan=87%, GPU2 t=60C fan=87%, GPU3 t=66C fan=87%, GPU4 t=66C fan=87%, GPU5 t=62C fan=87%                   
Sep 05 08:12:13 ethdcrminer64[1518]:  LBC: 09/05/17-08:12:12 - SHARE FOUND - (GPU 4)                                                                                         
Sep 05 08:12:13 ethdcrminer64[1518]:  LBC: Share accepted (144 ms)!                                                                                                           
Sep 05 08:12:28 ethdcrminer64[1518]: GPU0 t=67C fan=87%, GPU1 t=54C fan=87%, GPU2 t=60C fan=87%, GPU3 t=67C fan=87%, GPU4 t=66C fan=87%, GPU5 t=62C fan=87%                   
Sep 05 08:12:37 ethdcrminer64[1518]:  LBC: 09/05/17-08:12:37 - SHARE FOUND - (GPU 4)                                                                                         
Sep 05 08:12:37 ethdcrminer64[1518]:  LBC: Share accepted (143 ms)!
Sep 05 08:12:43 ethdcrminer64[1518]:  LBC: 09/05/17-08:12:43 - New job from lbry.suprnova.cc:6256                                                                             
Sep 05 08:12:46 ethdcrminer64[1518]:  LBC: 09/05/17-08:12:45 - SHARE FOUND - (GPU 5)                                                                                         
Sep 05 08:12:46 ethdcrminer64[1518]:  LBC: Share accepted (144 ms)!                                                                                                           
Sep 05 08:12:56 ethdcrminer64[1518]: ETH: 09/05/17-08:12:56 - SHARE FOUND - (GPU 2)                                                                                           
Sep 05 08:12:56 ethdcrminer64[1518]: ETH: Share accepted (66 ms)!                                                                                                             


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: osnwt on September 06, 2017, 05:25:52 AM
Ubuntu 17.04, RX 470 Strix 4GB, 4.11.0-kfd-compute-rocm-rel-1.6-148 kernel made no difference.
Din't you forget to add 'amdgpu.vm_fragment_size=9'? Without that module option the hashrate will be the same.

As for me, rocm kernel works as expected. Except it does not downvolt cards. I tried SMOS with original kernel and rocm. With original it can decrease power consumption, but has low hashrate. With rocm kernel the hashrate is higher, but DPM state changes do nothing, consumption is always high.


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: NameTaken on September 06, 2017, 05:36:32 AM
Ubuntu 17.04, RX 470 Strix 4GB, 4.11.0-kfd-compute-rocm-rel-1.6-148 kernel made no difference.
Din't you forget to add 'amdgpu.vm_fragment_size=9'? Without that module option the hashrate will be the same.

As for me, rocm kernel works as expected. Except it does not downvolt cards. I tried SMOS with original kernel and rocm. With original it can decrease power consumption, but has low hashrate. With rocm kernel the hashrate is higher, but DPM state changes do nothing, consumption is always high.


Code:
~# cat /sys/module/amdgpu/parameters/vm_fragment_size                                                                                                             
9


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: christianCoder on September 06, 2017, 11:17:51 PM
Used the originally posted fix https://bitcointalk.org/index.php?topic=2102129.msg21304863#msg21304863 (https://bitcointalk.org/index.php?topic=2102129.msg21304863#msg21304863). Rig hash rate using Claymore increased from about 244.9 Mh/s to 265.3 Mh/s.

Thank you Mr @cpunkt


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: osnwt on September 07, 2017, 07:26:10 AM
We used the originally posted fix https://bitcointalk.org/index.php?topic=2102129.msg21304863#msg21304863 (https://bitcointalk.org/index.php?topic=2102129.msg21304863#msg21304863). Our hash rate on a 9 GPU rig using Claymore increased from about 244.9 Mh/s to 265.3 Mh/s

What about power consumption? Did you downvolt them?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: christianCoder on September 07, 2017, 11:50:08 AM
What about power consumption? Did you downvolt them?

Spent about 2 hours researching your solution but it was just too complicated with custom kernels, etc.

GPUs are all running cooler. Less Heat. All voltages were reduced via custom bios mods.


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: fenixlz on September 10, 2017, 06:57:09 AM
All voltages were reduced via custom bios mods.

How did you do it?


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: drrobert on September 10, 2017, 07:02:58 AM
All voltages were reduced via custom bios mods.

How did you do it?

you need to download bios data from your gpu, edit with bios editor like srbpolaris (work only on window) then flahs it back on target gpu.
Be carefull wrong data can compromise your gpu or also impossible to boot it.
If you don't know what to do you need to use window and use amd software to edit freq and voltage to find better then edit your bios with this values.


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: fenixlz on September 10, 2017, 07:45:39 PM
you need to download bios data from your gpu, edit with bios editor like srbpolaris (work only on window) then flahs it back on target gpu.
Be carefull wrong data can compromise your gpu or also impossible to boot it.
If you don't know what to do you need to use window and use amd software to edit freq and voltage to find better then edit your bios with this values.

But what should I edit exactly to reduce power consumption? I am familiar with Polaris bios editing and flashing, but I have never succeeded reducing power consumption.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: beastman on September 15, 2017, 12:08:54 AM
This is how I proceeded...

I have a Poloris bios Editor one click patch applied on 2x 8G RX 580 sapphire and 2x 4G RX 580.

1. Install ubuntu 16.04.3

2. login and setup basics

3. shutdown, connect 1st gpu and connect to monitor

4. boot and proceed to install ROCm kernel and AMD compute drivers (I used amdgpu-pro-17.30-465504.tar and got 29MHs)

---------------------------------------------------------------
ROCm GPU Server Driver Installation Guide for Linux
https://rocm.github.io/ROCmInstall.html

1. Verify You Have ROCm Capable GPU Installed int the System

lspci | grep -i AMD

2. #Install new ROCm Kernel:

wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'

sudo apt-get update
sudo apt-get install rocm

3. Download amdgpu-pro-17.30 latest, unarchive and edit amdgpu-pro-install, under the --compute function remove amdgpu-pro-dkms

4. sudo ./amdgpu-pro-install --compute "to install only opencl and libdrm"

5. find ROCm boot menuentry ID
sudo grep menuentry /boot/grub/grub.cfg

6. comment out the default boot, add ROCm kernel to grub boot and amd fragment size
sudo vi /etc/default/grub

GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 4.11.0-kfd-compute-rocm-rel-1.6-148"
#GRUB_DEFAULT=0
#2MB fragments for Ellesmere are enabled with a grub option:
GRUB_CMDLINE_LINUX="amdgpu.vm_fragment_size=9"

7. add user to video group
sudo usermod -a -G video $LOGNAME

8. sudo update-grub

9. sudo reboot

10. verify if ROCm kernel is set
sudo uname -r

11. shutdown and add one gpu at a time, test them with miner after every add

I am now hashing at 29MH and was wondering if anyone figured out how to undervolt?


Title: Re: (SOLVED) Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: xmonkx on September 15, 2017, 02:24:36 AM
1.Download latest linux 4.12.10 from kernel.org
2.Apply patches from here: https://patchwork.freedesktop.org/project/amd-xorg-ddx/series/?ordering=-last_updated( more advanced way)
3.Compile kernel -> the ubuntu way.
4.Install kernel using dpkg
5. Download amdgpu-pro-17.30 latest, unarchive and edit amdgpu-pro-install, under the --compute function remove amdgpu-pro-dkms.
6. Exec ./amdgpu-pro-install --compute to install only opencl and libdrm
7. dpkg -x amdgpu-pro-dkms.... /out; cd out/usr/src/amdgpu-pro/lib/firmware && rm /lib/firmware/amdgpu/* && cp * /lib/firmware/amdgpu
8. add amdgpu.vm_fragment_size=9 to /etc/default/grub as stated in previous posts.
8.1. add if you are using user to video group usermod -a -G video $user
9. update-grub && update-initramfs -u
10. Reboot and mine.

Is a real reason to build new kernel such as performance or stability issues?

Since I wasn't sure what patches to apply, I used a mix of both ways:
1. Installed not whole rocm package but only kernel image and headers 4.11 from rocm repository.
2. Installed compute-only 17.30 amd driver as recommended above (without dkms).
3. Added amdgpu module option.

Still there are issues with very slow boot (known issue if VBIOS was patched). But it runs.
Is 4.12 kernel somehow better?


Thanks laik2, I built linux from the git:linux-master and it works.

--
ROCm does not work for my rig with A + N on it.
Therefore, I did laik2 way to build a new kernel for my rig.
However, I found that linux-4.12.10 even linux-4.13.x from linux.org does not support vm_fragment.
There is no vm_fragment member in ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c.
And I don't know which patches to be applied from patchwork.freedesktop.org.
Finally, I google "linux amdgp vm_fragment_size", github.com/torvalds comes out.

What to do is just download linux from github.com/torvalds and buid and run laik2 steps.
And everything works perfect.


Thanks~




Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: CryptoSquad on September 19, 2017, 02:46:00 PM
Would love a bit of help on this.

Basically, i have a custom bios which was sorted in Windows. I also patched Windows using atikmdag tool.

In windows my cards run fine.

When i try the above, i get an error during boot that says:

Invalid PCI Rom signature.

How do i fix this? 


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: CryptoSquad on September 19, 2017, 03:01:48 PM
scrap the above. Got it working. Driver hadnt installed correctly first time

Thanks!


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: CryptoSquad on September 19, 2017, 07:29:03 PM
So i have been running this most of the day.

Whilst its great, dual mining for Siacoin is much better with the Windows Driver.

Not necessarily for speed, but my GPU's are getting to 80 degrees with my dcri as low as 10.

On Windows i run with dcri of 15, and my GPU's sit at 72 degrees max.

However, this linux driver is much more stable for mining just ETH than it is in Windows. In Windows i get random drops for no reason at all (Good temps, good volts etc), but on Linux i dont get that at all.

Anyone else had issues with temps dual mining on this driver?

(RX 580's 4GB OC Edition).

Let me know

Thanks


Title: Re: (SOLVED) Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: rvlad on September 22, 2017, 12:57:58 AM
1.Download latest linux 4.12.10 from kernel.org
2.Apply patches from here: https://patchwork.freedesktop.org/project/amd-xorg-ddx/series/?ordering=-last_updated( more advanced way)
3.Compile kernel -> the ubuntu way.
4.Install kernel using dpkg
5. Download amdgpu-pro-17.30 latest, unarchive and edit amdgpu-pro-install, under the --compute function remove amdgpu-pro-dkms.
6. Exec ./amdgpu-pro-install --compute to install only opencl and libdrm
7. dpkg -x amdgpu-pro-dkms.... /out; cd out/usr/src/amdgpu-pro/lib/firmware && rm /lib/firmware/amdgpu/* && cp * /lib/firmware/amdgpu
8. add amdgpu.vm_fragment_size=9 to /etc/default/grub as stated in previous posts.
8.1. add if you are using user to video group usermod -a -G video $user
9. update-grub && update-initramfs -u
10. Reboot and mine.

Is a real reason to build new kernel such as performance or stability issues?

Since I wasn't sure what patches to apply, I used a mix of both ways:
1. Installed not whole rocm package but only kernel image and headers 4.11 from rocm repository.
2. Installed compute-only 17.30 amd driver as recommended above (without dkms).
3. Added amdgpu module option.

Still there are issues with very slow boot (known issue if VBIOS was patched). But it runs.
Is 4.12 kernel somehow better?


Thanks laik2, I built linux from the git:linux-master and it works.

--
ROCm does not work for my rig with A + N on it.
Therefore, I did laik2 way to build a new kernel for my rig.
However, I found that linux-4.12.10 even linux-4.13.x from linux.org does not support vm_fragment.
There is no vm_fragment member in ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c.
And I don't know which patches to be applied from patchwork.freedesktop.org.
Finally, I google "linux amdgp vm_fragment_size", github.com/torvalds comes out.

What to do is just download linux from github.com/torvalds and buid and run laik2 steps.
And everything works perfect.


Thanks~


Which Linux have you downloaded from github.com/torvalds?
4.12?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: beastman on September 22, 2017, 03:59:20 PM
@CryptoSquad, found this for Linux UV dwarfing-master here https://github.com/rumatoest/dwarfing.

I haven't tried it as I am running back on Win10 for now. If you try it please post your results, should bring your temps down.


@rvlad, I had compiled the Torvalds kernel but it is missing the AMD firmwares and I don't know where to find the patches. Kernel works but can't get the GPU running due to missing firmware.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: rvlad on September 24, 2017, 12:16:25 AM
@CryptoSquad, found this for Linux UV dwarfing-master here https://github.com/rumatoest/dwarfing.

I haven't tried it as I am running back on Win10 for now. If you try it please post your results, should bring your temps down.


@rvlad, I had compiled the Torvalds kernel but it is missing the AMD firmwares and I don't know where to find the patches. Kernel works but can't get the GPU running due to missing firmware.

Please see the message from laik2 proposing to copy AMD firmware from AMD driver.

But the question was to xmonkx which linux from Torvalds git was compiled: 4.12 or newer?


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: bomberb17 on October 01, 2017, 02:52:42 AM
I'm a bit hesitant to install this driver because I'm running my rig remotely, I only have access to Teamviewer and SSH and I can't play with grub.
Is there any 'safe' way to install these drivers?


Title: Re: (SOLVED) Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: xmonkx on October 05, 2017, 03:19:02 AM
1.Download latest linux 4.12.10 from kernel.org
2.Apply patches from here: https://patchwork.freedesktop.org/project/amd-xorg-ddx/series/?ordering=-last_updated( more advanced way)
3.Compile kernel -> the ubuntu way.
4.Install kernel using dpkg
5. Download amdgpu-pro-17.30 latest, unarchive and edit amdgpu-pro-install, under the --compute function remove amdgpu-pro-dkms.
6. Exec ./amdgpu-pro-install --compute to install only opencl and libdrm
7. dpkg -x amdgpu-pro-dkms.... /out; cd out/usr/src/amdgpu-pro/lib/firmware && rm /lib/firmware/amdgpu/* && cp * /lib/firmware/amdgpu
8. add amdgpu.vm_fragment_size=9 to /etc/default/grub as stated in previous posts.
8.1. add if you are using user to video group usermod -a -G video $user
9. update-grub && update-initramfs -u
10. Reboot and mine.

Is a real reason to build new kernel such as performance or stability issues?

Since I wasn't sure what patches to apply, I used a mix of both ways:
1. Installed not whole rocm package but only kernel image and headers 4.11 from rocm repository.
2. Installed compute-only 17.30 amd driver as recommended above (without dkms).
3. Added amdgpu module option.

Still there are issues with very slow boot (known issue if VBIOS was patched). But it runs.
Is 4.12 kernel somehow better?


Thanks laik2, I built linux from the git:linux-master and it works.

--
ROCm does not work for my rig with A + N on it.
Therefore, I did laik2 way to build a new kernel for my rig.
However, I found that linux-4.12.10 even linux-4.13.x from linux.org does not support vm_fragment.
There is no vm_fragment member in ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c.
And I don't know which patches to be applied from patchwork.freedesktop.org.
Finally, I google "linux amdgp vm_fragment_size", github.com/torvalds comes out.

What to do is just download linux from github.com/torvalds and buid and run laik2 steps.
And everything works perfect.


Thanks~


Which Linux have you downloaded from github.com/torvalds?
4.12?



It is 4.13.




Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: MoneroCrusher on October 05, 2017, 11:51:17 PM
Anyone got it to work with RX Vega 56/64 under Ubuntu 16.04 yet?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: sk1nt on October 15, 2017, 04:24:49 PM
I haven't been able to get the Vega's to work beyond 5.5 MH/s in Linux.  I've tried ROMc kernel with amdgpu-pro drivers, compiling my own kernel, compiling the 4.14rc4 and attempting to add the patches listed (all fail).  Maybe I'm missing something when trying to apply the patches, I'm using pwclient and can sort on all new patches, but as I mentioned above all fail. 

Has anyone managed to get the Vega working in Linux and would be kind enough to share the steps, including specific patches against specific kernel.  Would really appreciate any help before I break down and fire up win10.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on October 16, 2017, 02:00:37 PM
Anybody noticed very slow shutdowns/reboots with all amd gpus and driver 17.30?


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: CryptoSquad on October 16, 2017, 04:18:08 PM
Hi All

Having modded my AMD bios's using Windows to about 30mh per card (180mh on a 6 card rig) I then setup linux with this driver, and i am getting only 177mhs

Does this sound normal?  Difference of 0.5 mh's per card for linux?

One thing i did notice is windows every now and then would have a dramatic drop, and then increase back to the expected speeds, where as this seems far more stable at one speed?

Thoughts on all of this?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on October 16, 2017, 05:44:23 PM
Hi All

Having modded my AMD bios's using Windows to about 30mh per card (180mh on a 6 card rig) I then setup linux with this driver, and i am getting only 177mhs

Does this sound normal?  Difference of 0.5 mh's per card for linux?

One thing i did notice is windows every now and then would have a dramatic drop, and then increase back to the expected speeds, where as this seems far more stable at one speed?

Thoughts on all of this?

mostly the windows has more frequent state changes whereas linux isn't doing that.  monitor gpu clocks using below commands for active core and memory frequencies.  
cat /sys/class/drm/card0/device/pp_dpm_sclk | grep '*'
cat /sys/class/drm/card0/device/pp_dpm_mclk  | grep '*'

replace card0 with yours


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: CryptoSquad on October 16, 2017, 07:01:09 PM
Ok but why the lower hashrate in Linux?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on October 16, 2017, 09:04:01 PM
Ok but why the lower hashrate in Linux?

I mentioned it in my previous comment.  Your cards might be jumping back and forth low-high clocks in windows (more frequently) while in linux might be stuck on 7th state clock or jumping between low-high clocks less frequently (There are 8 gpu core clock states for amd gpu)

Are the cards BIOS modded/undervolted?


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: CryptoSquad on October 16, 2017, 09:06:35 PM
But is there a way to keep them in One state? What am I monitoring for?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on October 16, 2017, 09:08:05 PM
But is there a way to keep them in One state? What am I monitoring for?

you'll be checking for the active core/memory frequency of the gpu while mining.  Open up the terminal in linux and run the commands.


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: CryptoSquad on October 16, 2017, 09:12:41 PM
Think there’s a miss understanding

I’ve run the command you showed and it just shows my core and memory clock of each card

To be clear on my question

In Windows I get 30mhs per card with my custom bios

I’m Linux I am only getting 29.5 per card with the same card. Seems like the Linux driver has a slightly lower hash rate than the windows driver. I’ve heard others having that same discrepancy

The command you showed doesn’t really help? Unless I am missing something? 



Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on October 16, 2017, 09:19:32 PM
Think there’s a miss understanding

I’ve run the command you showed and it just shows my core and memory clock of each card

To be clear on my question

In Windows I get 30mhs per card with my custom bios

I’m Linux I am only getting 29.5 per card with the same card. Seems like the Linux driver has a slightly lower hash rate than the windows driver. I’ve heard others having that same discrepancy

The command you showed doesn’t really help? Unless I am missing something? 


The command I provided gives you the current clock rate.  If your clock rate is same as that on windows (monitor for several minutes) then it might be just the drivers.  This was happening for me when dual mining.  I was hitting the power limit (had a lower TDP and Max power in my custom BIOS) and card was throttling at lower core frequencies -> leading to lower hash rates.

I'll check how much I get on mine for solo mining at same clocks on windows & linux.


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: CryptoSquad on October 17, 2017, 07:16:10 AM
Great let me know!


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on October 17, 2017, 02:14:20 PM
@CryptoSquad, found this for Linux UV dwarfing-master here https://github.com/rumatoest/dwarfing.

I haven't tried it as I am running back on Win10 for now. If you try it please post your results, should bring your temps down.


@rvlad, I had compiled the Torvalds kernel but it is missing the AMD firmwares and I don't know where to find the patches. Kernel works but can't get the GPU running due to missing firmware.

Please see the message from laik2 proposing to copy AMD firmware from AMD driver.

But the question was to xmonkx which linux from Torvalds git was compiled: 4.12 or newer?

what's the reason to copy the firmware from the AMD driver?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on October 17, 2017, 11:35:10 PM
Great let me know!

yup.  It seems like the card is hashing ~0.5 lower on Linux.  My RX570 Gaming X does 29.1 on Win10.  Same is doing ~28.7 in Linux.  Must be the drivers.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: ronnylov on October 18, 2017, 01:52:56 PM
AMDGPU-PRO Beta Mining Driver 17.40 is released.
https://bitcointalk.org/index.php?topic=2285186.0


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: Heye on October 18, 2017, 08:57:11 PM
AMDGPU-PRO Beta Mining Driver 17.40 is released.
https://bitcointalk.org/index.php?topic=2285186.0

I couldn't get claymore to work with older driver so I was mining xmr with xmr-stack but now it works and eth is more profitable too so thank you.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: fenixlz on October 29, 2017, 04:11:45 PM
AMDGPU-PRO Beta Mining Driver 17.40 is released.
https://bitcointalk.org/index.php?topic=2285186.0
Very interesting, did anyone try it? The main question is - does it allow downvolt cards?


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: Biodom on October 31, 2017, 01:16:23 AM
amdgpu-pro 17.40 is a disaster, at least on my 16.04.3 machine.

will probably have to reinstall the system.

In short:
uninstalled prior driver
installed 17.40 driver
modified grub as indicated
Used AMD commands (described in their file) to install Rocm stuff:
Code:
sudo apt install -y rocm-amdgpu-pro
used AMD commands to make all users use it (also there)
Code:
echo 'setenv LLVM_BIN /opt/amdgpu-pro/bin' | sudo tee /etc/profile.d/amdgpu-pro.csh

perhaps, the last two were a mistake (I have no idea), but they don't provide any info on whether to use those two or not, so i decided to use them.

Now the darned thing is at a prompt with blinking cursor and when I try ctrl/alt/f2, it says that it is a low graphic mode.

Disaster.

EDIT: it's the messed up driver (at least for my mobo-processor combo), now I am certain as I uninstalled the driver and Ubuntu boots just fine on rocm kernel. Final test-will remove non-Vega GPU, maybe this is what matters for some reason. Probably tomorrow.


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: ngdias on November 05, 2017, 07:35:50 PM
I tested the drivers in Ubuntu 16.04.3, from http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-Pro-Beta-Mining-Driver-for-Linux-Release-Notes.aspx (http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-Pro-Beta-Mining-Driver-for-Linux-Release-Notes.aspx)
The test GPU was a Radeon R9 Fury X, which is listed as compatible.

At first the drivers were breaking boot (tried 2 versions in different AMD support pages), there was no GUI. To uninstall, you can press Ctrl+Alt+F1, login with your credentials and run
Code:
amdgpu-pro-uninstall
.

Then I started googling and found https://askubuntu.com/questions/880523/cant-login-after-installing-amdgpu-pro-16-60 (https://askubuntu.com/questions/880523/cant-login-after-installing-amdgpu-pro-16-60) other people that were able to get the drivers working by using one of the options of the install script, either
Code:
./amdgpu-pro-install --px
or
Code:
./amdgpu-pro-install --compute

Everything else was working as per the official AMD support pages.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: CoinTradeProfit on November 07, 2017, 12:59:42 AM
AMDGPU-PRO Beta Mining Driver 17.40 is released.
https://bitcointalk.org/index.php?topic=2285186.0

Is it possible to get this working on a downgraded laptop with Ubuntu 14.04? I have a very limited install just for Mining. I don't care if I won't get much out of it, i just want to see what I am able to accomplish with it. Specifically for xmr-stak-amd or xmr-stak-cpu miner... Any help would be appreciated guys  thank you


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: higi on November 10, 2017, 02:56:44 AM
Great let me know!

yup.  It seems like the card is hashing ~0.5 lower on Linux.  My RX570 Gaming X does 29.1 on Win10.  Same is doing ~28.7 in Linux.  Must be the drivers.

same here :(

tested on AMDGPU-PRO Beta Mining Driver 17.40

anyone got it working? (+0.5mhs)


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: ronnylov on November 10, 2017, 08:43:33 AM
AMDGPU-PRO Beta Mining Driver 17.40 is released.
https://bitcointalk.org/index.php?topic=2285186.0

Is it possible to get this working on a downgraded laptop with Ubuntu 14.04? I have a very limited install just for Mining. I don't care if I won't get much out of it, i just want to see what I am able to accomplish with it. Specifically for xmr-stak-amd or xmr-stak-cpu miner... Any help would be appreciated guys  thank you

No ubuntu 14.04 is not supported by the driver.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: hozerdev on November 12, 2017, 04:35:49 PM
amdgpu-pro 17.40 is a disaster, at least on my 16.04.3 machine.

Hi, I've got 9x MSI Armor RX580 8G recently. The cards by itself not really great maybe because of Hynix memory.
I was able to tune them from 21Mhs ETH stock (single mode) to 29.5/930 ETH/Dcr (dual-mode) under Win10, 110/75W GpuChip/GpuCore, 1500W from the wall for 8x cards and 1200W in single mode. The problem with Win10 and Blockchain driver I can't really change the core voltage, whatever I set in bios, the driver sets it to 931, and most importantly Win10 doesn't boot with 9th card.

Anyways, I gave a try to Ubuntu 16.04.2 TLS and the latest AMDGPU-PRO Driver for Linux 17.40 and setup everything as per their manual.
a) It boots with 7xGPUs but with 8x I get 'the system is running in low-graphics mode' and nothing really helps.
b) It gives 23Mhs ETH for a single mode and draws 110/130W, around 250W per GPU, which is really bad. Setting the voltages int Claymore looks like doesn't work, it draws the same from the wall.

Is the previous driver 17.30 better then 17.40?
Are you able to mine on Linux with similar results (+-1/Mgh) as in Win 10? If yes, what drivers do you use, how do you undervolt, any information will be much appreciated.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on November 14, 2017, 11:27:55 PM
amdgpu-pro 17.40 is a disaster, at least on my 16.04.3 machine.

Hi, I've got 9x MSI Armor RX580 8G recently. The cards by itself not really great maybe because of Hynix memory.
I was able to tune them from 21Mhs ETH stock (single mode) to 29.5/930 ETH/Dcr (dual-mode) under Win10, 110/75W GpuChip/GpuCore, 1500W from the wall for 8x cards and 1200W in single mode. The problem with Win10 and Blockchain driver I can't really change the core voltage, whatever I set in bios, the driver sets it to 931, and most importantly Win10 doesn't boot with 9th card.

Anyways, I gave a try to Ubuntu 16.04.2 TLS and the latest AMDGPU-PRO Driver for Linux 17.40 and setup everything as per their manual.
a) It boots with 7xGPUs but with 8x I get 'the system is running in low-graphics mode' and nothing really helps.
b) It gives 23Mhs ETH for a single mode and draws 110/130W, around 250W per GPU, which is really bad. Setting the voltages int Claymore looks like doesn't work, it draws the same from the wall.

Is the previous driver 17.30 better then 17.40?
Are you able to mine on Linux with similar results (+-1/Mgh) as in Win 10? If yes, what drivers do you use, how do you undervolt, any information will be much appreciated.


17.40 works fine for me.  I use Xubuntu 16.04.3 LTS with rocm kernel.  You also need to set fragment size to 9 the below,

Edit /etc/default/grub as root and modify GRUB_CMDLINE_LINUX_DEFAULT in order to add "amdgpu.vm_fragment_size=9" (without the quotes). The line may look something like this after the change:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.vm_fragment_size=9"
Update grub and reboot as root:
update-grub;reboot


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: hozerdev on November 15, 2017, 01:44:11 AM
17.40 works fine for me.  I use Xubuntu 16.04.3 LTS with rocm kernel.  You also need to set fragment size to 9 the below,

Edit /etc/default/grub as root and modify GRUB_CMDLINE_LINUX_DEFAULT in order to add "amdgpu.vm_fragment_size=9" (without the quotes). The line may look something like this after the change:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.vm_fragment_size=9"
Update grub and reboot as root:
update-grub;reboot
Hm, exactly like a did, except I had Ubuntu 16.04.2 LTS upgraded and updated. Wondering if Xubuntu is different someway... Did you follow the guide from github: https://github.com/RadeonOpenCompute/ROCm ?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: londreshomme on November 30, 2017, 07:07:25 PM
Does this work if you only have a Celeron CPU? I went to the ROCm site and under system requirements it mentioned a more powerful CPU. Has anyone got this working with a Celeron?

Also, if I install the ROCm kernel and make the mentioned GRUB change... can I still select Ubuntu 16 and have it work like before if this ROCm kernel does not work for me?

Thanks

Here is the solution:
The new ROCm Kernel works great, my hashrate went from 155 > 167Mhs/s with 6*RX470 with Ubuntu 16.4

#Install new ROCm Kernel:

wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo apt-get update
sudo apt-get install rocm

#edit grub
sudo nano  /etc/default/grub
#2MB fragments for Ellesmere are enabled with a grub option:
GRUB_CMDLINE_LINUX="amdgpu.vm_fragment_size=9"

sudo update-grub
sudo reboot

choose new Kernel and its done!

Thx to gstoner from ROCm Github.


Feel free to donate if you happy ;-)

ETH:0xccad3d66b29ae2924df835df1417169ca59943b5
BTC:12F7uXSpTwVhf4ppdh92uieAvrevZ4ShEf

Greetz

It's work! (ubuntu 16.04)
Thank you


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: CoinsIn on November 30, 2017, 08:00:35 PM

wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo apt-get update
sudo apt-get install rocm

I knew I was missing something..
Thanks.  I'll try it today.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on November 30, 2017, 08:16:17 PM
Does this work if you only have a Celeron CPU? I went to the ROCm site and under system requirements it mentioned a more powerful CPU. Has anyone got this working with a Celeron?

Also, if I install the ROCm kernel and make the mentioned GRUB change... can I still select Ubuntu 16 and have it work like before if this ROCm kernel does not work for me?

Thanks


Yes, it works with Celeron. 
Yes, you can revert back to older kernel.  In fact you can choose to boot with specific kernel in linux.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: degenerate17 on December 08, 2017, 10:04:05 PM
Does this work if you only have a Celeron CPU? I went to the ROCm site and under system requirements it mentioned a more powerful CPU. Has anyone got this working with a Celeron?

Also, if I install the ROCm kernel and make the mentioned GRUB change... can I still select Ubuntu 16 and have it work like before if this ROCm kernel does not work for me?

Thanks


Yes, it works with Celeron.  
Yes, you can revert back to older kernel.  In fact you can choose to boot with specific kernel in linux.

Are you sure on this?  I tried this out since currently my cards are running around ~25 Mh/z, and haven't really seen the expected increase.  Boot is also unpredictable/takes a long time to display after installation.  After going to the full installation documentation I saw that Pentiums aren't supported...oops.  Since I'm using a Biostar TB250-BTC 6x with a Intel Pentium G4400 Skylake it looks like that's the issue.  Would switching to a Celeron be a viable fix, since I don't see it explicitly supported on the installation guide: http://rocm-documentation.readthedocs.io/en/latest/Installation_Guide/Installation-Guide.html?  


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: heavyarms1912 on December 08, 2017, 10:31:39 PM
Does this work if you only have a Celeron CPU? I went to the ROCm site and under system requirements it mentioned a more powerful CPU. Has anyone got this working with a Celeron?

Also, if I install the ROCm kernel and make the mentioned GRUB change... can I still select Ubuntu 16 and have it work like before if this ROCm kernel does not work for me?

Thanks


Yes, it works with Celeron.  
Yes, you can revert back to older kernel.  In fact you can choose to boot with specific kernel in linux.

Are you sure on this?  I tried this out since currently my cards are running around ~25 Mh/z, and haven't really seen the expected increase.  Boot is also unpredictable/takes a long time to display after installation.  After going to the full installation documentation I saw that Pentiums aren't supported...oops.  Since I'm using a Biostar TB250-BTC 6x with a Intel Pentium G4400 Skylake it looks like that's the issue.  Would switching to a Celeron be a viable fix, since I don't see it explicitly supported on the installation guide: http://rocm-documentation.readthedocs.io/en/latest/Installation_Guide/Installation-Guide.html?  

I missed the only part there.  If you check my response I meant it also works on Celeron.  In fact I run on G3900 with 9 gpus and linux 16.04.03 LTS.  i don't think there should be an issue with Skylake cpus.


Title: Re: Linux Driver for Blockchain Compute 17.30.1029
Post by: Rickirs on December 12, 2017, 04:27:20 PM
I have been directed to this thread as trying to configure Asus Dual RX580 O8G (Here is thread : https://bitcointalk.org/index.php?topic=2567650.0 )

Since this thread is little old, out of box without modding and proper driver, I can only get ~22MH/s only on my RX580

I found that using AMDGPU-Pro beta mining (amdgpu-pro-17.40-483984) and current stable AMDGPUR-Pro (amdgpu-pro-17.40-492261) gives me same result stock ie. ~22 MHs

1. Have enabled large page support
2. Have installed ROCm kernel already

I suppose without bios modding I should be able to get ~25 Mhz .

And where can I get good settings for my gpu bios ?


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: walec51 on January 11, 2018, 02:31:48 PM
Did these drivers sudden stopped doing the trick?

My hashrate droped today from 28 MH/s to 22 fo my RX 470 cards.


Title: Re: Linux Driver for [Suspicious link removed]pute 17.30.1029
Post by: terrainparser on January 13, 2018, 06:47:04 PM
Did these drivers sudden stopped doing the trick?

My hashrate droped today from 28 MH/s to 22 fo my RX 470 cards.

This is not because of the drivers themselves,  but because of updating linux-image and linux-headers through package manager. Un install them as shown in the following link

https://askubuntu.com/questions/995541/ethereum-mining-on-ubuntu-16-04-dropped-hashrates-significantly-on-amd-block-cha