driver-bflsc.c


Log

Author Commit Date CI Message
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
Kano dd8fe19b 2013-04-27T16:49:01 bflsc tidy up getinfo() and add to api
Kano 55b3d407 2013-04-27T16:15:52 bflsc guess device ~based on current V1 Jalapeno engine count
Kano de009dab 2013-04-27T15:55:39 bflsc only need one xlinkstr
Kano 66154e9f 2013-04-27T15:32:37 bflsc flush/clear output que when we initialise
Kano ea8aa1aa 2013-04-27T15:21:30 bflsc seperate BFLSC_QRES
Kano 4bfa4c30 2013-04-27T14:39:31 bflsc queue_full shouldn't ask for more work if device is zombie
Con Kolivas 4f0f5fb7 2013-04-27T14:22:50 Make the scan sleep time after scanwork in bflsc dynamic to keep queues between watermark levels.
Con Kolivas b0e6f68b 2013-04-27T01:04:30 Remove unused temp counts in bflsc.
Con Kolivas e70e7b5b 2013-04-27T01:02:35 Calculate a rolling 5 min average set of temperatures for bflsc.
Con Kolivas 31fc0bc7 2013-04-27T00:49:03 Damp the display of voltage for BFLSC devices.
Con Kolivas d6720ee0 2013-04-27T00:41:01 Damp the temperature display measurement for bflsc since it fluctuates so wildly.
Kano bd4d04b2 2013-04-27T00:07:42 bflsc add volt stats
Con Kolivas 21fd80df 2013-04-26T23:22:19 Handle failed tolines command in bflsc driver.
Con Kolivas 6db97452 2013-04-26T20:47:25 Can use a read lock instead of a write lock in bflsc scanwork.
Con Kolivas 045d0362 2013-04-26T20:35:05 Since we are filling a queue on the bflsc devices, there is no need to run through scanwork frequently provided we use the restart_wait function to abort early during a block change.
Con Kolivas f1624e13 2013-04-26T20:07:43 Remove flushed work in bfl scanwork from the hash table.
Con Kolivas 11baa327 2013-04-26T19:33:14 Set correct device in process_nonces in bflsc driver.
Kano 93e3e8c9 2013-04-26T18:57:40 bflsc add work reply INPROCESS: missing from the spec
Kano 5121163e 2013-04-26T18:26:20 bflsc put in some error messages not yet written
Kano 8fe17e9d 2013-04-26T17:28:46 bflsc get completed hashes as late as possible
Con Kolivas 5d8273a3 2013-04-26T17:00:22 Fix potential memory leak with unused work items in bflsc_queue_full
Con Kolivas f5e3448f 2013-04-26T16:55:52 Reverse bools in bflsc_queue_full
Con Kolivas 9b53e599 2013-04-26T16:38:17 Avoid recursive loop calling correct function instead.