driver-bitfury.c


Log

Author Commit Date CI Message
Con Kolivas b158a123 2014-01-04T16:55:53 Add lots of magic spi initialisation to nanofury.
Con Kolivas 2486b9ce 2014-01-04T14:29:11 Export reused components of bitfury management into a libbitfury and use for bab and bitfury drivers.
Con Kolivas 3865849c 2014-01-04T13:53:21 More init sequence for nanofury and implement a close function that sets all pins to input.
Con Kolivas f5526b14 2014-01-04T11:12:54 Change spimode and send more data in nanofury setup.
Con Kolivas d2043c1f 2014-01-04T11:05:08 Add basic setup comms to nanofury.
Con Kolivas d84155c9 2014-01-04T10:19:34 Set the initial spi settings for nanofury driver.
Con Kolivas 6b532de0 2014-01-04T09:38:05 Cancel any SPI transfers in progress in nanofury after initial setup.
Con Kolivas 781871bd 2014-01-04T09:28:18 Set GPIO LED and power to high in nanofury driver.
Con Kolivas 8f4ec3af 2014-01-04T09:25:30 Implement initial part of nanofury init sequence for GPIO pin settings and add output debugging of set values.
Con Kolivas bd6b1149 2014-01-03T11:14:08 Include mcp header for bitfury and fix extra params in macro.
Con Kolivas ea21e642 2014-01-02T01:15:44 Don't keep resetting BXF clockspeed to default.
Con Kolivas 375b7da4 2013-12-25T09:54:29 Always send the bxf device a clockspeed after parsing the temperature in case the device has changed the clockspeed itself without notification.
Con Kolivas 57a035d0 2013-12-22T22:47:17 Store per-chip submit information for bxf device and show them in the API.
Con Kolivas afad54b4 2013-12-22T22:40:33 Check for removed bxf devices before trying to update work or send messages.
Con Kolivas 7fc87129 2013-12-17T23:51:11 Implement command line control of the bxf target temperature.
Con Kolivas b2091900 2013-12-17T23:25:43 Add a simple PID-like controller to bi*fury devices to dynamically alter the clock setting to maintain a nominal target temperature set to 82 degrees.
Con Kolivas 99417ad3 2013-12-17T22:13:03 Add data to BXF API output.
Con Kolivas 7c7a324f 2013-12-17T21:53:10 Add support for newer protocol bi*fury commands job, clock and hwerror, setting clock to default 54 value, turning parsing into a compact macro.
Con Kolivas be51dcfd 2013-11-25T09:55:41 Use correct padding for bxf temperature display.
Con Kolivas ed9a89ef 2013-11-23T09:59:59 Set the bitfury device start times from when we first get valid work.
Con Kolivas 5aac6b74 2013-11-22T23:40:22 Fix stack corruption of zeroing too much in bf1 driver.
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 107b2f73 2013-11-22T21:13:47 Set tv work start time for bxf driver.
Con Kolivas e14b3ea3 2013-11-22T20:50:25 Age the bxf work items over 90 seconds, not the bf1 work items.
Con Kolivas 5df2ae56 2013-11-22T10:40:23 Leave room for temperatures above 100 degrees and pad consistently for bxf statline.
Con Kolivas eae0e76d 2013-11-22T00:03:11 Increase work ageing time to 90 seconds for bxf driver to account for firmware changes.
Con Kolivas 698d677f 2013-11-20T23:09:51 Use the age_queued_work function in the bitfury driver.
Con Kolivas 68d54030 2013-11-16T11:29:18 Add bxf data to api output.
Con Kolivas b9bc5ad2 2013-11-16T10:12:15 Send extra work regularly to the bxf device and parse the needwork command by sending the amount of work it requests.
Con Kolivas 3b3410e3 2013-11-16T09:52:23 Allow messages to have arbitrary offsets in the bxf parser in case we have lingering buffered data.
Con Kolivas 0677ddfe 2013-11-16T09:44:28 Send the maxroll command to the bxf driver and store the value to see if we need to update it.
Con Kolivas faecdca4 2013-11-16T09:15:16 Add sending of flush command to bxf on flush_work
Con Kolivas 667bb493 2013-11-16T09:08:04 Add flush and version commands to bxf start up, flush buffer and try to parse version response string.
Con Kolivas ee4d5a64 2013-11-16T08:36:27 Abstract out bxf recv message.
Con Kolivas e051e1bd 2013-11-16T08:14:38 Abstract out bxf send message to allow us to easily add extra commands.
Con Kolivas dcd6c688 2013-11-15T23:20:14 One more space in bitfury statline.
Con Kolivas 8dfcf1bf 2013-11-15T23:18:15 Expand size of bitfury statline
Con Kolivas 12a2ded6 2013-11-15T22:57:41 Various driver fixes for bitfury devices, including a flag from when first valid work appears.
Con Kolivas a51bde3e 2013-11-15T22:35:10 Look up work results in bxf driver from correct variable.
Con Kolivas 0508610f 2013-11-15T17:43:51 Correct incorrect error code in bxf driver for usb writes and add debugging.
Con Kolivas 3aac6ebd 2013-11-14T15:50:56 Implement a statline showing temperature for bxf
Con Kolivas 5253eb7e 2013-11-14T15:44:21 Add api data for bxf device, sharing the hashrate function with bf1.
Con Kolivas 25dd5fb0 2013-11-14T15:32:49 Count no matching work as a hw error on bxf
Con Kolivas 770cd8e6 2013-11-14T14:13:07 Work id should be hexadecimal in bxf messages.
Con Kolivas e29e84ae 2013-11-14T14:04:54 Add unrecognised string debugging to bxf driver.
Con Kolivas b679337c 2013-11-14T13:57:09 Implement the main scanloop for bxf, trying to prevent it from ntime rolling work if the work protocol does not allow it.
Con Kolivas 8a710a68 2013-11-14T13:21:58 Parse bxf work submits fully, submitting the results.
Con Kolivas 6f8fbd39 2013-11-14T13:01:54 Implement a skeleton parse bxf submit function.
Con Kolivas 5e147c69 2013-11-14T12:49:59 Use the bxf read thread to set the device target and send its first work item.
Con Kolivas 418664ad 2013-11-14T12:39:15 Implement a bxf send work function and set update and restart functions to sending new work since that's the equivalent for that device.
Con Kolivas 977943b3 2013-11-14T12:08:48 Add temperature parsing to bxf driver
Con Kolivas c1c834a6 2013-11-14T11:58:21 Create and destroy a basic bxf read thread.
Con Kolivas 18d1a9d7 2013-11-14T11:35:47 Remove the buffer from bitfury info since it is only used on one pass in the bf1 device.
Con Kolivas 28d93514 2013-11-14T11:33:15 Add a rudimentary bxf detect one function.
Con Kolivas 174b9fd6 2013-11-14T11:27:43 Rename all bf1 specific functions in the bitfury driver, using a switch to choose correct function.
Con Kolivas c2275a81 2013-11-14T11:15:18 Rename bitfury_getinfo to bf1_getinfo since it's unique to bf1 devices.
Con Kolivas 1d0d9fba 2013-11-14T11:11:01 Separate out the bf1 reset from bitfury reset.
Con Kolivas e7758fcd 2013-11-14T11:05:24 Store the bitfury identity in the info struct.
Con Kolivas 67c3826b 2013-11-14T10:37:23 Uniquely identify the BF1 and BXF bitfury devices.
Con Kolivas 0b64d438 2013-11-10T18:13:26 Fine tune the reading of results in bitfury driver to not lose any across work restarts or corrupt due to store results not parsed during restart.
Con Kolivas be8b4f97 2013-11-09T17:25:18 Use the main hashlist to store work done in the bitfury driver and remove work from the list by time, thereby fixing the duplicates at startup. Count hardware errors for when no match occurs.
Con Kolivas 8fb7a0d1 2013-11-04T08:45:09 Always use a usb read buffer instead of having to explicitly enable it.
Con Kolivas f29f6121 2013-10-25T14:35:56 Merge branch 'master' into hashfast
Con Kolivas eb5b6114 2013-10-24T22:26:48 Use cancellable transfers on bitfury device.
Con Kolivas 5ee279ca 2013-10-21T13:30:17 Add atmel init sequence likely to be required on hashfast for windows to work.
Con Kolivas 835ad824 2013-10-12T09:32:07 Convert the bitfury driver to use the hash_driver_work version of hash_work.
Con Kolivas b30ae4a2 2013-10-09T23:06:46 Use fractional hashrate return values in bitfury_scanhash to minimise the number of times we return 0 based on hashrate so far to further damp out displayed hashrate.
Con Kolivas bdbe9dd5 2013-10-08T23:26:23 Make the bf1 getinfo size a macro
Con Kolivas e05bfddc 2013-10-08T23:18:57 Failing to add_cgpu in bitfury should be a terminal failure.
Con Kolivas 078f7f47 2013-10-08T23:15:15 Check return values when attempting to open a BF1 device and set the msg size as a macro.
Con Kolivas 8037eb15 2013-10-07T12:00:49 Change second initialise message on bitfury verbose mode.
Con Kolivas 03e80514 2013-10-07T12:00:49 Change second initialise message on bitfury verbose mode.
Con Kolivas 87ddfcc8 2013-09-30T09:27:44 Disable bitfury device thread on it disappearing.
Con Kolivas 0a559984 2013-09-29T23:44:45 Add magic init sequence required on BF1 devices to get them mining on windows.
ckolivas e279bc1f 2013-09-29T02:20:38 Iterate over the bitfury offsets in order of decreasing likelihood.
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.
Con Kolivas 8d133706 2013-09-27T15:04:07 Remove unnecessary steps in communicating with BF1 and just use USB interface 1.
Con Kolivas ce16bd2b 2013-09-27T12:38:02 Remove magic control sequences on open/close on BF1 and just flush the read buffers.
Con Kolivas b994a4c6 2013-09-27T11:25:13 Check return codes in getinfo and reset and fail as needed in BF1.
Con Kolivas 703724a3 2013-09-27T11:20:03 Check return code for bitfury_open and release resources properly on failed initialisation.
Con Kolivas 59b33c1a 2013-09-27T11:13:38 Abstract out flushing of interrupt reads in BF1 devices.
Con Kolivas 93d4c09c 2013-09-27T10:54:24 Perform interrupt read after close message on BF1 as per serial close.
Con Kolivas 1f74b2cd 2013-09-27T10:50:33 Perform interrupt read flush as per serial open on BF1 devices.
Con Kolivas 7deaa91b 2013-09-27T10:36:23 Add information for 2nd USB interface on BF1 devices and choose interface 1 for bulk transfers.
Con Kolivas 4f6c7ee0 2013-09-27T09:39:26 Name remainder of BFU usb commands used.
Con Kolivas 7ae8ee8d 2013-09-26T21:29:30 Merge commit 'b606a60349fe2f1c1c56a1fec833ec849b798676' into redfury Conflicts: driver-bitfury.c
Con Kolivas b606a603 2013-09-26T21:20:59 Use submit_tested_work in bitfury driver to avoid unnecessarily re-testing the work for validity.
Con Kolivas fafd8631 2013-09-26T16:24:49 Use an array of offsets when checking nonces in bitfury_checkresults
Con Kolivas 44b9cf50 2013-09-26T12:11:25 Limit the duration we wait for reads in BF1 based on time already elapsed to account for other delays such as work restart messages or out of work.
Con Kolivas 9dcd4e70 2013-09-26T11:48:38 Minimise size of serial string we copy in BF1 stats to avoid overflow.
Con Kolivas ce285ba6 2013-09-26T11:46:09 Implement basic API stats for BF1 and increase array of results to check for the rare straggling result.
Con Kolivas 75333c53 2013-09-26T09:41:43 Space debug output for bf1 to separate from numerals.
Con Kolivas 1b40d902 2013-09-26T07:37:19 Abstract out the bitfury open close and reset functions and use them on reinit.
Con Kolivas 435065c8 2013-09-26T07:24:09 Rename BF1 devices BF1
Con Kolivas f97e1ad2 2013-09-25T23:54:37 Check for work restart, breaking out early after usb reads in BF1.
Con Kolivas ff4c4779 2013-09-25T23:33:10 Do not lose the first sets of results from BF1.
Con Kolivas 72c77980 2013-09-25T23:30:29 There is no point checking for results from the next round of work on BF1.
Con Kolivas 8c0ab5f3 2013-09-25T23:18:17 Last result returned by BF1 is an end of results marker so ignore it.