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

52 Commits

Author SHA1 Message Date
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
f29f612182 Merge branch 'master' into hashfast 2013-10-25 14:35:56 +11:00
Con Kolivas
eb5b611483 Use cancellable transfers on bitfury device. 2013-10-24 22:26:48 +11:00
Con Kolivas
5ee279ca00 Add atmel init sequence likely to be required on hashfast for windows to work. 2013-10-21 13:30:17 +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
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
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
03e80514e9 Change second initialise message on bitfury verbose mode. 2013-10-07 12:00:49 +11:00
Con Kolivas
87ddfcc8a6 Disable bitfury device thread on it disappearing. 2013-09-30 09:27:44 +10:00
Con Kolivas
0a5599844f Add magic init sequence required on BF1 devices to get them mining on windows. 2013-09-29 23:44:45 +10:00
ckolivas
e279bc1fc5 Iterate over the bitfury offsets in order of decreasing likelihood. 2013-09-29 02:20:38 +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
741b74309e Forward declare all device drivers in miner.h avoiding the need to export them everywhere else. 2013-09-28 14:00:18 +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
8d133706c9 Remove unnecessary steps in communicating with BF1 and just use USB interface 1. 2013-09-27 15:04:07 +10:00
Con Kolivas
ce16bd2ba4 Remove magic control sequences on open/close on BF1 and just flush the read buffers. 2013-09-27 12:38:02 +10:00
Con Kolivas
b994a4c64d Check return codes in getinfo and reset and fail as needed in BF1. 2013-09-27 11:25:13 +10:00
Con Kolivas
703724a3f4 Check return code for bitfury_open and release resources properly on failed initialisation. 2013-09-27 11:20:03 +10:00
Con Kolivas
59b33c1a58 Abstract out flushing of interrupt reads in BF1 devices. 2013-09-27 11:13:38 +10:00
Con Kolivas
93d4c09c66 Perform interrupt read after close message on BF1 as per serial close. 2013-09-27 10:54:24 +10:00
Con Kolivas
1f74b2cdc4 Perform interrupt read flush as per serial open on BF1 devices. 2013-09-27 10:50:33 +10:00
Con Kolivas
7deaa91b26 Add information for 2nd USB interface on BF1 devices and choose interface 1 for bulk transfers. 2013-09-27 10:36:23 +10:00
Con Kolivas
4f6c7ee0c1 Name remainder of BFU usb commands used. 2013-09-27 09:39:26 +10:00
Con Kolivas
7ae8ee8dc3 Merge commit 'b606a60349fe2f1c1c56a1fec833ec849b798676' into redfury
Conflicts:
	driver-bitfury.c
2013-09-26 21:29:30 +10:00
Con Kolivas
b606a60349 Use submit_tested_work in bitfury driver to avoid unnecessarily re-testing the work for validity. 2013-09-26 21:20:59 +10:00
Con Kolivas
fafd863138 Use an array of offsets when checking nonces in bitfury_checkresults 2013-09-26 16:24:49 +10:00
Con Kolivas
44b9cf50e3 Limit the duration we wait for reads in BF1 based on time already elapsed to account for other delays such as work restart messages or out of work. 2013-09-26 12:11:25 +10:00
Con Kolivas
9dcd4e70a1 Minimise size of serial string we copy in BF1 stats to avoid overflow. 2013-09-26 11:48:38 +10:00
Con Kolivas
ce285ba602 Implement basic API stats for BF1 and increase array of results to check for the rare straggling result. 2013-09-26 11:46:09 +10:00
Con Kolivas
75333c53df Space debug output for bf1 to separate from numerals. 2013-09-26 09:41:43 +10:00
Con Kolivas
1b40d9023d Abstract out the bitfury open close and reset functions and use them on reinit. 2013-09-26 07:37:19 +10:00
Con Kolivas
435065c86b Rename BF1 devices BF1 2013-09-26 07:24:09 +10:00
Con Kolivas
f97e1ad25f Check for work restart, breaking out early after usb reads in BF1. 2013-09-25 23:54:37 +10:00
Con Kolivas
ff4c4779f7 Do not lose the first sets of results from BF1. 2013-09-25 23:33:10 +10:00
Con Kolivas
72c7798043 There is no point checking for results from the next round of work on BF1. 2013-09-25 23:30:29 +10:00
Con Kolivas
8c0ab5f310 Last result returned by BF1 is an end of results marker so ignore it. 2013-09-25 23:18:17 +10:00
Con Kolivas
7a9669ec3c Remove unused code by bitfury driver since current driver uses serialised scanhash. 2013-09-25 22:43:39 +10:00
Con Kolivas
5a8ac9fdaf Meter out return of estimated hashes in BF1 to smooth out visible hashrate. 2013-09-25 22:22:05 +10:00
Con Kolivas
4507a3803b Optimise inner scanhash loop for bf1. 2013-09-25 22:12:34 +10:00
Con Kolivas
c65fd77873 Add yet another backup work for triple buffering of work in bf1 to account for extra late results returned and don't check nonce offsets which appear to never return. 2013-09-25 20:46:42 +10:00
Con Kolivas
55c6e55c84 Name the work request and result usb commands for BF1 2013-09-25 16:31:37 +10:00
Con Kolivas
edcea78a61 Define a mandatory upper limit to waiting for reset and data on BF1 based on full nonce duration. 2013-09-25 16:28:34 +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
f6e475d4fb Add complete close sequence to bf1 as it happens on serial. 2013-09-25 00:23:50 +10:00
Con Kolivas
4fb802fc58 Provide a bitfury identify function for bf1. 2013-09-24 23:30:01 +10:00
Con Kolivas
977a7b753f Reliably extract BF1 information at startup and reset the device. 2013-09-24 22:58:10 +10:00
Con Kolivas
54ac35553f Add commands for getting BF1 bitfury info 2013-09-24 22:28:56 +10:00
Con Kolivas
9a3684b809 Add magic BF1 bitfury open and close control sequences. 2013-09-24 22:16:31 +10:00