1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-08 22:08:02 +00:00
Commit Graph

189 Commits

Author SHA1 Message Date
Frank
8fe9b0a175 Added ultratune 2014-05-21 17:42:45 -04:00
Noel Maersk
9e97ccd754 adl/misc: remove unused lpAdlDisplayInfo (silence GCC warning). 2014-03-28 17:38:26 +02:00
Noel Maersk
524833f684 adl/misc: remove unused iNumDisplays.
Silence gcc warning.

Added in a7bca56633 by Joe4782, but
never used.
2014-03-28 17:06:21 +02:00
Noel Maersk
5fd5e3b67d adl/misc: mention that the found adapters are logical. 2014-03-28 16:57:01 +02:00
Noel Maersk
44aed3570e Merge branch 'build-msvs2010-upd' into build-msvs2010-merge
Test in separate branch before merging into master.

Conflicts (resolved):
	api.c
	util.c
2014-02-22 17:05:07 +02:00
Markus Peloquin
bf8e37ce19 Support building in cygwin.
Revised the compiler platform macros. Building goes like
$ AMDAPPSDKROOT= CPPFLAGS=-I/usr/include/ncurses ./configure
2014-02-07 22:31:40 -08:00
Noel Maersk
dff7876b7a Merge branch 'master' into build-msvs2010-upd 2014-02-07 21:45:26 +02:00
Noel Maersk
3ae7531fa9 adl: rename adl_errors() to adl_error_desc(), shorten error desc's, handle unknown error 2014-02-04 20:55:58 +02:00
deba12
cd63c1bf24 Add descriptive adl errors 2014-02-04 18:26:46 +02:00
Sanjin Trošelj
da42e6ac98 VS2010 build: prepare ADL.
Cherry-picked by veox.
2014-01-27 22:04:44 +02:00
Noel Maersk
2879994408 adl: only ask for iDrvIndex on Linux.
Should close https://github.com/veox/sgminer/issues/45
2014-01-27 19:07:04 +02:00
Noel Maersk
6089dfbbac adl: code cleanup after last commit. 2014-01-24 00:08:34 +02:00
Joe4782
a7bca56633 Getting some extra log messages in the adl handling code 2014-01-23 23:33:35 +02:00
Noel Maersk
875db702b3 adl: unambiguosly check if FanSpeedInfo specifies support for either mechanism to set FanSpeed.
Reported by olejr: https://github.com/veox/sgminer/issues/15#issuecomment-32715082

Related issue: https://github.com/veox/sgminer/issues/15
2014-01-19 21:12:13 +02:00
Luke Dashjr
74fb5ab4b8 adl: Set iSpeedType to RPM for get-fanspeed requests
...and ensure we don't change do something weird with the fan when initially setting user-defined speed flag.

Fixes crash on R9 cards. Thanks to tkg for hints on what was wrong!
RPM preferred over percent since writing RPM back is always supported (while percent is not in some cases).

Conflicts:
	adl.c
2014-01-19 20:58:02 +02:00
Noel Maersk
50066cf3c7 misc: Replace all remaining instances of 'cgminer' with 'sgminer'.
sed again.
2014-01-15 16:36:48 +02:00
Martin Danielsen
2799c237c3 Added BIOS information to --ndevs|-n listing.
This will aid people identifying cards in setups with different cards within the same series, eg. 7950 and 7970s, or 290 and 290Xs.

Conflicts:
	adl.c
2014-01-11 20:46:13 +02:00
Noel Maersk
45b1219aa1 misc: Change encoding of adl_functions.c to UTF-8. 2014-01-11 18:58:17 +02:00
Martin Danielsen
783cd01e11 Preparation for ADL Overdrive 6 support
There's no functionality implemented yet, nor has the existing functionality been changed.
2014-01-11 18:56:35 +02:00
Benjamin Herrenschmidt
4256bd10d8 adl: Properly restore default perf levels
We were copying the *pointer* to the perf levels structure rather
than the structure itself, and thus restoring the perf levels
did basically nothing.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-12-22 12:58:34 +11:00
Benjamin Herrenschmidt
f44d2fc57f adl: Fix query of default fan speed
This fixes a crash of the AMD driver when quitting as we were trying
to apply what basically is an uninitialized value.

