cgminer.c


Log

Author Commit Date CI Message
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
Con Kolivas cda797d1 2013-10-11T16:04:23 Avoid calling get_statline_before on exit to avoid trying to use it on drivers in an indeterminate state.
Con Kolivas d437de84 2013-10-11T15:58:29 Avoid calling get_statline on exit.
Con Kolivas b5dfacef 2013-10-11T10:15:06 We are always dependent on libusb handling events so use the blocking libusb_handle_events in the polling thread and use a bool to know if we should continue polling.
Con Kolivas 853aa28f 2013-10-11T08:49:59 Merge branch 'master' into async Conflicts: usbutils.c
Con Kolivas 2834eb8d 2013-10-08T23:35:22 Kill off threads that have failed using hash_sole_work instead of just disabling them.
Con Kolivas f80c9003 2013-10-08T20:46:36 Merge branch 'master' into async Conflicts: api.c cgminer.c miner.h usbutils.c util.c
Con Kolivas f8e28f25 2013-10-08T20:42:36 Try switching pools if for some reason we end up with only idle pools and have ended up current_pool set to an idle one.
Con Kolivas 3b527f14 2013-10-08T20:41:13 Check a pool is stable for >5 mins before switching back to it.
Con Kolivas 7318ecee 2013-10-07T23:34:01 Make the devlock a cglock in usbutils and only grab the write lock for fundamental changes allowing us to send and receive transfers concurrently without lock contention.
Con Kolivas 8c0ea19e 2013-10-05T09:31:36 Submitting an ntime offset nonce needs to be done on a copy of the work instead of the original so abstract out shared components as much as possible, minimising strdups in copy_work and make submit_work_async work take copied work, cleaning up code in the process.
Con Kolivas b6a97de6 2013-10-04T21:39:42 Provide a way for drivers to submit work that it has internally rolled the ntime value by returning the amount it has ntime rolled to be added.
ckolivas 6cd7f0f1 2013-10-04T12:00:41 Remove unmaintained broken ztex driver.
Kano 51418f79 2013-10-03T23:19:18 Klondike update code to current git
Con Kolivas a6a94070 2013-10-01T14:40:30 Use asynchronous transfers for all bulk transfers, allowing us to use our own timers and cancelling transfers that take too long.
Con Kolivas 59ff31d8 2013-10-07T17:11:33 Make the devlock a cglock in usbutils and only grab the write lock for fundamental changes allowing us to send and receive transfers concurrently without lock contention.
Con Kolivas 3b266594 2013-10-07T14:57:08 Merge branch 'master' into libusbx Conflicts: api.c miner.h usbutils.c
Con Kolivas dbef95f7 2013-10-05T09:31:36 Submitting an ntime offset nonce needs to be done on a copy of the work instead of the original so abstract out shared components as much as possible, minimising strdups in copy_work and make submit_work_async work take copied work, cleaning up code in the process.
Con Kolivas 4c79252d 2013-10-04T21:39:42 Provide a way for drivers to submit work that it has internally rolled the ntime value by returning the amount it has ntime rolled to be added.
ckolivas 052e4348 2013-10-04T12:00:41 Remove unmaintained broken ztex driver.
Kano dc85abd9 2013-10-03T23:19:18 Klondike update code to current git
Con Kolivas 69c01a14 2013-10-01T14:40:30 Use asynchronous transfers for all bulk transfers, allowing us to use our own timers and cancelling transfers that take too long.
Con Kolivas f49a3c76 2013-09-30T08:43:29 Merge branch 'master' into hashfast Conflicts: Makefile.am api.c cgminer.c configure.ac miner.h usbutils.c usbutils.h
Con Kolivas 5e1ebd50 2013-09-29T13:54:16 Deuglify use of _PARSE_COMMANDS macro expansions.
ckolivas 2ec601e1 2013-09-28T16:00:55 There is no need to get the external prototypes for drivers in cgminer.c any more.
ckolivas f3294f74 2013-09-28T15:18:08 Remove unnecessary gpu_threads initialisation.
ckolivas 6d747123 2013-09-28T15:11:06 Use macro expansion to iterate over all device drivers without needing to explicitly code in support in all places. Pass a hotplug bool to the detect() function to prevent opencl trying to hogplug GPUs.
ckolivas df54b768 2013-09-28T13:52:13 Add a noop function for driver detect when it's missing.
ckolivas 88751974 2013-09-28T10:25:48 Create a macro list of drivers to enable easier addition of further drivers.
Con Kolivas 7696f26a 2013-09-26T21:18:33 Abstract out work submission once it's been tested, to be used by drivers that do their own internal validity testing.
Con Kolivas 76e688ae 2013-09-26T21:14:14 Store the hash2 array in struct work for further reuse.
Con Kolivas 39c52b1f 2013-09-26T20:58:47 Use the test_nonce function within submit_nonce and store the uint32 corresponding to hash2 37 for further use.
Con Kolivas c1aba055 2013-09-26T20:51:47 Only set share diff if we've confirmed it's a share first.
Con Kolivas 9040cac9 2013-09-25T22:47:19 restart_wait should return 0 if thr_restart is true.
Con Kolivas 759e82bb 2013-09-25T15:30:54 Add in first draft for a serialised work model sending/receiving data for BF1 devices.
Con Kolivas 2ab023f3 2013-09-24T21:55:47 Add BF1 detection code to bitfury driver.
Kano b1a3b012 2013-09-22T23:16:21 pool_active uninitialised_var rolltime
Con Kolivas 118f9038 2013-09-22T20:18:18 Merge branch 'master' into hashfast
Con Kolivas 466d3bec 2013-09-21T22:49:28 Provide a --disable-libcurl config option to build support for stratum mining only.
Con Kolivas 45c8d607 2013-09-19T17:34:26 Add crc initialisation tables and helper functions for hashfast driver.
Con Kolivas b224ad37 2013-09-19T12:34:00 Provide initial set up code and structure initialisation for hashfast device detection.
Con Kolivas 3777ed28 2013-09-19T10:46:23 Add hashfast detection driver calls to cgminer startup.
Con Kolivas 48681dd4 2013-09-16T12:40:11 Reset quotas on load balance for all pools at the same time to avoid running out during selection and unintentionally dropping to fallback.
Con Kolivas 972d04d2 2013-09-16T12:26:01 Break out of select pool from a common point for appropriate debug messages and to avoid further tests.