Con Kolivas
|
e06e495ab8
|
Merge branch 'master' into hashfast
|
2013-10-14 15:07:32 +11:00 |
|
Con Kolivas
|
07837072f1
|
hexstr is too small in test_work_current
|
2013-10-14 12:12:01 +11:00 |
|
Con Kolivas
|
9b5c534911
|
Merge branch 'master' into hashfast
Conflicts:
api.c
configure.ac
miner.h
usbutils.c
usbutils.h
|
2013-10-13 16:41:53 +11:00 |
|
Con Kolivas
|
56edabc64d
|
Use a timeout with usb handle events set to a nominal 200ms and wait for the polling thread to shut down before deinitialising libusb.
|
2013-10-12 11:06:54 +11:00 |
|
Con Kolivas
|
9f8023a959
|
Use stack memory for hex used in stratum share submissions.
|
2013-10-12 10:34:07 +11:00 |
|
Con Kolivas
|
e0c90359fd
|
Use stack memory in test_work_current, avoiding a malloc/free cycle each time.
|
2013-10-12 09:56:48 +11:00 |
|
Con Kolivas
|
835ad82441
|
Convert the bitfury driver to use the hash_driver_work version of hash_work.
|
2013-10-12 09:32:07 +11:00 |
|
Con Kolivas
|
58008a3742
|
Add a hash_driver_work function to allow for drivers that wish to do their own work queueing and management.
|
2013-10-12 09:05:58 +11:00 |
|
Con Kolivas
|
cda797d1be
|
Avoid calling get_statline_before on exit to avoid trying to use it on drivers in an indeterminate state.
|
2013-10-11 16:04:23 +11:00 |
|
Con Kolivas
|
d437de8428
|
Avoid calling get_statline on exit.
|
2013-10-11 15:58:29 +11:00 |
|
Con Kolivas
|
b5dfacef24
|
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.
|
2013-10-11 10:15:06 +11:00 |
|
Con Kolivas
|
853aa28ffc
|
Merge branch 'master' into async
Conflicts:
usbutils.c
|
2013-10-11 08:49:59 +11:00 |
|
Con Kolivas
|
2834eb8d6d
|
Kill off threads that have failed using hash_sole_work instead of just disabling them.
|
2013-10-08 23:35:22 +11:00 |
|
Con Kolivas
|
f80c900336
|
Merge branch 'master' into async
Conflicts:
api.c
cgminer.c
miner.h
usbutils.c
util.c
|
2013-10-08 20:46:36 +11:00 |
|
Con Kolivas
|
f8e28f251d
|
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.
|
2013-10-08 20:42:36 +11:00 |
|
Con Kolivas
|
3b527f14d0
|
Check a pool is stable for >5 mins before switching back to it.
|
2013-10-08 20:41:13 +11:00 |
|
Con Kolivas
|
7318eceef9
|
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.
|
2013-10-07 23:34:01 +11:00 |
|
Con Kolivas
|
8c0ea19e13
|
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.
|
2013-10-07 23:33:13 +11:00 |
|
Con Kolivas
|
b6a97de687
|
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.
|
2013-10-07 23:33:13 +11:00 |
|
ckolivas
|
6cd7f0f1be
|
Remove unmaintained broken ztex driver.
|
2013-10-07 23:33:13 +11:00 |
|
Kano
|
51418f79e5
|
Klondike update code to current git
|
2013-10-07 23:33:11 +11:00 |
|
Con Kolivas
|
a6a9407067
|
Use asynchronous transfers for all bulk transfers, allowing us to use our own timers and cancelling transfers that take too long.
|
2013-10-07 23:31:20 +11:00 |
|
Con Kolivas
|
dbef95f77d
|
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.
|
2013-10-05 09:31:36 +10:00 |
|
Con Kolivas
|
4c79252dc8
|
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.
|
2013-10-04 21:39:42 +10:00 |
|
ckolivas
|
052e434846
|
Remove unmaintained broken ztex driver.
|
2013-10-04 12:00:41 +10:00 |
|
Kano
|
dc85abd9cd
|
Klondike update code to current git
|
2013-10-03 23:19:18 +10:00 |
|
Con Kolivas
|
f49a3c7657
|
Merge branch 'master' into hashfast
Conflicts:
Makefile.am
api.c
cgminer.c
configure.ac
miner.h
usbutils.c
usbutils.h
|
2013-09-30 08:43:29 +10:00 |
|
Con Kolivas
|
5e1ebd5070
|
Deuglify use of _PARSE_COMMANDS macro expansions.
|
2013-09-29 13:54:16 +10:00 |
|
ckolivas
|
2ec601e123
|
There is no need to get the external prototypes for drivers in cgminer.c any more.
|
2013-09-28 16:00:55 +10:00 |
|
ckolivas
|
f3294f7424
|
Remove unnecessary gpu_threads initialisation.
|
2013-09-28 15:18:08 +10:00 |
|
ckolivas
|
6d7471237d
|
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.
|
2013-09-28 15:11:06 +10:00 |
|
ckolivas
|
df54b76855
|
Add a noop function for driver detect when it's missing.
|
2013-09-28 13:52:13 +10:00 |
|
ckolivas
|
8875197466
|
Create a macro list of drivers to enable easier addition of further drivers.
|
2013-09-28 10:25:48 +10:00 |
|
Con Kolivas
|
7696f26a93
|
Abstract out work submission once it's been tested, to be used by drivers that do their own internal validity testing.
|
2013-09-26 21:18:33 +10:00 |
|
Con Kolivas
|
76e688aee1
|
Store the hash2 array in struct work for further reuse.
|
2013-09-26 21:14:14 +10:00 |
|
Con Kolivas
|
39c52b1fb4
|
Use the test_nonce function within submit_nonce and store the uint32 corresponding to hash2 37 for further use.
|
2013-09-26 20:58:47 +10:00 |
|
Con Kolivas
|
c1aba05506
|
Only set share diff if we've confirmed it's a share first.
|
2013-09-26 20:51:47 +10:00 |
|
Con Kolivas
|
9040cac924
|
restart_wait should return 0 if thr_restart is true.
|
2013-09-25 22:47:19 +10:00 |
|
Con Kolivas
|
759e82bb98
|
Add in first draft for a serialised work model sending/receiving data for BF1 devices.
|
2013-09-25 15:30:54 +10:00 |
|
Con Kolivas
|
2ab023f300
|
Add BF1 detection code to bitfury driver.
|
2013-09-24 21:55:47 +10:00 |
|
Kano
|
b1a3b012dd
|
pool_active uninitialised_var rolltime
|
2013-09-22 23:16:21 +10:00 |
|
Con Kolivas
|
118f9038a0
|
Merge branch 'master' into hashfast
|
2013-09-22 20:18:18 +10:00 |
|
Con Kolivas
|
466d3beca0
|
Provide a --disable-libcurl config option to build support for stratum mining only.
|
2013-09-21 22:49:28 +10:00 |
|
Con Kolivas
|
45c8d60790
|
Add crc initialisation tables and helper functions for hashfast driver.
|
2013-09-19 17:34:26 +10:00 |
|
Con Kolivas
|
b224ad37eb
|
Provide initial set up code and structure initialisation for hashfast device detection.
|
2013-09-19 12:34:00 +10:00 |
|
Con Kolivas
|
3777ed288d
|
Add hashfast detection driver calls to cgminer startup.
|
2013-09-19 10:46:23 +10:00 |
|
Con Kolivas
|
48681dd4bb
|
Reset quotas on load balance for all pools at the same time to avoid running out during selection and unintentionally dropping to fallback.
|
2013-09-16 12:40:11 +10:00 |
|
Con Kolivas
|
972d04d2a8
|
Break out of select pool from a common point for appropriate debug messages and to avoid further tests.
|
2013-09-16 12:26:01 +10:00 |
|
Con Kolivas
|
a76b09e4fc
|
Find the greatest common denominator in quotas and use the smallest number of consecutive work items per pool in quota load balance mode to smooth hashrate across pools with large quotas. Give excess quota to priority pool 0 instead of pool 0.
|
2013-09-13 13:51:15 +10:00 |
|
Con Kolivas
|
8ac4fa202d
|
Merge branch 'master' into quota
|
2013-09-13 13:05:47 +10:00 |
|