1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 06:48:05 +00:00
Commit Graph

5542 Commits

Author SHA1 Message Date
Con Kolivas
c75ce853a9 Implement a generic cgsem_mswait similar to sem_timedwait 2013-10-14 11:22:57 +11:00
Con Kolivas
634151ffa0 Merge branch 'master' into hashfast 2013-10-14 10:06:37 +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
8d1604a2e3 Do not use locking on usb callback function pthread signalling to prevent deadlock with libusb's own event lock. 2013-10-14 09:40:23 +11:00
Con Kolivas
d2d7a7468e Merge branch 'master' into hashfast 2013-10-14 00:54:39 +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
3c7af2e634 Join threads to close hashfast driver. 2013-10-14 00:28:57 +11:00
Con Kolivas
598b58c8ce Create basic read and write threads that will be used by hashfast driver. 2013-10-14 00:18:23 +11:00
Con Kolivas
93d1f93fdd Perform remainder of hashfast_detect_common setup. 2013-10-13 22:34:16 +11:00
Con Kolivas
cbfa78eae4 Device data will not be allocated in hashfast_detect_one_usb so no point freeing it. 2013-10-13 22:26:26 +11:00
Con Kolivas
49befae6e4 Get remaining data from reset sequence on hashfast driver. 2013-10-13 22:25:48 +11:00
Con Kolivas
922b4d850d Store the device data returned from hashfast header returned in reset 2013-10-13 21:55:14 +11:00
Con Kolivas
775f2040e5 Check return code from hashfast_get_header in reset and fail when appropriate. 2013-10-13 21:49:57 +11:00
Con Kolivas
d7a907f26e Timeout should not be a fatal error in hashfast_get_header 2013-10-13 21:45:01 +11:00
Con Kolivas
58dd80e459 Implement a hashfast get_header function which reads till it finds a header preamble or times out. 2013-10-13 21:39:59 +11:00
Con Kolivas
4b9eb3707b Implement hashfast send header function and add relevant usb op codes to arrays, beginning reset sequence on hashfast detection. 2013-10-13 20:28:57 +11:00
Con Kolivas
e7a9aef65b Add hf_protocol.h to cgminer sources. 2013-10-13 18:48:56 +11:00
Con Kolivas
176cae2700 Add basic definitions for hashfast device recognition. 2013-10-13 18:42:33 +11:00
Con Kolivas
df6873eff9 Remove old initialisation code from hashfast, use hf protocol library where possible and prepare for new driver model. 2013-10-13 17:23:51 +11:00
Con Kolivas
f1941db061 Minor style changes. 2013-10-13 17:11:16 +11:00
Con Kolivas
4664350c23 Include hf protocol header. 2013-10-13 17:06:01 +11:00
Con Kolivas
6e2d12e14a Remove now unused crc32 code from hashfast driver. 2013-10-13 16:57:28 +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
9d29e0940a Merge branch 'master' into libusbx 2013-10-13 15:54:32 +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
e8b51b294c Merge branch 'master' into libusbx 2013-10-12 08:57:54 +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
Kano
595dcdfa94 Klondike - increase circular read buffer size 2013-10-12 00:25:05 +11:00
Kano
8e82da4320 Klondike - extra zero value and range checking in temp conversion 2013-10-12 00:24:37 +11:00
Kano
44f96c64b2 klondike - display MHz also 2013-10-12 00:19:24 +11:00
Con Kolivas
64f5cac62c Merge branch 'master' into libusbx
Conflicts:
	api.c
	cgminer.c
	miner.h
	usbutils.c
2013-10-12 00:08:11 +11:00
Con Kolivas
b537976036 Make pthread conditional timeouts handle all bulk usb transfer timeouts performing libusb_cancel_transfer, disabling timeouts within libusb itself. 2013-10-11 23:06:40 +11:00
Chris Chua
5af1cfe33d increasing max miners for avalon driver (properly this time) 2013-10-11 21:14:59 +11:00
Chris Chua
b509e84376 using separate identifier for bitburner fury boards 2013-10-11 21:14:59 +11:00
Chris Chua
521e746b80 changes to bitburner driver for bitburner fury boards 2013-10-11 21:14:19 +11:00