mining news

88
Version 3.7.2 - 5th November 2013 - Clean up completely on avalon shutdown. - Use cgsem timed waits in avalon driver to not miss any queued wake ups to account for async messages coming during a flush work. - Statline before is too long on icarus that doesn't have monitoring. - Different windows+usb combinations respond with varying levels of reliability wrt timeouts so use a nominal extra 40ms before cancelling transfers that fail to time out on their own. - Do all hotplug_process under the write mining_thr_lock - Fix for opt_worktime on big endian machines. - Correct set_blockdiff for big endian machines. - Make sure cgpu exists in the restart threads loop in cases of hotplug etc. - Treat usb write timeout errors as unrecoverable. - Transfer errors are filtered out in usbutils now so no need to look for them in NODEV checks. - Remove now unused entries from struct cg_usb_device - Do not double up with checking for end of timeout measurements in usb read/write. - Do get_work in fill_queue without holding other locks. - Initialise usb after all the locks and conditionals are initialised. - Use only a trylock in flush queue to prevent deadlocks. - Add a wr_trylock wrapper for pthread rw lock write trylock. - Scale diff for scrypt when testing for block solves. - Fix for non curses build. Version 3.7.0 - 4th November 2013 - Use WRITEIOERR macro check for all usb writes. - Always use a usb read buffer instead of having to explicitly enable it. - Force unlocking of the console lock on restart to avoid corrupting the console state when we finally quit. - Never wait indefinitely for a pthread conditional in the hash_pop loop in case the work scheduler misses the last wakeup. - Make hash_pop signal the work scheduler each time it waits on the conditional that it should look for more work. - Discriminate between libusb transfer errors and regular libusb errors and make sure to capture them all. - Always read a full sized transfer for bulk reads. - Deprecate preferred packet size functions in usbutils since they're unhelpful. - Copy known transferred amount back to buffer for usb reads instead of requested length. - Treat timeout errors on usb writes as IO errors. - Ignore iManufacturer from bitfury devices to support bluefury as well as redfury. - Add more debugging info for when usb details don't match. - Look for timeout overruns in usb read/write. - Use an int for usb_read/write to identify overruns. - Use the callback timeout as a safety mechanism only on windows. - Instead of using complicated sleeps to emulate characters per second on usb writes, submit only as many characters as can be transferred per usb poll of 1ms, and use timeouts in bulk transfers, cancelling transfers only as a failsafe. - Remove discarded work from quota used. - Display works completed in summary and API data. - Store how many work items are worked on per pool. - Make each pool store its on reference for what the most current block is and fine tune management of block change in shared pool failover strategies using the information.

Upload: pamela-phelps

Post on 13-Oct-2015

17 views

Category:

Documents


0 download

DESCRIPTION

Mining for doges

