driver-bflsc.c


Log

Author Commit Date CI Message
Kano 5520206a 2013-08-31T22:52:21 bflsc ensure getinfo cannot overflow it's storage buffer
Con Kolivas 69a2078e 2013-08-31T15:13:57 Revert to old custom tolines function since strtok_r is not portable.
Kano 42bb607a 2013-08-31T14:03:57 bflsc remove unused commented out code
Kano 3aefcce4 2013-08-31T13:56:50 logging - code mistake
Kano 0d4edbe9 2013-08-31T13:41:37 logging - applogsiz() for large messages
Con Kolivas 1c66459c 2013-08-30T23:58:15 Include string.h in bflsc driver.
Con Kolivas 4c451adc 2013-08-30T23:46:32 Get rid of linear removal of spaces in bflsc text parsing and use strstr throughout instead.
Con Kolivas a503ba8b 2013-08-30T23:03:03 Use reentrant strtok in tolines() function in bflsc to avoid racing on contextless calls.
Con Kolivas 8d99a449 2013-08-30T22:38:56 Show how small a too small result in bflsc is.
Con Kolivas 83a8c132 2013-08-30T21:42:38 Duplicate the buffer in process_results in bflsc since strtok modifies it making debugging output limited to one line.
Con Kolivas 1403f4dd 2013-08-30T21:40:10 Only process nonces in bflsc is the breakdown function succeeds.
Con Kolivas 34d977c8 2013-08-30T21:17:42 Revert "Ignore inprocess message when retrieved out of sync in bflsc while processing nonces." This reverts commit 791a8f65ba7169f9bc7246dfb0966f3cba0449e5.
Con Kolivas 791a8f65 2013-08-30T21:11:20 Ignore inprocess message when retrieved out of sync in bflsc while processing nonces.
Con Kolivas 2853a5d9 2013-08-30T20:39:23 Temporarily revert inprocess parsing in bflsc pending fixes.
Con Kolivas 8aa50e19 2013-08-30T20:34:40 Ignore zero count messages in bflsc instead of trying to parse them.
Con Kolivas 2061e97c 2013-08-30T20:31:57 Return ok in tolines when it doesn't match inprocess message for bflsc.
Con Kolivas 0f712d51 2013-08-30T20:29:00 Remove inprocess line instead of deleting all following responses in bflsc.
Con Kolivas 9a867029 2013-08-30T20:24:29 Ignore responses from bflsc as INPROCESS
Con Kolivas cb914ab5 2013-08-30T16:26:00 Change ok testing logic in breakdown() in bflsc and return if not ok at any stage.
Con Kolivas 6ff7893f 2013-08-30T16:14:25 Check the return value of tolines in bflsc driver.
Con Kolivas b0fe14d4 2013-08-30T16:13:01 Use strtok to parse lines in bflsc driver.
Kano 6055a378 2013-08-28T07:59:09 bflsc xlinkstr use snprintf
Con Kolivas e17a9452 2013-08-27T20:31:33 Use take_queued_work_bymidstate in the bflsc driver to avoid the rare chance repeated results come back from the same work item.
Con Kolivas eeac9d81 2013-08-20T19:23:49 Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements.
Con Kolivas bedd8eee 2013-08-19T21:52:07 Revert "Sleep for half a work period only in bflsc_get_results if no dev is suitable." This reverts commit 974319454795979dad013c705ca9d53aae67668d. Fine now that sleep works properly with the longer sleep.
Con Kolivas fb66e8b7 2013-08-19T21:13:23 Only grab a queued work item if we successfully grab the lock to submit work in bflsc_send_work
Con Kolivas dddc2d1e 2013-08-19T17:59:59 Revert "Reuse times extracted from the clock in bflsc_get_results." This reverts commit 1d8235334d0bac696e91dc246af2aab9f1d35d36. Monotonic clock does not return the same times as gettimeofday.
Con Kolivas 1d823533 2013-08-19T17:55:32 Reuse times extracted from the clock in bflsc_get_results.
Con Kolivas 97431945 2013-08-19T16:36:01 Sleep for half a work period only in bflsc_get_results if no dev is suitable.
Con Kolivas a61e41a0 2013-08-19T15:58:22 Check for thr->work_restart in restart_wait.
Con Kolivas 89f571f5 2013-08-19T15:51:14 We should be using que_low to decrease scan sleep time in bflsc.
Con Kolivas 09dbd616 2013-08-19T13:57:36 Prepare sleep time on bflsc if no dev needs work yet to avoid busy waiting.
Con Kolivas 09e9091d 2013-08-19T13:54:56 Simplify cgsleep code for windows by using a typedef for cgtimer_t that resolves to clock resolution, using that internally.
Con Kolivas e56c9a5d 2013-08-18T16:49:15 Use the cgsleep reentrant function to sleep for bflsc between read results to account for time taken to perform reads.
Con Kolivas 3c707202 2013-08-18T16:46:27 Use 100ms delay between checking for results on all bflsc devices as the buffering of results mean checking more frequently just wastes CPU and causes more lock contention for only marginally better latencies.
Con Kolivas d71e9f91 2013-08-09T06:43:25 Add a --bflsc-overheat command which allows you to set the throttling temperature for BFLSC devices or disable it.
Con Kolivas 812852cc 2013-08-09T06:31:57 Move bflsc defines to a header file.
Kano 18e4edc7 2013-07-08T20:28:03 bflsc nonce per work item stats
Kano 89d0062a 2013-07-08T19:41:23 bflsc increase flush count to handle parallel work
Kano ad1572f7 2013-07-06T20:17:17 size check get_datestamp/get_timestamp and remove unused cgpu->init
Kano 385a70be 2013-07-06T19:15:59 make all statline overflow safe
Con Kolivas da680f51 2013-07-01T14:44:27 Don't count invalid nonces as hashrate for bflsc.
Kano 2beb30f1 2013-06-28T22:55:55 bflsc get volts stats needs its own GETVOLTS
Kano e8bbb49b 2013-06-27T00:39:25 bflsc x-link header different to documentation
ckolivas 9dc2f3f1 2013-06-25T11:21:28 Redo +1 fix in bflsc.
Con Kolivas a7f9bf3c 2013-06-23T15:37:00 Merge pull request #454 from kanoi/master bflsc - handle xlink timeouts by having generic IO functions
Con Kolivas f5911528 2013-06-24T08:17:27 Demote bflsc hw error messages to verbose logging only.
Kano f2bbfee7 2013-06-23T18:14:12 bflsc - handle xlink timeouts by having generic IO functions
Con Kolivas d741410f 2013-06-23T10:13:18 sc_count shouldn't be +1 in bflsc.
Con Kolivas 0cd2c5c3 2013-06-23T10:12:44 Use the info timeout for read_nl in getidentify bflsc.
Kano e993cf36 2013-06-23T10:01:18 bflsc try getinfo twice
Con Kolivas af0ae8aa 2013-06-19T12:09:30 Decrease BAL and BAS latency to be just larger than one result read.
Con Kolivas 045e105d 2013-06-19T11:42:43 BFLSC latest firmware has its own thermal cutoff set to 90, so use the same value in case we have an old firmware that isn't throttling by itself.
Con Kolivas 7b42b83d 2013-06-19T11:38:45 Drop watermark low limits for bflsc.
Con Kolivas e172c987 2013-06-19T11:29:53 Set the fanspeed on bflsc to max if we don't know the temperature.
Con Kolivas 7be081d8 2013-06-19T11:24:04 Use a low watermark for queueing mandatory work on bflsc instead of zero.
Con Kolivas 0b5eb436 2013-06-19T10:46:28 Revert "Only wait in the bflsc scanwork loop if the queues are satisfactorily filled." This reverts commit a49969908cacbde175cc5d02d7a68f2d4e311e79. Makes the driver busy wait.
Con Kolivas a4996990 2013-06-19T10:40:03 Only wait in the bflsc scanwork loop if the queues are satisfactorily filled.
Con Kolivas fa881bad 2013-06-19T10:22:54 Only mandatorily grab the bflsc mutex on submitting work when the queue is empty.
Con Kolivas 0fbd375e 2013-06-19T09:43:36 Adjust bflsc v2 watermarks.
Con Kolivas 05adbbf1 2013-06-19T09:42:32 Only increase sleep time on bflsc if the queue isn't emptying at all over the sleep duration.
Con Kolivas fe1a3752 2013-06-19T08:57:08 Fix warning.
Kano a9fef661 2013-06-19T02:50:03 bflsc yet more API stats
Kano 71132876 2013-06-19T02:30:06 bflsc add some more API stats
Kano 3ac09fa2 2013-06-19T01:02:20 bflsc correct firmware matching
Kano 84a5da03 2013-06-19T00:58:35 bflsc correct comment
Kano 8f18d4c8 2013-06-19T00:52:13 bflsc driver support for v2 firmware
Con Kolivas 6d8d44c2 2013-06-17T09:57:13 Fanauto on bflsc is Z9X according to the source code, not 5 as per the draft protocol document.
Kano b8b137ae 2013-06-10T15:59:02 USB make device_path handled by usbutils
Kano 749fa78d 2013-06-10T15:39:44 tidy up free in device detect functions
Kano 9287ee90 2013-06-10T15:22:37 USB control creation and free of cgpu
Con Kolivas 24d26d99 2013-06-10T02:54:18 Throttling the BFLSC at 80 seems to prevent generating garbled responses of higher temps.
Con Kolivas 6fdc068f 2013-06-09T23:00:36 Revert "Give a generous timeout whenever we expect an OK message for working bflsc communications." This reverts commit 3d8cf60b96f908388f9d7ed7cf9d4dcade0dadf7.
Con Kolivas 3d8cf60b 2013-06-09T22:58:07 Give a generous timeout whenever we expect an OK message for working bflsc communications.
Con Kolivas 9b00529c 2013-06-09T22:39:21 Return after failed bin2hex conversion in bflsc.
Con Kolivas 12a2cb0d 2013-06-09T22:37:49 Demote failed hex2bin result to LOG_INFO and check return result in driver-bflsc to avoid doing find_work_by_midstate.
Con Kolivas 4f36d38c 2013-06-09T22:00:49 Revert "Only return one nonce range per device per cycle through scanwork in bflsc to avoid batching of result count." This reverts commit 4530a74e0b0ad54f4121cc55acd195399bc6f690.
Con Kolivas 6d7f079f 2013-06-09T21:53:48 Set bflsc cutofftemp to 90 degrees.
Con Kolivas 4530a74e 2013-06-09T21:52:42 Only return one nonce range per device per cycle through scanwork in bflsc to avoid batching of result count.
Con Kolivas 9451c49e 2013-06-09T21:43:16 Nominally set bflsc cutofftemp to 85 degrees.
Con Kolivas 630e7d76 2013-06-09T21:33:20 Set BFLSC fan speed coarsely to keep it under 60 or auto as per specs saying it tries to stay below 60.
Con Kolivas 7f1ce190 2013-06-09T17:22:23 Move macro definition to bflsc driver
Con Kolivas 641545aa 2013-06-09T17:19:20 Use a longer timeout for retrieving bflsc details.
Kano 1bec4904 2013-06-05T12:11:40 BFLSC enable buffered USB reading
Kano 6aed9a51 2013-06-05T01:49:48 bflsc & icarus use usb_ftdi_set_latency
Kano a16f51fb 2013-06-04T22:37:00 correct bflsc BFLSC_BUFSIZ max calculation
Kano 1c64f3b6 2013-06-04T13:17:57 usb set FTDI latency higher to minimise status bytes
Kano c9cc7445 2013-05-20T02:52:07 miner.h remove unused device_file and add device_data
Kano 250e4353 2013-05-18T01:39:56 usbutils/icarus separate FTDI transfer values and more debug
Kano e89c921a 2013-05-16T22:16:15 usb add a numeric sub-indentity for each name
Kano 2631b55e 2013-05-16T21:38:55 usbutils - make FTDI handling automatic
Con Kolivas fb249975 2013-05-03T22:24:11 Make FULLNONCE an ULL to fix a warning on 32 bit.
Kano 2c97b8b8 2013-04-28T19:00:25 usb_init() allow it to ignore a device and show no message
Con Kolivas 4ef01a00 2013-04-28T17:35:51 Count various failures as hw errors on bflsc.
Con Kolivas 08c13a13 2013-04-28T15:47:12 Init rwlock for bflsc stat_lock.
Kano 2517a8a4 2013-04-28T10:00:32 bflsc ensure buffer is bigger than max reply
Kano ac135bf3 2013-04-28T09:40:29 bflsc ignore very first work item nonce error - could be from before
Kano a7c30795 2013-04-28T09:24:46 bflsc more detailed results failure messages
Con Kolivas a2d18892 2013-04-28T09:13:17 Do not sleep longer than 2s max in bflsc scan code to stabilise displayed 5s hashrate, put locking around values, and set a minimum of 1ms.
Kano b30f9bb7 2013-04-27T17:00:33 bflsc unres the res