Adds additional code to cope with a failure to retrieve just in case
we hit another problem like that in the future.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-12-22 12:58:34 +11:00
Con Kolivas
eeac9d81fc Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements. 2013-08-20 19:23:49 +10:00
Kano
b5bf34dc85 applog/quit fix GPU errors created 2013-06-16 16:54:42 +10:00
Con Kolivas
2b78182445 Set the fanspeed to the nominal chosen for GPUs. 2013-05-30 12:16:19 +10:00
Con Kolivas
274bf69485 Clamp initial GPU fanspeed to within user specified range. 2013-05-30 11:20:42 +10:00
Kano
7e3242b05c adl fix trailing % 2013-05-02 23:07:06 +10:00
Kano
6fb32f7b5d convert sleep(const) to nmsleep() 2013-02-08 02:32:27 +11:00
Con Kolivas
f14bf5b16c Merge pull request #326 from pshep/error_counters
Error counters
2012-11-17 22:06:49 -08:00
Con Kolivas
b6066217e0 Only increase gpu engine speed by a larger step if the temperature is below hysteresis instead of increasing it to max speed. 2012-11-18 17:03:50 +11:00
Paul Sheppard
9f74e650b3 Tidy up device error counts 2012-11-04 20:17:43 -08:00
Con Kolivas
272ba4ed89 Avoid attempting to recursively lock the console mutex by disabling warnings in gpu_fanpercent when fanspeed monitoring fails on windows. Debugged by luke-jr. 2012-08-20 11:52:15 +10:00
Con Kolivas
933627e73b Reinstate fix ADL gpu-map not working when there are more ADL devices than openCL patch by Nite69. Add virtual adl mapping for when none is specified on the command line to not crash without a map specified. 2012-08-20 10:34:25 +10:00
Con Kolivas
afa7310e9c If there are more devices than nDevs, don't iterate over them as they may overwrite devices mapped below that with the mapping option. 2012-08-15 11:55:30 +10:00
Con Kolivas
78d6019330 Revert "Fix ADL gpu-map not working when there are more ADL devices than openCL. Patch supplied and tested by Nite69."
This reverts commit 2a474fe914.

Broken.
2012-08-15 11:49:23 +10:00
Con Kolivas
e34105a47a Set memory clock based on memdiff if present from with engine changes, allowing it to parallel manual changes from the menu as well. 2012-08-15 10:37:00 +10:00
Con Kolivas
2a474fe914 Fix ADL gpu-map not working when there are more ADL devices than openCL. Patch supplied and tested by Nite69. 2012-08-15 09:55:40 +10:00
Con Kolivas
920c56c93b Add specific information when ADL detects error -10 saying the device is not enabled. 2012-08-06 11:39:32 +10:00
Luke Dashjr
a1edc7dbcb Bugfix: Fix build without curses but with OpenCL 2012-07-15 05:37:49 +00:00
Con Kolivas
29c0f7bd37 Detect large swings in temperature when below the target temperature range and change fan by amounts dependant on the value of tdiff. 2012-06-28 09:42:24 +10:00
Con Kolivas
e16452f09f Adjust the fanspeed by the magnitude of the temperature difference when in the optimal range. 2012-06-28 09:26:33 +10:00
Con Kolivas
55aaa7c1cc Slightly different message since restart may not be successful. 2012-06-28 09:11:29 +10:00
Con Kolivas
07045055e9 Revert "Restarting cgminer from within after ADL has been corrupted only leads to a crash. Display a warning only and disable fanspeed monitoring."
This reverts commit 07212db106.

Reverting this did not fix the crashes people were having with ADL failing after a week and removed the functionality this patch originally intended.
2012-06-28 09:07:22 +10:00
Con Kolivas
057a38eb1c When disabling fanspeed monitoring on adl failure, remove any twin GPU association. This could have been leading to hangs on machines with dual GPU cards when ADL failed. 2012-06-22 13:38:47 +10:00
Con Kolivas
1e3888336b Consider the fan optimal if fanspeed is dropping but within the optimal speed window. 2012-06-14 11:24:32 +10:00
Con Kolivas
59679c57c7 Only adjust GPU speed up if the fanspeed is within the normal fanrange and hasn't been turned to maximum speed under overheat conditions. 2012-06-12 21:02:59 +10:00
Con Kolivas
07212db106 Restarting cgminer from within after ADL has been corrupted only leads to a crash. Display a warning only and disable fanspeed monitoring. 2012-05-31 08:34:06 +10:00
Con Kolivas
23b224faf9 Reinit_adl is no longer used. 2012-05-06 12:01:04 +10:00
Con Kolivas
46a679f39e Revert "Provide simple macros for the repeated use of checking the first value of the input char with strncasecmp."
This reverts commit 87708a6a0e.

Broken.
2012-05-05 12:55:00 +10:00
Con Kolivas
87708a6a0e Provide simple macros for the repeated use of checking the first value of the input char with strncasecmp. 2012-05-04 23:05:00 +10:00
Con Kolivas
f5f089f5b4 Add a --gpu-map option which will allow arbitrarily mapping ADL devices to OpenCL devices for instances where association by enumeration alone fails. 2012-04-23 17:40:47 +10:00