cgminer.c


Log

Author Commit Date CI Message
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.
Con Kolivas e1d7ecdd 2012-12-29T09:45:40 Do not try to generate stratum work unless the notify command has succeeded.
Con Kolivas 34a6c59a 2012-12-27T09:49:22 Reset total diff1 shares when zeroing stats as well to show correct work utility.
Con Kolivas 8958ee42 2012-12-26T09:38:58 Do not give the share submission failure message on planned stratum disconnects.
Con Kolivas 944af31b 2012-12-26T09:31:41 Parse anything in the stratum socket if it's full without waiting. Empty the socket even if a connection is not needed in case there are share returns.
Con Kolivas dd4e5159 2012-12-25T23:44:26 Provide a mechanism to zero all the statistics from the menu.
Con Kolivas d3bfee14 2012-12-25T23:14:21 Display the current pool diff in the status line.
Con Kolivas fedf0f11 2012-12-25T14:53:44 Display block diff in status line.
Con Kolivas 98151b2e 2012-12-25T14:36:08 Generalise the code for solving a block to enable block solve detection with scrypt mining.
Con Kolivas f0c1782c 2012-12-25T14:08:27 Generate the output hash for scrypt as well and use the one function to set share_diff.
Con Kolivas f86e8931 2012-12-24T14:13:28 Use the flip80 function in regeneratehash and the correct sized hash array.
Con Kolivas 93e3c16a 2012-12-24T13:49:28 Stage work outside of the stgd lock to prevent attempted recursive locking in clone_available.
Con Kolivas 34879487 2012-12-24T13:31:45 share_diff needs to be performed on a BE version of the output hash to work, leading to false best_share values as spotted by luke-Jr.
Con Kolivas deb9aec0 2012-12-24T12:54:09 Remove the unused sha224 functions.
Con Kolivas 432bfd0e 2012-12-24T12:39:27 Use the flip functions in hashtest.
Con Kolivas 54e218b6 2012-12-24T11:19:33 Simplify the setting of the nonce data field in work on submitting nonces.
Con Kolivas 69dd5aff 2012-12-24T10:45:57 Scrypt code does not enter the hashtest function.
ckolivas 9fd60bb5 2012-12-24T10:34:06 Merge branch 'master' of github.com:ckolivas/cgminer
Con Kolivas df7370d0 2012-12-24T10:26:56 Go back to cloning available work under staged lock.
ckolivas d91dc188 2012-12-23T15:44:43 scrypt_diff uses a uint64_t as well.
Con Kolivas bb64799c 2012-12-22T08:37:43 Correct target for stratum support with scrypt mining.
Con Kolivas b9c7f3d1 2012-12-19T21:31:22 Remove debugging message :P
Con Kolivas a07e0155 2012-12-19T20:53:11 Stop all work from the current pool if it's a stratum pool once it is disconnected since it will be invalid upon reconnecting.
Con Kolivas 8dbb3fa2 2012-12-19T20:51:22 Discard all staged work from stratum pools as well as the shares upon disconnection since all the work becomes invalid.
Con Kolivas a7128e00 2012-12-19T20:21:32 Use correct cbreak after 15 second delay when no pool is found alive.
Con Kolivas 4f1f5c8e 2012-12-19T20:04:22 Revert "Reset lagging flag after it has been used in the getwork scheduler." This reverts commit 19267907c038a0d5e94be2b229d1e61b565e371d. Redundant.
ckolivas 19267907 2012-12-19T14:41:42 Reset lagging flag after it has been used in the getwork scheduler.
ckolivas 14457a0b 2012-12-19T14:41:29 Allow stratum to work with scrypt.
Con Kolivas 3b910336 2012-12-18T22:48:56 Protect the best_share/best_diff values under control lock.
Con Kolivas 9ef73d93 2012-12-17T12:27:50 Check a stratum pool hasn't gone dead while being a backup pool and missed having its idle flag cleared.
Kano 43e8b88a 2012-12-12T19:52:36 Benchmark incorrect work size
Con Kolivas e51ee931 2012-12-10T21:25:17 Set tv_idle time if a pool is not active when input from the menu.
Con Kolivas 70b62876 2012-12-09T23:58:54 Merge pull request #354 from kanoi/api minor unlikely zero pointer test
Kano 58a7226d 2012-12-10T18:42:32 minor unlikely zero pointer test
Con Kolivas c3fb1bce 2012-12-10T15:40:16 Revert "Selectively discard all work items if a longpoll or stratum restart is received without a new block to work on." This reverts commit 31f75098b51465c885dc36b49b29b2d82dd216e3. Mistake, set in work_block already.
Con Kolivas 1922e498 2012-12-10T11:03:50 Only stratum pools that are idle need to be kicked via cnx_needed.
Con Kolivas c5d9f3ac 2012-12-10T10:32:21 Only set the lagging flag for select_pool() on failed getwork if we're not in opt_fail_only mode.
Con Kolivas 383b42f2 2012-12-09T17:15:13 Set the pool lagging flag on startup to avoid it being shown initially, and only unset it once the maximum number of staged work items has been reached.
Con Kolivas 8feb3029 2012-12-09T15:38:44 Avoid recursive locking of the stgd lock.
Con Kolivas c59aeb56 2012-12-09T15:29:06 Revert "Wake the getwork scheduler after every restart threads." This reverts commit 5b03e7497db5cc0cab7d2b788168c2d3f2b0fc87. Redundant.
Con Kolivas 31f75098 2012-12-09T15:28:30 Selectively discard all work items if a longpoll or stratum restart is received without a new block to work on.
Con Kolivas 5b03e749 2012-12-09T15:11:49 Wake the getwork scheduler after every restart threads.
Con Kolivas 01b9c6df 2012-12-09T08:22:13 Make main() the getwork scheduler once everything is set up, so that all app exits use the kill_work and quit paths.
Con Kolivas 30f6840b 2012-12-08T22:08:23 Only consider work stale for stratum of different job_id if it's not a share.
Con Kolivas 67a9af68 2012-12-08T21:53:06 Hash_pop should signal further waiters on its own pthread conditional in case there are multiple waiters.
Con Kolivas 5c4c2d67 2012-12-08T21:45:15 Check the job_id has not changed on stratum work when deciding if the work is stale as might occur across disconnections.
Con Kolivas fcb26532 2012-12-08T21:35:14 Perform pool_resus on getwork pool that generates work in getwork_thread.