Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: neuroMode on January 11, 2014, 03:14:31 AM



Title: Built R9 290 fix for cgminer 3.7.2 close/re-open crash in Linux
Post by: neuroMode on January 11, 2014, 03:14:31 AM
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 (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


Title: Re: Built R9 290 fix for cgminer 3.7.2 close/re-open crash in Linux
Post by: calligrapher on January 12, 2014, 01:50:41 AM
it will be appreciated if you do this for windows as well. thanks anyways.


Title: Re: Built R9 290 fix for cgminer 3.7.2 close/re-open crash in Linux
Post by: bmL on January 12, 2014, 08:51:45 AM
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 (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 :)
Anyway thanks for Your work :)