cgminer.c


Log

Author Commit Date CI Message
Con Kolivas ffc8681f 2013-03-12T18:07:17 Merge pull request #403 from kanoi/bflsc USB add --usb options to limit USB device selection v0.1 + --usb-dump display brief dump if value = 0
Con Kolivas b5b3ca49 2013-03-12T22:44:41 Convert gbt_lock to a cg_lock.
Con Kolivas b8ed231f 2013-03-12T22:40:23 Add intermediate variants of cglocks that can be up or downgraded to read or write locks and use them for stratum work generation.
Con Kolivas 26ddd1fd 2013-03-12T22:31:45 Move the stratum and GBT data to be protected under a new cg_lock data_lock.
Con Kolivas fd87825b 2013-03-12T22:17:08 Convert the ch_lock to cg_lock.
Con Kolivas 0bbaaa97 2013-03-12T22:07:06 Convert the control_lock to a cg_lock.
Con Kolivas 74164a3a 2013-03-12T22:00:44 Remove unused qd_lock.
Kano 6d629d68 2013-03-11T11:52:05 do usb_initialise() after the started message so we see it
Kano 3f50e878 2013-03-11T10:58:28 USB add --usb options to limit USB device selection v0.1
Con Kolivas 5412323e 2013-03-09T15:12:41 Fix memory leak with share submission on GPU work structures as discovered by twobitcoins.
Kano f24fab3f 2013-03-09T11:47:36 Show pool number in switch message
Con Kolivas e0196a33 2013-03-09T11:33:50 Don't start testing any pools with the watchpool thread if any of the test threads are still active.
Con Kolivas 81c02123 2013-03-09T09:56:36 Set pool died on failed testing to allow idle flag and time to be set.
Con Kolivas 6c77e9a8 2013-03-09T09:39:19 Perform pool_resus on all pools that are found alive with the test pool threads.
Con Kolivas d932a36c 2013-03-09T09:34:01 Use pool_unworkable in select_balanced as well.
Con Kolivas 90a1114a 2013-03-09T09:31:40 Differentiate pool_unusable from pool_unworkable.
Con Kolivas 3b84131f 2013-03-09T09:07:20 Keep a connection open on higher priority stratum pools to fail back to them.
Con Kolivas f3ce5777 2013-03-09T08:51:51 Rename threads according to what pool they're associated with as well.
Con Kolivas 9b34d821 2013-03-09T08:10:57 Set the wrong bool in pool_active
Con Kolivas de289443 2013-03-08T20:52:54 Revert "Rollback breakage to 81567e515707891837f52bc3aac7d5916dfff5a2" This reverts commit a8863995dee7bcd089e1aa9a3b86cd5c749d0d65. This should work now...
ckolivas 8c878075 2013-03-08T15:32:10 Start the stratum thread only if we successfully init and authorise it, otherwise unset the init flag.
ckolivas e746ed64 2013-03-08T15:18:10 Make the initialisation of the stratum thread more robust allowing the watchpool thread safe access to it after the stratum thread is started.
Con Kolivas d7c4be30 2013-03-07T21:41:01 Only set stratum auth once to prevent multiple threads being started.
Con Kolivas 3db4d6f0 2013-03-07T21:07:15 Display select return value on select fail in stratum thread.
Con Kolivas a8863995 2013-03-07T19:00:47 Rollback breakage to 81567e515707891837f52bc3aac7d5916dfff5a2
Con Kolivas a5d35e82 2013-03-07T18:44:40 Only bypass unusable pools if they're not the selected ones.
Con Kolivas 1468feb0 2013-03-07T18:13:25 Find the first usable pool in preference to the current pool in select_pool for work.
Con Kolivas ade8c6c7 2013-03-07T18:00:15 Add a pool_unusable function which checks if a pool is stratum but not active to use within switch_pools.
Con Kolivas 81567e51 2013-03-07T17:00:23 Perform pool resus on pools that were not set as the initial pool at startup.
Con Kolivas c7c21e6c 2013-03-07T16:56:03 Revert "Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools." This reverts commit 370e8fc8626fd370fedbea53f433cf89c8195a59.
Con Kolivas 370e8fc8 2013-03-07T16:49:16 Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools.
Con Kolivas e501db14 2013-03-07T16:45:25 Allow pools to be resuscitated on first startup by the watchpool thread.
Con Kolivas 52216625 2013-03-07T16:39:49 Check all pools simultaneously at startup switching to the first alive one to speed up startup.
Con Kolivas 12553004 2013-03-07T14:40:48 Do not continue work from a stratum pool where the connection has been interrupted.
Con Kolivas bba99bd8 2013-03-07T13:39:00 Show mechanism of stratum interruption if select times out.
Con Kolivas 011ea640 2013-03-07T12:42:44 Make stratum connection interrupted message higher priority to be visible at normal logging levels.
Con Kolivas 96ae17a4 2013-03-06T15:51:33 Merge pull request #398 from kanoi/bflsc API use control_lock when switching pools + Setup BFLSC support + API add 'Network Difficulty' to 'coin'
Kano 0eafc8b9 2013-03-07T07:40:05 API add 'Network Difficulty' to 'coin'
Kano 540f3e89 2013-03-07T00:00:31 Setup BFLSC support
ckolivas 386ea2df 2013-03-06T14:34:17 Instead of keeping track of when the last work item was generated to keep stratum connections open, keep them open if any shares have been submitted awaiting a response.
Con Kolivas 82fce466 2013-03-05T02:47:19 Merge pull request #395 from kanoi/bflsc configure - set USE_USBUTILS when usbutils is required and use it in the code
Kano 2f6660e8 2013-03-05T18:33:43 configure - set USE_USBUTILS when usbutils is required and use it in the code
Con Kolivas 016f065f 2013-03-05T11:16:20 Clear last pool work on switching pools if the current pool supports local work generation or we are in failover only mode.
Kano 120e9a07 2013-03-04T22:46:34 make rw locks: mining_thr_lock and devices_lock
Kano be8cadbc 2013-03-04T17:26:11 Hotplug - allow setting interval via --hotplug or API
Kano 97cb77d1 2013-03-04T14:06:15 curses - fix - put a dev_width inside #ifdef
Kano e35e8ae1 2013-03-04T09:45:07 Implement and use usb_cleanup() on shutdown or restart
Kano c14f2ec6 2013-03-03T19:33:20 API V1.25 - add 'Last Valid Work' time for each device
Kano cc3869e5 2013-03-03T16:38:02 api -> drv
Con Kolivas 357294a7 2013-03-02T17:22:42 Merge branch 'usb-dev'
Con Kolivas 2c3a946c 2013-03-02T16:01:37 Update a pool's last work time when the work is popped as well as staged.
Con Kolivas 5c32a47b 2013-03-01T14:29:20 Merge pull request #375 from luke-jr/bugfix_cfgwrite_fnleak Free filename entry for writing config file when done with it
Con Kolivas 52995e28 2013-03-01T14:28:02 Merge pull request #389 from kanoi/bflsc BFL stop 1st init command if no device + Update diff stale: total and pools when stratum throws away shares
Kano 42a01e7b 2013-03-01T16:49:08 Update diff stale: total and pools when stratum throws away shares
Con Kolivas b2b0d10a 2013-02-28T23:37:06 Merge branch 'master' into usb-dev
Con Kolivas b4cac54a 2013-02-28T23:35:31 Keep stratum connections open for 2 minutes after the last work item was staged to allow stray shares to be submitted on pool switching.
Con Kolivas 5abcf06b 2013-02-25T10:44:54 Merge branch 'master' into usb-dev
Con Kolivas d9d5a1a0 2013-02-25T09:15:20 Speed up watchdog interval and therefore display updates to 2 seconds.
Con Kolivas 5a3b3749 2013-02-25T08:59:11 Update copyright dates.
Con Kolivas 6bf79626 2013-02-23T13:59:37 Merge branch 'master' into usb-dev
Con Kolivas d16d4928 2013-02-22T21:41:47 Fix --benchmark generating valid work for cgminer.
ckolivas 6a0882f0 2013-02-22T16:55:39 Use the sessionid as passed on stratum connect to attempt to resume a connection once and then clear it if it fails, to use a new connection.
ckolivas 68d69109 2013-02-22T12:55:01 Move to storing the nonce1 in the work struct instead of the sessionid for the now defunct first draft mining.resume protocol.
Con Kolivas fce54349 2013-02-18T14:14:10 Add a get_queued function for devices to use to retrieve work items from the queued hashtable.
ckolivas f910476d 2013-02-17T00:10:59 Merge branch 'usb-dev' into queued_work
ckolivas 22a50a5a 2013-02-17T00:10:36 Merge branch 'usb-dev' of github.com:ckolivas/cgminer into usb-dev
Con Kolivas 4fdd45af 2013-02-16T03:51:33 Merge pull request #387 from luke-jr/bugfix_20130215b Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free
Luke Dashjr 0847d458 2013-02-16T06:46:00 Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free
Kano 4266245a 2013-02-16T14:15:17 Merge remote-tracking branch 'conman/master' into bflsc
Con Kolivas fda6d46e 2013-02-16T14:09:44 Add the choice of hash loop to the device driver, defaulting to hash_sole_work if none is specified.
Con Kolivas 254e25ac 2013-02-16T14:03:40 Add comments.
Con Kolivas c80c65ea 2013-02-16T12:38:53 Add a driver specific flush_work for queued devices that may have work items already queued to abort working on them on the device and discard them.
Con Kolivas 294cda2e 2013-02-16T12:35:16 Flush queued work on a restart from the hash database and discard the work structs.
Con Kolivas e8e88bef 2013-02-16T12:28:50 Create a central point for removal of work items completed by queued device drivers.
Con Kolivas 95b20202 2013-02-16T12:14:13 Create a fill_queue function that creates hashtables of as many work items as is required by the device driver till it flags the queue full.
Con Kolivas 5e3253a7 2013-02-16T11:54:05 Create the hash queued work variant for use with devices that are fast enough to require a queue.
Con Kolivas 649f2939 2013-02-16T09:09:44 Update copyright year.
Con Kolivas 0b833131 2013-02-16T09:07:33 Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle, not opt_log_interval.
Con Kolivas e414cd05 2013-02-16T09:07:33 Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle, not opt_log_interval.
Con Kolivas ab0cc58c 2013-02-15T23:15:11 Merge branch 'master' into usb-dev
Con Kolivas 0f7ab367 2013-02-15T23:11:13 Only continue submitting shares with mining.resume support on stratum when the session id matches.
Con Kolivas be4705a0 2013-02-15T23:05:29 Provide support for mining.resume with stratum, currently re-authorising after successful resumption pending finalising of the protocol process.
Con Kolivas 4cde791e 2013-02-15T21:31:44 Provide basic framework for restarting stratum depending on whether resume support exists or not.
Con Kolivas 16c7c983 2013-02-15T20:27:07 Free sessionid in clean_work and remove redundant setting of strings to NULL since the whole work struct is zeroed.
Con Kolivas 8fdf6d5c 2013-02-15T18:34:54 Only clear stratum shares mandatorily on stratum dropouts when the pool does not support resume.
Con Kolivas f60637c3 2013-02-15T17:48:13 Try resubmitting stratum shares every 5 seconds for up to 2 minutes if the pool session id exists and matches on failure to submit.
Con Kolivas 7e8019ac 2013-02-15T16:13:24 Do as much outside of mutex locking of sshare_lock as possible.
Con Kolivas 7551b88d 2013-02-15T16:09:36 Remove last reference to struct work used outside the sshare_lock in submit_work_thread
Con Kolivas ebb99e5a 2013-02-15T16:05:21 Unlock the sshare_lock in submit_work_thread when all references to work and sshare are complete.
Con Kolivas 1bf1f4a2 2013-02-15T15:36:29 Add timestamps to stratum_share structs as they're generated and copy the stratum sessionid if it exists to stratum work generated.
Con Kolivas 20b5ebbc 2013-02-11T15:28:41 hash_sole_work can be static
Con Kolivas c28e2238 2013-02-10T13:29:25 Merge branch 'master' into usb-dev
Con Kolivas 775a1abc 2013-02-10T13:28:06 Keep the unique id of each work item across copy_work to prevent multiple work items having the same id.
Con Kolivas 61a3e1b1 2013-02-09T02:36:27 Merge pull request #382 from kanoi/hotplug USB tidy up requests + Hotplug
Con Kolivas dafc2f77 2013-02-09T21:12:03 Abstract out the main hashing loop to allow us to use a separate loop for devices that are fast enough to require queued work.
Con Kolivas 81b84d4f 2013-02-09T19:59:36 Provide a noop thread_enable function for drivers that don't support it.
Con Kolivas b884d11a 2013-02-09T19:56:45 Provide a noop thread_shutdown function for drivers that don't support it.
Con Kolivas 2c28eefc 2013-02-09T19:54:54 Provide a noop hw_error function for drivers that don't support it.
Con Kolivas 21053719 2013-02-09T19:52:00 Provide a noop prepare_work for drivers that don't support it.
Con Kolivas b9f5b48c 2013-02-09T19:50:07 Provide a noop thread_init for drivers that don't support it.