1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 22:38:01 +00:00
Commit Graph

5595 Commits

Author SHA1 Message Date
Con Kolivas
6bc691adb2 Treat usb write timeout errors as unrecoverable. 2013-11-05 15:55:19 +11:00
Con Kolivas
42b3cf19c4 Transfer errors are filtered out in usbutils now so no need to look for them in NODEV checks. 2013-11-05 15:46:07 +11:00
Con Kolivas
2e11a50484 Remove now unused entries from struct cg_usb_device 2013-11-05 13:55:56 +11:00
Con Kolivas
e692cd087f Do not double up with checking for end of timeout measurements in usb read/write. 2013-11-05 13:55:06 +11:00
Con Kolivas
8f6acad8ec Use no cancel transfer functions on windows in callback_wait 2013-11-05 13:05:54 +11:00
Con Kolivas
c030439d0b Do get_work in fill_queue without holding other locks. 2013-11-05 12:46:34 +11:00
Con Kolivas
4a620cce44 Initialise usb after all the locks and conditionals are initialised. 2013-11-05 11:46:45 +11:00
Con Kolivas
aa9938973e Use only a trylock in flush queue to prevent deadlocks. 2013-11-05 09:08:52 +11:00
Con Kolivas
f4cf0939a2 Add a wr_trylock wrapper for pthread rw lock write trylock. 2013-11-05 08:36:54 +11:00
Con Kolivas
251e1a98cc Give AMU a much longer timeout on windows than other icarus devices. 2013-11-05 08:20:04 +11:00
Con Kolivas
609ca9292a Scale diff for scrypt when testing for block solves. 2013-11-05 08:03:24 +11:00
Con Kolivas
c5b10a6cf3 Fix for non curses build. 2013-11-04 20:57:47 +11:00
Con Kolivas
e503fadb78 Bump version to 3.7.0 2013-11-04 19:29:29 +11:00
Con Kolivas
87f1a3fdd6 README updates. 2013-11-04 19:28:56 +11:00
Con Kolivas
e6e39ab8c6 Update NEWS 2013-11-04 18:16:30 +11:00
Con Kolivas
8b38d7fec8 Use WRITEIOERR macro check for all usb writes. 2013-11-04 16:53:03 +11:00
Con Kolivas
38164d637d Merge branch 'icarushit' 2013-11-04 08:54:31 +11:00
Con Kolivas
8fb7a0d1be Always use a usb read buffer instead of having to explicitly enable it. 2013-11-04 08:45:09 +11:00
Con Kolivas
e3ed101ce8 Force unlocking of the console lock on restart to avoid corrupting the console state when we finally quit. 2013-11-03 23:05:16 +11:00
Con Kolivas
6c2a8d8be7 Force unlocking of the console lock on restart to avoid corrupting the console state when we finally quit. 2013-11-03 23:03:43 +11:00
Con Kolivas
c9b54f1502 Never wait indefinitely for a pthread conditional in the hash_pop loop in case the work scheduler misses the last wakeup. 2013-11-03 22:41:32 +11:00
Con Kolivas
a077c9f9a4 Make hash_pop signal the work scheduler each time it waits on the conditional that it should look for more work. 2013-11-03 22:41:21 +11:00
Con Kolivas
3f9ccc1b27 Never wait indefinitely for a pthread conditional in the hash_pop loop in case the work scheduler misses the last wakeup. 2013-11-03 22:40:07 +11:00
Con Kolivas
31df767cc7 Make hash_pop signal the work scheduler each time it waits on the conditional that it should look for more work. 2013-11-03 22:40:07 +11:00
Con Kolivas
310aa75460 Discriminate between libusb transfer errors and regular libusb errors and make sure to capture them all. 2013-11-03 22:40:07 +11:00
Con Kolivas
d1683fe6b1 Always read a full sized transfer for bulk reads. 2013-11-03 22:40:06 +11:00
Con Kolivas
fc80e2feb6 Deprecate preferred packet size functions in usbutils since they're unhelpful. 2013-11-03 22:40:06 +11:00
Con Kolivas
ea12210032 Why are we reading extra again in usb read when buffering is enabled? Don't do that. 2013-11-03 22:40:06 +11:00
Con Kolivas
38d9c24e56 Copy known transferred amount back to buffer for usb reads instead of requested length. 2013-11-03 22:40:06 +11:00
Con Kolivas
b5dfb8f03e Ignore preferred packet size. 2013-11-03 22:40:06 +11:00
Con Kolivas
0cceaccf75 Treat timeout errors on usb writes as IO errors. 2013-11-03 22:40:06 +11:00
Con Kolivas
dfba30b9f2 Ignore iManufacturer from bitfury devices to support bluefury as well as redfury. 2013-11-03 22:40:06 +11:00
Con Kolivas
95797821b4 Add more debugging info for when usb details don't match. 2013-11-03 22:40:05 +11:00
Con Kolivas
73f6a570f3 Look for timeout overruns in usb read/write. 2013-11-03 22:40:05 +11:00
Con Kolivas
ccb742399f Use an int for usb_read/write to identify overruns. 2013-11-03 22:40:05 +11:00
Con Kolivas
1f22746243 Use the callback timeout as a safety mechanism only on windows. 2013-11-03 22:40:05 +11:00
Con Kolivas
4c0b643864 Instead of using complicated sleeps to emulate characters per second on usb writes, submit only as many characters as can be transferred per usb poll of 1ms, and use timeouts in bulk transfers, cancelling transfers only as a failsafe. 2013-11-03 22:40:05 +11:00
Con Kolivas
efc605ffd3 Ignore iManufacturer from bitfury devices to support bluefury as well as redfury. 2013-11-03 19:42:33 +11:00
Con Kolivas
ef0b7d3b5b Add more debugging info for when usb details don't match. 2013-11-03 19:16:40 +11:00
Con Kolivas
819406714a Remove discarded work from quota used. 2013-11-03 01:22:13 +11:00
Con Kolivas
c3854378e1 Display works completed in summary and API data. 2013-11-03 01:01:24 +11:00
Con Kolivas
8e1ec8bd43 Store how many work items are worked on per pool. 2013-11-03 00:52:15 +11:00
Con Kolivas
ab1e9404a7 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. 2013-11-03 00:47:43 +11:00
Con Kolivas
448b1fae64 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. 2013-11-02 22:25:45 +11:00
Con Kolivas
b764862128 Update uthash to latest. 2013-11-02 21:54:51 +11:00
Con Kolivas
e6a5068470 show_hash doesn't know the size of the string so hard code the max size. 2013-11-02 21:09:37 +11:00
Con Kolivas
57d6a6f697 Remove as many initial zeroes as exist on share display, abstracting out a hash show function to use across different submission mechanisms. 2013-11-02 20:56:29 +11:00
Con Kolivas
6e63eebfe1 Add missing endian swap functions for 64bits. 2013-11-02 12:41:20 +11:00
Con Kolivas
876a83024d Sanity check for absurd target setting and divide by zero. 2013-11-02 11:20:26 +11:00
Con Kolivas
21bdcdd6b3 Abstract out conversion of a 256 bit endian number to a double, correcting errors and use it for determining any magnitude share diff. 2013-11-02 11:17:36 +11:00