driver-bitforce.c

Branch


Log

Author Commit Date CI Message
Alexander I. Mogilny 6f01253b 2017-01-26T13:30:45 merge with cgminer rev 87e3da18638275d2b5adbd0ccd0a17225793bf8f code refactoring: - Con Colivas notes - whitespace nitts - unused parameters removed - compiler warnings removed
Con Kolivas ec1ac289 2017-01-23T14:07:24 Windows build fixes.
Con Kolivas 257fe00a 2014-02-18T22:19:45 Move driver statline padding to cgminer.c, expanding width of maximum displayable statistics and window width to add more info.
Con Kolivas 0e60ca30 2013-11-22T23:21:44 Make usb_detect return the cgpu associated with it to check if it succeeds to decide on whether to increment the device count or not.
Con Kolivas 2b621b6b 2013-11-09T11:19:12 Remove GPU mining code.
ckolivas 6d747123 2013-09-28T15:11:06 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.
ckolivas 741b7430 2013-09-28T14:00:18 Forward declare all device drivers in miner.h avoiding the need to export them everywhere else.
ckolivas 88751974 2013-09-28T10:25:48 Create a macro list of drivers to enable easier addition of further drivers.
Kano a9faec4a 2013-09-14T01:20:21 change drivers to use usb_interface() - required for multi interface change
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 a61e41a0 2013-08-19T15:58:22 Check for thr->work_restart in restart_wait.
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
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
Kano 250e4353 2013-05-18T01:39:56 usbutils/icarus separate FTDI transfer values and more debug
Kano 2631b55e 2013-05-16T21:38:55 usbutils - make FTDI handling automatic
Kano c44817d5 2013-05-02T23:28:10 bfl correct applog typing
Kano 2c97b8b8 2013-04-28T19:00:25 usb_init() allow it to ignore a device and show no message
Con Kolivas 05c9ece8 2013-04-26T15:18:34 Differentiate BFLSC device from regular bitforce and give warning if no support is compiled in.
Con Kolivas 9eb851cd 2013-04-21T19:17:23 Use cgtime in driver-bitforce.c
James Z.M. Gao c9ae7150 2013-04-04T22:59:10 Compile CPU mining for win32 and win64
Kano 3515b6e2 2013-02-21T07:35:39 BFL stop 1st init command if no device
Kano 6fb32f7b 2013-02-08T02:32:27 convert sleep(const) to nmsleep()
Kano 7abf30b2 2013-02-03T22:51:05 distinguish between drv and it's id enum now called drv_id
Kano d0577919 2013-01-22T21:58:33 Capitalise driver long names used in applog messages
Kano 7fbc3770 2013-01-22T21:46:21 USB move usbdev info that needs to stay around into usbinfo
Kano 8f4340bf 2013-01-21T21:30:21 BFL allow a 2nd init attempt if the 1st reply is unknown
Kano 3f4d9fc5 2013-01-19T00:24:26 BFL use #defined strings for work replies
Kano 34bcc1c6 2013-01-14T11:30:11 USB automatically handle losing the device and report nodev in the API
Kano f53549a8 2013-01-10T11:27:51 BFL minimise first initialisation failure delay since it is common
Kano f9e04a3c 2013-01-06T21:00:38 device_drv - allow .name to be changed before add_cgpu()
Kano a344deb6 2013-01-05T23:47:26 rename device_api -> device_drv and all related api -> drv and add a device_drv->drv enum for identifying which driver each is
Kano 44ec7552 2013-01-02T22:43:48 BFL USB correct usb stats id
Kano b0996152 2012-12-31T13:04:53 BFL report USB device numbers for init errors and allow faster 'reinit'
Kano cbf6c716 2012-12-31T08:54:02 BFL libusb driver
Con Kolivas 86fd23a3 2012-11-18T22:25:28 Convert remaining modminer and bfl uses of usleep to nmsleep.
Paul Sheppard 9f74e650 2012-11-04T20:13:49 Tidy up device error counts
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)