1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-30 08:24:26 +00:00

5255 Commits

Author SHA1 Message Date
Con Kolivas
955e971d3d Prevent further USB transfers from occurring once the shutdown signal has been sent to prevent transfers getting stuck and libusb failing to shut down. 2013-10-17 08:29:02 +11:00
Con Kolivas
bec75b61a6 Make the USB polling thread poll every second to potentially aid longer timeout transfers. 2013-10-17 08:28:57 +11:00
ckolivas
f821d0fbf3 Set device_diff on work in get_work to not be missed with drivers that use get_work directly. 2013-10-17 08:28:49 +11:00
ckolivas
330e64282e Convert icarus driver to hash_driver_work model. 2013-10-17 08:28:40 +11:00
Kano
addb8481c3 bflsc - also allow ' 0' in DEVICES IN CHAIN 2013-10-17 08:28:34 +11:00
Kano
8455cc3f77 bflsc - allow a 0 in DEVICES IN CHAIN 2013-10-17 08:28:29 +11:00
Con Kolivas
ab5b2229f8 Bump version to 3.6.1 2013-10-15 00:31:06 +11:00
Con Kolivas
7e43f512c9 Update NEWS for 3.6.1 2013-10-15 00:30:45 +11:00
Con Kolivas
7c6bd4a8fb Emulate the libusb_control_transfer sync setup in our async variant. 2013-10-15 00:26:50 +11:00
Con Kolivas
e6280c85d2 Add the libusb control setup size offset for control writes. 2013-10-15 00:13:06 +11:00
Con Kolivas
91d1d104d1 Merge branch 'master' of github.com:ckolivas/cgminer 2013-10-15 00:00:00 +11:00
Con Kolivas
8fdaeb0ac9 Differentiate send from receive in control transfers! 2013-10-14 23:59:01 +11:00
kanoi
bae0815edf Merge pull request #505 from kanoi/master
usbutils - make all libusb_error_name messages the same
2013-10-14 03:45:44 -07:00
Kano
108e73763b usbutils - make all libusb_error_name messages the same 2013-10-14 21:44:10 +11:00
Con Kolivas
a089cac35e Bump version to 3.6.0 2013-10-14 21:32:18 +11:00
Con Kolivas
1016616036 Further update NEWS 2013-10-14 21:31:40 +11:00
Con Kolivas
9e287f9598 Merge pull request #499 from someone42/master
changes to bitburner driver for bitburner fury boards
2013-10-14 03:27:57 -07:00
Con Kolivas
f706fef537 Merge branch 'master' of github.com:ckolivas/cgminer 2013-10-14 20:57:13 +11:00
Con Kolivas
4b66519778 Update NEWS. 2013-10-14 20:56:58 +11:00
kanoi
fb32e31c18 Merge pull request #504 from kanoi/master
klondike - can only calculate the nonce difference on or after the 2nd nonce
2013-10-14 02:55:34 -07:00
Kano
1452cbff12 klondike - can only calculate the nonce difference on or after the 2nd nonce 2013-10-14 13:28:36 +11:00
kanoi
5c7b9f7e57 Merge pull request #503 from kanoi/master
Klondike - driver redesign + api message correction
2013-10-13 18:52:51 -07:00
Con Kolivas
07837072f1 hexstr is too small in test_work_current 2013-10-14 12:12:01 +11:00
Con Kolivas
166200c094 Windows uses errno for WSAETIMEDOUT 2013-10-14 12:01:40 +11:00
Con Kolivas
02a4f8df9c Convert the usb callback function to using cgsem_t timed waits to avoid race conditions with conditionals/mutexes. 2013-10-14 11:44:37 +11:00
Con Kolivas
c9c39ac14d Give correct return code in cgsem_mswait 2013-10-14 11:44:13 +11:00
Con Kolivas
1d9f90b256 Revert "Convert the usb callback function to use a cgsem_t using the timedwait code to avoid races with mutexes/conditionals."
This reverts commit 433465bcfcd8d9a2270cb27dd0ea933e9fefa829.

Not ready yet.
2013-10-14 11:39:15 +11:00
Con Kolivas
433465bcfc Convert the usb callback function to use a cgsem_t using the timedwait code to avoid races with mutexes/conditionals. 2013-10-14 11:35:47 +11:00
Con Kolivas
6e948d8750 Check for correct timeout error in cgsem_mswait 2013-10-14 11:34:08 +11:00
Con Kolivas
51f8107b32 Fix util.h exports for cgsem_mswait 2013-10-14 11:27:04 +11:00
Con Kolivas
c75ce853a9 Implement a generic cgsem_mswait similar to sem_timedwait 2013-10-14 11:22:57 +11:00
Con Kolivas
9ca22ed493 Use the one LIBUSB_ERROR_TIMEOUT for cancelled transactions since this error is explicitly tested for in various drivers. 2013-10-14 10:05:49 +11:00
Con Kolivas
a7580f1ff2 Do not use locking on usb callback function pthread signalling to prevent deadlock with libusb's own event lock. 2013-10-14 09:41:18 +11:00
Con Kolivas
280dc4bf01 Lock mutex before second pthread_cond_wait in usbutils to prevent a race. 2013-10-14 00:54:05 +11:00
Con Kolivas
84de52c1c6 Use a write lock when performing any USB control transfers to prevent concurrent transfers. 2013-10-13 10:11:46 +11:00
Con Kolivas
c069028648 Free a libusb transfer after we have finished using it to avoid a dereference in usb_control_transfer 2013-10-12 17:44:28 +11:00
Con Kolivas
578fabe07c Do not perform bfi int patching for opencl1.2 or later. 2013-10-12 16:54:39 +11:00
Con Kolivas
84f642f563 Although async transfers are meant to use heap memory, we never return before the transfer function has completed so stack memory will suffice for control transfers, fixing a memory leak in the process. 2013-10-12 15:06:48 +11:00
Kano
16bd0a0d9c klondike - correct/reverse min/max stats 2013-10-12 11:45:43 +11:00
Kano
da7223f1b4 api incorrect message name 2013-10-12 11:30:57 +11:00
Kano
f1d77f17a3 klondike - use a link list queue rather than a circular buffer - and add timing stats 2013-10-12 11:29:02 +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
d3c215fda6 Provide a lower level __bin2hex function that does not allocate memory itself. 2013-10-12 09:53:21 +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
3b2630cf5a Merge branch 'master' of github.com:ckolivas/cgminer 2013-10-12 08:45:49 +11:00
Con Kolivas
2ca8d85906 Convert all usb control transfers to asynchronous communication with our own timeout management as well. 2013-10-12 08:45:03 +11:00
kanoi
159673cf0a Merge pull request #502 from kanoi/master
Klondike temp checking and read buffer size
2013-10-11 06:26:58 -07:00