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

5431 Commits

Author SHA1 Message Date
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
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
03ad59f287 Add a small amount to the usb timeout before cancelling to allow for a regular usb polling interval to pass. 2013-10-11 15:37:55 +11:00
Con Kolivas
08d8612f68 Do not attempt to clear a usb halt before sending the cancel message since all transfers should normally be cancelled before attempting to clear a halt condition, and only change the return message to a timeout if it's consistent with a cancellation. 2013-10-11 14:47:01 +11:00
Con Kolivas
6d18ce4caa Retry up to USB_RETRY_MAX times to clear a halt condition before failing. 2013-10-11 14:37:40 +11:00
Con Kolivas
3a7a677f45 Show the error number as well as the description in erroring bulk transfers. 2013-10-11 13:43:16 +11:00
Con Kolivas
7fbe999fa2 Drop logging level for failed to connect to stratum to verbose mode only since we hit it regularly. 2013-10-11 12:00:39 +11:00
Con Kolivas
a13919615e Update NEWS. 2013-10-11 11:59:35 +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
b30ae4a216 Use fractional hashrate return values in bitfury_scanhash to minimise the number of times we return 0 based on hashrate so far to further damp out displayed hashrate. 2013-10-09 23:06:46 +11:00
Con Kolivas
32bc746178 Check for presence of driver name in DRIVER_COUNT_FOUND to prevent strcmp on a null pointer when a driver is not built in. 2013-10-09 22:17:56 +11:00
kanoi
a715d27a98 Merge pull request #501 from kanoi/cmr
Cairnsmore1 support clock/identify commands via the API
2013-10-08 20:26:57 -07:00
Kano
d97c3a4be1 API-README update pgaset, pgaidentify and ascset docs 2013-10-09 14:17:47 +11:00
Kano
39ac69c14c CMR allow sending flash and clock commands 2013-10-09 14:09:47 +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
bdbe9dd5fe Make the bf1 getinfo size a macro 2013-10-08 23:26:23 +11:00
Con Kolivas
e05bfddc74 Failing to add_cgpu in bitfury should be a terminal failure. 2013-10-08 23:18:57 +11:00
Con Kolivas
078f7f4739 Check return values when attempting to open a BF1 device and set the msg size as a macro. 2013-10-08 23:15:15 +11:00
Con Kolivas
a5ed1771a4 Revert "Further smooth out avalon hashrate by limiting the maximum number of nonces counted each cycle to 1 per miner, saving them for later cycles."
This reverts commit 7be59992c1.

Of dubious utility since a full nonce range is not scanned before loading more work.
2013-10-08 22:23:51 +11:00
Con Kolivas
7be59992c1 Further smooth out avalon hashrate by limiting the maximum number of nonces counted each cycle to 1 per miner, saving them for later cycles. 2013-10-08 22:17:00 +11:00
Con Kolivas
dc9c3783ec Display errors on failed usb read and write and consider sequential IO errors a permanent failure. 2013-10-08 22:05:01 +11:00
Con Kolivas
a22f5bfddd Use libusb's own error name function instead of hand coding the error names. 2013-10-08 21:40:04 +11:00
Con Kolivas
936fca4de9 Limit ms_tdiff to 1 hour as a sanity check. 2013-10-08 21:39:21 +11:00
Con Kolivas
39ec9518d5 Enable the usb buffer in avalon driver. 2013-10-08 21:33:29 +11:00
Con Kolivas
efd8c44182 Check for async transfer variants of error messages. 2013-10-08 21:01:04 +11:00
Con Kolivas
2806f49c01 Revert "Check for the async variants of the libusb errors and retry up to retry max when trying to clear a pipe error/stall."
This reverts commit c7d5256b36.
2013-10-08 21:00:51 +11:00
Con Kolivas
d34279b226 Remove unused variables. 2013-10-08 20:48:26 +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
ef8efd6c48 Minimise the time between dropping the read devlock and grabbing the write devlock to avoid tons of logging spam in the interim. 2013-10-08 00:01:26 +11:00
Con Kolivas
97b5dd08b2 Limit ms_tdiff to 1 hour as a sanity check. 2013-10-07 23:34:48 +11:00
Con Kolivas
6c757c6c19 Check for async transfer variants of error messages. 2013-10-07 23:34:36 +11:00
Con Kolivas
85e0b3a50f Check for the async variants of the libusb errors and retry up to retry max when trying to clear a pipe error/stall. 2013-10-07 23:34:12 +11:00
Con Kolivas
a79768b74d Use libusb's own error name function instead of hand coding the error names. 2013-10-07 23:34:12 +11:00
Con Kolivas
74775e4e72 Check for libusb transfer stall error to be consistent with async IO errors returned for a halt condition. 2013-10-07 23:34:11 +11:00
Con Kolivas
38ae7093d2 Check for continuous IO errors on USB and consider the device inactive if more than retry max. 2013-10-07 23:34:11 +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
d5e9e08477 Prevent overflows in us_tdiff and ms_tdiff. 2013-10-07 23:33:14 +11:00
Con Kolivas
8037eb15ad Change second initialise message on bitfury verbose mode. 2013-10-07 23:33:13 +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