main.c


Log

Author Commit Date CI Message
Kano 625e7a64 2011-09-18T18:55:36 Fix tabs
Kano 37b017fd 2011-09-18T15:10:12 Show hash (instead of nonce) in Accept/Reject messages
Con Kolivas b8ea0dd1 2011-09-17T13:23:58 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.
Con Kolivas 8566ed44 2011-09-15T20:05:22 Just keep whatever longpoll we have if it's working instead of risking the stop/start dereference problem.
Con Kolivas ae6fe965 2011-09-15T17:37:02 Revert "Restart longpoll under lock when we'll be reusing it on pool switch to prevent derefs." This reverts commit 2cae5c1dc3884deb35430cf6af4d192666ac01c4. Gets stuck. Needs more thought.
Con Kolivas 2cae5c1d 2011-09-15T14:51:04 Restart longpoll under lock when we'll be reusing it on pool switch to prevent derefs.
Con Kolivas 8e2becc1 2011-09-15T11:45:24 Change pth from being a pointer as we can dereference if we're unlucky on stopping longpoll.
Con Kolivas 833e020d 2011-09-15T10:33:23 Standardise the way all non-mining threads are destroyed to make sure we can safely cancel them, freeing ram and NULLifying pointers.
Con Kolivas e1c72352 2011-09-14T23:15:42 Get the current pool priority under lock to avoid dereferencing.
Con Kolivas fc427913 2011-09-14T21:48:53 Use the longpoll provided work to test_work_current since we know it's almost certainly from a new block even though we may check it later again.
Con Kolivas 863488e3 2011-09-11T12:32:36 Display fan percentage on devices that only support reporting percent and not RPM.
Con Kolivas d42211f0 2011-09-11T12:01:17 Missing bracket from output.
Con Kolivas d5fe2cfd 2011-09-11T10:48:39 Flag devices that have never started and don't allow enabling of devices without restarting them.
Con Kolivas fa790a4f 2011-09-11T10:33:30 Fix a rare crash in HASH_DEL due to using different mutexes to protect the data.
Con Kolivas bcba6f83 2011-09-09T21:04:16 Exit cleanly if we abort before various threads are set up or if they no longer exist.
Con Kolivas ab67b144 2011-09-09T12:01:06 Make RPM 4 characters wide in curses status for neatness.
Con Kolivas 25c77ae8 2011-09-09T11:53:45 Only display values in the log if they're supported and standardise device log line printing.
Con Kolivas 1917643d 2011-09-09T10:19:01 Do away with the increasingly confusing and irrelevant total queued and efficiency measures per device.
Con Kolivas 6c8341f1 2011-09-08T14:44:14 Define max gpudevices in one macro.
Con Kolivas 4b43efce 2011-09-08T14:27:32 Use a terser device status line to show fan RPM as well when available.
Con Kolivas f1cf79ae 2011-09-08T14:17:05 With many cards, the GPU summaries can be quite long so use a terse output line when showing them all.
Con Kolivas e0a9f1aa 2011-09-08T13:53:10 Allow temperature targets to be set on a per-card basis on the command line.
Con Kolivas b50041c8 2011-09-08T13:29:13 Allow per-device fan ranges to be set and use them in auto-fan mode.
Con Kolivas 9b5cd618 2011-09-08T13:04:39 Implement accepting a range of engine speeds as well to allow a lower limit to be specified on the command line.
Con Kolivas 9752704e 2011-09-08T10:57:50 We should be passing a float for the remainder of the vddc values.
Con Kolivas 7ea7f5f3 2011-09-08T10:51:32 Allow temperatures greater than 100 degrees.
Con Kolivas c64c27fa 2011-09-08T09:39:32 Only show longpoll received delayed message at verbose level.
Con Kolivas 01a0d0a7 2011-09-07T20:24:15 Add a --no-adl option to disable ADL monitoring and GPU settings.
Con Kolivas 3997f308 2011-09-07T10:43:26 Add a thermal cutoff option as well and set it to 95 degrees by default.
Con Kolivas f89c032d 2011-09-06T12:04:23 The ° character is not reliably shown on all platforms so remove it.
Con Kolivas 73e33c09 2011-09-06T11:30:48 Retry also if the decoding of work fails.
Con Kolivas f10f8fae 2011-09-06T11:07:36 Retry before returning a failure to get upstream work as a failure to avoid false positives for pool dead.
Con Kolivas 2053de6d 2011-09-06T10:11:34 Add the directory name from the arguments cgminer was called from as well to allow it running from a relative pathname.
Con Kolivas 2f5f7efd 2011-09-05T22:34:28 No need to use the re-entrant strtok_r and mingw32 doesn't support it anyway.
Con Kolivas 2155acf1 2011-09-05T20:46:24 Queue requests ignoring the number of staged clones since they get discarded very easily leading to false positives for pool not providing work fast enough.
Con Kolivas fc454e88 2011-09-05T13:43:50 Update the status window only from the watchdog thread, do not rewrite the top status messages and only refresh once all the status window is complete, clearing the window each time to avoid corruption.
Con Kolivas 93935eb7 2011-09-05T11:01:50 Move and print at the same time in curses to avoid random trampling display errors.
Con Kolivas e8981823 2011-09-05T10:29:08 Add temperature to standard output where possible and use more compact output.
Con Kolivas 47f1a759 2011-09-04T23:23:31 Implement setting the GPU powertune value of all devices or each device as a comma separated value.
Con Kolivas bd292258 2011-09-04T22:56:19 Add support for monitoring powertune setting.
Con Kolivas 3a5663ca 2011-09-04T22:25:31 Implement setting the GPU fan speed of all devices or each device as a comma separated value.
Con Kolivas 8ae273c5 2011-09-04T22:08:42 Implement setting the GPU voltage of all devices or each device as a comma separated value.
Con Kolivas 54bc30ce 2011-09-04T22:01:58 Implement setting the GPU memory clock speed of all devices or each device as a comma separated value.
Con Kolivas ec8808d0 2011-09-04T21:55:06 Implement setting the GPU engine clock speed of all devices or each device as a comma separated value.
Con Kolivas 12a167a3 2011-09-04T13:57:40 Implement menus to change temperature limits.
Con Kolivas 306dad9f 2011-09-04T10:27:21 Add gpu statistics to debugging output via the watchdog thread.
Con Kolivas 1ed21937 2011-09-04T10:19:29 Combine all stats collating into one function to avoid repeating function calls on each variable.
Con Kolivas e9f886d8 2011-09-04T09:43:53 Allow target, overheat and hysteresis temperatures to be set from command line.
Con Kolivas 9b7262ec 2011-09-04T00:36:14 Clean up by setting performance profiles and fan settings to startup levels on exit.
Con Kolivas fc36e13d 2011-09-04T00:00:12 Merge branch 'master' into adl_support
Con Kolivas 1898d851 2011-09-03T23:59:11 Avoid a dereference if the longpoll thread doesn't exist.
Con Kolivas e9b5885e 2011-09-03T22:30:11 Add a gpu autotune option which adjusts GPU speed to maintain a target temperature within the bounds of the default GPU speed and any overclocking set.
Con Kolivas dcc97e45 2011-09-03T15:46:57 Add an --auto-fan command line option to allow all GPUs to have autofan enabled from startup.
Con Kolivas 495adcbf 2011-09-03T15:33:53 Implement auto fanspeed adjustment to maintain a target temperature and fanspeed below 85%, with an overheat check that will speed the fan up to 100%.
Con Kolivas 35ace463 2011-09-03T13:02:21 Enable changing of engine clock setting on the fly.
Con Kolivas d57cd919 2011-09-03T10:53:35 Implement ATI ADL support for GPU parameter monitoring now and setting later (temp, fan, clocks etc.). Check for the presence of the ADL header files in ADL_SDK. Import adl_functions.h from amd overdrive ctrl. Implement a setup function that tries to detect GPUs that support the ADL and link in the parameters into the gpus struct. Put a summary of monitoring information from the GPU menu.
Con Kolivas 063efb19 2011-09-02T10:37:00 Rename localgen occasions to getwork fail occasions since localgen is unrelated now.
Con Kolivas a2a60080 2011-09-02T09:23:17 Add verbose message when a GPU fails to initialise, and disable the correct GPU.
Con Kolivas 8b690b57 2011-09-02T08:55:09 Give a verbose message when no active pools are found and pause before exiting.
Con Kolivas ed7389e8 2011-09-02T08:35:27 Put some sanity checks on the times that can be input.
Con Kolivas 71eff460 2011-09-01T23:18:31 Mingw32 doesn't support strptime so use sscanf.
Con Kolivas 71ce9bc8 2011-09-01T23:15:42 Print summary on quit modes.
Con Kolivas 84965341 2011-09-01T13:19:51 Add start and stop time scheduling for regular time of day running or once off start/stop options.
Con Kolivas 5aca762a 2011-08-31T16:01:28 Go back to requesting work 2/3 of the way through the current scantime with CPU mining as reports of mining threads running out of work have occurred with only 5 seconds to retrieve work.
Con Kolivas a593afdb 2011-08-31T13:23:36 Use the curses_lock to protect the curses_active variable and test it under lock.
Con Kolivas 81195954 2011-08-31T10:25:28 Fix the bouncing short term value by allowing it to change dynamically when the latest value is very different from the rolling value, but damp the change when it gets close.
Con Kolivas 87ac3a00 2011-08-30T12:40:48 Provide much more smoothing of the short term rates.
Con Kolivas d1a8614e 2011-08-30T10:16:47 Add --failover-only option to not leak work to backup pools when the primary pool is lagging.
Con Kolivas 021b2c0d 2011-08-29T17:19:04 The cpu mining work data can get modified before we copy it if we submit it async, and the sync submission is not truly sync anyway, so just submit it sync.
Con Kolivas af15955b 2011-08-29T15:25:14 Exit with a failed return code if we did not reach opt_shares.
Con Kolivas 8f788ec9 2011-08-29T15:12:12 Add an option to break out after successfully mining a number of accepted shares.
Con Kolivas 510bcc3d 2011-08-29T12:21:37 Disable curses after inputting a pool if we requested no curses interface.
Con Kolivas 4cc08fe4 2011-08-29T12:15:24 Enable curses after the mining threads are set up so that failure messages won't be lost in the curses interface.
Con Kolivas 5c7ea9e5 2011-08-29T11:52:10 Display version information and add --version command line option, and make sure we flush stdout.
Con Kolivas 7d34a6b6 2011-08-29T09:39:06 Statify tv_sort.
Con Kolivas f0cc2932 2011-08-29T01:22:05 Convert the opt queue into a minimum number of work items to have queued instead of an extra number to decrease risk of getting idle devices without increasing risk of higher rejects.
Con Kolivas 3aee066b 2011-08-29T01:07:57 Add options to explicitly enable CPU mining or disable GPU mining.
Con Kolivas ee5b4764 2011-08-29T00:49:04 Don't show value of intensity since it's dynamic by default.
Con Kolivas efa17318 2011-08-29T00:36:42 cgminer no longer supports default url user and pass so remove them.
Con Kolivas fc46d57d 2011-08-28T22:45:33 Return -1 if no input is detected from the menu to prevent it being interpreted as a 0.
Con Kolivas 8d393116 2011-08-28T20:24:17 Reinstate minimum 1 extra in queue to make it extremely unlikely to ever have 0 staged work items and any idle time.
Con Kolivas 8a7b9acd 2011-08-28T14:46:21 Switching between redrawing windows does not fix the crash with old libncurses, so redraw both windows, but only when the window size hasn't changed.
Con Kolivas eb0fa6e5 2011-08-28T07:53:25 Copy cgminer path, not cat it.
Con Kolivas 57c93d7e 2011-08-26T13:02:15 Prevent segfault on exit for when accessory threads don't exist.
Con Kolivas e81a362b 2011-08-25T23:33:41 Bump threshhold for lag up to maximum queued but no staged work.
Con Kolivas 5b488811 2011-08-25T21:49:23 Only consider pool lagging if more than one item is queued.
Con Kolivas 3d5f5554 2011-08-25T14:42:03 Allow a custom kernel path to be entered on the command line.
Con Kolivas 7dc3db23 2011-08-25T11:19:40 Implement SSE2 32 bit assembly algorithm as well.
Con Kolivas a4ec961e 2011-08-25T10:21:49 We can queue all the necessary work without hitting frequent stales now with the time and string stale protection active all the time. This prevents a pool being falsely labelled as not providing work fast enough.
Con Kolivas 81aedc97 2011-08-25T08:10:30 Add message about needing one server.
Con Kolivas f2f0ba80 2011-08-24T23:34:22 Revert "Revert "Since we roll work all the time now, we end up staging a lot of work without queueing, so don't queue if we've already got staged work."" This reverts commit cea1cf6cc0c5100ac332801d9fd596435f27aea7. This wasn't eht cause of the false positives.
Con Kolivas cea1cf6c 2011-08-24T23:26:30 Revert "Since we roll work all the time now, we end up staging a lot of work without queueing, so don't queue if we've already got staged work." This reverts commit b81077f36a74e1c1f58b36a9401245134a8d373a. This creates too many false positives for pool not providing work fast enough.
Con Kolivas 5a2cf5a6 2011-08-24T23:23:09 Get start times just before mining begins to not have very slow rise in average.
Con Kolivas b643b56a 2011-08-24T23:14:52 Allow LP to reset block detect and block detect lp flags to know who really came first.
Con Kolivas 73c98e1e 2011-08-24T22:07:05 Check if there is more than one work item queued before complaining about a slow pool.
Con Kolivas dbf0a136 2011-08-24T21:50:04 Use the new hashes directly for counts instead of the fragile counters currently in use.
Con Kolivas 0899ee86 2011-08-24T20:45:30 Only consider pool slow to respond if we can't even roll work.
Con Kolivas 6197ff20 2011-08-24T20:13:05 Remove silly debugging output.
Con Kolivas 93f4163a 2011-08-24T17:32:36 Create a hash list of all the blocks created and search them to detect when a new block has definitely appeared, using that information to detect stale work and discard it.
Con Kolivas b81077f3 2011-08-24T12:50:44 Since we roll work all the time now, we end up staging a lot of work without queueing, so don't queue if we've already got staged work.