cgminer.c


Log

Author Commit Date CI Message
ckolivas a02dc6f4 2013-11-07T11:01:22 Add a get and queue helper work function.
Con Kolivas c57b1519 2013-11-08T17:28:10 Reset the work_restart bool after the scanwork loop in case the driver flushes work synchronously.
Con Kolivas 3a71ade6 2013-11-08T14:23:18 Only check for the stratum clean message if we have had a valid message.
Con Kolivas 72424388 2013-11-08T13:32:55 Get rid of the stage thread since all work can be asynchronously added now via hash_push anyway.
Con Kolivas 34f23f69 2013-11-07T22:27:21 Break out of the hash work loops when a failure is detected instead of dropping into mt disable.
ckolivas 8416a4db 2013-11-06T10:22:38 Fix build for no libcurl
Con Kolivas 757fcb3d 2013-11-05T17:15:56 Do all hotplug_process under the write mining_thr_lock
Con Kolivas 2489b2ae 2013-11-05T16:54:29 Fix for opt_worktime on big endian machines.
Con Kolivas 463e366c 2013-11-05T16:53:06 Correct set_blockdiff for big endian machines.
Con Kolivas 043e9d9b 2013-11-05T16:20:19 Make sure cgpu exists in the restart threads loop in cases of hotplug etc.
Con Kolivas c030439d 2013-11-05T12:46:34 Do get_work in fill_queue without holding other locks.
Con Kolivas 4a620cce 2013-11-05T11:46:45 Initialise usb after all the locks and conditionals are initialised.
Con Kolivas aa993897 2013-11-05T09:08:52 Use only a trylock in flush queue to prevent deadlocks.
Con Kolivas 609ca929 2013-11-05T08:03:24 Scale diff for scrypt when testing for block solves.
Con Kolivas c5b10a6c 2013-11-04T20:57:47 Fix for non curses build.
Con Kolivas e3ed101c 2013-11-03T23:03:43 Force unlocking of the console lock on restart to avoid corrupting the console state when we finally quit.
Con Kolivas 6c2a8d8b 2013-11-03T23:03:43 Force unlocking of the console lock on restart to avoid corrupting the console state when we finally quit.
Con Kolivas c9b54f15 2013-11-03T22:36:16 Never wait indefinitely for a pthread conditional in the hash_pop loop in case the work scheduler misses the last wakeup.
Con Kolivas a077c9f9 2013-11-03T22:29:29 Make hash_pop signal the work scheduler each time it waits on the conditional that it should look for more work.
Con Kolivas 31df767c 2013-11-03T22:29:29 Make hash_pop signal the work scheduler each time it waits on the conditional that it should look for more work.
Con Kolivas 3f9ccc1b 2013-11-03T22:36:16 Never wait indefinitely for a pthread conditional in the hash_pop loop in case the work scheduler misses the last wakeup.
Con Kolivas 81940671 2013-11-03T01:22:13 Remove discarded work from quota used.
Con Kolivas c3854378 2013-11-03T01:01:24 Display works completed in summary and API data.
Con Kolivas 8e1ec8bd 2013-11-03T00:52:15 Store how many work items are worked on per pool.
Con Kolivas ab1e9404 2013-11-03T00:47:43 Make each pool store its on reference for what the most current block is and fine tune management of block change in shared pool failover strategies using the information.
Con Kolivas 448b1fae 2013-11-02T22:25:45 Rationalise use of current_hash to a single hex string the length of the previous block and display only the first non zero hex chars of the block in the status window.
Con Kolivas e6a50684 2013-11-02T21:09:37 show_hash doesn't know the size of the string so hard code the max size.
Con Kolivas 57d6a6f6 2013-11-02T20:56:29 Remove as many initial zeroes as exist on share display, abstracting out a hash show function to use across different submission mechanisms.
Con Kolivas 876a8302 2013-11-02T11:20:26 Sanity check for absurd target setting and divide by zero.
Con Kolivas 21bdcdd6 2013-11-02T11:17:36 Abstract out conversion of a 256 bit endian number to a double, correcting errors and use it for determining any magnitude share diff.
Con Kolivas 759bd39f 2013-11-02T11:04:06 Avoid the extra generation of a byte flipped hash2 in struct work and directly use the LE work hash.
Con Kolivas e95b42ea 2013-11-02T08:46:13 Add a sanity check to avoid divide by zero crashes in set_target
Con Kolivas 8abe9d4e 2013-11-01T23:30:29 Calculate diff from target accurately for all 256 bits.
Con Kolivas 8d61ee24 2013-11-01T23:08:49 Set a true 256bit binary target based on any diff value in set_target()
Con Kolivas 61297399 2013-11-01T21:45:47 Provide a copy_work_noffset function for copying a work struct but changing its ntime.
Con Kolivas e18ae1e2 2013-11-01T00:26:55 Make calls to flush queue and flush work asynchronous wrt to the main work loops.
Con Kolivas 39c84913 2013-11-01T00:12:25 Share is also above target for submit noffset nonce.
Con Kolivas 8ed93633 2013-10-31T23:45:51 Use round for displaying current pool diff.
Con Kolivas eb73897a 2013-10-31T23:35:43 Use round for stratum share diff display instead of floor.
Con Kolivas 7e59ec4f 2013-10-31T23:28:57 Use round instead of floor for displayed pool difficulty.
Con Kolivas ac5b12e1 2013-10-31T17:15:42 Allow arbitrary diffs to be tested against nonces via a test_nonce_diff function.
Con Kolivas 99b24c48 2013-10-31T17:04:44 Abstract out the rebuilding of hash2 in work.
Con Kolivas 5da3d58f 2013-10-31T16:49:24 Share is above, not below target, when it doesn't meet it.
Con Kolivas 774061e3 2013-10-31T12:31:34 Minor style changes to output.
Con Kolivas c4542f2b 2013-10-31T12:29:59 Merge branch 'master' into hfa Conflicts: Makefile.am api.c configure.ac miner.h
Con Kolivas b431ea4e 2013-10-31T12:09:23 Merge branch 'master' into kncminer
Con Kolivas 5c9f3036 2013-10-29T22:25:05 Merge branch 'master' into hashfast
Kano 3e93b268 2013-10-29T19:46:35 klondike - change options to clock and temptarget only
Vitalii Demianets 53570ae8 2013-10-02T03:49:47 KnC driver: knc-spi-fpga ASIC driver This driver talks to KnCMiner controller via SPI Protocol specification is available at https://github.com/KnCMiner/jupiter-hw-docs/blob/master/fpga_spi.md
Vitalii Demianets 14d20837 2013-08-09T10:28:17 'llround' is more suitable here than 'roundl'
Con Kolivas 36c6da8a 2013-10-27T00:46:19 Reinstate block solve testing.
Con Kolivas 3f6b9d67 2013-10-27T00:27:39 Dramatically simplify the calculation of blockdiff.
Con Kolivas ca919947 2013-10-26T23:14:34 Simplify the set_target function, allowing it to work properly for fractional diffs.
Con Kolivas 2d67bb06 2013-10-26T16:22:13 Merge branch 'master' into hashfast
Con Kolivas f9d3d008 2013-10-25T20:11:24 Merge pull request #509 from roybadami/master Improvements to support for BitBurner boards
Con Kolivas e1b4aa98 2013-10-25T14:42:35 Merge branch 'master' into hashfast
Con Kolivas 3ffc3f1d 2013-10-25T14:41:23 Adjust the binary ntime data in submit_noffset_nonce even when there is no hex ntime string for eg. gbt.
Con Kolivas f29f6121 2013-10-25T14:35:56 Merge branch 'master' into hashfast
Con Kolivas 316e6d61 2013-10-25T14:29:43 Put an entry into the work struct telling drivers how much they can roll the ntime themselves.
Con Kolivas 4728dd82 2013-10-25T12:54:10 Remove the applog on miner threads dying to prevent deadlocks on exit.
Con Kolivas 4c979d75 2013-10-25T12:46:47 Do one extra guaranteed libusb event handling before testing if there are any pending async usb transfers.
Con Kolivas 0da551fa 2013-10-25T12:30:39 Use a linked list for all usb transfers instead of just cancellable ones.
Con Kolivas d342bcbe 2013-10-25T11:56:32 Provide a mechanism for informing drivers of updated work templates for stratum and gbt mining.
Con Kolivas 9d8e3df0 2013-10-25T04:07:09 Add usb transfer cancellation on shutdown and documentation regarding where cancellable transfers are suitable.
Con Kolivas d2feacdf 2013-10-24T22:26:13 Cancel cancellable usb transfers on work restart messages.
Con Kolivas b639e688 2013-10-24T21:19:29 Merge branch 'master' into hashfast
Con Kolivas 448f8dde 2013-10-24T21:15:36 Don't attempt to disable curses or print a summary during an app restart to prevent deadlocks.
Con Kolivas 81dfe60d 2013-10-24T20:41:55 Keep the libusb event handle polling thread active until there are no async usb transfers in progress.
Con Kolivas 5ea6a8ea 2013-10-23T22:45:56 Merge branch 'master' into hashfast Conflicts: Makefile.am
Con Kolivas e7642132 2013-10-23T22:31:00 Minor opencl build corrections.
Con Kolivas 273b04be 2013-10-20T13:22:14 Do the ntime binary modification to the work struct when submitting an ntime offset nonce within submit_noffset_nonce
Con Kolivas 572c8b96 2013-10-20T13:22:14 Do the ntime binary modification to the work struct when submitting an ntime offset nonce within submit_noffset_nonce
Roy Badami c69a130d 2013-10-19T18:42:20 Improvements to support for BitBurner boards --bitburner-fury-options allows avalon-options to be overridden for BitBurner Fury Boards, facilitating simultanous use of BitBurner XX and BitBurner Fury boards More sensible defaults for BitBurner boards, so cgminer should do something sensible without any command line args
Con Kolivas 31e8ebaf 2013-10-19T16:08:17 Merge branch 'master' into hashfast
Con Kolivas 06776af0 2013-10-18T23:34:55 Use the forcelog function on shutdown to cope with indeterminate console lock states due to killing of threads.
Con Kolivas 8e9f32a8 2013-10-18T23:30:05 Add a forcelog variant of applog which invalidates any console lock to force output.
Con Kolivas f5baf9f5 2013-10-18T19:12:13 Merge branch 'master' into hashfast Conflicts: usbutils.h
ckolivas 680f014c 2013-10-18T14:58:33 Simplify queued hashtable by storing unqueued work separately in a single pointer.
ckolivas 40821d1f 2013-10-18T10:44:56 Use cgcompletion timeouts for the unreliable shutdown functions on kill_work.
Kano c9adb192 2013-10-18T00:54:37 allow __work_complete() access
Kano 514b3c42 2013-10-17T19:45:20 API add 'MHS %ds' to 'summary'
Kano d3d3fc13 2013-10-17T16:14:45 Optional lock tracking and stats via the API
Con Kolivas 685c2ace 2013-10-17T20:03:31 Speed up polling repeat again in usb poll thread and handle async after the message to disable polling is complete.
Kano 55e233d5 2013-10-17T19:45:20 API add 'MHS %ds' to 'summary'
kanoi bf810a10 2013-10-17T00:37:15 Merge pull request #506 from kanoi/master optional lock reporting in the API and klondike work redesign
Kano c2073f09 2013-10-17T16:14:45 Optional lock tracking and stats via the API
Con Kolivas bec75b61 2013-10-16T20:34:51 Make the USB polling thread poll every second to potentially aid longer timeout transfers.
ckolivas f821d0fb 2013-10-15T13:31:07 Set device_diff on work in get_work to not be missed with drivers that use get_work directly.
Con Kolivas b6831453 2013-10-16T20:34:51 Make the USB polling thread poll every second to potentially aid longer timeout transfers.
ckolivas fe5da967 2013-10-15T13:31:07 Set device_diff on work in get_work to not be missed with drivers that use get_work directly.
Con Kolivas 9e287f95 2013-10-14T03:27:57 Merge pull request #499 from someone42/master changes to bitburner driver for bitburner fury boards
Con Kolivas e06e495a 2013-10-14T15:07:32 Merge branch 'master' into hashfast
Con Kolivas 07837072 2013-10-14T12:12:01 hexstr is too small in test_work_current
Con Kolivas 9b5c5349 2013-10-13T16:41:53 Merge branch 'master' into hashfast Conflicts: api.c configure.ac miner.h usbutils.c usbutils.h
Con Kolivas 56edabc6 2013-10-12T11:06:54 Use a timeout with usb handle events set to a nominal 200ms and wait for the polling thread to shut down before deinitialising libusb.
Con Kolivas 9f8023a9 2013-10-12T10:34:07 Use stack memory for hex used in stratum share submissions.
Con Kolivas e0c90359 2013-10-12T09:56:48 Use stack memory in test_work_current, avoiding a malloc/free cycle each time.
Con Kolivas 835ad824 2013-10-12T09:32:07 Convert the bitfury driver to use the hash_driver_work version of hash_work.
Con Kolivas 58008a37 2013-10-12T09:05:58 Add a hash_driver_work function to allow for drivers that wish to do their own work queueing and management.
Chris Chua b509e843 2013-10-03T20:11:37 using separate identifier for bitburner fury boards