Bitcoin Forum
July 16, 2024, 09:58:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Built R9 290 fix for cgminer 3.7.2 close/re-open crash in Linux  (Read 6194 times)
neuroMode (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


View Profile
January 11, 2014, 03:14:31 AM
 #1

Hey guys,

I have built a fix for R9 290s mining with cgminer 3.7.2 that addresses the problem of cgminer crashing when you exit/close it and re-open it to mine again (cgminer would not recognize the GPUs when you re-run it). I personally mine with R9 290s and every time I would want to switch to a new coin I'd have to do a reboot. Now you don't have to with this fix.

Still working on a Windows build.

File download:
https://mega.co.nz/#!GVQzxa5J!dneB90G7yRI40VmdTV1B6knIJtZWdL4OI4mp8hvvlB8

To use:
1) Download the file into your cgminer-3.7.2 directory.
2) Backup your current miner:
Code:
cp cgminer cgminer.save
3) Unpack the file:
Code:
tar xvf 

You should be good to go!

When you run, the top line in the display should say "cgminer version 3.7.2.fanfix".

This solution has been tested on Xubuntu 13.10 under various configurations.

The fix for this is described in this link: https://litecointalk.org/index.php?topic=8859.msg78496#msg78496

Quote
In the adl.c file around line 472, just before the ADL_Overdrive5_FanSpeed_Get call, add a line above:
ga->DefFanSpeedValue.iSpeedType=ADL_DL_FANCTRL_SPEED_TYPE_PERCENT;
 
More info for  issue:
The issue seems to be related to the fact the ADL library (for my 13.11 beta driver)
does not like the fact that the speed type is not set (set to 0) and returns an unsupported error.
This results in not properly populating the ga->DefFanSpeedValue structure and when the
corresponding fan speed set function is called (in clear_adl) the driver crashes.
 
With the proposed fix, the get function returns valid data and the set function no longer crashes.

If you feel like this helped you at all, I could always use the donations:
LTC: LaUYxBSdGoKRTqjJknDT4ZPcKJJSBEaqJG
BTC: 18gtpZS5avQ47VopWmaku3aM1BbBwFL4yo

Myriadcoin - the first multi-PoW blockchain! (Mine with SHA256 [ASICs], Scrypt [GPU/ASICs], Skein [GPUs], Groestl [GPUs], OR Qubit [CPUs/GPUs]).
Myriad Website // Myriad on Reddit || Myriad Android Wallet || Myriad Electrum Wallet || Multi-vPoW and Block "Tips" - Solution to Parasitic Merged Mining
calligrapher
Sr. Member
****
Offline Offline

Activity: 518
Merit: 254


View Profile
January 12, 2014, 01:50:41 AM
 #2

it will be appreciated if you do this for windows as well. thanks anyways.

selamlar olsun.
bmL
Member
**
Offline Offline

Activity: 95
Merit: 10


View Profile
January 12, 2014, 08:51:45 AM
 #3

Hey guys,

I have built a fix for R9 290s mining with cgminer 3.7.2 that addresses the problem of cgminer crashing when you exit/close it and re-open it to mine again (cgminer would not recognize the GPUs when you re-run it). I personally mine with R9 290s and every time I would want to switch to a new coin I'd have to do a reboot. Now you don't have to with this fix.

Still working on a Windows build.

File download:
https://mega.co.nz/#!GVQzxa5J!dneB90G7yRI40VmdTV1B6knIJtZWdL4OI4mp8hvvlB8

To use:
1) Download the file into your cgminer-3.7.2 directory.
2) Backup your current miner:
Code:
cp cgminer cgminer.save
3) Unpack the file:
Code:
tar xvf 

You should be good to go!

When you run, the top line in the display should say "cgminer version 3.7.2.fanfix".

This solution has been tested on Xubuntu 13.10 under various configurations.

The fix for this is described in this link: https://litecointalk.org/index.php?topic=8859.msg78496#msg78496

Quote
In the adl.c file around line 472, just before the ADL_Overdrive5_FanSpeed_Get call, add a line above:
ga->DefFanSpeedValue.iSpeedType=ADL_DL_FANCTRL_SPEED_TYPE_PERCENT;
 
More info for  issue:
The issue seems to be related to the fact the ADL library (for my 13.11 beta driver)
does not like the fact that the speed type is not set (set to 0) and returns an unsupported error.
This results in not properly populating the ga->DefFanSpeedValue structure and when the
corresponding fan speed set function is called (in clear_adl) the driver crashes.
 
With the proposed fix, the get function returns valid data and the set function no longer crashes.

If you feel like this helped you at all, I could always use the donations:
LTC: LaUYxBSdGoKRTqjJknDT4ZPcKJJSBEaqJG
BTC: 18gtpZS5avQ47VopWmaku3aM1BbBwFL4yo
Could You make a fork and push it to github? Than You could make pull request so it is added to main branch. Also everyone would see if You are not adding anything strange Smiley
Anyway thanks for Your work Smiley
Pages: [1]
  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!