TRANSCRIPT

  • 5/22/2018 Mining News

    1/88

    Version 3.7.2 - 5th November 2013

    - Clean up completely on avalon shutdown.- Use cgsem timed waits in avalon driver to not miss any queued wake ups toaccount for async messages coming during a flush work.- Statline before is too long on icarus that doesn't have monitoring.- Different windows+usb combinations respond with varying levels of reliabilitywrt timeouts so use a nominal extra 40ms before cancelling transfers that failto time out on their own.- Do all hotplug_process under the write mining_thr_lock- Fix for opt_worktime on big endian machines.

    - Correct set_blockdiff for big endian machines.- Make sure cgpu exists in the restart threads loop in cases of hotplug etc.- Treat usb write timeout errors as unrecoverable.- Transfer errors are filtered out in usbutils now so no need to look for themin NODEV checks.- Remove now unused entries from struct cg_usb_device- Do not double up with checking for end of timeout measurements in usbread/write.- Do get_work in fill_queue without holding other locks.- Initialise usb after all the locks and conditionals are initialised.- Use only a trylock in flush queue to prevent deadlocks.- Add a wr_trylock wrapper for pthread rw lock write trylock.- Scale diff for scrypt when testing for block solves.

    - Fix for non curses build.

    Version 3.7.0 - 4th November 2013

    - Use WRITEIOERR macro check for all usb writes.- Always use a usb read buffer instead of having to explicitly enable it.- Force unlocking of the console lock on restart to avoid corrupting the consolestate when we finally quit.- Never wait indefinitely for a pthread conditional in the hash_pop loop in casethe work scheduler misses the last wakeup.- Make hash_pop signal the work scheduler each time it waits on the conditionalthat it should look for more work.

    - Discriminate between libusb transfer errors and regular libusb errors and makesure to capture them all.- Always read a full sized transfer for bulk reads.- Deprecate preferred packet size functions in usbutils since they're unhelpful.- Copy known transferred amount back to buffer for usb reads instead ofrequested length.- Treat timeout errors on usb writes as IO errors.- Ignore iManufacturer from bitfury devices to support bluefury as well asredfury.- Add more debugging info for when usb details don't match.- Look for timeout overruns in usb read/write.- Use an int for usb_read/write to identify overruns.- Use the callback timeout as a safety mechanism only on windows.

    - Instead of using complicated sleeps to emulate characters per second on usbwrites, submit only as many characters as can be transferred per usb poll of1ms, and use timeouts in bulk transfers, cancelling transfers only as afailsafe.- Remove discarded work from quota used.- Display works completed in summary and API data.- Store how many work items are worked on per pool.- Make each pool store its on reference for what the most current block is andfine tune management of block change in shared pool failover strategies usingthe information.

  • 5/22/2018 Mining News

    2/88

    - Rationalise use of current_hash to a single hex string the length of theprevious block and display only the first non zero hex chars of the block in thestatus window.- Update uthash to latest.- show_hash doesn't know the size of the string so hard code the max size.- Remove as many initial zeroes as exist on share display, abstracting out ahash show function to use across different submission mechanisms.- Add missing endian swap functions for 64bits.- Sanity check for absurd target setting and divide by zero.- Abstract out conversion of a 256 bit endian number to a double, correctingerrors and use it for determining any magnitude share diff.

    - Avoid the extra generation of a byte flipped hash2 in struct work and directlyuse the LE work hash.- Add a sanity check to avoid divide by zero crashes in set_target- Calculate diff from target accurately for all 256 bits.- Set a true 256bit binary target based on any diff value in set_target()- Provide a copy_work_noffset function for copying a work struct but changingits ntime.- Make calls to flush queue and flush work asynchronous wrt to the main workloops.- Share is also above target for submit noffset nonce.- Use round for displaying current pool diff.- Use round for stratum share diff display instead of floor.- Use round instead of floor for displayed pool difficulty.

    - Allow arbitrary diffs to be tested against nonces via a test_nonce_difffunction.- Abstract out the rebuilding of hash2 in work.- Share is above, not below target, when it doesn't meet it.- Add the ability to add uint8 and uint16 entities to api data.- Use a non blocking connect with a 1 second select timeout when initiatingstratum to allow us to iterate over all IPs returned by getaddrinfo in roundrobin DNS pools.- Minor style changes to output.- Revert two different hash_sequence(_head)'s to one variable, useHF_SEQUENCE_DISTANCE in both places- Remove duplicate HF_SEQUENCE_DISTANCE() macro, and duplicate hash_sequencefrom info structure

    - Change SEQUENCE_DISTANCE() macro to HF_SEQUENCE_DISTANCE()- Structure changes for OP_NONCE, add big endian header- klondike - initialise stat_lock- klondike - better to unlock locks than to lock them twice :)- Add copyright notice to knc driver.- Trivial style changes to knc driver.- Improve performance of work generation by optimizing hex2bin and bin2hex- klondike - change options to clock and temptarget only- klondike - fix another uninit dev warning- klondike - downgrade 'late update' but add an idle detect - and correct errorlevels- klondike - fix isc uninit warning- Use a mutex to protect data in the knc structure, to prevent loading more work

    during a flush, and unlock and return to main between calls to get_queued_work.- Use the existing device_data for knc state data.- Only count successful nonces as hashrate in the knc driver.- Fix trivial warnings in knc driver.- Add KNC to api- klondike - drop the device for hotplug if it's unresponsive- usbutils - usb_nodev() allow a driver to drop a device- klondike - single 'shutdown' and ensure it happens- klondike remove SCNu8 - unsupported on windows- Correctly calculate sleep_estimate in usbutils that may have been preventing

  • 5/22/2018 Mining News

    3/88

    usecps from working.- Use a sanity check on timeout on windows.- Better HW error count; disable permanently those cores which fail often- KnC driver: knc-spi-fpga ASIC driver- Fixup jansson & libusb include paths when using separate build directory- 'llround' is more suitable here than 'roundl'- Silence warning if MAX/MIN is already defined- Remove prebuild ccan/opt dependencies- Reinstate block solve testing.- Dramatically simplify the calculation of blockdiff.- Simplify the set_target function, allowing it to work properly for fractional

    diffs.- Merge hashfast driver- Merge KnC driver

    Version 3.6.6 - 26th October 2013

    - Remove inappropriate extra locking in _usb_transfer_read

    Version 3.6.5 - 26th October 2013

    - klondike - fix uninitialised dev bug

    - Adjust the binary ntime data in submit_noffset_nonce even when there is no hexntime string for eg. gbt.- Put an entry into the work struct telling drivers how much they can roll thentime themselves.- Only set libusb cancellable status if the transfer succeeds.- Remove the applog on miner threads dying to prevent deadlocks on exit.- Do one extra guaranteed libusb event handling before testing if there are anypending async usb transfers.- Use a linked list for all usb transfers instead of just cancellable ones.- Provide a mechanism for informing drivers of updated work templates forstratum and gbt mining.- Add cancellable transfers correctly to the ct_list- Check for presence of thr in icarus get nonce for startup nonce testing to

    work.- Use cancellable usb transfers in the icarus driver to avoid having to loop andpoll when waiting for a response and to speed up work restart response time.- Add a usb_read_ii_timeout_cancellable wrapper- Add usb transfer cancellation on shutdown and documentation regarding wherecancellable transfers are suitable.- Use cancellable transfers on bitfury device.- Cancel cancellable usb transfers on work restart messages.- Don't bother having a separate cancellable transfer struct for usb transfers,simply include the list in the usb_transfer struct.- Add wrappers for usb_read_cancellable and usb_read_timeout_cancellable- Specifically set the cancellable state for it to not be uninitialised in theusb transfer struct.

    - Alter the usb cancellable list only under cgusb_fd_lock write lock.- Pass the cancellable option to _usb_read options to decide on whether to addusb transfers to the list of cancellable transfers.- Create a linked list of potentially cancellable usb transfers.- Don't attempt to disable curses or print a summary during an app restart toprevent deadlocks.- Keep the libusb event handle polling thread active until there are no asyncusb transfers in progress.- Keep a global counter of how many async usb transfers are in place.- Perform libusb_submit_transfer under the write variant of cgusb_fd_lock

  • 5/22/2018 Mining News

    4/88

    - klondike - error condition handling- Avoid entering static libusb directory if --with-system-libusb is enabled.- Minor opencl build corrections.- Enable dynamic linking against system libusb --with-system-libusb- Modify Makefile to only include opencl related code when configured in.- Convert opencl to need to be explicitly enabled during build with--enable-opencl- Implement a cglock_destroy function.- Implement a rwlock_destroy function.- Implement a mutex_destroy function.- Add usb command name to critical libusb error reporting.

    - Use windows' own higher resolution time and handlers allowing us to havehigher precision absolute timeouts.- Fix lldiv error in windows cgminer_t calculation.- miner.php correct sort gen field names largest to smallest- api ... the code related to device elapsed- api add device elapsed since hotplug devices Elapsed is less than cgminerElapsed- Drop usb buffering message to debug logging level.- Do the ntime binary modification to the work struct when submitting an ntimeoffset nonce within submit_noffset_nonce- Code cleanup and improved documentation- Improvements to support for BitBurner boards- Convert libusb transfer errors to regular libusb error messages to allow for

    accurate message reporting.

    Version 3.6.4 - 18th October 2013

    - Fixing the memory leak for remaining semaphores means we can go back to usingasync transfers on other OSes with our own timeout management again.- Use the forcelog function on shutdown to cope with indeterminate console lockstates due to killing of threads.- Add a forcelog variant of applog which invalidates any console lock to forceoutput.- Send pthread_cancel to failed completion_timeout that has timed out.- Simplify queued hashtable by storing unqueued work separately in a single

    pointer.- bflsc use getinfo chip parallelization if it is present- bflsc - fix brackets so [Chips] isn't always null- Remove unused variables.- Use cgcompletion timeouts for the unreliable shutdown functions on kill_work.- Fix cgcompletion return code and free on successful completion.- Provide a cg_completion_timeout helper function for unreliable functions thattakes arbitrary functions and parameters and reliably returns.- Perform sync transfers on shutdown to allow final transfers to complete.- Destroy cgsems used after transfers to not leave open files on osx.- klondike rewrite work control- allow __work_complete() access- miner.h allow devices to tv_stamp work

    Version 3.6.3 - 17th October 2013

    - API add 'MHS %ds' to 'summary'- Optional lock tracking and stats via the API- Speed up polling repeat again in usb poll thread and handle async after themessage to disable polling is complete.- Revert to using timeouts on !linux since libusb leaks memory without them.- Revert to libusb instead of libusbx

  • 5/22/2018 Mining News

    5/88

    Version 3.6.2 - 17th October 2013

    - Remove unused components of jansson- Remove unused parts of libusb- Work around older libtoolize that fails without top ltmain.sh not beingpresent during autogen- Fix open coded use of autoreconf in autogen- Update jansson to only build parts we require and suited to our buildenvironment.

    - Initial import of jansson-2.5- Prevent further USB transfers from occurring once the shutdown signal has beensent to prevent transfers getting stuck and libusb failing to shut down.- Make the USB polling thread poll every second to potentially aid longertimeout transfers.- Set device_diff on work in get_work to not be missed with drivers that useget_work directly.- Convert icarus driver to hash_driver_work model.- bflsc - also allow ' 0' in DEVICES IN CHAIN- bflsc - allow a 0 in DEVICES IN CHAIN- Add needed EXTRA_DIST for libusbx.- Update libusbx configure.ac changes.- Revert libusb Makefile changes from going to libusbx.

    - Fix trivial libusbx warnings.- Convert libusb-1.0.16-rc10 to libusbx-1.0.17

    Version 3.6.1 - 14th October 2013

    - Emulate the libusb_control_transfer sync setup in our async variant.- usbutils - make all libusb_error_name messages the same

    Version 3.6.0 - 14th October 2013

    - increasing max miners for avalon driver

    - using separate identifier for bitburner fury boards- changes to bitburner driver for bitburner fury boards- hexstr is too small in test_work_current- Windows uses errno for WSAETIMEDOUT- Convert the usb callback function to using cgsem_t timed waits to avoid raceconditions with conditionals/mutexes.- Give correct return code in cgsem_mswait- Check for correct timeout error in cgsem_mswait- Fix util.h exports for cgsem_mswait- Implement a generic cgsem_mswait similar to sem_timedwait- Use the one LIBUSB_ERROR_TIMEOUT for cancelled transactions since this erroris explicitly tested for in various drivers.- Do not use locking on usb callback function pthread signalling to prevent

    deadlock with libusb's own event lock.- Use a write lock when performing any USB control transfers to preventconcurrent transfers.- Free a libusb transfer after we have finished using it to avoid a dereferencein usb_control_transfer- Do not perform bfi int patching for opencl1.2 or later.- Although async transfers are meant to use heap memory, we never return beforethe transfer function has completed so stack memory will suffice for controltransfers, fixing a memory leak in the process.- klondike - correct/reverse min/max stats

  • 5/22/2018 Mining News

    6/88

    - api incorrect message name- klondike - use a link list queue rather than a circular buffer - and addtiming stats- Use a timeout with usb handle events set to a nominal 200ms and wait for thepolling thread to shut down before deinitialising libusb.- Use stack memory for hex used in stratum share submissions.- Use stack memory in test_work_current, avoiding a malloc/free cycle each time.- Provide a lower level __bin2hex function that does not allocate memory itself.- Convert the bitfury driver to use the hash_driver_work version of hash_work.- Add a hash_driver_work function to allow for drivers that wish to do their ownwork queueing and management.

    - Convert all usb control transfers to asynchronous communication with our owntimeout management as well.- Klondike - increase circular read buffer size- Klondike - extra zero value and range checking in temp conversion- klondike - display MHz also- Make pthread conditional timeouts handle all bulk usb transfer timeoutsperforming libusb_cancel_transfer, disabling timeouts within libusb itself.- Avoid calling get_statline_before on exit to avoid trying to use it on driversin an indeterminate state.- Avoid calling get_statline on exit.- Add a small amount to the usb timeout before cancelling to allow for a regularusb polling interval to pass.- Do not attempt to clear a usb halt before sending the cancel message since all

    transfers should normally be cancelled before attempting to clear a haltcondition, and only change the return message to a timeout if it's consistentwith a cancellation.- Retry up to USB_RETRY_MAX times to clear a halt condition before failing.- Show the error number as well as the description in erroring bulk transfers.- Drop logging level for failed to connect to stratum to verbose mode only sincewe hit it regularly.- We are always dependent on libusb handling events so use the blockinglibusb_handle_events in the polling thread and use a bool to know if we shouldcontinue polling.- Use fractional hashrate return values in bitfury_scanhash to minimise thenumber of times we return 0 based on hashrate so far to further damp outdisplayed hashrate.

    - Check for presence of driver name in DRIVER_COUNT_FOUND to prevent strcmp on anull pointer when a driver is not built in.- CMR allow sending flash and clock commands- Kill off threads that have failed using hash_sole_work instead of justdisabling them.- Make the bf1 getinfo size a macro- Failing to add_cgpu in bitfury should be a terminal failure.- Check return values when attempting to open a BF1 device and set the msg sizeas a macro.- Display errors on failed usb read and write and consider sequential IO errorsa permanent failure.- Use libusb's own error name function instead of hand coding the error names.- Limit ms_tdiff to 1 hour as a sanity check.

    - Enable the usb buffer in avalon driver.- Check for async transfer variants of error messages.- Remove unused variables.- Try switching pools if for some reason we end up with only idle pools and haveended up current_pool set to an idle one.- Check a pool is stable for >5 mins before switching back to it.- Minimise the time between dropping the read devlock and grabbing the writedevlock to avoid tons of logging spam in the interim.- Check for libusb transfer stall error to be consistent with async IO errorsreturned for a halt condition.

  • 5/22/2018 Mining News

    7/88

    - Check for continuous IO errors on USB and consider the device inactive if morethan retry max.- Make the devlock a cglock in usbutils and only grab the write lock forfundamental changes allowing us to send and receive transfers concurrentlywithout lock contention.- Prevent overflows in us_tdiff and ms_tdiff.- Change second initialise message on bitfury verbose mode.- Submitting an ntime offset nonce needs to be done on a copy of the workinstead of the original so abstract out shared components as much as possible,minimising strdups in copy_work and make submit_work_async work take copiedwork, cleaning up code in the process.

    - Provide a way for drivers to submit work that it has internally rolled thentime value by returning the amount it has ntime rolled to be added.- Typo in configure.ac- Remove unmaintained broken ztex driver.- Icarus - use a data structure for I/O rather than magic numbers- delete old tracked ccan/opt/*.o files- klondike correct cvtKlnToC() temperature calculation- klondike - correct 1st reply debug based on define- klondike - debug dump structured replies- klondike - avoid division by zero if maxcount is unexpectedly zero- klondike store and report errorcount and noise- klondike - fix chipstats api stats buffer overrun with 16 chips- klondike add new nonecount only once

    - klondike - report mh/s based on nonces found + put old estimate into API stats- klondike use a memcpy- klondike fix bracket tabs indenting- api.c missing Klondike from ASIC list- Klondike update code to current git- Add 2nd CMR to 01-cgminer.rules- Add Klondike to 01-cgminer.rules- Klondike to main directory- Klondike consistent code spacing- Klondike update driver code to current git- update firmware for 16 chips, add dist files- beta final 0.3.0 release- updated firmware, IOC method

    - prevent nonces when not state W- added driver config option support- fixes for 300 MHz, fix K1 parts list- update driver, docs- update firmware & utils- updated cgminer driver for 3.3.1- update firmware and driver, create new cgminer fork- update klondike driver- add cgminer driver file as-is- Add API output displaying USB cancellations.- Store statistics on how often we have to cancel async bulk transfers and add adebug message whenever we do.- Treat any unexpected timeouts waiting for async transfers as though there may

    be a usb halt condition and attempt to clear the halt before cancelling thetranfer.- Remove zero packet flag on usb as it's unsupported outside linux andunnecessary.- Fake the libusb transfer timed out message if we force cancel it with our ownasync functions.- Use asynchronous transfers for all bulk transfers, allowing us to use our owntimers and cancelling transfers that take too long.- Add libusb error warning message when significant error occurs.- Icarus CMR2 detect FPGA setup

  • 5/22/2018 Mining News

    8/88

    - Disable bitfury device thread on it disappearing.

    Version 3.5.0 - 29th September 2013

    - Add magic init sequence required on BF1 devices to get them mining on windows.- usbinfo.devlock is only ever write locked so convert it to a mutex- Icarus remove unneeded opt_debug tests due to applog being a macro- Icarus - CMR shouldn't wait the full timeout due to handle sharing- We should only yield once in cg_wunlock- Provide a function to downgrade a cglock from a write lock to an intermediate

    variant.- Deuglify use of _PARSE_COMMANDS macro expansions.- Deuglify use of usb parse commands macro in usbutils.- Use the driver add commands macros in api.c to avoid individually listingthem.- Separate out asic fpga and opencl drivers in the driver parse commands macrofor use individually as needed.- Use macro expansion in usb_find_devices to avoid explicitly listing them all.- Use macro expansion to iterate over all the drivers without explicitly writingthem out in usbutils.c- Iterate over the bitfury offsets in order of decreasing likelihood.- Reattach the kernel driver on linux on usb_uninit.- Attach the kernel driver on failure to usb init on linux.

    - libusb kernel driver operations are only available on linux.- There is no need to get the external prototypes for drivers in cgminer.c anymore.- Remove unnecessary gpu_threads initialisation.- Put avalon last in the sequence of adding drivers to prevent it trying toclaim similar chip devices on startup.- Use macro expansion to iterate over all device drivers without needing toexplicitly code in support in all places. Pass a hotplug bool to the detect()function to prevent opencl trying to hogplug GPUs.- Forward declare all device drivers in miner.h avoiding the need to export themeverywhere else.- Add a noop function for driver detect when it's missing.- Reuse the DRIVER_ macros to avoid having yet another definition for DRV_

    - Use macro expansion to generate extern device_drv prototypes.- Create a macro list of drivers to enable easier addition of further drivers.- There is no point setting the BF1 preferred packet size to the maximum sinceit will do so automatically.- icarus ensure all cmr interfaces are initialised properly- usbutils - fix USBDEBUG warnings- Remove unnecessary steps in communicating with BF1 and just use USB interface1.- usbutils - usb_bulk_transfer fix the buf/data fix- usb_bulk_transfer - use the allocated buffer- Set preferred packet sizes per interface on BF1.- usbutils allow PrefPacketSize per endpoint- Remove magic control sequences on open/close on BF1 and just flush the read

    buffers.- Check return codes in getinfo and reset and fail as needed in BF1.- Check return code for bitfury_open and release resources properly on failedinitialisation.- Abstract out flushing of interrupt reads in BF1 devices.- Perform interrupt read after close message on BF1 as per serial close.- Perform interrupt read flush as per serial open on BF1 devices.- Add information for 2nd USB interface on BF1 devices and choose interface 1for bulk transfers.- usbutils - bulk transfer copy test fix

  • 5/22/2018 Mining News

    9/88

    - usbutils - add USBDEBUG for usb_bulk_transfer- Add more read_ii variants to usbutils.- Name remainder of BFU usb commands used.- Use submit_tested_work in bitfury driver to avoid unnecessarily re-testing thework for validity.- Abstract out work submission once it's been tested, to be used by drivers thatdo their own internal validity testing.- Store the hash2 array in struct work for further reuse.- usbutils - which_intinfo not requried- Use the test_nonce function within submit_nonce and store the uint32corresponding to hash2 37 for further use.

    - usbutils - interfaces must all be on one handle - ep implies the interface- avalon stats use exact type- Only set share diff if we've confirmed it's a share first.- Update ASIC-README for bitfury devices.- Use an array of offsets when checking nonces in bitfury_checkresults- Limit the duration we wait for reads in BF1 based on time already elapsed toaccount for other delays such as work restart messages or out of work.- Minimise size of serial string we copy in BF1 stats to avoid overflow.- Implement basic API stats for BF1 and increase array of results to check forthe rare straggling result.- Space debug output for bf1 to separate from numerals.- Abstract out the bitfury open close and reset functions and use them onreinit.

    - Rename BF1 devices BF1- Check for work restart, breaking out early after usb reads in BF1.- Do not lose the first sets of results from BF1.- There is no point checking for results from the next round of work on BF1.- Last result returned by BF1 is an end of results marker so ignore it.- restart_wait should return 0 if thr_restart is true.- Remove unused code by bitfury driver since current driver uses serialisedscanhash.- Meter out return of estimated hashes in BF1 to smooth out visible hashrate.- Optimise inner scanhash loop for bf1.- Add yet another backup work for triple buffering of work in bf1 to account forextra late results returned and don't check nonce offsets which appear to neverreturn.

    - Name the work request and result usb commands for BF1- Define a mandatory upper limit to waiting for reset and data on BF1 based onfull nonce duration.- Decrease usb buffering to verbose logging.- Add in first draft for a serialised work model sending/receiving data for BF1devices.- Add complete close sequence to bf1 as it happens on serial.- Provide a bitfury identify function for bf1.- Reliably extract BF1 information at startup and reset the device.- Add commands for getting BF1 bitfury info- Add magic BF1 bitfury open and close control sequences.- Add BF1 detection code to bitfury driver.- Create basic placeholders for bitfury driver code.

    - Add bf1 device information to usbutils to enable device detection.- Add basic defines for building for bitfury devices.- Add redfury device to udev rules.- avalon: display the FPGA controller version on API- pool_active uninitialised_var rolltime- Use macro expansion to only need to define usb enums and commands in oneplace.- usbutils saving incorrect overflow buffer- ignore libusb.la and *.lo on linux- icarus support CMR with no extensions

  • 5/22/2018 Mining News

    10/88

    - usbtils - interfaces dont work yet in libusb windows so disable for that only- Provide a --disable-libcurl config option to build support for stratum miningonly.- Fix the api-example.c compile under Linux- usbutils - only release the device once - for the first intinfo- usbutils set_interface is no longer valid- ubsutils interfaces much each have their own handle- usbutils kernel_detach should use the interface number- usbutils - allow the driver to change which_intinfo- Reset quotas on load balance for all pools at the same time to avoid runningout during selection and unintentionally dropping to fallback.

    - Break out of select pool from a common point for appropriate debug messagesand to avoid further tests.- usbutils correct/reverse CMR product numbers- usbutils specifically track handles and interfaces- change drivers to use usb_interface() - required for multi interface change- usbutils - allow a device to use multiple interfaces (and better var names)- Cast -1 to (char) to cope with different default char types on ARM.

    Version 3.4.3 - 13th September 2013

    - Put corefoundation and iokit separate in ldflags for darwin.- Add rules for libusb Makefile.am building on osx

    - Add flags for building libusb statically on osx.- Find the greatest common denominator in quotas and use the smallest number ofconsecutive work items per pool in quota load balance mode to smooth hashrateacross pools with large quotas. Give excess quota to priority pool 0 instead ofpool 0.- Avoid dynamically adding stack memory for nonce2 in the stratum send threadand check the pool's nonce2_len will not cause an overflow.- Add subdir-objects to automake options.- Use inet_addr instead of inet_network to fix windows build.- Remove unused pbase variable.- Add support for socks4/4a proxies with stratum, and drop back to socks4support via the global --socks-proxy command to not break previousconfigurations.

    - Fix warning on mingw build.- Only show long-poll message in pool summary if it's not using stratum.- Increase the time for the waiting for work message to be given to be greaterthan that required for a pool swap in the scheduler which is set to 5s.- Change message in status when using a balanced pool strategy to notify ifthere's a stratum pool as well.- Use the --failover-only flag to have special meaning in combination withload-balance mode to distribute any unused quota back to pool 0 to maintainratios amongst other pools.- Display quota and allow it to be modified via the pool menu.- Add API commands and modify output to support pool quota displaying andchanging.- Change message in status when using a balanced pool strategy to notify if

    there's a stratum pool as well.- Add quota support to configuration files.- Rotate pools on all failures to set a pool in select_pool.- Use quotas for load-balance pool strategy.- Provide a mechanism for setting a pool quota to be used by load-balance.- Use the --socks-proxy option with stratum, changing it to defaulting to socks5and give appropriate message should it fail to connect.- Cope with trailing slashes in stratum urls.- Add more debugging messages when negotiating with proxies for stratum.- Test specifically for socks5h in socks support for stratum.

  • 5/22/2018 Mining News

    11/88

    - Add support for socks5 proxy with stratum- Provide support for negotiating a stratum connection via http proxies.- Connect to the proxy URL and port if specified for stratum sockets instead ofthe pool directly.- Extract any proxy url and port to be used by sockaddr if possible usingextract_sockaddr.- Make extract_sockaddr set variables passed to it rather than pool structmembers.- miner.php sort the mcast rigs so they are always in the same relative order- miner.php allow sending the muticast message multiple times- miner.php mcast ignore duplicate replies

    Version 3.4.2 - 3rd September 2013

    - take_queued_work_bymidstate should use a write lock.- miner.php coding warning- miner.php disable 'gen' by default- miner.php allow formula generation of new fields- miner.php add doctype- miner.php remove incorrect echo- miner.php optional error if not enough mcast rigs are found

    Version 3.4.1 - 31st August 2013

    - API mcast add a description option with miner.php- Always use a maxpacketsize buffer in usb_bulk_transfer- bflsc ensure getinfo cannot overflow it's storage buffer- Don't decref json values in stratum parsing due to memory corruption.- Use 64 bytes for all libusb control transfers.- Skip dissecting opt->names in parse_config if it doesn't exist.- Use an internal buffer in _usb_transfer_read in case the read is larger thanthe buffer passed to it.- ICA optional limit timing with short=N or long=N- Revert to old custom tolines function since strtok_r is not portable.- bflsc remove unused commented out code

    - logging - code mistake- logging - applogsiz() for large messages- Provide base structures for getaddrinfo.- Include string.h in bflsc driver.- Get rid of linear removal of spaces in bflsc text parsing and use strstrthroughout instead.- Use reentrant strtok in tolines() function in bflsc to avoid racing oncontextless calls.- Show how small a too small result in bflsc is.- Duplicate the buffer in process_results in bflsc since strtok modifies itmaking debugging output limited to one line.- Only process nonces in bflsc if the breakdown function succeeds.- Ignore zero count messages in bflsc instead of trying to parse them.

    - Return ok in tolines when it doesn't match inprocess message for bflsc.- Remove inprocess line instead of deleting all following responses in bflsc.- Change ok testing logic in breakdown() in bflsc and return if not ok at anystage.- Check the return value of tolines in bflsc driver.- Use strtok to parse lines in bflsc driver.- Add libusb-1.0 m4 directory and gitignore file.- Properly convert from ranlib to lt_init in configure.ac- Make autoconf always build for libusb.- More autoconf fixes.

  • 5/22/2018 Mining News

    12/88

    - Unconditionally build jansson statically from the cgminer source tree.- Only test for all usb devices once in configure.ac- Fix various libusb warnings and possible bugs on linux build.- Add make clean and maintainer-clean to autogen- Remove examples from libusb Makefile and generated autoconf files.- Fix libusb subdirectory builds.- Remove cached files from libusb autoconf on running autogen.sh- Remove unused HAVE_LISBUSB macro and use USE_USBUTILS everywhere.- Use direct auto* files to avoid failure of autoreconf- Remove unused and maintainer cleaned files- Show RT_LIBS in ./configure output.

    - First import of libusb-1.0- bflsc xlinkstr use snprintf- Fix win32 build.- Use take_queued_work_bymidstate in the bflsc driver to avoid the rare chancerepeated results come back from the same work item.- Provide a funcion that looks up queued work by midstate and then removes itfrom the device hash database.- Fix no -rt library on darwin.- Update included jansson to v2.4- Fix OSX build.- Provide an osx fix for cgtimers and a fallback to timevals for all otherplatforms !linux !win32 !osx.- Move two more timer functions out of define macros to enable them to be used

    by future osx code.- cgtimer_sub is now the same since cgtimer_t should be the same on allplatforms.- miner.php fix missing global- Only count submitted nonces as diff1shares if they're valid.- Substantially raise the maximum avalon frequency for water-cooled, over-volteddesigns.- Compile MCast.java with an old java- API Multicast sample MCast.java+MCast.class- BTB show C/MHz/mV for device- api.c remove unused reply string- api.c fix mcast debug message bug- miner.php implement API Multicast handling to automatically find your local

    net miners- API mcast only reply to remote IP's that are allowed access- Initial API Multicast response v0.1 to find cgminer APIs- Use timespecs on windows as cgtimer_t to capitalise on the higher resolutionclock changes.- Abstract out the conversion of system time to an lldiv_t in decimicroseconds.- Use our own gettimeofday implementation on windows for it to be consistentacross ming builds and higher resolution.

    Version 3.4.0 - 21st August 2013

    - Use stack data for HW error% in avalon stats.

    - Add avalon HW error% to stats and only show BTB variables if avalon is a BTB.- Check for cnx_needed on each loop through wait_lp_current.- Return positive for cnx_needed when no_work is true.- Stratum is used more often so test for it first.- Reorder support names alphabetically.- Only display the no pool work message once if there are multiple waiters inhash_pop- Provide a message and set a bool when no work is available from any pools andwhen it resumes again.- We don't want to continue into the hash_pop function if the getq is frozen.

  • 5/22/2018 Mining News

    13/88

    - Only report threads in and out in queued work devices across a get work sincethe rest happens asynchronously and the get work is what the device might bewaiting on.- Thread reportin and out can be static non inline.- usbutils cps sleep_estimate is not an underestimate- usbutils add cps stats estimates- Provide cgtimer_sub helper functions.- Provide cgtimer_to_ms helper functions.- Rename cgsleep_prepare_r as cgtimer_time to get time in cgtimer_t format andcall cgsleep_prepare_r as a macro for cgtimer_time- Use the reentrant cgsleep functions for usecps in usbutils.

    - TimeBeginPeriod and TimeEndPeriod do not add significant overhead when run theentire time for cgminer so avoid trying to maintain balanced numbers of them forspecific time calls to simplify code.- Replace all references to the old n*sleep functions with the equivalentcgsleep_*s replacements.- timeGetTime uses huge resources on windows so revert to using timevals for itsimplementation of cgtimer_t- Quotient/remainder error in ms division.- Only grab a queued work item if we successfully grab the lock to submit workin bflsc_send_work- BTB get version from Firmware- Carve out the unused portions of sha2 implementation.- Import Aaron D. Gifford's fast sha256 implementation.

    - Increase the que_low watermarks on BFLSC for they are too low to keep thedevice busy on scanwork loops.- Provide cgtimer_to_timeval helper functions.- Provide a timeval_to_cgtime helper function to reuse values.- Check for thr->work_restart in restart_wait.- We should be using que_low to decrease scan sleep time in bflsc.- Prepare sleep time on bflsc if no dev needs work yet to avoid busy waiting.- Simplify cgsleep code for windows by using a typedef for cgtimer_t thatresolves to clock resolution, using that internally.- On windows use the higher accuracy timegettime function to really get 1msclock and timer accuracy.- Use the cgsleep reentrant function to sleep for bflsc between read results toaccount for time taken to perform reads.

    - Use 100ms delay between checking for results on all bflsc devices as thebuffering of results mean checking more frequently just wastes CPU and causesmore lock contention for only marginally better latencies.- Fix missed endtimeperiod in overrun timer on windows.- Make cgsleep_us_r take an int64_t for us.- Make the cgsleep functions build on windows.- Use the cgsleep reentrant function in avalon_send_task.- Use the reentrant cgsleep functions within the avalon_send_tasks function.- Set high resolution timing on windows within the cgsleep functions.- Use the reentrant cgsleep function to time sleeps on reading from avalon.- Provide reentrant versions of cgsleep functions to allow start time to be setseparately from the beginning of the actual sleep, allowing scheduling delays tobe counted in the sleep.

    - Make the nmsleep and nusleep functions use the new cgsleep functionsinternally till functions are migrated to the new cgsleep API.- Add a ms_to_timespec helper function, and create a cgsleep_ms function thatuses absolute timers with clock_nanosleep to avoid overruns.- Add rt lib linkage to enable use of clock_nanosleep functions with olderglibc.- Add necessary time header include to avalon driver.- Do a sleep of the full duration it would take to do all the work usingclock_nanosleep in avalon_send_tasks to avoid sleep overruns before polling tosee if it's ready.

  • 5/22/2018 Mining News

    14/88

    - Add a timeraddspec helper function.- Provide a us_to_timespec helper function.- Use the us_to_timeval helper function in the avalon driver.- Provide a us_to_timeval helper function.- Use timeval_to_spec helper in avalon driver.- Add helper functions to convert timespec to timeval and vice versa.- simplifying buffer full check- forking bitburner write thread function- making sure original Avalon is unaffected by BitBurner changes- changes to queueing strategy for BitBurner boards- Do not poll in avalon_get_results without sleeping if we have finished parsing

    a full result.- Add c to ambient temperature display for avalon driver.- BTB allow up to 1400mV as per firmware limits- avalon for timeout allow d='calculate it' and fix uninitialised- Use cloned work when finding avalon results since another thread can discardthe work item while it's in use.- Provide a variant of find_work_bymidstate that returns a clone of the foundwork.

    Version 3.3.4 - 14th August 2013

    - API/miner.php add some % fields

    - Nonce2 stratum submission is not working with nonce2 lengths >4, revert thebuggy __bin2hex function and use bin2hex.- The write thread in avalon is only ever actually woken up by timeout so removethe write semaphore and use a simple sleep poll.- Fix warning.- Interrupting reads on the avalon to start writes loses data so remove thecgsem_post in the read code.- Add room for the null byte at the end of the nonce2 string on stratum sharesubmission and zero the allocated ram.

    Version 3.3.3 - 13th August 2013

    - Only perform the bin2hex on nonce2 data if it's required for stratumsubmission, thereby removing the last conversion of that type from stratum workgeneration.- Create a work data template when receiving stratum notification, allowing asimple memcpy of the merkle root avoiding more hex2bin conversions on each workgeneration.- Export the workpadding char in miner.h- Avoid a potential overflow should a pool specify a large nonce2 length withstratum.- Avoid one more hex2bin in gen stratum work.- Rename work gbt_coinbase to coinbase to be in line with pool variable name.- Perform merkle bin hex2bin on stratum notify to avoid doing it on each workgeneration.

    - Reuse just the one pool coinbase variable in stratum, avoiding more stringfunctions and storage in gen_stratum_work on each work generation.- Rename pool gbt_coinbase variable to coinbase to combine it with the stratumcoinbase data.- Use a nonce2 offset variable for both gbt and stratum to consolidaterequirements on work generation.- Merge pull request #474 from kanoi/master- util.c update quit call for new functions- use correct define for OSX in util.c- miner.h inline semaphores increase information on failure

  • 5/22/2018 Mining News

    15/88

    - util.c expand quit to show file/func/line- Merge remote-tracking branch 'conman/master'- Cache as much of the gbt coinbase as possible to avoid doing unnecessaryhex2bin conversion on every work generation with gbt.- We should be using a cg_wlock initially in generating stratum and gbt workbefore downgrading the lock.- Add the ability to downgrade a write variant of the cglocks.- Fix --scrypt being required before scrypt intensities on command line or notworking at all via config files.- Cache the hex2bin of pool nonce1 in stratum, avoiding hex2bin on each workgeneration.

    - Cache the binary generation of coinbase1 and 2 on stratum, avoiding a hex2binof coinbase1 and 2 on each work generation.- cgsem - increase information on failure- avalon init write_sem before use

    - 3.3.2 - 9th August 2013

    - Fix uninit variable warnings.- usbutils - force check every combination- Fix warning.- Recreate curses windows on windows when a device is hotplugged to allow windowresizing without crashing.

    - Update copyright notice.- Limit intensity range according to whether scrypt is in use or not.- Do not allow benchmark mode to be used with scrypt.- Add a --bflsc-overheat command which allows you to set the throttlingtemperature for BFLSC devices or disable it.- Move bflsc defines to a header file.- avalon allow frequency to be set via the API- BTB voltage management via the API - and set default on startup- Avalon BTB allow partial work to be transferred- avalon_cts use correct buffer- miner.php format Best Share- remove unnecessary memcpy- using more concise description

    - using usb_ident- forgot a return- changes to Avalon driver for BitBurner boards- Revert "Sleep after sending icarus work to emulate working at 115200 baud."- api correct timeout stat display- usb timeouts - min/max also- log USB timeouts in API stats- usbutils report failed timeouts- usbutils ensure stats macros are using the macro arguments- Check for negative wait time in socket_full.- Fix extra argument passed to statline before.- Adjust socket wait timeout in recv_line according to how long we've alreadywaited to avoid a 60 second wait dropping to 1 second due to a blocked socket.

    - usbutils use a heap buffer for bulk read rather than stack- usbutils only one bulk transfer call per stat- set device_drv function noops when first add_cgpu- usbutils - in init only change the config if needed- bflsc nonce per work item stats- bflsc increase flush count to handle parallel work- force type checking on curses- logging - size check sprintf- usbutils - size check all sprintf- cgminer - size check all sprintf

  • 5/22/2018 Mining News

    16/88

    - size check get_datestamp/get_timestamp and remove unused cgpu->init- make all statline overflow safe- WU only needs +2 width- Check for a timeout in avalon_scanhash and post to the write sem if we receiveone.- Decay result count in avalon more slowly to not falsely detect idle periods aslow result return rates.- Count the number of miners idled in avalon to account more accurately for whenits result return rate is too low.- Fix potential dereference when starting avalon with all new work.- Convert the decay_time function into one that truly creates an exponentially

    decaying average over opt_log_interval.- Only throttle avalon clockspeed in avalon_auto in non optimal temperaturesettings if the fanspeed has reached maximum.- Reinstate more aggressive

  • 5/22/2018 Mining News

    17/88

    - Make the fan control on the avalon a simple PID controller with a targettemperature of 45.- Demote bflsc hw error messages to verbose logging only.- bflsc - handle xlink timeouts by having generic IO functions- Demote the invalid nonce warning to log info.- Ignore iManufacturer for BFLSC devices since the device name will still matchand some unbinned chips are missing it.- sc_count shouldn't be +1 in bflsc.- Use the info timeout for read_nl in getidentify bflsc.- Add a usb_read_nl_timeout macro.- bflsc try getinfo twice

    - set MSG_ASCUSBNODEV always defined- Hard code the preferred packet size for AMU, BLT and ICA.- API V1.26 update ASIC support- Icarus enable the read buffer for the detect nonce- Support new overclocking speeds for avalon: 325, 350 and 375- undo icarus show errno, put it as debug in ubsutils- icarus add errno to rerr and werr- Sleep after sending icarus work to emulate working at 115200 baud.- Use the nusleep function for sleeping after sending work in avalon.- Show an integer only for diff if it is one.- Set the avalon preferred packet size to 512.- Reinstate the maxPacketSize determined by the end descriptor but allow thedriver to override it.

    - Only update hashmeter if we have done hashes or haven't updated longer thanthe log interval, fixing a us/ms error.- Use only one cgsem in avalon signalling when the write thread should commitwork by reading the status bytes off during an avalon_read, minimising thenumber of usb calls and resetting from only one place.- Change avalon no valid work message to no matching work to match APIterminology.- Use low latency usb transfers on the avalon, sleeping up to half a buffer'sworth only if no data is returning to increase hashrate, abolish lost work anddecrease CPU.- Minimise the sleep times in avalon read to avoid result loss.- Use a half nonce range before cycling through avalon's scanwork to ensure itgets a chance to fill work if time is tight for the write thread to signal a

    wakeup.- Temporarily limit usb transfer sizes to 512 till we provide a way for eachdriver to choose the upper limit.- Increase watchdog sick time to longer than it takes for a pool to be detecteddead.- Limit USB transfers to the max size reported by the descriptors.- Increase the BFLSC timeout to allow the maximum number of results to bereturned for BAS in time.- Decrease BAL and BAS latency to be just larger than one result read.- disable curses device resize that crashes on windows- BFLSC latest firmware has its own thermal cutoff set to 90, so use the samevalue in case we have an old firmware that isn't throttling by itself.- Drop watermark low limits for bflsc.

    - Set the fanspeed on bflsc to max if we don't know the temperature.- Use a low watermark for queueing mandatory work on bflsc instead of zero.- Only mandatorily grab the bflsc mutex on submitting work when the queue isempty.- Adjust bflsc v2 watermarks.- Only increase sleep time on bflsc if the queue isn't emptying at all over thesleep duration.- Fix warning.- bflsc yet more API stats- bflsc add some more API stats

  • 5/22/2018 Mining News

    18/88

    - bflsc correct firmware matching- bflsc correct comment- Fixed Commands with No params- bflsc driver support for v2 firmware- Odd Issues- Fixed Python Example- Added Python Api Example- Added Python Api Example- Multiplier fail for microseconds vs milliseconds when updating hashmeter inhash_queued_work.- Only make threads report in/out across the actual driver code and update their

    status on reporting out as well as in.- usbutils initialise close key/sem- usbutils cleanup linux semaphores on release- Difficulty should be unconditionally byteswapped, not swapped to big endian.- We should be setting cancelstate, not canceltype when disabling it for usblocking.- Pthread cancel state should be set to disable on usb DEVLOCK.- Fanauto on bflsc is Z9X according to the source code, not 5 as per the draftprotocol document.

    Version 3.2.2 - 16th June 2013

    - Record and report USB pipe errors via API stats- Suspend stratum connections when we know they've failed and don't try to recvdata from them once the socket no longer exists.- Pipe error is quite common on usb3 so drop logging to verbose level only.- ocl.c fix applog warnings on windows- applog/quit fix GPU errors created- usbutils - DEVLOCK other usbdev access- applog usb device list can be > LOGBUFSIZ- fix windows log warnings- logging remove extra added - remove varargs from logging/quit/in general as much as possible- Don't yield when downgrading a cg ilock.- Don't yield on grabbing the read lock variant of cglocks.

    - Off by one error in device count for display.- Don't display devices beyond the most_devices count in the curses status.- Only display as many device rows as the maximum live existed at any time.- usb lock out use cg locks- usb lock out transfers during open/close- Add error message to libusb pipe error- Differentiate libusb control transfer pipe errors from transfer errors sincethey're not fatal.- Create a usb_bulk_transfer wrapper for libusb_bulk_transfer to cope with pipeerrors.- Only show efficiency in pool information for pools that don't support localwork generation.- Create a pool_localgen bool function for testing when a pool can generate work

    locally.- ignore file that is generated on Macs- compile unix code on Mac OS X fixes not finding the config file in $HOME- Use mining start time for device MH/U calculations- Decrease the sleep duration before reading in avalon to not let the readbuffer overflow.- Failure to read and write on pseudo semaphores on apple happens routinely onshut down so should not be a quit error, just a warning.- Unlock usb dev lock in the same place in usbutils.- Sleep if the avalon buffer is empty and we've requested a read to allow the

  • 5/22/2018 Mining News

    19/88

    write thread to take precedence.- Yield after releasing a lock in case we are on a device with limited CPUresources.- Add the cgpu_info structure before avalon reset.- Tidy up DEVLOCK/UNLOCK to have consistent use of the pstate variable withoutneeding brace level match.- Icarus driver elaspsed timeout shouldn't be just USB I/O- usbutils avoid leaving devlock locked when thread cancelled- MMQ fix nodev failure caused by changes- ubsutils lock all access to nodev and cgusb- USB make device_path handled by usbutils

    - tidy up free in device detect functions- USB control creation and free of cgpu- Add FAQ regarding Work Utility.- Throttling the BFLSC at 80 seems to prevent generating garbled responses ofhigher temps.- Return after failed bin2hex conversion in bflsc.- Demote failed hex2bin result to LOG_INFO and check return result indriver-bflsc to avoid doing find_work_by_midstate.- Set BFLSC fan speed coarsely to keep it under 60 or auto as per specs sayingit tries to stay below 60.- Limit usbutils LATENCY_STD to 32ms to keep transfers under 512 bytes.- Move macro definition to bflsc driver- Use a longer timeout for retrieving bflsc details.

    - Add a usb_read_ok_timeout wrapper to cope with slow init'ing devices.- cgsem_post after creating the thread info- Fix build.- Use cgsem structures instead of the flaky pings in the work queue to startmining threads and remove the unused thr_info_freeze function.

    Version 3.2.1 - 7th June 2013

    - Shorten the avalon statline to fit in the curses interface and show the lowestspeed fan cooling the asic devices.- Set usbdev in usbutils after checking for nodev to avoid trying to access adereferenced value.

    - AMU usbstatus correct name from enable UART- Icarus AMU enable the UART- Only libusb close if libusb release succeeds.- Failed reads and writes on cgsem_post and cgsem_wait should be extremely rare.- Implement cgminer specific cgsem semaphores to imitate unnamed semaphorebehaviour on osx which does not support them.- Set cgusb->buffer to NULL when doing usb_buffer_disable.- Temporarily fix apple not having semtimedop by ignoring the timeout value.- BFLSC enable buffered USB reading- Icarus use buffered USB reading- bflsc & icarus use usb_ftdi_set_latency- usb_ftdi_set_latency LOG_ERRs if called incorrectly- add usb_ftdi_set_latency

    - usbutils optional read buffering- Set the avalon read transfer latency to avoid sleeping when no data isreturned after very short latency settings.- correct bflsc BFLSC_BUFSIZ max calculation- Fix build for !curses- restore max code - since timeout is unsigned- compile warning - remove unused max- usb set FTDI latency higher to minimise status bytes- Check for zero timeout on _usb_write.- Check for zero timeout in usb read.

  • 5/22/2018 Mining News

    20/88

    - Define a minimum polling time based on frequency of mandatory updates of ftdiresponses at 40ms.- Sleep right up to the timeout instead of the first half if we find ourselvespolling in _usb_read- Enforce half timeout sized sleeps in usb_read if we find the device is notrespecting libusb timeouts to avoid polling frequently.- Add more ASIC documentation.- Update README- Remove start device limitation on log window size to allow it to get largerwith hotplugged devices.- Switch logsize after hotplugging a device.

    - Change switch_compact function name to switch_logsize to be used for otherchanges.- Only adjust cursor positions with curses locked.- devs display - fix GPU duplicate bug- Do not hotplug enable a device if devices have been specified and the hotplugdevice falls outside this range.- Change the --device parameter parsing and configuration to use ranges andcomma separated values.- basic copyright statement in API.java- devs display - show ZOMBIEs after all others- Modify scrypt kernel message.- Check for pool_disabled in wait_lp_current- usbutils semun use proper def for linux which fixes OSX also

    - Check for pool enabled in cnx_needed.- Icarus add delays during intialisation- Update documentation.- Update copyrights of modified files.

    Version 3.2.0 - 31st May 2013

    - Add FAQ about windows USB keyboards and hotplug interactions.- Fix mingw build warnings in icarus driver.- Make usb_ftdi_cts use the _usb_transfer_read function.- Update ASIC-README with avalon info regarding default behaviour.- Break out of idling loop in avalon_idle if the buffer is full.

    - Provide some defaults for avalon if none are specified and do not try to claimthe device if it fails to reset with them and no options are specified.- usbutils automatically track IO errors- usbutils allow a short wait for resources to be released- correct semaphore timeout comment- Set the fanspeed to the nominal chosen for GPUs.- Inverted sem_init logic.- Document avalon options in ASIC-README- Do avalon driver detection last as it will try to claim any similar device andthey are not reliably detected.- Clamp initial GPU fanspeed to within user specified range.- Use a counting semaphore to signal the usb resource thread that it has work todo.

    - Avalon fan factor is already multiplied into the info values.- Get rid of zeros which corrupt display.- Logic fail on minimum fanspeed reporting.- Provide a workaround for fan0 sensor not being used on avalon and pad fan RPMwith zeros.- Add ambient temp and lowest fan RPM information to avalon statline.- Display max temperature and fanspeed data for avalon.- Set devices to disabled after they exit the hashing loops to prevent thewatchdog thread from trying to act on them.- Add avalon driver to hotplug.

  • 5/22/2018 Mining News

    21/88

    - Shut down the avalon mining thread if the device disappears.- Check for no usb device in usb_ftdi_cts- Check for valid usbdev in _usb_read in case the device has been unplugged.- Scanhash functions perform driver shutdown so don't repeat it.- Change the opencl shutdown sequence.- Send the shutdown message to threads and do the thread shutdown functionsbefore more forcefully sending pthread_cancel to threads.- Use the cgpu_info shutdown to determine when to stop the avalon read and writethreads.- Use semaphores to signal a reset to pause the read thread while the writethread does the actual reset, making all writes come from the same place.

    - Remove now unneeded fgpautils.h include from avalon.- usb_transfer_read should also not play with the endianness.- Use the USB wrappers for avalon, telling usbutils that we want the raw data.- Use separate ep for avalon tasks vs avalon reset and do not loop in writeindefinitely.- Remove unneeded function and checks in avalon write code.- CMR handle baud options- work_restart is reset within the queued hash work loop.- Fix avalon shutdown sequence.- Execute driver shutdown sequence during kill_work.- Use nusleep in avalon_get_results in place of nmsleep.- Provide an nusleep equivalent function to nmsleep.- usb/ica add more (incomplete) CMR settings

    - Give a buffer of perceived results in avalon during idle periods to allow forresults once it becomes active again.- libusb_control_transfer are meant to be endian specific, but host endiannessso no conversion is needed.- Reuse old MTX Handle- usbutils check all memory allocation- usb separate thread for resource locking and modified windows locking code- Icarus report data direction with comms errors- Set the read and write threads for avalon to not cancel within libusbfunctions and wait for the threads to pthread_join on shutdown.- Offset needs to be incremented after avalon reads.- Make the avalon_read function parse the ftdi responses appopriately.- Use the avalon read timeout to completion if no data has been read.

    - wait_avalon_ready should only be used before writes.- Ask for the correct amount to read in avalon get results.- Spawn the avalon read thread first with info->reset set to discard any datatill work is adequately queued.- Use direct usb read commands to avoid ftdi data being automatically cut off inavalon reads.- Do a simple usb_read_once for the avalon result from a reset command.- Make sure avalon is ready to receive more usb commands before sending them.- Implement avalon_ready and avalon_wait_ready functions for when usb is readyto receive commands.- avalon_read should not loop but just return whatever it has succeeded inreading.- Set avalon_info to device data void struct.

    - Specify avalon in avalon_reset.- First pass rewriting serialdev into direct usb dev for avalon driver.- Define a cts equivalent for direct usb and use it for avalon driver full.- Compile usbutils into avalon driver.- Check results come in at least at 2/3 the rate they should be on avalon and ifnot, reset it.- Give a warning but don't reset if the avalon buffer is full early.- Discard any reads obtained from the avalon get results thread during a reset.- Differentiate initial reset in avalon from subsequent ones.- Perform a mandatory reset if the avalon buffer signals it's full before it has

  • 5/22/2018 Mining News

    22/88

    queued its normal quota of work.- Wait till buffer is cleared after sending idle tasks to avalon beforereturning from avalon_idle.- Lock qlock mutex during reset from read thread in avalon to prevent more workbeing sent till the reset is over.- Reset avalon if we continue to be unable to send all the work items.- Add avalon reset response to debugging output.- Do a wait_avalon_ready before sending a reset code.- Iterate over spare bytes in the avalon result returned from a reset requesttrying to find the beginning of the reset.- Idle avalon after reset.

    - Check for nothing but consecutive bad results on avalon and reset the FPGA ifit happens.- Make submit_nonce return a bool for whether it's a valid share or not.- Unset the work restart flag sooner in avalon_flush_work to avoid re-enteringthe flush work function and just reset the queued counter instead of rotatingthe array to avoid runs of no valid work.- Implement an avalon_flush_work function for work restarts.- Shut down avalon read and write threads and idle the miners on closing it.- Tighter control over work submissions in avalon allows us to use a smallerarray.- Rotate avalon array to reset the queued count before releasing the lock sowork will always be available on next pass.- Move avalon read thread start till after conditional wait, store idle status

    in avalon_info and use it to determine whether an error is appropriate or not.- Wait till the avalon_send_tasks thread has filled the avalon with idle workbefore starting the avalon_get_results thread.- Use AVA_GETS_OK macro in avalon_read.- Do all writes on avalon with a select() timeout to prevent indefinite blockingand loop if less than desired is written.- Check explicitly that ava_buffer_full equals the macro.- Send initial reset as an avalon task to remove avalon_write function.- avalon_clear_readbuf is no longer required.- Check for 2 stray bytes on avalon reset.- Create a separate thread for handling all work and idle submission to theavalon which messages the scanhash function it has completed to updatestatistics.

    - usbutils ensure it compiles without stats- usbutils include transfer mode in usbstats- Give the avalon get results thread name the device number as well.- Make sure we're not adjusting temps on every successful work retrieval onavalon.- Count missing work items from behind a successful work read in avalon as well.- Change message for work not found in avalon parser.- usbutils handle bulk_transfer partial writes- Simplify debugging and only discard from avalon read buffer if at least onefull result has been discarded.- Only display discarded bytes in avalon if they're not used as nonces.- Only loop once through avalon_parse_results, but do so after timeouts as well.- Only debug and move ram if spare bytes exist in avalon buffer.

    - Remove off by one error.- Inverted logic.- Add more debugging to avalon reads.- Convert unsigned size_ts to ints for parsing avalon messages.- Cope with not finding nonces in avalon parsing gracefully by not overflowingbuffers.- Adjust avalon temp values on one lot of valid nonces from the parser.- Created a threaded message parser for avalon reads.- Avalon_wait_write is not effective during resets so do it after going idle.- Send only a single byte reset.

  • 5/22/2018 Mining News

    23/88

    - Repeat going idle after avalon reset, and wait for write ready before sendingeach reset request instead of some arbitrary sleep time.- Timeouts on avalon_read and avalon_write should be 100ms.- Don't close avalon after detecting it until we're cleaning up, instead usingreset for comms failures.- Check for avalon_wait_write before sending reset command.- Sleep in avalon_write_ready.- Make avalon_wait_write a bool function and check its return value.- Show how many idle tasks are sent to avalon if it aborts on buffer full.- Reset avalon->device_fd after it is closed.- Create an avalon_wait_write function that is used before sending avalon idle

    command.- Avoid repeating avalon_idle in do_avalon_close and extra sleep.- Pass fd to avalon_idle.- Do avalon_reset after info structure is set up.- Rework avalon reset sequence to include idling of chips and waiting for themto go idle followed by 2nd reset and then checking result.- Do a non-blocking read of anything in the avalon buffer after opening thedevice.- Assign the avalon info data to the device_data in cgpu_info.- thread shutdown is different on windows- usbutils make all windows timeouts 999ms- usb add another Cairnsmore1 USB chip- icarus do the full detect test twice if required

    - CMR usb config guess- usb add transfer_read and commented out in icarus- usbutils allow unrounded control transfers- icarus ICA initialisation- icarus report err on read failure- icarus correct device_id and use device_data for icarus_info- miner.h remove unused device_file and add device_data- miner.h icarus no long uses fd- icarus AMU config transfers- Create a logwin_update function which mandatorily updates the logwin and useit when input is expected to prevent display refresh delays.- usbutils force an unknown IDENT for zero- icarus set default options/timing based on device

    - Must unlock curses as well in logwin_update.- Create a logwin_update function which mandatorily updates the logwin and useit when input is expected to prevent display refresh delays.- icarus report usb write error information- Add name to icarus copyright notice.- Check for *pth dereference on pthread_join- usbutils name latency correctly- Check for restart before buffering more reads in Icarus.- Icarus should timeout if it's greater than the timeout duration even if it'sreceiving data.- We should check for amount buffered in icarus get_nonce against amount alreadyreceived.- Make mining threads report out during work submission.

    - submit_work_async is no longer used directly by driver code.- Fix first read timeout on icarus get nonce.- Retry icarus_initialise if the first read attempt fails.- Properly pthread_join miner threads on shutdown.- Properly pthread_join miner threads on shutdown.- Use a persistent single separate thread for stratum share submission that usesworkqueues since all stratum sends are serialised.- All stratum calls to recv_line are serialised from the one place so there isno need to use locking around recv().- Only allow the mining thread to be cancelled when it is not within driver

  • 5/22/2018 Mining News

    24/88

    code, making for cleaner shutdown and allowing us to pthread_join the minerthreads on kill_work().- Only allow the mining thread to be cancelled when it is not within drivercode, making for cleaner shutdown and allowing us to pthread_join the minerthreads on kill_work().- Set pool->probed to true after an attempt to resolve the url via stratum code.- icarus test nodev everywhere- usbutils/icarus separate FTDI transfer values and more debug- add icarus to hotplug- usbutils add rest of icarus- simple serial-USB python test script

    - icarus->USB v0.1 incomplete - missing initialise()- README spelling- Update documentation for icarus switch to USB- Add USB rules for supported USB devices- switch icarus configuration to usb- usbutils new command for icarus- usb add a numeric sub-indentity for each name- usbutils - make FTDI handling automatic- fix duplicate name- usbutils set Black Arrow Lancelot's as BAL and match the lot->llt name- usbutils identify Icarus devices- libusb_control_transfer 16 bit words are endian specific.- usb_applog separate amt display

    - Show pool difficulty more verbosely if it changes via stratum.- Attribute whatever stats we can get on untracked stratum shares based oncurrent pool diff.- Provide a --lowmem option which does not cache shares on failed submission toprevent low memory hardware (eg Avalon) from crashing.- Update util.c

    Version 3.1.1 - May 11th, 2013

    - Use a discrete device target for scrypt that dynamically changes to ensure westill report a work utility even if no shares are submitted such as in solomining.

    - Make set_work_target a function to set a specified char as target for useelsewhere.- Further consolidate the hash regeneration between sha and scrypt doing it onlyonce and always checking the share diff for both before submission.- Regenerate the hash before checking the share diff in hashtest().- Minor typo.- Use a scantime of 30 seconds for scrypt if none is specified.- Support more shares to be returned for scrypt mining.- Update the write config to properly record device entries and remove disabledoption.- Show a different warning and loglevel for failure to resolve a URL on first orsubsequent testing of stratum pool URLs.- Fix the problem of seting up termio of ttyUSB0 for icarus. the CSIZE is the

    mask of CS2/4/8 From: navyxliu - Set all stratum sockets to nonblocking to avoid trying to use MSG_DONTWAIT onwindows.- Fix warnings on win32 build.- Only use MSG_NOSIGNAL for !win32 since it doesn't exist on windows.- Use MSG_NOSIGNAL on stratum send()- Set TCP_NODELAY for !linux for raw sockets.- Use TCP_NODELAY with raw sockets if !opt_delaynet- Make raw sockets compile on windows- Recheck select succeeds on EWOULDBLOCK for stratum.

  • 5/22/2018 Mining News

    25/88

    - usbutils/mmq fixed size usb_read default to wait for all data- usbutils optional (disabled by default) dev debug- Add an ftdi usb read macro without newline- Avalon usb interface should be 0.- Add more debug for failure to USB init.- Recv() should all be non-blocking for raw sockets in stratum.- Change verbosity and error for getaddrinfo warnings in setup stratum socket.- Free servinfo after p is checked in setup stratum socket.- Use raw sockets without curl for stratum communications.- Sacrifice curl handle memory on stratum disconnects on all versions of libcurlto avoid curl corruption.

    - Don't use TCP_NODELAY if opt_delaynet is enabled with stratum.- Fix warnings in avalon driver.- Make FULLNONCE an ULL to fix a warning on 32 bit.- ztx correct applog typing- ocl correct applog typing- util correct applog typing- api correct applog typing- cgminer correct applog typing- scrypt correct applog typing- bfl correct applog typing- ica correct applog typing- mmq correct applog typing- adl fix trailing %

    - usbutils correct applog typing- applog - force type checking- Simplify the many lines passed as API data in the avalon driver now that theAPI does not need persistent storage for the name.- Duplicate the name string always in api_add_data_full to not need persistentstorage for names passed to it.- Add extra matching work count data in API for Avalon with 4 modules.

    Version 3.1.0 - April 28th, 2013

    - va_copy is meant to be matched by a va_end in log_generic.- usbutils remove_in_use break

    - usbutils remove_in_use missing prev- usbutils missing add_in_use- Clean up summary slightly better on exit.- Make the scan sleep time after scanwork in bflsc dynamic to keep queuesbetween watermark levels.- Remove unused temp counts in bflsc.- Calculate a rolling 5 min average set of temperatures for bflsc.- Damp the display of voltage for BFLSC devices.- Damp the temperature display measurement for bflsc since it fluctuates sowildly.- bflsc add volt stats- Handle failed tolines command in bflsc driver.- Can use a read lock instead of a write lock in bflsc scanwork.

    - Since we are filling a queue on the bflsc devices, there is no need to runthrough scanwork frequently provided we use the restart_wait function to abortearly during a block change.- Remove flushed work in bfl scanwork from the hash table.- Set correct device in process_nonces in bflsc driver.- bflsc add work reply INPROCESS: missing from the spec- bflsc put in some error messages not yet written- bflsc get completed hashes as late as possible- Fix potential memory leak with unused work items in bflsc_queue_full- Reverse bools in bflsc_queue_full

  • 5/22/2018 Mining News

    26/88

    - Avoid recursive loop calling correct function instead.- bflsc fix details identification- Differentiate BFLSC device from regular bitforce and give warning if nosupport is compiled in.- util.c str_text make a fully text readable version of str- BFLSC fix FPGA identity overlap- Locking error in bflsc_send_work- Use htobe32 function for converting nonce in bflsc.- Replace deprecated bzero with memset in bflsc driver.- Fix compilation of bflsc driver without opencl.- Check for realloc failures in bflsc driver.

    - Check for failure to calloc in bflsc driver.- Trivial style change- Use copy_time function in bflsc driver.- Use cgtime in bflsc driver and update copyright notice.- Use a separate function for bfl initialise that doesn't require locking.- Fix BFLSC building.- bflsc v0.1

    Version 3.0.1 - April 25th, 2013

    - Bypass attempting to read and save binary files on OSX to avoid crashes on >1GPU.

    - Receive failures in recv_line should unconditionally fail.- Use sock_blocks in api.c- Use sock_blocks function for stratum send and receive.- Create an OS specific sock_blocks function.

    Version 3.0.0 - April 22nd, 2013

    - Further fix distdir for hexdump.c- Fix build and distdir.- Remove all CPU mining code.- compile on win32- Update SCRYPT README with improved hashrates for 7970.

    - Use copy_time helper throughout cgminer.c- Provide wrappers for commonly used timer routines with API stats.- Avoid one cgtime call in sole_hash_work.- Fulltest is true if value is

  • 5/22/2018 Mining News

    27/88

    set to NULL and increases the resolution on windows.- Add high resolution to nmsleep wrapper on windows.- Set default ocl work size for scrypt to 256.- define le32toh if needed- fliter out the wrong result from adjust fan code- compile avalon driver on win32 and win64- Restart threads on the rare chance we found the block ourselves.- Add more FAQs about crossfire.- Set last device valid work on adding device.- Increment last device valid work count in submit_nonce to cover scrypt.- Set opt_scrypt drv max diff for correctness.

    - Make scrypt submission use the submit_nonce code, with nonces matchingendianness.- Do testing for HW errors on submit nonce for both scrypt and sha.- Increment hardware error count from the one site.- Rename scrypt regenhash function for consistency.- Add new best share info to verbose logging.- Add notice for when network diff is changed.- Convert error getting device IDs in ocl code to info log level only sincemultiple platforms may be installed and the error is harmless there.- Unnecessary extra array in ocl code.- Further driver FAQs.- Add MAC FAQ.- Add more FAQ details.

    - Check for work restart after disable in the hash queued work loop since it maybe a long time before we re-enable a device.- Unconditionally test for many wrong results on avalon and reset to avoidpassing a corrupt avalon result to temperature code.- build out of source dir- Set device_diff for queued work or there will be no diff1 share count.- Only reset an avalon device with no results when there are no resultsconsecutively.- More FAQs.- More FAQs.- Cleanup when stratum curl fails to initialise.- Avoid applog in recalloc_sock.- Avoid applog under stratum_lock in recv_line.

    - Avoid applog under stratum_lock in __stratum_send.- Put spacing around locking in util.c for clarity.- Avoid applog under cg_wlock.- Put spacing around locking code for clarity.- Avoid applog under pool_lock.- Avoid more recursive locks.- Avoid applog while ch_lock is held.- Avoid recursive locks in fill_queue.- Variable is already initialised in global scope.- More GPU faqs.- More README faqs.- Yet more README faqs.- Add more faqs to README.

    - Wrap result wrong tests in avalon scanhash in unlikely() and only consider ahash count of zero wrong if a restart wasn't issued.- avalon: if result_wrong >= get_work_count jump out the read loop- Fix warning on 32bit.- Fix warning on 32bit.- Avoid curl_easy_cleanup on old curl versions in setup_stratum_curl as well.- fix the fan control on max temp2/3- for some reason network down. one simple cgminer command: "cgminer -o127.0.0.1:8888 -O fa:ke --avalon-options 115200:32:10:50:256" can idle theavalon for safe power and protect chip

  • 5/22/2018 Mining News

    28/88

    - if hash_count == 0; reinit avalon, fix the 0MHS bug use the max value of temp1and temp2 for fan control- Reinstate the matching_work_count per subdevice on avalon based on the worksubid.- Avalon driver is missing the drv_id.- Rationalise and simplify the share diff and block solve detection to a commonsite.- Rationalise and simplify the share diff and block solve detection to a commonsite.- Make the avalon array size a macro.- Use replacement of work items in the avalon buffer as needed instead of

    flushing them.- Reinstate wrong work count to reset avalon regardless and display number ofwrong results.- Revert "The result_wrong measurement for avalon is continually leading tofalse positives so remove it."- select() on serial usb in avalon does not work properly with zero timeout.- The result_wrong measurement for avalon is continually leading to falsepositives so remove it.- Revert "Use only 2 queued work arrays in avalon."- Use no timeout on further reads in avalon_gets- Do sequential reads in avalon_get_reset to cope with partial reads.- Show read discrepancy in avalon_get_reset.- Reuse avalon_get_work_count variable.

    - Check for AVA_GETS_RESTART when deciding if avalon has messed up.- Make the detection of all wrong results on avalon much more conservative toavoid false positives on work restarts.- Show error codes on select and read fail in avalon.- If we get a restart message in avalon_gets still check if there's a receivemessage to parse first without a timeout before returning AVA_GETS_RESTART.- Use only 2 queued work arrays in avalon.- avalon_gets is always called from the one call site so inline it.- The read_count is unused by the avalon get result code and no longer requiredfor avalon reset so simplify code removing it.- Use a separate avalon_get_reset function for resetting avalon instead of usingavalon_get_result.- The current hash count returned by avalon scanhash is just an obfuscated

    utility counter so make it explicit.- Check for a restart before a timeout in message parsing code in avalon.- We should check for a restart message before checking for a timeout in avalonscanhash.- Store the subid for the work item in avalon.- usbutils more stats for bflsc- Fix record_temp_fan function in avalon driver. Patch by Xiangfu- Remove inappropriate memset of struct avalon result which was corrupting fanvalues.- Fix warning with no curses built in.- Bump version to 2.11.4- Add API support for Avalon.

    - Only do_avalon_close once on multiple errors.- Reset the result_wrong count on block change in avalon scanhash to preventfalse positives for all nonces failed.- Small timeouts on select() instead of instant timeout increase reliability ofsocket reads and writes.- Only get extra work in fill_queue if we don't have any unqueued work in thelist.- Small timeouts on select() instead of instant timeout increase reliability ofsocket reads and writes.- Rotate the avalon work array and free work on AVA_SEND_BUFFER_EMPTY as well.

  • 5/22/2018 Mining News

    29/88

    - Only get extra work in fill_queue if we don't have any unqueued work in thelist.- Don't get any work if our queue is already full in avalon_fill.- Differentiate socket closed from socket error in recv_line.- Differentiate socket closed from socket error in recv_line.- Free avalon->works in the event we call avalon_prepare on failure toinitialise.- Fix warnings.- Create an array of 4 lots of work for avalon and cycle through them.- Remove unused per unit matching work count for avalon.- Rename the confusing avalon_info pointer.

    - Simplify avalon scanhash code using the new find_queued_work_bymidstatefunction. Partially works only.- Members of cgpu_info for avalon are not meant to be in the union.- Use correct struct device_drv for avalon_drv.- cgminer.c -S help to only say Icarus- Check enough work is queued before queueing more in avalon_fill.- Actually put the work in the avalon queue.- Rneame avalon_api to avalon_drv.- First draft of port of avalon driver to new cgminer queued infrastructure.- Add Makefile entry for driver-avalon.- Add configure support for avalon.

    Version 2.11.4 - April 5th, 2013

    - Remove bfl-sc option from configure for 2.11 branch.- Only update hashrate calculation with the log interval.- Update the total_tv_end only when we show the log to prevent failure to updatelogs.- Minor README updates.- Add example 7970 tuning for scrypt in readme.- Update driver recommendations.- Add extensive GPU FAQs for the flood of new Scrypt miners.- Remove help option for cpumining in build environment.- Remove scripts that make it too easy to compile CPU mining support.- Win32 and win64 build updates

    - Remove references to CPU mining from README.- Show share hash as little endian as needed.- usbutils extra message requirements- Make hashmeter frequency for hash_queued_work match sole_work.- Update links and recommended SDKs.- Update scrypt readme re drivers and sdk.- usbutils.c usb_cmdname() usb_cmds -> string name- BFL FPGA Windows timeout set to 999ms- AUTHORS - spam update time (one year since the last)- Update README for x970 memdiff values.- Update README to match changes to display.- Remove increasingly irrelevant discarded work from status lines.- Remove increasingly irrelevant queued and efficiency values from status and

    move WU to status line.- Allow cgminer to start if usb hotplug is enabled but no devices yet exist.- Do not scan other gpu platforms if one is specified.- Update README for sync objects on windows.- Update README about intensity.- Add information for setting gpu max alloc and sync parameters for windows withscrypt.- If the hashmeter is less than the log interval and being updated by thewatchdog, don't update the hashrate.

  • 5/22/2018 Mining News

    30/88

    Version 2.11.3 - March 17, 2013

    - Update docs and reorder README to show executive summary near top.- Update the hashmeter at most 5 times per second.- Usbutils use its own internal read buffer- Calculate work utility for devices that support target diffs of greater than1, and update scrypt code to use it.- usbutils allow read termination match to be a string- Set default GPU threads to 1 for scrypt.- Connect backup stratum pools if the primary pool cannot deliver work.

    - Use a new algorithm for choosing a thread concurrency when none or no shadervalue is specified for scrypt.- Do not round up the bufsize to the maximum allocable with scrypt.- Remove the rounding-up of the scrypt padbuffer which was not effectual andcounter-productive on devices with lots of ram, limiting thread concurrenciesand intensities.- bufsize is an unsigned integer, make it so for debug.- Update the hashmeter once per second but only display the extra logs everyopt_log_inteval.- add a dummy ztex to usbutils so cgminer -n lists ztex also- nDevs required for -n with usb- USB device list - convert some common error numbers to messages- USB -n 'known' text only without ---usb-list-all

    - USB modify -n and --usb-dump to only show known devices or use new--usb-list-all option to see all- Make pool adding while running asynchronous, using the pool test threadfunctionality.- Only curl easy cleanup a stratum curl if it exists.- Sacrifice the ram of curl handles in stratum disconnects when we have builtwith old libcurl to avoid crashes.- cgminer -n to include a USB device list- usbutils allow call of usb_all() from other code- Convert gbt_lock to a cg_lock.- Add intermediate variants of cglocks that can be up or downgraded to read orwrite locks and use them for stratum work generation.- Move the stratum and GBT data to be protected under a new cg_lock data_lock.

    - Convert the ch_lock to cg_lock.- Convert the control_lock to a cg_lock.- Remove unused qd_lock.- Implement cg_lock write biased rwlocks.- do usb_initialise() after the started message so we see it- --usb-dump display brief dump if value = 0- USB add --usb options to limit USB device selection v0.1

    Version 2.11.2 - March 9, 2013

    - Whitelist AMD APP SDK 2.8 for diablo kernel.- Cope with the highest opencl platform not having usable devices.

    - Fix memory leak with share submission on GPU work structures as discovered bytwobitcoins.- usb_cleanup() without locking.- Use curl_easy_cleanup to close any open stratum sockets.- Show pool number in switch message- Don't start testing any pools with the watchpool thread if any of the testthreads are still active.- Set sockd to false should curl setup fail on stratum.- Close any open sockets when reusing a curl handle and reopen the socketwhenever we're retrying stratum.

  • 5/22/2018 Mining News

    31/88

    - Set pool died on failed testing to allow idle flag and time to be set.- Remove unused pthread_t typedefs from struct pool.- Perform pool_resus on all pools that are found alive with the test poolthreads.- Use pool_unworkable in select_balanced as well.- Differentiate pool_unusable from pool_unworkable.- Keep a connection open on higher priority stratum pools to fail back to them.- Rename threads according to what pool they're associated with as well.- Set the wrong bool in pool_active- Start the stratum thread only if we successfully init and authorise it,otherwise unset the init flag.

    - Make the initialisation of the stratum thread more robust allowing thewatchpool thread safe access to it after the stratum thread is started.- API no longer ignore send() status- API make the main socket non-static

    Version 2.11.1 - March 7, 2013

    - Shorten the time before keepalive probes are sent out and how frequentlythey're sent with stratum curls.- Only set stratum auth once to prevent multiple threads being started.- Display select return value on select fail in stratum thread.- Clear the socket of anything in the receive buffer if we're going to retry

    connecting.- Allow pools to be resuscitated on first startup by the watchpool thread.- Check all pools simultaneously at startup switching to the first alive one tospeed up startup.- Clear just the socket buffer when we don't care what is left in a stratumsocket.- Clear the stratum socket whenever we are closing it since the buffer is goingto be reused.- Do not continue work from a stratum pool where the connection has beeninterrupted.- Reset stratum_notify flag on suspend_stratum as well.- Close any sockets opened if we fail to initiate stratum but have opened thesocket.

    - Close any existing stratum socket if we are attempting to restart stratum sothe pool knows the connection has gone.- Show mechanism of stratum interruption if select times out.- Make stratum connection interrupted message higher priority to be visible atnormal logging levels.- Implement client.show_message support for stratum.- API add 'Network Difficulty' to 'coin'- Setup BFLSC support- API use control_lock when switching pools- Make sure to retry only once with noresume support for stratum.- Instead of keeping track of when the last work item was generated to keepstratum connections open, keep them open if any shares have been submittedawaiting a response.

    - usbutils.c copy full size to 'Last Command'- configure - set USE_USBUTILS when usbutils is required and use it in the code- Clear last pool work on switching pools if the current pool supports localwork generation or we are in failover only mode.- make rw locks: mining_thr_lock and devices_lock- Release MMQ device only once (not 4 times)- api.c fix MSG overlap- Hotplug - allow setting interval via --hotplug or API- curses - fix - put a dev_width inside #ifdef- usb_cleanup() use correct locking mechanism

  • 5/22/2018 Mining News

    32/88

    - Implement and use usb_cleanup() on shutdown or restart- miner.php report 'Last Valid Work' as time before request- API - return Last Valid Work- api -> drv- ZTX bug set missing drv_id

    Version 2.11.0 - March 2, 2013

    - Update kernel file names signifying changes.- Update a pool's last work time when the work is popped as well as staged.

    - API always report failed send() replies- Update diff stale: total and pools when stratum throws away shares- Keep stratum connections open for 2 minutes after the last work item wasstaged to allow stray shares to be submitted on pool sw