driver-avalon.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.
Xiangfu 19ca06f0 2015-05-05T10:50:01 First try on queued work
Con Kolivas ad358ca0 2015-02-03T16:51:02 Fix various unused warnings
Kano 9829d279 2014-02-19T16:38:21 avalon, bab, drillbit, klondike use more screen space rather than truncating info
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 5cda70e7 2014-02-14T08:09:17 Update various copyright dates
Con Kolivas bac9d6f3 2014-02-13T21:13:20 Reuse the cgpu temp entry for avalon and bitfury devices, changing avalon to a damped value.
Kano d9440866 2014-01-18T09:36:51 Modify thread naming to make them easier to identify
Con Kolivas a0ac8406 2013-12-29T16:01:26 Modify the auto tuning sequence to work with the 50MHz changes required to work with 55nm Avalon.
Con Kolivas 636c7fd4 2013-12-29T14:53:17 55nm avalon requires the delays between writes reinstated for stability.
Con Kolivas c3cfb909 2013-12-29T10:40:24 Use an equation instead of a lookup table to set the frequency for 55nm avalon allowing arbitrary values to be used.
Con Kolivas f00f23b1 2013-12-29T10:24:52 Make the result return rate low detection on avalon less trigger happy.
Con Kolivas 25add966 2013-12-27T21:38:32 Merge branch 'avalon2-prototype' of https://github.com/BitSyncom/cgminer into ava2
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.
Xiangfu 84ac4e73 2013-11-21T12:18:44 Use defines instead of 110 or 55
Xiangfu 7751e7a4 2013-11-10T19:14:31 update with new fpga firmware 2013-11-08 for Avalon 55nm prototype FPGA controller URL: http://downloads.canaan-creative.com/hardware/A3255/prototype/FIRMWARE/2013-11-08/FPGA/
Xiangfu ac8b573c 2013-11-21T12:08:41 add Avalon A3255 prototype machine support
Con Kolivas 390ac706 2013-11-18T10:40:41 With reliable writes to the avalon there is no need for the sleep delays between writes.
Con Kolivas 68d23521 2013-11-12T22:20:49 Return error codes in avalon_read() if they're not timeouts.
Con Kolivas 9bb1f17a 2013-11-12T20:42:27 Break out of the avalon idle loop if we get a send error.
Con Kolivas ec09fd6b 2013-11-11T21:22:47 We must chop up every 64 bytes returned on an ftdi chip, not just the first 2 bytes so revert to parsing the data internally in the avalon instead of using usbutils' simple ftdi parser.
Con Kolivas 56997327 2013-11-09T08:10:55 Unlock the avalon qlock while sending tasks to not hold the lock for an extended period.
Con Kolivas 74f3f9d6 2013-11-09T08:00:36 Sleep in avalon send task on return to the function to allow other code to work during the sleep period.
Con Kolivas c3f13369 2013-11-08T18:15:08 Do the driver flush in avalon code lockless since it can lead to deadlocks.
Con Kolivas 176747fb 2013-11-07T23:22:11 Check for fatal read errors and break out of the read loop in avalon.
Con Kolivas 79196e6a 2013-11-07T22:34:05 Send errors are basically fatal in avalon driver so break out of the send tasks loop.
Con Kolivas 79022974 2013-11-07T22:29:33 Make the avalon driver return -1 for hash count when usb fails, allowing the main loop code to send it the shutdown flag.
Con Kolivas 2dd7d2f6 2013-11-07T22:11:08 Use usbutils' own ftdi parser for avalon and the ftdir's own latency for managing timeouts since we can wait on reads with completely asynchronous reads+writes.
Con Kolivas 8cade649 2013-11-07T07:10:15 Give avalon a rest between submissions.
Con Kolivas f3d406ec 2013-11-06T22:22:43 Use usbutils' own cps function for slowing rate of usb writes on avalon.
Con Kolivas 82a97a04 2013-11-05T21:27:11 Avalon doesn't like losing its device data even after it's been unplugged.
Con Kolivas 31bbaa14 2013-11-05T21:21:57 Don't free the cgpu data on shutting down avalon driver.
Con Kolivas ce196049 2013-11-05T21:19:48 Clean up completely on avalon shutdown.
Con Kolivas a4c96d75 2013-11-05T21:09:08 Use cgsem timed waits in avalon driver to not miss any queued wake ups to account for async messages coming during a flush work.
Con Kolivas 8fb7a0d1 2013-11-04T08:45:09 Always use a usb read buffer instead of having to explicitly enable it.
Con Kolivas fc80e2fe 2013-11-03T20:31:04 Deprecate preferred packet size functions in usbutils since they're unhelpful.
Roy Badami 8795fbc2 2013-10-24T22:45:51 Remove modified Bitburner avalon defaults - I was mistaken about maximum stack size
Roy Badami 5d616770 2013-10-20T00:54:15 Code cleanup and improved documentation
Roy Badami c69a130d 2013-10-19T18:42:20 Improvements to support for BitBurner boards --bitburner-fury-options allows avalon-options to be overridden for BitBurner Fury Boards, facilitating simultanous use of BitBurner XX and BitBurner Fury boards More sensible defaults for BitBurner boards, so cgminer should do something sensible without any command line args
Chris Chua 5af1cfe3 2013-10-08T02:57:11 increasing max miners for avalon driver (properly this time)
Chris Chua b509e843 2013-10-03T20:11:37 using separate identifier for bitburner fury boards
Chris Chua 521e746b 2013-10-01T00:26:55 changes to bitburner driver for bitburner fury boards
Con Kolivas a5ed1771 2013-10-08T22:23:51 Revert "Further smooth out avalon hashrate by limiting the maximum number of nonces counted each cycle to 1 per miner, saving them for later cycles." This reverts commit 7be59992c121a61e56402cec21508e39401fad6c. Of dubious utility since a full nonce range is not scanned before loading more work.
Con Kolivas 7be59992 2013-10-08T22:17:00 Further smooth out avalon hashrate by limiting the maximum number of nonces counted each cycle to 1 per miner, saving them for later cycles.
Con Kolivas 39ec9518 2013-10-08T21:33:29 Enable the usb buffer in avalon driver.
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 d3a3b3a7 2013-09-27T13:07:04 usbutils allow PrefPacketSize per endpoint
Kano c4b685cb 2013-09-26T20:56:24 avalon stats use exact type
Xiangfu 088a3403 2013-09-22T23:04:36 avalon: display the FPGA controller version on API
Kano a9faec4a 2013-09-14T01:20:21 change drivers to use usb_interface() - required for multi interface change
Kano 87e5c76f 2013-08-23T22:52:30 BTB show C/MHz/mV for device
Con Kolivas c56d44ce 2013-08-21T21:00:57 Use stack data for HW error% in avalon stats.
Con Kolivas 8a01f532 2013-08-21T20:46:07 Add avalon HW error% to stats and only show BTB variables if avalon is a BTB.
Con Kolivas eeac9d81 2013-08-20T19:23:49 Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements.
Kano 96c0c317 2013-08-19T20:34:37 BTB get version from Firmware
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 17447ec7 2013-08-18T11:59:02 Use the cgsleep reentrant function in avalon_send_task.
Con Kolivas c988587b 2013-08-18T11:48:42 Use the reentrant cgsleep functions within the avalon_send_tasks function.
Con Kolivas e784b230 2013-08-18T11:02:05 Use the reentrant cgsleep function to time sleeps on reading from avalon.
Con Kolivas 37ff9f84 2013-08-18T01:33:50 Add necessary time header include to avalon driver.
Con Kolivas 1864ed26 2013-08-18T00:47:05 Do a sleep of the full duration it would take to do all the work using clock_nanosleep in avalon_send_tasks to avoid sleep overruns before polling to see if it's ready.
Con Kolivas fe7c8e82 2013-08-18T00:39:13 Merge branch 'master' of github.com:ckolivas/cgminer
Con Kolivas 33bb8c79 2013-08-18T00:28:30 Use the us_to_timeval helper function in the avalon driver.
Con Kolivas 53beae81 2013-08-18T00:21:01 Use timeval_to_spec helper in avalon driver.
Chris Chua 26de6e64 2013-08-17T16:18:12 simplifying buffer full check
Chris Chua 0b9474f3 2013-08-17T15:36:47 forking bitburner write thread function
Chris Chua be0d899b 2013-08-16T17:00:56 making sure original Avalon is unaffected by BitBurner changes
Chris Chua 2b932ccb 2013-08-16T16:37:43 changes to queueing strategy for BitBurner boards
Con Kolivas 1bb6dd40 2013-08-16T13:57:54 Merge branch 'master' of github.com:ckolivas/cgminer
Con Kolivas f3f939dd 2013-08-16T13:57:07 Do not poll in avalon_get_results without sleeping if we have finished parsing a full result.
kanoi f3837916 2013-08-15T17:14:16 Merge pull request #476 from kanoi/master avalon for timeout allow d='calculate it' and fix uninitialised
Con Kolivas 61cb05a9 2013-08-16T09:55:45 Add c to ambient temperature display for avalon driver.
Kano 51aaf816 2013-08-15T10:57:02 avalon for timeout allow d='calculate it' and fix uninitialised
Con Kolivas 3fe89486 2013-08-14T23:04:10 Use cloned work when finding avalon results since another thread can discard the work item while it's in use.
Con Kolivas dd9233f7 2013-08-13T17:24:01 The write thread in avalon is only ever actually woken up by timeout so remove the write semaphore and use a simple sleep poll.
Con Kolivas b2a3941e 2013-08-13T15:36:52 Fix warning.
Con Kolivas 992a97a3 2013-08-13T14:52:17 Interrupting reads on the avalon to start writes loses data so remove the cgsem_post in the read code.
Kano b1f57595 2013-08-10T10:12:15 avalon init write_sem before use
Con Kolivas f7e67010 2013-08-10T01:11:23 Fix uninit variable warnings.
Kano b1a80cef 2013-08-08T00:20:19 avalon allow frequency to be set via the API
Kano 802737e8 2013-08-07T23:47:19 BTB voltage management via the API - and set default on startup
Kano ecc9457b 2013-08-07T21:25:33 Avalon BTB allow partial work to be transferred
Kano 6dabdff1 2013-08-06T11:13:48 avalon_cts use correct buffer
Chris Chua 782206ce 2013-07-29T22:20:56 using usb_ident
Chris Chua b8cdaea8 2013-07-29T21:53:14 forgot a return
Chris Chua b0f4d55b 2013-07-29T21:39:29 changes to Avalon driver for BitBurner boards
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 a011fe51 2013-07-03T22:40:47 Check for a timeout in avalon_scanhash and post to the write sem if we receive one.
Con Kolivas 3b2f9ccb 2013-07-03T21:48:06 Decay result count in avalon more slowly to not falsely detect idle periods as low result return rates.
Con Kolivas 4b4a1354 2013-07-03T21:22:27 Count the number of miners idled in avalon to account more accurately for when its result return rate is too low.
Con Kolivas e13c580c 2013-07-03T20:56:56 Fix potential dereference when starting avalon with all new work.
Con Kolivas 18422fbf 2013-07-02T16:07:32 Only throttle avalon clockspeed in avalon_auto in non optimal temperature settings if the fanspeed has reached maximum.
Con Kolivas 3ef0db56 2013-07-02T09:02:40 Reinstate more aggressive <2% HW error target for avalon-auto
Con Kolivas 05344eff 2013-07-01T16:20:41 Set avalon fan min and fan max to PWM values instead of percentage.
Con Kolivas 065b6a5e 2013-07-01T15:38:15 Provide an --avalon-freq command line to give a valid range of frequencies for avalon in auto mode.
Con Kolivas 36b556aa 2013-07-01T15:15:36 Set the avalon idle frequency to lowest if avalon auto is enabled and we have an overheat condition.