Bitcoin Forum
May 04, 2024, 07:15:18 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 »  All
  Print  
Author Topic: Linux Driver for Blockchain Compute 17.30.1029  (Read 15995 times)
NameTaken
Hero Member
*****
Offline Offline

Activity: 630
Merit: 502


View Profile
September 05, 2017, 03:16:31 PM
 #21

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)!                                                                                                             
1714850118
Hero Member
*
Offline Offline

Posts: 1714850118

View Profile Personal Message (Offline)

Ignore
1714850118
Reply with quote  #2

1714850118
Report to moderator
1714850118
Hero Member
*
Offline Offline

Posts: 1714850118

View Profile Personal Message (Offline)

Ignore
1714850118
Reply with quote  #2

1714850118
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
osnwt
Sr. Member
****
Offline Offline

Activity: 353
Merit: 251


View Profile
September 06, 2017, 05:25:52 AM
 #22

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.
NameTaken
Hero Member
*****
Offline Offline

Activity: 630
Merit: 502


View Profile
September 06, 2017, 05:36:32 AM
 #23

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
christianCoder
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
September 06, 2017, 11:17:51 PM
Last edit: September 11, 2017, 12:26:07 AM by christianCoder
 #24

Used the originally posted fix 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
osnwt
Sr. Member
****
Offline Offline

Activity: 353
Merit: 251


View Profile
September 07, 2017, 07:26:10 AM
 #25

We used the originally posted fix 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?
christianCoder
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
September 07, 2017, 11:50:08 AM
 #26

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.
fenixlz
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
September 10, 2017, 06:57:09 AM
 #27

All voltages were reduced via custom bios mods.

How did you do it?
drrobert
Full Member
***
Offline Offline

Activity: 129
Merit: 100


View Profile
September 10, 2017, 07:02:58 AM
 #28

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.
fenixlz
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
September 10, 2017, 07:45:39 PM
 #29

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.
beastman
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
September 15, 2017, 12:08:54 AM
Last edit: September 22, 2017, 05:33:30 PM by beastman
 #30

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?
xmonkx
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
September 15, 2017, 02:24:36 AM
Last edit: September 15, 2017, 02:50:25 AM by xmonkx
 #31

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~


CryptoSquad
Newbie
*
Offline Offline

Activity: 60
Merit: 0


View Profile
September 19, 2017, 02:46:00 PM
 #32

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? 
CryptoSquad
Newbie
*
Offline Offline

Activity: 60
Merit: 0


View Profile
September 19, 2017, 03:01:48 PM
 #33

scrap the above. Got it working. Driver hadnt installed correctly first time

Thanks!
CryptoSquad
Newbie
*
Offline Offline

Activity: 60
Merit: 0


View Profile
September 19, 2017, 07:29:03 PM
 #34

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
rvlad
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
September 22, 2017, 12:57:58 AM
 #35

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?
beastman
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
September 22, 2017, 03:59:20 PM
 #36

@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.
rvlad
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
September 24, 2017, 12:16:25 AM
 #37

@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?
bomberb17
Hero Member
*****
Offline Offline

Activity: 771
Merit: 528



View Profile
October 01, 2017, 02:52:42 AM
 #38

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?
xmonkx
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
October 05, 2017, 03:19:02 AM
 #39

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.


MoneroCrusher
Jr. Member
*
Offline Offline

Activity: 88
Merit: 1


View Profile
October 05, 2017, 11:51:17 PM
 #40

Anyone got it to work with RX Vega 56/64 under Ubuntu 16.04 yet?
Pages: « 1 [2] 3 4 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!