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
Luke Dashjr
b8778839e9
Merge branch 'master' into unify_drivers
...
Conflicts:
cgminer.c
2012-04-21 02:36:19 -04:00
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.
2012-04-14 17:38:31 +10:00
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
.
2012-04-14 00:18:00 +10:00
ckolivas
d4c513030f
Attempt to re-initialise ADL should a device that previously reported fanspeed stops reporting it.
2012-03-29 11:47:28 +11:00
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.
2012-03-29 10:51:59 +11:00
Con Kolivas
2f71520368
Set the starting fanspeed to a safe and fairly neutral 50% when autofan is enabled.
2012-03-28 22:36:48 +11:00
Con Kolivas
7458927f02
Merge pull request #155 from luke-jr/no_curses
...
Make curses TUI support optional at compile-time.
2012-03-28 04:25:54 -07:00
Kano
eeec98098f
code changes for supporting a simple device history
2012-03-23 01:50:45 +11:00
Luke Dashjr
f05a319e01
CGPU API for device names
2012-03-18 21:32:01 -04:00
Luke Dashjr
ed8382c88d
Make curses TUI support optional at compile-time.
2012-03-12 18:38:45 -04:00
Con Kolivas
28f99bebf7
Use the return value of fan_autotune to set fan_optimal instead of passing it as a pointer.
2012-02-26 16:45:03 +11:00
Con Kolivas
d48faf3998
Pass the lasttemp from the device we're using to adjust fanspeed in twin devices.
2012-02-26 16:40:05 +11:00
Con Kolivas
0d083b63f5
Left out an else after the if statement.
2012-02-22 14:52:57 +11:00
Con Kolivas
b77656b78b
If we're well below the target temperature, increase gpu engine speed back to maximum in case we have gotten lost between profiles during an idle
...
period.
2012-02-22 14:39:22 +11:00
Con Kolivas
03f4f7e6a6
We should be setting the value of fan_optimal, not its address.
2012-02-22 14:26:29 +11:00
Con Kolivas
083c676378
Revert "Fan control should be fast enough to adjust now without needing to set a high starting speed."
...
This reverts commit e69080e987
.
On 2nd thought, this is still a safe default.
2012-02-22 10:44:21 +11:00
Con Kolivas
e69080e987
Fan control should be fast enough to adjust now without needing to set a high starting speed.
2012-02-22 10:39:52 +11:00
Con Kolivas
d1cddf8bad
Update licensing to GPL V3.
2012-02-21 22:23:07 +11:00
Con Kolivas
02295c69c8
Allow devices that are disabled due to overheating to be flagged as recovering instead of disabling them and re-enable them if they're below ideal
...
temperatures and --no-restart has not been set.
2012-02-19 20:19:47 +11:00
Con Kolivas
810ad04578
More copyright updates.
2012-02-18 23:16:08 +11:00
Con Kolivas
be9db9ce63
Copyright updates.
2012-02-18 23:00:21 +11:00
Con Kolivas
fa4ce8daf2
Keep track of intended engine clock speed and only adjust up if it's higher than the last intended speed. This avoids setting the clock speed to one
...
relative to a lower profile one by mistake.
2012-02-18 22:29:12 +11:00
Con Kolivas
d1cf80a546
Use gpu-memdiff on startup if an engine clockspeed is set and a memdiff value is set.
2012-02-18 19:49:52 +11:00
Con Kolivas
66ea9304af
Revert "Adjust engine speed up according to performance level engine setting, not the current engine speed."
...
This reverts commit 68217ef6ee
.
This did not have the desired effect and only added complexity.
2012-02-18 19:43:23 +11:00
Con Kolivas
c42709745a
Revert "Logic fail on engine multiplier."
...
This reverts commit b0787e07c8
.
2nd of 3.
2012-02-18 19:43:17 +11:00
Con Kolivas
eb5dcc60a0
Revert "Correct yet more logic fail :("
...
This reverts commit 83b76da2c6
.
First of 3.
2012-02-18 19:42:56 +11:00
Con Kolivas
83b76da2c6
Correct yet more logic fail :(
2012-02-13 10:53:03 +11:00
Con Kolivas
b0787e07c8
Logic fail on engine multiplier.
2012-02-13 10:47:05 +11:00
Con Kolivas
68217ef6ee
Adjust engine speed up according to performance level engine setting, not the current engine speed.
2012-02-13 10:37:35 +11:00
Con Kolivas
07c2ee5317
Put win32 equivalents of nanosleep and sleep into compat.h fixing sleep() for adl.c.
2012-02-12 17:00:44 +11:00
Con Kolivas
405a2120f8
Remove unnecessary check for opt_debug on every invocation of applog at LOG_DEBUG and place the check in applog().
2012-02-11 20:11:18 +11:00
Con Kolivas
2b61d973cd
Remove the test for whether the device is on the highest profil level before raising the GPU speed as it is ineffectual and may prevent raising the GPU
...
speed.
2012-02-11 19:54:15 +11:00
Luke Dashjr
543265d66a
Generalize --temp-cutoff and implement support for reading temperature from BitFORCE FPGAs
2012-02-10 22:14:27 -05:00
Con Kolivas
c72a8b8cc9
Silence ADL warnings.
2012-02-05 22:41:37 +11:00
Con Kolivas
23685aa41e
Continue auto-management of fan and engine speeds even if a device is disabled for safety reasons.
2012-02-05 17:28:53 +11:00
Con Kolivas
f8fed37e02
No need to check we're highest performance level when throttling GPU engine speed.
2012-02-05 17:24:26 +11:00
Con Kolivas
af5aaece97
Revert "Pass the correct GPU from the menu to the adl code."
...
This reverts commit 7bcda9a28f
.
Corrected for virtual device twice by mistake.
2012-01-30 21:15:47 +11:00
Con Kolivas
94059c06f4
Ensure all virtual_gpu entries are set when the number of ADL devices does not match the number of OpenCL devices.
2012-01-30 21:07:16 +11:00
Con Kolivas
c9404f4d11
Make sure to set virtual adapters if --dev-reorder is not enabled or device numbers don't match.
2012-01-30 15:33:55 +11:00
Con Kolivas
5a14ec53c8
Add a --dev-reorder option to only reorder devices according to PCI Bus ID when requested.
2012-01-30 15:21:14 +11:00
Con Kolivas
7bcda9a28f
Pass the correct GPU from the menu to the adl code.
2012-01-30 12:42:43 +11:00
Con Kolivas
a73156ac76
Display GPU number and device name when ADL is successfully enabled on it.
2012-01-30 10:02:51 +11:00
Con Kolivas
176bbcbc79
Display GPU ordering remapping in verbose mode.
2012-01-30 09:44:19 +11:00
Con Kolivas
891960389e
Don't fail in the case the number of ADL and OpenCL devices do not match, and do not attempt to reorder devices unless they match.
...
Instead give a warning about the likely cause and the potential consequence of it - Hardware monitoring may NOT match up with devices.
2012-01-30 09:15:20 +11:00
Con Kolivas
f0746f0b4c
Display error codes should ADL not return ADL_OK in the more critical function calls.
2012-01-30 08:18:50 +11:00
Con Kolivas
cdcaaba630
Revert "Add ADL_Overdrive5_ThermalDevices_Enum interface."
...
This reverts commit 1e1519e93e
.
2012-01-30 08:06:23 +11:00
Con Kolivas
430a19543e
Revert "Read off lpThermalControllerInfo from each ADL device."
...
This reverts commit 2d29cdb611
.
2012-01-30 08:06:00 +11:00
Con Kolivas
4ae0aad113
Revert "Set iSize for thermal device enum first."
...
This reverts commit 990bb4a994
.
Thermal devices is not used. 1st of 3 reverts.
2012-01-30 08:05:36 +11:00
Con Kolivas
82af288e69
Revert "Fix various harmless warnings."
...
This reverts commit a4b67f030f
.
2012-01-29 22:57:29 +11:00
Con Kolivas
a4b67f030f
Fix various harmless warnings.
2012-01-29 21:06:17 +11:00
Con Kolivas
a8e46a074e
Add extensive ADL based device info in debug mode.
2012-01-29 20:47:08 +11:00
Con Kolivas
83a8367654
Linux's ADL uses a busnumber in descending order for devices so enumerate them in the opposite order to windows.
2012-01-29 13:49:08 +11:00
Con Kolivas
4bf01f012f
Fix potential overflow.
2012-01-28 12:08:55 +11:00
Con Kolivas
059701272c
Carry virtual gpu number across.
2012-01-28 11:26:56 +11:00
Con Kolivas
3bc0583454
Iterate and change virtual device order instead of shuffling ram.
2012-01-28 11:19:28 +11:00
Con Kolivas
371e5f688a
Reorder displayed devices to map to physical locations and initialise according to logical location instead.
2012-01-28 09:22:33 +11:00
Con Kolivas
5a0b4f62d0
Map GPU devices to virtual devices in their true physical order based on BusNumber.
2012-01-28 01:56:12 +11:00
Con Kolivas
06fd9c4a4c
Detect dual GPU cards by iterating through all GPUs, finding ones without fanspeed and matching twins with fanspeed one bus ID apart.
2012-01-26 23:27:10 +11:00
Kano
487327f83d
Remove compile warning
2012-01-26 14:06:31 +11:00
ckolivas
4995b7c241
On dual GPUs, only autotune the shared fan once per gpu autotune cycle.
2012-01-25 16:34:39 +11:00
ckolivas
c009c6cd74
Don't try to explicitly drift to exactly the target temperature, aim for just below it.
2012-01-25 16:16:28 +11:00
ckolivas
312724cea1
Adjust fan speed gently while in the optimal range when temperature is drifting to minimise overshoot in either direction.
2012-01-25 15:48:28 +11:00
Con Kolivas
9549dacf99
Detect dual GPU cards via the indirect information of - 1st card has a fan controller. 2nd card does not have a fan controller, cards share the same
...
device name, and are one bus ID apart. Use this information to create paired devices, displaying the fan speed on both devices and using the hottest
temperature from either GPU to control the overall fanspeed.
2012-01-25 01:19:58 +11:00
Con Kolivas
990bb4a994
Set iSize for thermal device enum first.
2012-01-23 10:54:21 +11:00
Con Kolivas
2d29cdb611
Read off lpThermalControllerInfo from each ADL device.
2012-01-23 09:25:53 +11:00
Con Kolivas
1e1519e93e
Add ADL_Overdrive5_ThermalDevices_Enum interface.
2012-01-23 09:20:21 +11:00
Kano
ec2c0b784f
Add API commands: config, switchpool, gpu settings, save
2012-01-22 18:24:55 +11:00
Luke Dashjr
845961af66
Refactor to abstract device-specific code
2012-01-08 20:01:35 -05:00
Con Kolivas
400cb21d8b
Off by one error in performance level.
2011-12-24 08:06:53 +11:00
Con Kolivas
f4d657ee7f
Only adjust gpu engine speed in autotune mode if the gpu is currently at the performance level of that being adjusted.
2011-12-24 07:35:42 +11:00
Con Kolivas
8c63061eaa
Allow a fixed speed difference between memory and GPU clock speed that will change memory speed when GPU speed is changed in autotune mode.
2011-10-23 20:52:16 +11:00
Con Kolivas
5976f6b32f
Get rid of unused variable.
2011-10-14 21:51:55 +11:00
Con Kolivas
0ae3f71824
Check last temperature we reached and don't change fan speed if it's already correcting.
2011-09-23 10:46:34 +10:00
Con Kolivas
b8ea0dd194
Update curses logging to allow LOG_WARNING and LOG_ERR messages to still go through while within the menu, and drop share message to LOG_NOTICE.
2011-09-17 13:25:04 +10:00
Con Kolivas
5a24c2829a
Try to set temperature regardless of whether get fanspeed fails. This may need to be reverted if it causes problems.
2011-09-16 16:46:14 +10:00
Con Kolivas
12e99c83dd
Initialise all the iSizes of the ADL structures for completeness.
2011-09-16 16:42:11 +10:00
Con Kolivas
07c21bcbc4
Don't forget to set the actual fanspeed too!
2011-09-16 10:40:58 +10:00
Con Kolivas
3c38adc9ce
Only set the speed once, but set it only if fanspeed get says the card is ok and ready.
2011-09-16 10:27:36 +10:00
Con Kolivas
67fe6ab726
Don't both with adapter speed set as it has no effect on mining speed.
2011-09-16 10:26:25 +10:00
Con Kolivas
92e1ffd374
Store the targetfan even if the later getfanspeed fails in case it's temporary.
2011-09-16 08:31:27 +10:00
Con Kolivas
8feb661dbf
Set the fanspeed in coarse rounded up values and then ever finer grained values in case the card does not support fine values.
2011-09-15 20:48:20 +10:00
Con Kolivas
3f10e80a93
If the user defined flag is not set on fanspeed, set the fanspeed with it first.
2011-09-15 12:19:07 +10:00
Con Kolivas
87ec3f4789
Convert fanspeed management to default on exit.
2011-09-15 11:21:54 +10:00
Con Kolivas
918ec7b0b2
Enable adl earlier to allow values to be set in init_adl or they're silently ignored!
2011-09-14 23:03:50 +10:00
Con Kolivas
1db6ab0b01
Set targetfan when fanspeed is set on parameters.
2011-09-14 23:03:37 +10:00
Con Kolivas
2e09eee708
Use the gpu_fan set value as the starting fan speed.
...
Don't try and change the value if get() doesn't match as it's unreliable, just save the reentrant value.
Limit fanspeeds to reported iMax and iMin.
2011-09-14 21:45:04 +10:00
Con Kolivas
88eb514cd1
Only display supported values from fanspeed on change settings.
2011-09-11 11:57:08 +10:00
Con Kolivas
b4009adaac
Remove redundant check.
2011-09-11 11:47:22 +10:00
Con Kolivas
ebae03f22b
Do not bother resetting values to old ones if changes to GPU parameters report failure, instead returning a failure code only if the return value from get() differs.
2011-09-11 11:38:02 +10:00
Con Kolivas
dff1a81da7
Use a re-entrant value to store what fanspeed we're trying to set in case the card doesn't support small changes.
...
Force it to a multiple of 10% if it fails on trying to speed up the fan.
2011-09-11 11:25:28 +10:00
Con Kolivas
076677dd53
Flag any devices with autofan or autogpu as being managed.
2011-09-11 11:08:01 +10:00
Con Kolivas
a602f4e55f
Only force the adapter speed to high if we've flagged this device as being managed.
2011-09-11 11:06:52 +10:00
Con Kolivas
25c77ae85f
Only display values in the log if they're supported and standardise device log line printing.
2011-09-09 11:53:45 +10:00
Con Kolivas
2fafdab985
Allow adapterid 0 cards to enumerate as a device as they will be non-AMD cards, and enable ADL on any AMD card.
2011-09-09 10:03:10 +10:00
Con Kolivas
b7d817812c
Setting the hysteresis is unlikely to be useful on the fly and doesn't belong in the per-gpu submenu.
2011-09-08 14:10:55 +10:00
Con Kolivas
0e1c291624
Display fan range in autofan status.
2011-09-08 14:05:41 +10:00