driver-bitforce.c


Log

Author Commit Date CI Message
Con Kolivas 2c80e16c 2012-10-07T13:58:34 Fix sign warning on windows build for bitforce.
Con Kolivas 735d77f3 2012-10-07T12:59:02 Use strtod not strtol for bitforce temp backup.
Con Kolivas 947a67ea 2012-10-07T12:52:48 Cope with broken drivers returning nonsense values for bitforce temperatures.
Kano ad7aa2b3 2012-09-16T11:42:51 FPGA - allow long or short device names in detect code + style police
Kano 9487ba05 2012-09-04T12:52:11 API/BFL identify a device - currently only BFL to flash the led
Kano 7a2407f1 2012-09-04T02:26:17 BFL add throttle count to internal stats + API
Kano 71e2f23f 2012-09-04T02:10:22 BFL: missing device id in log message
Con Kolivas 3b234da4 2012-08-20T19:49:36 Merge pull request #302 from luke-jr/bugfix_ftdi_alloca Bugfix: bitforce: Allocate enough space for FTDI description pointers
Con Kolivas c3e32274 2012-08-16T10:41:01 Cull all the early queue requests since we request every time work is popped now.
Con Kolivas 2480cf23 2012-08-15T10:54:38 Don't try to get bitforce temperature if we're polling for a result to minimise the chance of interleaved responses.
Con Kolivas 83675099 2012-08-15T10:37:51 Revert "Only get bitforce temperature at a time when we have not requested any other responses to minimise risk of interleaved responses." This reverts commit e29d2d92c9aa730c642c8df55c2a96901dce5450. As P. Shep points out, this breaks re-enabling of a disabled device.
Con Kolivas c433f234 2012-08-15T10:19:16 Increase the timeout on bitforce as per Paul Sheppard's suggestion to account for throttling + work time + excess.
Con Kolivas e29d2d92 2012-08-15T09:04:17 Only get bitforce temperature at a time when we have not requested any other responses to minimise risk of interleaved responses.
Con Kolivas 07fca3e2 2012-08-12T10:29:34 The bitforce buffer is cleared and hw error count incremented on return from a failed send_work already so no need to do it within the send_work function.
Con Kolivas f27bcb8e 2012-08-12T10:45:59 Going back to e68ecf5eb275e1cc2dc22c7db35b0bd8d9c799de
Con Kolivas 65f4e2af 2012-08-12T10:29:34 The bitforce buffer is cleared and hw error count incremented on return from a failed send_work already so no need to do it within the send_work function.
Luke Dashjr fa3a25f8 2012-08-10T22:19:17 Bugfix: bitforce: Allocate enough space for FTDI description pointers Con's uglify of the FTDI autodetect replaced a standard C99 array with non-standard alloca that needs the developer to specify the size in bytes rather than elements, but he didn't account for pointer size at all
Con Kolivas 0adbcd5d 2012-08-07T21:21:01 Fix windows bitforce build.
Con Kolivas 0a79de93 2012-08-07T20:55:55 Convert the serial autodetect functions to use int instead of char to enumerate devices.
Con Kolivas 9cae9a9d 2012-08-07T20:49:47 Make the serial open timeout for BFL generically 1 second on windows.
Con Kolivas 7dffa07e 2012-08-07T20:47:18 Deuglify windows autodetect code for BFL.
Con Kolivas e52762c5 2012-08-07T20:26:24 There is no point zeroing temperature in BFL if we fail to get a response, and we should register it as a HW error, suggesting throttling.
Con Kolivas 4443895f 2012-08-05T17:51:00 Count likely throttling episodes on bitforce devices as hardware errors.
Con Kolivas 0d676346 2012-08-05T16:15:32 Style cleanups.
Con Kolivas 31b01c8a 2012-08-05T16:13:53 Author: Luke Dashjr <luke-jr+git@utopios.org> Date: Thu Jul 12 16:49:26 2012 +0000 Use FTD2XX.DLL on Windows to autodetect BitFORCE SHA256 devices
Con Kolivas 245552c5 2012-08-03T09:49:14 Clear the bitforce buffer whenever we get an unexpected result as it has likely throttled and we are getting cached responses out of order, and use the temperature monitoring as a kind of watchdog to flush unexpected results.
Con Kolivas 7fa794a4 2012-08-03T09:26:43 It is not critical getting the temperature response in bitforce so don't mandatorily wait on the mutex lock.
Con Kolivas 5118e3ee 2012-08-03T08:12:05 Check there is a cutoff temp actually set in bitforce before using it as a cut off value otherwise it may think it's set to zero degrees.
Con Kolivas efba82fb 2012-08-01T20:39:12 Print the 3 parameters that are passed to applog for a debug line in bitforce.c
Con Kolivas 7f825013 2012-08-01T20:08:37 Clear bitforce buffer on init as previously.
Con Kolivas 7aa809ca 2012-08-01T19:36:00 Revert "Revert "Change BFL driver thread initialising to a constant 100ms delay between devices instead of a random arrangement."" This reverts commit 89e613b94361a68305a68095b1b8f4756f9ef8f8. Leave the delay between each device initialising.
Con Kolivas a688951d 2012-08-01T19:34:43 Revert "Remove bitforce_thread_init" This reverts commit 2dfe0d628e05763bce09c51420860ef4f2ea7919. Roll back to init'ing bitforce devices at regular intervals. They may reinit more than previously thought.
Con Kolivas ddcf3d20 2012-07-31T22:19:39 Differentiate between the send return value being a bool and the get return value when managing them in bitforce scanhash.
ckolivas 23a8c604 2012-07-31T10:28:48 Revert "bitforce: Skip out of sending work if work restart requested" This reverts commit cf36331d815e7b87131d547b92b9ceaa218d114d.
Con Kolivas 2fb95c00 2012-07-29T03:50:26 Merge pull request #276 from luke-jr/bf_send_restart bitforce: Skip out of sending work if work restart requested
Con Kolivas 150b29d4 2012-07-29T03:44:07 Merge pull request #268 from luke-jr/bf_generic_kname bitforce: Use "full work" vs "nonce range" for kernel name
Luke Dashjr cf36331d 2012-07-29T06:26:23 bitforce: Skip out of sending work if work restart requested
Kano c5583050 2012-07-24T02:19:23 BFL force all code to timeout to avoid hanging
Luke Dashjr b347a178 2012-07-12T16:57:50 bitforce: Use "full work" vs "nonce range" for kernel name Also move these string constants to #defines
Con Kolivas b6a23d00 2012-07-13T11:39:34 bitforce_get_result returns -1 on error now.
Con Kolivas 761bd772 2012-07-12T18:12:00 Merge pull request #267 from luke-jr/bugfix_winsleep Fix Windows build
Con Kolivas aa723e71 2012-07-13T10:54:06 Check return value of read in BFgets
Luke Dashjr 68111323 2012-07-12T18:01:14 Bugfix: Make our Windows nanosleep/sleep replacements standards-compliant (which fixes nmsleep) and include compat.h for bitforce (for sleep)
Con Kolivas ac55cec6 2012-07-12T23:13:35 Fix whitespace mangling.
Con Kolivas c1c99f1d 2012-07-12T23:09:05 Merge https://github.com/pshep/cgminer into pshep
Con Kolivas 89e613b9 2012-07-12T21:29:30 Revert "Change BFL driver thread initialising to a constant 100ms delay between devices instead of a random arrangement." This reverts commit 0785886b53b2838e0c3634143ad883beb191f7c6.
Paul Sheppard d4d5b28e 2012-07-11T14:46:09 Abbrv. correction
Paul Sheppard c37a3f30 2012-07-11T08:30:56 Put kname change for broken nonce-range back in
Paul Sheppard 2c54522d 2012-07-11T08:11:53 Add average wait time to api stats
Paul Sheppard 01a69ee4 2012-07-11T08:07:39 Revert "Merge branch 'ave_time' of https://github.com/pshep/cgminer.git" This reverts commit 242e52cdf902aabd124e600a65b7d7140b11fef0, reversing changes made to 4dc1bf2319daf5d8eae3a486e2bbbaa3ed00c88b.
ckolivas 0785886b 2012-07-11T23:17:23 Change BFL driver thread initialising to a constant 100ms delay between devices instead of a random arrangement.
ckolivas 9eaac439 2012-07-11T23:12:00 Spelling typo.
ckolivas 5c7e0308 2012-07-11T22:59:58 Modify te scanhash API to use an int64_t and return -1 on error, allowing zero to be a valid return value.
Paul Sheppard 242e52cd 2012-07-10T22:09:32 Merge branch 'ave_time' of https://github.com/pshep/cgminer.git
Paul Sheppard 4dc1bf23 2012-07-10T15:40:45 Missed one nonce-range disabling.
Paul Sheppard 3cc0aa76 2012-07-10T15:34:01 Add average return time to api stats
Paul Sheppard 2dfe0d62 2012-07-09T17:36:06 Remove bitforce_thread_init The delay thing does nothing useful... when long poll comes around, all threads restart at the same time anyway.
Paul Sheppard 953ecd9e 2012-07-08T23:25:02 Change timeouts to time-vals for accuracy.
Paul Sheppard 6c3d3318 2012-07-08T22:36:42 Merge branch 'master' of git://github.com/ckolivas/cgminer.git
Con Kolivas 2ce7f28b 2012-07-08T04:24:55 Merge pull request #254 from luke-jr/work_restart2 Turn work_restart array into a bool in thr_info
Paul Sheppard 19b4d2b9 2012-07-06T11:57:53 More BFL tweaks. Add delay between closing and reopening port. Remove buffer clear in re-init Add kernel type (mini-rig or single)
Con Kolivas 957d1961 2012-07-06T20:23:26 Make long timeout 10seconds on bitforce for when usleep or nanosleep just can't be accurate...
Con Kolivas 57e38d05 2012-07-06T18:41:25 Make disabling BFL nonce range support a warning since it has to be explicitly enabled on the command line now.
Con Kolivas fd55fab9 2012-07-06T16:54:00 Make bitforce nonce range support a command line option --bfl-range since enabling it decrease hashrate by 1%.
Con Kolivas b8484956 2012-07-06T16:44:55 Add sanity checking to make sure we don't make sleep_ms less than 0 in bitforce.
Luke Dashjr d4af2d05 2012-07-06T02:39:32 Turn work_restart array into a bool in thr_info
Con Kolivas e97adc91 2012-07-06T15:09:39 The fastest minirig devices need a significantly smaller starting sleep time.
Con Kolivas 74b96d4b 2012-07-06T15:05:38 Use a much shorter initial sleep time to account for faster devices and nonce range working, and increase it if nonce range fails to work.
Con Kolivas 13cf5689 2012-07-06T15:03:31 Use nmsleep instead of usleep in bitforce.
Con Kolivas 390d77a2 2012-07-06T10:41:08 Add more comments explaining how sleep time equals wait time and simplify the comparison.
Con Kolivas 69a11508 2012-07-06T10:35:18 delay_time_ms is always set so need not be initialised in bitforce.
Con Kolivas 9e8726b1 2012-07-06T10:09:02 Increase bitforce timeout to 10 seconds.
Con Kolivas a3faf63c 2012-07-06T09:54:27 Add more hysteresis and poll ~5 times to allow for timer delays in bitforce devices.
Con Kolivas afc6ae58 2012-07-05T22:42:04 Change message about broken nonce range support to verbose level instead of debug.
Con Kolivas 86ba7d79 2012-07-05T22:39:41 Display the actual duration of wait when it is greater than the cutoff.
Con Kolivas 5a096c1c 2012-07-05T22:39:11 Set nonce to maximum once we determine nonce range support is broken.
Con Kolivas 88dd599f 2012-07-05T22:33:21 Initial wait time is always known so no need to zero it beforehand in bitforce.
Con Kolivas 1b0a0ac5 2012-07-05T22:32:05 No point counting wait time until the work is actually sent to bitforce devices.
Con Kolivas c0c48060 2012-07-05T21:51:42 Use string comparison functions elsewhere in bitforce code.
Con Kolivas d4e526c9 2012-07-05T21:29:06 Use string comparison functions instead of explicit comparisons.
Con Kolivas 23841337 2012-07-05T20:47:43 Show device id in debug when disabling nonce range.
Con Kolivas 9e10a6c0 2012-07-05T20:42:19 Account for wait_ms time when nonce_range is in use on BFL.
Con Kolivas 9d9963b0 2012-07-05T17:15:18 Split nonces up into 1/5 chunks when nonce range is supported.
Con Kolivas 274a4011 2012-07-05T16:45:05 Merge branch 'master' into mr
Paul Sheppard 1ee191a7 2012-07-04T23:31:42 limit clear buffer iterations.
Paul Sheppard 2aa95ab8 2012-07-04T18:48:27 Merge branch 'master' of git://github.com/ckolivas/cgminer.git
Paul Sheppard 54f8554a 2012-07-04T18:46:41 Ad fd check to clear buffer.
Con Kolivas 72777f1f 2012-07-05T09:30:53 Disable nonce range support in BFL when broken support is detected.
Con Kolivas 96183bbd 2012-07-05T09:21:46 Minor bfl tidy.
Con Kolivas 75eca078 2012-07-05T09:15:21 Restart_wait is only called with a ms value so incorporate that into the function.
Con Kolivas e5aba760 2012-07-05T00:40:01 Fix off-by-one error in nonce increment in bfl.
Con Kolivas ba5c1fc0 2012-07-05T00:22:42 Use BE when setting nonce in bitforce nonce range work.
Con Kolivas d6a6d70f 2012-07-05T00:18:58 Set work blk nonce after work is queued to prevent duplicates.
Con Kolivas 870ba0c7 2012-07-05T00:17:35 Revert "Loop in bitforce scanhash till end nonce reaches full nonce range." This reverts commit e10aa2092bcb2f1e5b313c5bacb8853b00393126.
Con Kolivas e10aa209 2012-07-05T00:14:04 Loop in bitforce scanhash till end nonce reaches full nonce range.
Con Kolivas 1f2e9a49 2012-07-05T00:08:33 Enable nonce range in the normal init sequence for bfl.
Con Kolivas 8766bca4 2012-07-04T23:57:54 Queue extra work at 2/3 differently depending on whether we're using nonce range or not.
Con Kolivas 6314a12b 2012-07-04T23:53:55 Initially enable support for nonce range support on bfl, splitting nonces up into 3/4 size and only disable it if it fails on work submit.
Con Kolivas 96fba30b 2012-07-04T17:31:02 Attempt to detect nonce range support in BFL by sending work requring its support.
Con Kolivas a9746b9f 2012-07-04T16:58:08 Limit retrying on busy for up to BITFORCE_TIMEOUT_MS