Noel Maersk
3ae7531fa9
adl: rename adl_errors() to adl_error_desc(), shorten error desc's, handle unknown error
11 years ago
deba12
cd63c1bf24
Add descriptive adl errors
11 years ago
Noel Maersk
2879994408
adl: only ask for iDrvIndex on Linux.
...
Should close https://github.com/veox/sgminer/issues/45
11 years ago
Noel Maersk
6089dfbbac
adl: code cleanup after last commit.
11 years ago
Joe4782
a7bca56633
Getting some extra log messages in the adl handling code
11 years ago
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
11 years ago
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
11 years ago
Noel Maersk
50066cf3c7
misc: Replace all remaining instances of 'cgminer' with 'sgminer'.
...
sed again.
11 years ago
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
11 years ago
Noel Maersk
45b1219aa1
misc: Change encoding of adl_functions.c to UTF-8.
11 years ago
Martin Danielsen
783cd01e11
Preparation for ADL Overdrive 6 support
...
There's no functionality implemented yet, nor has the existing functionality been changed.
11 years ago
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>
11 years ago
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>
11 years ago
Con Kolivas
eeac9d81fc
Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements.
11 years ago
Kano
b5bf34dc85
applog/quit fix GPU errors created
12 years ago
Con Kolivas
2b78182445
Set the fanspeed to the nominal chosen for GPUs.
12 years ago
Con Kolivas
274bf69485
Clamp initial GPU fanspeed to within user specified range.
12 years ago
Kano
7e3242b05c
adl fix trailing %
12 years ago
Kano
6fb32f7b5d
convert sleep(const) to nmsleep()
12 years ago
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.
12 years ago
Paul Sheppard
9f74e650b3
Tidy up device error counts
12 years ago
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.
12 years ago
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.
12 years ago
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.
12 years ago
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.
12 years ago
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.
12 years ago
Con Kolivas
2a474fe914
Fix ADL gpu-map not working when there are more ADL devices than openCL. Patch supplied and tested by Nite69.
12 years ago
Con Kolivas
920c56c93b
Add specific information when ADL detects error -10 saying the device is not enabled.
12 years ago
Luke Dashjr
a1edc7dbcb
Bugfix: Fix build without curses but with OpenCL
13 years ago
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.
13 years ago
Con Kolivas
e16452f09f
Adjust the fanspeed by the magnitude of the temperature difference when in the optimal range.
13 years ago
Con Kolivas
55aaa7c1cc
Slightly different message since restart may not be successful.
13 years ago
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.
13 years ago
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.
13 years ago
Con Kolivas
1e3888336b
Consider the fan optimal if fanspeed is dropping but within the optimal speed window.
13 years ago
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.
13 years ago
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.
13 years ago
Con Kolivas
23b224faf9
Reinit_adl is no longer used.
13 years ago
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.
13 years ago
Con Kolivas
87708a6a0e
Provide simple macros for the repeated use of checking the first value of the input char with strncasecmp.
13 years ago
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.
13 years ago
Con Kolivas
dc70fe9ce0
Do a complete cgminer restart if the ATI Display Library fails, as it does on windows after running for some time, when fanspeed reporting fails.
13 years ago
Con Kolivas
1152b4b4e0
Re-initialising ADL simply made the driver fail since it is corruption over time within the windows driver that's responsible.
...
Revert "Attempt to re-initialise ADL should a device that previously reported fanspeed stops reporting it."
This reverts commit d4c513030f
.
13 years ago
ckolivas
d4c513030f
Attempt to re-initialise ADL should a device that previously reported fanspeed stops reporting it.
13 years ago
ckolivas
43ef4e0443
Move the ADL setup and clearing to separate functions and provide a reinit_adl function to be used when adl fails while running.
13 years ago
Con Kolivas
2f71520368
Set the starting fanspeed to a safe and fairly neutral 50% when autofan is enabled.
13 years ago
Kano
eeec98098f
code changes for supporting a simple device history
13 years ago
Luke Dashjr
f05a319e01
CGPU API for device names
13 years ago
Luke Dashjr
ed8382c88d
Make curses TUI support optional at compile-time.
13 years ago
Con Kolivas
28f99bebf7
Use the return value of fan_autotune to set fan_optimal instead of passing it as a pointer.
13 years ago