cgminer.c


Log

Author Commit Date CI Message
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.
Con Kolivas 8e12a05b 2013-02-09T19:48:11 Provide a noop can_limit_work for devices that don't support it.
Con Kolivas 5b22f092 2013-02-09T19:36:38 Provide a noop thread_prepare function for drivers that don't use thread_prepare.
Con Kolivas 5d581cb5 2013-02-09T19:27:57 Use blank_get_statline_before for GPU devices that don't support adl monitoring.
Con Kolivas 2c3c9e5b 2013-02-09T19:25:24 Provide a noop get_stats function for drivers that don't support it.
Con Kolivas de48ccca 2013-02-09T19:22:13 Provide a blank get_statline for drivers that don't support it.
Con Kolivas b3d9477e 2013-02-09T18:18:52 Provide a blank get_statline_before function for drivers that don't have one.
Con Kolivas f2380eab 2013-02-09T15:10:10 Fill drivers missing reinit_device with a noop version.
Kano 530e3b01 2013-02-08T02:38:37 hotplug use get_thread() where appropriate
Kano 6fb32f7b 2013-02-08T02:32:27 convert sleep(const) to nmsleep()
Kano bc575523 2013-02-08T02:12:09 call a separate get_devices() with locking, as required
Kano 983fe2b0 2013-02-02T09:51:47 usbutils hotplug v0.1
Kano 296eab26 2013-01-31T23:18:12 Report USB nodev as ZOMBIE on the screen
Con Kolivas 3c91b292 2013-02-07T18:02:38 Merge branch 'master' into usb-dev
Con Kolivas 38048501 2013-02-07T13:51:54 Do not consider every call to stratum_resumed a pool recovery unless it was actually idle.
Con Kolivas 03dff61e 2013-02-05T22:00:23 Merge branch 'master' into usb-dev
Con Kolivas 73b7d7b0 2013-02-05T21:47:26 Do not enable the pool disable on reject feature unless explicitly enabled with --disable-rejecting.
Con Kolivas 5c1f3b36 2013-02-05T21:34:58 Merge branch 'master' into usb-dev
Kano f52f02e9 2013-01-26T21:57:09 Stratum disconnect shares - count total against stale
Con Kolivas ffdcaed4 2013-02-05T21:10:18 Use sanity checking to prevent a possible overflow with invalid data being given by the pool for difficulty as reported by luke-Jr.
Con Kolivas 0244998e 2013-02-04T11:23:20 Merge branch 'master' into usb-dev
Con Kolivas 81025611 2013-02-04T11:22:08 Check for calloc failure for completeness in gen_stratum_work.
Con Kolivas d644fdf1 2013-02-04T11:19:12 Cache the coinbase length to speed up stratum work generation.
Con Kolivas 0870ab75 2013-02-04T11:06:05 Cache the header length when generating stratum work to avoid calculating it on every work generation, and to only need one alloc+sprintf, speeding up work generation.
Con Kolivas 54029416 2013-02-04T10:22:10 Use heap ram for coinbase in gen_stratum_work, zeroing it before use.
Con Kolivas 51d11a28 2013-02-04T10:19:12 Provide a wrapper for aligning lengths of size_t to 4 byte boundaries.
Con Kolivas 5d122cad 2013-02-03T23:41:41 Provide wrappers for grabbing of thr value under the mining_thr_lock.
Con Kolivas 08ece33f 2013-02-03T22:51:51 Merge branch 'master' of https://github.com/kanoi/cgminer into kanoi-usb
Kano 7abf30b2 2013-02-03T22:51:05 distinguish between drv and it's id enum now called drv_id
Con Kolivas 70b5b840 2013-02-03T21:33:12 Merge branch 'master' of https://github.com/kanoi/cgminer into kanoi-usb
Kano 61ec1fe9 2013-01-30T15:02:25 mutex all access to mining_thr
Kano 212f32e5 2013-01-29T23:44:09 Split thr_info array into control_thr and mining_thr pointers so more mining threads can be added later
Kano 7388942b 2013-01-26T21:57:09 Stratum disconnect shares - count total against stale
Kano 0b3d8c89 2013-01-10T11:08:12 API zero - zero statistics - all or bestshare - with optional on screen summary
Kano bad942e5 2013-01-08T14:06:16 increase device status string length
Kano f9e04a3c 2013-01-06T21:00:38 device_drv - allow .name to be changed before add_cgpu()
Kano a4e95cfa 2013-01-06T01:00:18 device_drv missing drv for cpu and incorrect test
Kano a344deb6 2013-01-05T23:47:26 rename device_api -> device_drv and all related api -> drv and add a device_drv->drv enum for identifying which driver each is
Kano 7724989d 2013-01-05T10:40:32 diffexactone pool diff1 used for share value calculation is ffffffff... not 100000000... :P
Con Kolivas 7e2b1e80 2013-02-02T11:47:25 Fix memory leak on stratum share submission.
Kano 4c2f26e2 2013-01-02T22:34:05 zero (most) API stats
Kano 03f626e6 2013-01-02T21:51:09 Remember best share per pool and return in API pools
Con Kolivas ec9b32aa 2012-12-31T09:15:17 Zero the best share string memory when zeroing stats.
Con Kolivas 6e2e7d36 2012-12-29T10:46:55 Differentiate socket full from sock full.
Con Kolivas 7f46f6e9 2012-12-29T10:42:45 Allow stratum to startup without notify but check it is valid before creating stratum work.