* 000c01d (HEAD, origin/master, origin/HEAD, cgminer) Create a logwin_update function which mandatorily updates the logwin and use it when input is expected to prevent display refresh delays. * ecd03ce Properly pthread_join miner threads on shutdown. * 3a2008a Use a persistent single separate thread for stratum share submission that uses workqueues since all stratum sends are serialised. * 64b08f3 All stratum calls to recv_line are serialised from the one place so there is no need to use locking around recv(). * bd652a6 Only allow the mining thread to be cancelled when it is not within driver code, making for cleaner shutdown and allowing us to pthread_join the miner threads on kill_work(). * f227515 Set pool->probed to true after an attempt to resolve the url via stratum code. * e128f90 Merge branch 'master' of github.com:ckolivas/cgminer |\ | * cea8826 Merge pull request #431 from kanoi/master | |\ | | * 6493554 usb_applog separate amt display * | | 0a15beb libusb_control_transfer 16 bit words are endian specific. |/ / * | 3336880 Show pool difficulty more verbosely if it changes via stratum. * | 4efe9ca Attribute whatever stats we can get on untracked stratum shares based on current pool diff. * | 3f24653 Provide a --lowmem option which does not cache shares on failed submission to prevent low memory hardware (eg Avalon) from crashing. |/ * c4a8f47 Merge pull request #429 from mhren/patch-1 |\ | * c5bfc45 Update util.c |/ * 32c41bd (tag: v3.1.1) Bump version to 3.1.1 * 3f0842f Update NEWS. * 1a7a87c Use a discrete device target for scrypt that dynamically changes to ensure we still report a work utility even if no shares are submitted such as in solo mining. * 2fb6637 Make set_work_target a function to set a specified char as target for use elsewhere. * 0b6ee62 Further consolidate the hash regeneration between sha and scrypt doing it only once and always checking the share diff for both before submission. * 9a76db8 Regenerate the hash before checking the share diff in hashtest(). * 03f98e2 Minor typo. * 79dd9df Use a scantime of 30 seconds for scrypt if none is specified. * b196d4f Support more shares to be returned for scrypt mining. * a923b7d Update the write config to properly record device entries and remove disabled option. * 3972fe2 Show a different warning and loglevel for failure to resolve a URL on first or subsequent testing of stratum pool URLs. * ef3b065 Fix the problem of seting up termio of ttyUSB0 for icarus. the CSIZE is the mask of CS2/4/8 From: navyxliu <email@example.com> * 2b8cbf6 Revert wrong patch. * 2645797 Set all stratum sockets to nonblocking to avoid trying to use MSG_DONTWAIT on windows. * d89936a Fix warnings on win32 build. * 832012f Only use MSG_NOSIGNAL for !win32 since it doesn't exist on windows. * 6acfdbd Use MSG_NOSIGNAL on stratum send() * a7cbbc9 Set TCP_NODELAY for !linux for raw sockets. * 0676a1a Use TCP_NODELAY with raw sockets if !opt_delaynet * 527fe05 Merge branch 'usb' |\ | * 05dd48a usbutils/mmq fixed size usb_read default to wait for all data | * f518f33 usbutils optional (disabled by default) dev debug | * e53040c Add an ftdi usb read macro without newline | * 8e11705 Avalon usb interface should be 0. | * 4a39f03 Add more debug for failure to USB init. * | 6819658 Make raw sockets compile on windows * | 43bcccf Recheck select succeeds on EWOULDBLOCK for stratum. |/ * 6e969e9 Recv() should all be non-blocking for raw sockets in stratum. * cf80fe4 Change verbosity and error for getaddrinfo warnings in setup stratum socket. * 1a43cb0 Free servinfo after p is checked in setup stratum socket. * 31aa4f6 Use raw sockets without curl for stratum communications. * 657e644 Sacrifice curl handle memory on stratum disconnects on all versions of libcurl to avoid curl corruption. * 891f88b Don't use TCP_NODELAY if opt_delaynet is enabled with stratum. * 69bdc6f Fix warnings in avalon driver. * fb24997 Make FULLNONCE an ULL to fix a warning on 32 bit. * d3955b8 ztx correct applog typing * 54d5d26 ocl correct applog typing * 2ce2f8d util correct applog typing * 65af59b api correct applog typing * 6cef9f4 cgminer correct applog typing * 2b2b34f scrypt correct applog typing * c44817d bfl correct applog typing * 95fe655 ica correct applog typing * 9a1925d mmq correct applog typing * 7e3242b adl fix trailing % * 56a4577 usbutils correct applog typing * 8f08a32 applog - force type checking * ed65653 Simplify the many lines passed as API data in the avalon driver now that the API does not need persistent storage for the name. * 965129b Duplicate the name string always in api_add_data_full to not need persistent storage for names passed to it. * d08bdfd Add extra matching work count data in API for Avalon with 4 modules. * 0803e46 (tag: v3.1.0, origin/bflsc) Update NEWS. * 8971c56 va_copy is meant to be matched by a va_end in log_generic. * d3d90e6 usbutils remove_in_use break * bfdbec1 usbutils remove_in_use yet again * d436beb usbutils remove_in_use missing prev * 2ae4840 usbutils missing add_in_use * 8b2118b Clean up summary slightly better on exit. * 18c6b49 Update NEWS for upcoming 3.1.0 release. * 102e907 Preemptively bump the version to 3.1.0 * d94b4f8 Update AUTHORS file. * fd518f1 Add GPU-README to EXTRA_DIST. * 100bbcc Split out the GPU specific information from the README into a GPU-README file. * 4c9f2b7 Add an ASIC README file and udev rules file for insertion of BFL devices on linux. * fa5295d Merge branch 'bflsc' of github.com:ckolivas/cgminer into bflsc |\ | * 2c97b8b usb_init() allow it to ignore a device and show no message * | 9e92c6e Minor README updates. |/ * 1806602 Merge branch 'bflsc' of https://github.com/ckolivas/cgminer into bflsc |\ | * 4ef01a0 Count various failures as hw errors on bflsc. * | 95f467b usbutils don't even attempt to detect a device we already have |/ * 08c13a1 Init rwlock for bflsc stat_lock. * a436ede usbutils correct BFL name * ebfa56d usbutils allow device selection to specify expected Manufacturer/Product strings * 2517a8a bflsc ensure buffer is bigger than max reply * ac135bf bflsc ignore very first work item nonce error - could be from before * a7c3079 bflsc more detailed results failure messages * a2d1889 Do not sleep longer than 2s max in bflsc scan code to stabilise displayed 5s hashrate, put locking around values, and set a minimum of 1ms. * b30f9bb bflsc unres the res * dd8fe19 bflsc tidy up getinfo() and add to api * 55b3d40 bflsc guess device ~based on current V1 Jalapeno engine count * de009da bflsc only need one xlinkstr * 66154e9 bflsc flush/clear output que when we initialise * ea8aa1a bflsc seperate BFLSC_QRES * 4bfa4c3 bflsc queue_full shouldn't ask for more work if device is zombie * 4f0f5fb Make the scan sleep time after scanwork in bflsc dynamic to keep queues between watermark levels. * b0e6f68 Remove unused temp counts in bflsc. * e70e7b5 Calculate a rolling 5 min average set of temperatures for bflsc. * 31fc0bc Damp the display of voltage for BFLSC devices. * d6720ee Damp the temperature display measurement for bflsc since it fluctuates so wildly. * bd4d04b bflsc add volt stats * 21fd80d Handle failed tolines command in bflsc driver. * 6db9745 Can use a read lock instead of a write lock in bflsc scanwork. * 045d036 Since we are filling a queue on the bflsc devices, there is no need to run through scanwork frequently provided we use the restart_wait function to abort early during a block change. * f1624e1 Remove flushed work in bfl scanwork from the hash table. * 11baa32 Set correct device in process_nonces in bflsc driver. * 93e3e8c bflsc add work reply INPROCESS: missing from the spec * 5121163 bflsc put in some error messages not yet written * 8fe17e9 bflsc get completed hashes as late as possible * 5d8273a Fix potential memory leak with unused work items in bflsc_queue_full * f5e3448 Reverse bools in bflsc_queue_full * 9b53e59 Avoid recursive loop calling correct function instead. * a44f6d2 bflsc fix details identification * 05c9ece Differentiate BFLSC device from regular bitforce and give warning if no support is compiled in. * 863c9e2 util.c str_text make a fully text readable version of str * 179cc52 BFLSC fix FPGA identity overlap * a84e424 Locking error in bflsc_send_work * cbe13be Use htobe32 function for converting nonce in bflsc. * 102b947 Replace deprecated bzero with memset in bflsc driver. * 5c1ecaf Fix compilation of bflsc driver without opencl. * 4c8acdf Check for realloc failures in bflsc driver. * b0f8b27 Check for failure to calloc in bflsc driver. * 5c30059 Trivial style change * c303912 Use copy_time function in bflsc driver. * 41fa60c Use cgtime in bflsc driver and update copyright notice. * e92b13a Use a separate function for bfl initialise that doesn't require locking. * 009008a Fix BFLSC building. * c769db6 bflsc v0.1 * ea0adf6 Bump version to 3.0.1 * a7a8640 Update NEWS. * 2643ad1 Use only the one jump in ocl.c to bypass binary saves for osx opencl. * 0a8f584 Initialise variables not set on OSX in ocl.c. * 9aae225 Bypass attempting to read and save binary files on OSX to avoid crashes on >1 GPU. * d835ef7 Receive failures in recv_line should unconditionally fail. * 06f7f52 Revert "Add more debugging to recv_line parse failure." * 412ef44 Use sock_blocks in api.c * af60a19 Use sock_blocks function for stratum send and receive. * a2a7a03 Create an OS specific sock_blocks function. * 181cb16 There should be no error response code with return value 0 in recv_line. * b615502 Add more debugging to recv_line parse failure. * e95695d Check for errors on stratum recv for any recv return value less than 1 and only parse the response if it's positive. * baa5a6e (tag: v3.0.0) Further fix distdir for hexdump.c * 3d835fc Fix build and distdir. * a062604 Bump version to 3.0.0 * 78a6087 Update NEWS for 3.0 release. * cd9cd96 Merge branch 'nocpu' |\ | * f4b2790 Remove all CPU mining code. * | 1253c97 Update NEWS for 2.11.4 release. |/ * e999caa Merge pull request #427 from gzm55/master |\ | * e00a1b0 compile on win32 |/ * 31e5195 Update SCRYPT README with improved hashrates for 7970. * 856aa49 Use copy_time helper throughout cgminer.c * d2abaa8 Provide wrappers for commonly used timer routines with API stats. * 170a4ae Avoid one cgtime call in sole_hash_work. * 3cc4223 Fulltest is true if value is <= target. * 3c61a51 Use system host to endian functions for clarity in fulltest. * 4597c0a Provide endian_flipX functions to avoid special casing big endian in cgminer.c * 8d81f1d Provide a flip128 helper to simplify big endian flipping. * c351f8d Use flip helpers to simplify code for calculation of midstate. * f50ae46 Use flip32 function instead of open coding it in gen_stratum_work. * 62a1403 Move util.c exports to util.h * 5b702bc Fix warning on building avalon on win32 * 849567c Use cgtime in driver-avalon.c * 79df6b9 Use cgtime in driver-icarus.c * 9eb851c Use cgtime in driver-bitforce.c * 9390101 Use cgtime in logging.c * 3ab81ee Use cgtime in usbutils.c * 0face98 Use cgtime in driver-opencl.c * 207e93d Use cgtime wrapper in driver-modminer.c * 3cb24c2 Use cgtime in driver-ztex.c * 564fd36 Use cgtime in compat.h * 17ee0eb Use cgtime instead of gettimeofday in fpgautils.c * bb964b4 Replace gettimeofday usage in cgminer.c with cgtime * 3d7f824 Create a cgminer specific gettimeofday wrapper that is always called with tz set to NULL and increases the resolution on windows. * 3b5ef34 Add high resolution to nmsleep wrapper on windows. * 57e5bfb Set default ocl work size for scrypt to 256. * 92c61cb Merge pull request #426 from gzm55/master |\ | * 7ada22a define le32toh if needed | * 5ba07b9 Merge remote-tracking branch 'upstream/master' | |\ | |/ |/| * | d5981f8 Merge pull request #425 from BitSyncom/avalon |\ \ | * | 8e8313c fliter out the wrong result from adjust fan code |/ / | * 19be008 Merge remote-tracking branch 'upstream/master' | |\ | |/ |/| * | 5315838 (origin/avalon-dev) Restart threads on the rare chance we found the block ourselves. * | 76ecffb Add more FAQs about crossfire. * | a3bbe0e Set last device valid work on adding device. * | 3fa4a9f Increment last device valid work count in submit_nonce to cover scrypt. * | d49ecf1 Set opt_scrypt drv max diff for correctness. * | bc0e714 Make scrypt submission use the submit_nonce code, with nonces matching endianness. * | c1ff90a Do testing for HW errors on submit nonce for both scrypt and sha. * | 6b714dd Increment hardware error count from the one site. | * 50cf259 compile avalon driver on win32 and win64 |/ * 2dea047 Merge branch 'master' of github.com:ckolivas/cgminer |\ | * 2029d82 Merge pull request #423 from gzm55/master | |\ | | * 473865d Merge remote-tracking branch 'upstream/master' | | |\ | | * \ 57fcd07 Merge remote-tracking branch 'upstream/master' | | |\ \ | | * | | ac053ed build out of source dir * | | | | a6250fb Rename scrypt regenhash function for consistency. |/ / / / * | | | daea9c9 Add new best share info to verbose logging. | |_|/ |/| | * | | 8bb52b4 Merge branch 'master' of github.com:ckolivas/cgminer |\ \ \ | * | | 6ffba7e Convert error getting device IDs in ocl code to info log level only since multiple platforms may be installed and the error is harmless there. | * | | a797898 Unnecessary extra array in ocl code. | * | | 42e8eac (origin/avalon-dev) Merge branch 'master' into avalon-dev | |\ \ \ | | * | | 1c2621a Add MAC FAQ. | | * | | 65e7dcc Add more FAQ details. | * | | | 8e73c47 Further driver FAQs. | * | | | 9c48d68 Merge branch 'master' into avalon-dev | |\ \ \ \ | | | |_|/ | | |/| | | * | | | f6284f7 Merge branch 'master' into avalon-dev | |\ \ \ \ | * | | | | 0e48657 More FAQs. * | | | | | 1a7fc4e Add notice for when network diff is changed. | |_|_|/ / |/| | | | * | | | | b4bc5e2 Check for work restart after disable in the hash queued work loop since it may be a long time before we re-enable a device. * | | | | fdfb77e Unconditionally test for many wrong results on avalon and reset to avoid passing a corrupt avalon result to temperature code. | |_|/ / |/| | | * | | | d41d210 Set device_diff for queued work or there will be no diff1 share count. | |/ / |/| | * | | dbab07a Only reset an avalon device with no results when there are no results consecutively. * | | 245fbe1 More FAQs. |/ / * | 36bb133 Cleanup when stratum curl fails to initialise. * | 81549c5 Avoid applog in recalloc_sock. * | 69c203d Avoid applog under stratum_lock in recv_line. * | e4effc3 Avoid applog under stratum_lock in __stratum_send. * | d248e7a Put spacing around locking in util.c for clarity. * | 67ebf45 Avoid applog under cg_wlock. * | 8d22ca1 Put spacing around locking code for clarity. * | 3209c11 Avoid applog under pool_lock. * | 51fbcfe Avoid more recursive locks. * | b948669 Avoid applog while ch_lock is held. * | 29f0ac7 Avoid recursive locks in fill_queue. * | ec9390d Variable is already initialised in global scope. * | 0488a85 More GPU faqs. * | 2a73254 More README faqs. * | 4c19604 Yet more README faqs. * | b1dfc12 Add more faqs to README. * | 1b0b3d6 Merge branch 'master' into avalon-dev |\ \ | * \ c17a175 Merge branches 'avalon-dev' and 'master' of github.com:ckolivas/cgminer | |\ \ | | * \ 64ec066 Merge pull request #417 from kanoi/bflsc | | |\ \ | | | |/ | | |/| | | | * b7b5b9d usbutils more stats for bflsc | | | * 8959f8d cgminer.c -S help to only say Icarus | | * 7231f7f Fix warning on 32bit. | | * c1ec55a Avoid curl_easy_cleanup on old curl versions in setup_stratum_curl as well. | | * 220eb85 Rationalise and simplify the share diff and block solve detection to a common site. | | * d86f7b7 Fix warning with no curses built in. | | * 23c0241 Bump version to 2.11.4 | | * 1e14748 Small timeouts on select() instead of instant timeout increase reliability of socket reads and writes. | | * 7783ab5 Only get extra work in fill_queue if we don't have any unqueued work in the list. | | * c6ca12f Differentiate socket closed from socket error in recv_line. * | | c62b985 Wrap result wrong tests in avalon scanhash in unlikely() and only consider a hash count of zero wrong if a restart wasn't issued. * | | 0eb81d6 Merge pull request #422 from BitSyncom/avalon |\ \ \ | * | | 874b25f avalon: if result_wrong >= get_work_count jump out the read loop * | | | 6400088 Fix warning on 32bit. | |/ / |/| | * | | 0805f7d Merge pull request #421 from BitSyncom/avalon |\ \ \ | |/ / | * | dd1c8bd fix the fan control on max temp2/3 | * | f689301 for some reason network down. one simple cgminer command: "cgminer -o 127.0.0.1:8888 -O fa:ke --avalon-options 115200:32:10:50:256" can idle the avalon for safe power and protect chip | * | d57a4e0 if hash_count == 0; reinit avalon, fix the 0MHS bug use the max value of temp1 and temp2 for fan control |/ / * | 6c5c6e9 Reinstate the matching_work_count per subdevice on avalon based on the work subid. * | c2a6392 Avalon driver is missing the drv_id. * | 5c7a32f Rationalise and simplify the share diff and block solve detection to a common site. * | 0c35f67 Make the avalon array size a macro. * | 8a90b5d Use replacement of work items in the avalon buffer as needed instead of flushing them. * | 1c4d1ac Reinstate wrong work count to reset avalon regardless and display number of wrong results. * | 47309e1 Revert "The result_wrong measurement for avalon is continually leading to false positives so remove it." * | af65870 select() on serial usb in avalon does not work properly with zero timeout. * | 08c0ac2 The result_wrong measurement for avalon is continually leading to false positives so remove it. * | 64ecfa5 Revert "Use only 2 queued work arrays in avalon." * | af6111f Use no timeout on further reads in avalon_gets * | ad55fbf Do sequential reads in avalon_get_reset to cope with partial reads. * | 385f1cd Show read discrepancy in avalon_get_reset. * | 4e2b107 Reuse avalon_get_work_count variable. * | fb34cb1 Check for AVA_GETS_RESTART when deciding if avalon has messed up. * | 8b0531f Make the detection of all wrong results on avalon much more conservative to avoid false positives on work restarts. * | c6b9a3e Show error codes on select and read fail in avalon. * | 5e3474b If we get a restart message in avalon_gets still check if there's a receive message to parse first without a timeout before returning AVA_GETS_RESTART. * | 0ea9d68 Use only 2 queued work arrays in avalon. * | afd6f42 avalon_gets is always called from the one call site so inline it. * | 3671b2c The read_count is unused by the avalon get result code and no longer required for avalon reset so simplify code removing it. * | dec90b9 Use a separate avalon_get_reset function for resetting avalon instead of using avalon_get_result. * | ea70300 The current hash count returned by avalon scanhash is just an obfuscated utility counter so make it explicit. * | 53a047d Check for a restart before a timeout in message parsing code in avalon. * | 0da8868 We should check for a restart message before checking for a timeout in avalon scanhash. * | 8e69d75 Store the subid for the work item in avalon. * | d9ba82c Fix record_temp_fan function in avalon driver. Patch by Xiangfu
* | 8b2b9b3 Remove inappropriate memset of struct avalon result which was corrupting fan values.* | e9b6ff8 Fix warning with no curses built in. * | 85a4dfd Bump version to 2.11.4 * | 293b94c Add API support for Avalon. * | 809fec9 Only do_avalon_close once on multiple errors. * | 689f744 Reset the result_wrong count on block change in avalon scanhash to prevent false positives for all nonces failed. * | ae4ee34 Small timeouts on select() instead of instant timeout increase reliability of socket reads and writes. * | dd1a0d6 Rotate the avalon work array and free work on AVA_SEND_BUFFER_EMPTY as well. * | 97bad1e Only get extra work in fill_queue if we don't have any unqueued work in the list. * | 5f041e1 Don't get any work if our queue is already full in avalon_fill. * | 2f89eef Differentiate socket closed from socket error in recv_line. * | b2106b3 Free avalon->works in the event we call avalon_prepare on failure to initialise. * | be5a20c Fix warnings. * | 67be00e Create an array of 4 lots of work for avalon and cycle through them. * | 6752c24 Remove unused per unit matching work count for avalon. * | 7dda3e4 Rename the confusing avalon_info pointer. * | 2f75a5d Simplify avalon scanhash code using the new find_queued_work_bymidstate function. Partially works only. * | 67c5da4 Members of cgpu_info for avalon are not meant to be in the union. * | 2f371f1 Use correct struct device_drv for avalon_drv. * | 23fa953 Check enough work is queued before queueing more in avalon_fill. * | f0806c6 Actually put the work in the avalon queue. * | 1802302 Rneame avalon_api to avalon_drv. * | 71bae00 First draft of port of avalon driver to new cgminer queued infrastructure. * | dea35d3 Add Makefile entry for driver-avalon. * | 017e7cb Add configure support for avalon. |/ * 86821eb Fix mingw cross compilation being broken by win32/win64 patches. * e9a65bb Only update hashrate calculation with the log interval. * 97a9172 Update the total_tv_end only when we show the log to prevent failure to update logs. * ee13924 Minor README updates. * e62cb4e Add example 7970 tuning for scrypt in readme. * 71c8343 Update driver recommendations. * 9804d2d Add extensive GPU FAQs for the flood of new Scrypt miners. * 2675c5c Remove help option for cpumining in build environment. * 00f7688 Remove scripts that make it too easy to compile CPU mining support. * 1a8bfad Merge pull request #416 from gzm55/master |\ | * c9ae715 Compile CPU mining for win32 and win64 |/ * dfea623 Merge branch 'master' of github.com:ckolivas/cgminer |\ | * b81ef94 Merge pull request #415 from kanoi/bflsc | |\ | | * ed480de LTC text typo * | | 6cdbf6e Remove references to CPU mining from README. |/ / * | 5f56734 Merge branch 'master' of github.com:ckolivas/cgminer |\ \ | * \ 0d8c3fe Merge pull request #412 from BitSyncom/avalon-sync | |\ \ | | * | 9619d04 api-example.c: add a -o option for output pure message | | / | * | 76712c1 Merge pull request #414 from kanoi/bflsc | |\ \ | | |/ | | * f080db5 generic work structure flags for BFLSC (and usable by other drivers if needed) | | * ea327f7 work queues - remove new but unnecessary functions * | | b3e734e Show share hash as little endian as needed. |/ / * | ea4cf57 Merge pull request #413 from kanoi/bflsc |\ \ | |/ | * 73616fb miner.h missing extern | * 131e200 functions for handling work queues | * 8dd1ed2 usbutils extra message requirements | * b3ae0f1 find_work() to find work in devices work queue * e95813c Make hashmeter frequency for hash_queued_work match sole_work. * 86acbdd (origin/master, origin/HEAD, cgminer) Update links and recommended SDKs. * 48a1d8a Update scrypt readme re drivers and sdk. * 125194d Merge pull request #411 from kanoi/bflsc |\ | * cef96dd usbutils.c usb_cmdname() usb_cmds -> string name | * e88652b BFL FPGA Windows timeout set to 999ms * | 4aea663 Merge pull request #410 from kanoi/bflsc |\ \ | |/ | * 96ac718 AUTHORS - spam update time (one year since the last) * | b8f4fa4 Update README for x970 memdiff values. * | 11dd8ac Update README to match changes to display. |/ * 6fab6c6 Merge pull request #409 from kanoi/bflsc |\ | * 956d444 (origin-pull/409/head, kanoi/bflsc) avalon usbutils requirements * | 6c418f4 Remove increasingly irrelevant discarded work from status lines. * | 886df16 Remove increasingly irrelevant queued and efficiency values from status and move WU to status line. * | 1a19729 Allow cgminer to start if usb hotplug is enabled but no devices yet exist. * | 132ee4c Do not scan other gpu platforms if one is specified. * | 40dda83 (origin/2.11, avalon/master) Update README for sync objects on windows. * | 795be94 Update README about intensity. * | e6ac80c Add information for setting gpu max alloc and sync parameters for windows with scrypt. * | 1ed86de If the hashmeter is less than the log interval and being updated by the watchdog, don't update the hashrate. |/ * c247ba0 (tag: v2.11.3, kanoi/master, kanoi/main) Bump version to 2.11.3 * c5b5e73 Update docs and reorder README to show executive summary near top. * 072ffbb Update the hashmeter at most 5 times per second. * bfb85c4 Merge pull request #408 from kanoi/bflsc |\ | * e07d21b (origin-pull/408/head) usbutils use it's own internal read buffer * | 576e22b Update scrypt readme with newer information and to match changes in code. |/ * c24ffa1 Merge pull request #407 from kanoi/bflsc |\ | * b29828e (origin-pull/407/head) usbutils allow read termination match to be a string | * c63ae9d usbutils spelling :) * | 13e19de Calculate work utility for devices that support target diffs of greater than 1, and update scrypt code to use it. |/ * d7d630b Set default GPU threads to 1 for scrypt. * 21a36f4 Connect backup stratum pools if the primary pool cannot deliver work. * 584fc01 Use a new algorithm for choosing a thread concurrency when none or no shader value is specified for scrypt. * d0f18e8 Do not round up the bufsize to the maximum allocable with scrypt. * 3c3fbdc Remove the rounding-up of the scrypt padbuffer which was not effectual and counter-productive on devices with lots of ram, limiting thread concurrencies and intensities. * 1c6d8a3 bufsize is an unsigned integer, make it so for debug. * e10a704 Merge pull request #406 from kanoi/bflsc |\ | * 2ce62f3 (origin-pull/406/head) add a dummy ztex to usbutils so cgminer -n lists ztex also | * 28f515e nDevs required for -n with usb | * a6f17cb USB device list - convert some common error numbers to messages * | 8d27ecf Merge branch 'master' of github.com:ckolivas/cgminer |\ \ | |/ | * e5a5be0 Merge pull request #405 from kanoi/bflsc | |\ | | * 26341bb (origin-pull/405/head) USB -n 'known' text only without ---usb-list-all | | * b21747b USB modify -n and --usb-dump to only show known devices or use new --usb-list-all option to see all | |/ * | 5a2c2a7 Update the hashmeter once per second but only display the extra logs every opt_log_inteval. |/ * e9a9a51 Merge pull request #404 from kanoi/bflsc |\ | * 1c04d14 (origin-pull/404/head) cgminer -n to include a USB device list | * 154e4f4 usbutils allow call of usb_all() from other code * | b6e3d5b Make pool adding while running asynchronous, using the pool test thread functionality. * | 1a74bc5 Only curl easy cleanup a stratum curl if it exists. * | 6ce5d8c Merge branch 'master' of github.com:ckolivas/cgminer |\ \ | * \ ffc8681 Merge pull request #403 from kanoi/bflsc | |\ \ | | |/ | | * 6d629d6 (origin-pull/403/head) do usb_initialise() after the started message so we see it | | * 6acda93 --usb-dump display brief dump if value = 0 | | * 3f50e87 USB add --usb options to limit USB device selection v0.1 * | | 195ea63 Sacrifice the ram of curl handles in stratum disconnects when we have built with old libcurl to avoid crashes. |/ / * | b5b3ca4 Convert gbt_lock to a cg_lock. * | b8ed231 Add intermediate variants of cglocks that can be up or downgraded to read or write locks and use them for stratum work generation. * | 26ddd1f Move the stratum and GBT data to be protected under a new cg_lock data_lock. * | fd87825 Convert the ch_lock to cg_lock. * | 0bbaaa9 Convert the control_lock to a cg_lock. * | 74164a3 Remove unused qd_lock. * | 801a38d Merge branch 'master' of github.com:ckolivas/cgminer |\ \ | * \ 542aef4 Merge pull request #402 from hocuscapocus/patch-1 | |\ \ | | |/ | |/| | | * 3aa6fd7 (origin-pull/402/head) Update README | |/ * | 18fc2df Implement cg_lock write biased rwlocks. |/ * 590a13d (tag: v2.11.2) Bump version to 2.11.2 * 767d6df Whitelist AMD APP SDK 2.8 for diablo kernel. * e4b6635 Update NEWS. * 87b62bd Cope with the highest opencl platform not having usable devices. * 8c65897 Merge branch 'master' of github.com:ckolivas/cgminer |\ | * 15b4870 Merge pull request #401 from kanoi/bflsc | |\ | | * 30e7040 (origin-pull/401/head) usb_cleanup() without locking * | | 5412323 Fix memory leak with share submission on GPU work structures as discovered by twobitcoins. * | | eb4030f Update NEWS. |/ / * | 8ae743f Merge pull request #400 from kanoi/bflsc |\ \ | |/ | * f24fab3 (origin-pull/400/head) Show pool number in switch message * | 66c567a Use curl_easy_cleanup to close any open stratum sockets. |/ * e0196a3 Don't start testing any pools with the watchpool thread if any of the test threads are still active. * 7e3ca57 Set sockd to false should curl setup fail on stratum. * 56068d6 Close any open sockets when reusing a curl handle and reopen the socket whenever we're retrying stratum. * 81c0212 Set pool died on failed testing to allow idle flag and time to be set. * c618d86 Remove unused pthread_t typedefs from struct pool. * 6c77e9a Perform pool_resus on all pools that are found alive with the test pool threads. * d932a36 Use pool_unworkable in select_balanced as well. * 90a1114 Differentiate pool_unusable from pool_unworkable. * 3b84131 Keep a connection open on higher priority stratum pools to fail back to them. * f3ce577 Rename threads according to what pool they're associated with as well. * 9b34d82 Set the wrong bool in pool_active * de28944 Revert "Rollback breakage to 81567e515707891837f52bc3aac7d5916dfff5a2" * 8630525 Merge pull request #399 from kanoi/bflsc |\ | * efb2403 (origin-pull/399/head) API no longer ignore send() status | * 1eca047 API make the main socket non-static * | 8c87807 Start the stratum thread only if we successfully init and authorise it, otherwise unset the init flag. * | e746ed6 Make the initialisation of the stratum thread more robust allowing the watchpool thread safe access to it after the stratum thread is started. |/ * b45a070 (tag: v2.11.1) Bump version to 2.11.1 * 88853a2 Comment out driver-bflsc.c file from Makefile.am till one exists. * efe4898 Update NEWS. * 09c02b1 Shorten the time before keepalive probes are sent out and how frequently they're sent with stratum curls. * d7c4be3 Only set stratum auth once to prevent multiple threads being started. * 3db4d6f Display select return value on select fail in stratum thread. * 501f4cd Clear the socket of anything in the receive buffer if we're going to retry connecting. * a886399 Rollback breakage to 81567e515707891837f52bc3aac7d5916dfff5a2 * a5d35e8 Only bypass unusable pools if they're not the selected ones. * 1468feb Find the first usable pool in preference to the current pool in select_pool for work. * ade8c6c Add a pool_unusable function which checks if a pool is stratum but not active to use within switch_pools. * 81567e5 Perform pool resus on pools that were not set as the initial pool at startup. * c7c21e6 Revert "Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools." * 370e8fc Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools. * e501db1 Allow pools to be resuscitated on first startup by the watchpool thread. * 5221662 Check all pools simultaneously at startup switching to the first alive one to speed up startup. * c9b4f5c Revert "Cope with out of order messages coming in upon attempting to auth_stratum." * ed903dd Clear just the socket buffer when we don't care what is left in a stratum socket. * fbb25c4 Clear the stratum socket whenever we are closing it since the buffer is going to be reused. * 1255300 Do not continue work from a stratum pool where the connection has been interrupted. * 0810212 Reset stratum_notify flag on suspend_stratum as well. * 07ae617 Close any sockets opened if we fail to initiate stratum but have opened the socket. * 6875dc4 Close any existing stratum socket if we are attempting to restart stratum so the pool knows the connection has gone. * bba99bd Show mechanism of stratum interruption if select times out. * 011ea64 Make stratum connection interrupted message higher priority to be visible at normal logging levels. * 237f67c Cope with out of order messages coming in upon attempting to auth_stratum. * 96ae17a Merge pull request #398 from kanoi/bflsc |\ | * f8b4b47 (origin-pull/398/head) API-README update for ASIC changes | * 0eafc8b API add 'Network Difficulty' to 'coin' | * 540f3e8 Setup BFLSC support | * 419083a API use control_lock when switching pools * | e315179 Implement client.show_message support for stratum. * | 0be6e9e Make sure to retry only once with noresume support for stratum. * | f4892a4 Merge pull request #397 from kanoi/bflsc |\ \ | |/ | * cb49f3c (origin-pull/397/head) usbutils.c copy full size to 'Last Command' * | 386ea2d Instead of keeping track of when the last work item was generated to keep stratum connections open, keep them open if any shares have been submitted awaiting a response. * | 82fce46 Merge pull request #395 from kanoi/bflsc |\ \ | |/ | * 2f6660e (origin-pull/395/head) configure - set USE_USBUTILS when usbutils is required and use it in the code * | 016f065 Clear last pool work on switching pools if the current pool supports local work generation or we are in failover only mode. |/ * 2fe415f Merge pull request #394 from kanoi/main |\ | * 120e9a0 (origin-pull/394/head) make rw locks: mining_thr_lock and devices_lock | * f1ab8ea Release MMQ device only once (not 4 times) | * 1bfc712 README --hotplug | * f8e7012 api.c fix MSG overlap | * be8cadb Hotplug - allow setting interval via --hotplug or API | * 97cb77d curses - fix - put a dev_width inside #ifdef | * aed1e51 usb_cleanup() use correct locking mechanism | * e35e8ae Implement and use usb_cleanup() on shutdown or restart | * 5d3faba miner.php report 'Last Valid Work' as time before request | * 41f099e API - return Last Valid Work | * c14f2ec API V1.25 - add 'Last Valid Work' time for each device * | c45096d Merge pull request #381 from denis2342/hw_errors |\ \ | * | f530615 (origin-pull/381/head, denis2342/hw_errors) driver-ztex: only reset errors if there are some | * | 8be5da3 driver-ztex: react to new work in 10ms and not 250ms | * | f553c50 ztex: if we had only errors in one round we do not count the errors | / * | 59261a8 Merge pull request #393 from kanoi/main |\ \ | |/ | * cc3869e (origin-pull/393/head) api -> drv * | 0601f36 Merge pull request #392 from kanoi/main |\ \ | |/ | * 00489f4 (origin-pull/392/head) ZTX bug set missing drv_id | * 47c6f91 (origin-pull/391/head) FPGA-README Zadig hints | * 8800da6 USB linux rules for libusb to give privs to non-root users * | cb9523d Fix grammo * | 4a03401 Merge pull request #390 from kanoi/main |\ \ | |/ | * 5e4ba10 (origin-pull/390/head) FAQ /dev/ttyUSB* now only for Icarus |/ * 0d64737 (tag: v2.11.0) Bump version to 2.11.0 * 4639aad Update NEWS. * 357294a Merge branch 'usb-dev' |\ | * 52995e2 (origin/usb-dev) Merge pull request #389 from kanoi/bflsc | |\ | | * f56a0fb (origin-pull/389/head) API always report failed send() replies | | * 42a01e7 Update diff stale: total and pools when stratum throws away shares | | * 9136bfc (origin/queued_work) Merge pull request #388 from kanoi/bflsc | | |\ | | | * 3515b6e (origin-pull/388/head) BFL stop 1st init command if no device | | | * add1dfb Merge remote-tracking branch 'conman/queued_work' into test | | | |\ | | | |/ | | |/| | | | * 4266245 Merge remote-tracking branch 'conman/master' into bflsc | * | | b2b0d10 Merge branch 'master' into usb-dev | |\ \ \ | * \ \ \ 5abcf06 Merge branch 'master' into usb-dev | |\ \ \ \ | * \ \ \ \ 6bf7962 Merge branch 'master' into usb-dev | |\ \ \ \ \ | | |_|_|/ / | |/| | | | | * | | | | fce5434 Add a get_queued function for devices to use to retrieve work items from the queued hashtable. | * | | | | f910476 Merge branch 'usb-dev' into queued_work | |\ \ \ \ \ | | * | | | | 22a50a5 Merge branch 'usb-dev' of github.com:ckolivas/cgminer into usb-dev | * | | | | | fda6d46 Add the choice of hash loop to the device driver, defaulting to hash_sole_work if none is specified. | * | | | | | 254e25a Add comments. | * | | | | | c80c65e Add a driver specific flush_work for queued devices that may have work items already queued to abort working on them on the device and discard them. | * | | | | | 294cda2 Flush queued work on a restart from the hash database and discard the work structs. | * | | | | | e8e88be Create a central point for removal of work items completed by queued device drivers. | * | | | | | 95b2020 Create a fill_queue function that creates hashtables of as many work items as is required by the device driver till it flags the queue full. | * | | | | | 5e3253a Create the hash queued work variant for use with devices that are fast enough to require a queue. | |/ / / / / | * | | | | 649f293 Update copyright year. | * | | | | e414cd0 Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle, not opt_log_interval. | * | | | | ab0cc58 Merge branch 'master' into usb-dev | * | | | | 040cf6d Merge pull request #385 from kanoi/hotplug | |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | * | | | 00be617 (origin-pull/385/head) API.java allow partial reads | * | | | | 48c8413 Merge pull request #384 from kanoi/hotplug | |\ \ \ \ \ | | |/ / / / | | * | | | c432c65 (origin-pull/384/head, kanoi/hotplug) debug_cb buffer type warning | * | | | | 77d1496 Merge branch 'usb-dev' of github.com:ckolivas/cgminer into usb-dev | |\ \ \ \ \ | | * \ \ \ \ a691cc5 Merge pull request #383 from kanoi/hotplug | | |\ \ \ \ \ | | | |/ / / / | | | * | | | b996815 (origin-pull/383/head) MMQ rewrite the last of the old scanhash loop and drastically reduce CPU | | |/ / / / | * | | | | 20b5ebb hash_sole_work can be static | |/ / / / | * | | | c28e223 Merge branch 'master' into usb-dev | * | | | 61a3e1b Merge pull request #382 from kanoi/hotplug | |\ \ \ \ | | * | | | 5d98685 (origin-pull/382/head) add 'count' to cumstomsummarypage 'calc' | | * | | | 530e3b0 hotplug use get_thread() where appropriate | | * | | | 6fb32f7 convert sleep(const) to nmsleep() | | * | | | b9c19a9 remove empty #ifdef | | * | | | bc57552 call a separate get_devices() with locking, as required | | * | | | 1c69417 usbutils - avoid free cgusb twice | | * | | | 983fe2b usbutils hotplug v0.1 | | * | | | 296eab2 Report USB nodev as ZOMBIE on the screen | * | | | | dafc2f7 Abstract out the main hashing loop to allow us to use a separate loop for devices that are fast enough to require queued work. | * | | | | 81b84d4 Provide a noop thread_enable function for drivers that don't support it. | * | | | | b884d11 Provide a noop thread_shutdown function for drivers that don't support it. | * | | | | 2c28eef Provide a noop hw_error function for drivers that don't support it. | * | | | | 2105371 Provide a noop prepare_work for drivers that don't support it. | * | | | | b9f5b48 Provide a noop thread_init for drivers that don't support it. | * | | | | 8e12a05 Provide a noop can_limit_work for devices that don't support it. | * | | | | 5b22f09 Provide a noop thread_prepare function for drivers that don't use thread_prepare. | * | | | | 5d581cb Use blank_get_statline_before for GPU devices that don't support adl monitoring. | * | | | | 2c3c9e5 Provide a noop get_stats function for drivers that don't support it. | * | | | | de48ccc Provide a blank get_statline for drivers that don't support it. | * | | | | b3d9477 Provide a blank get_statline_before function for drivers that don't have one. | * | | | | f2380ea Fill drivers missing reinit_device with a noop version. | |/ / / / | * | | | 3c91b29 Merge branch 'master' into usb-dev | * | | | 03dff61 Merge branch 'master' into usb-dev | * | | | 5c1f3b3 Merge branch 'master' into usb-dev | * | | | 0244998 Merge branch 'master' into usb-dev | * | | | 5d122ca Provide wrappers for grabbing of thr value under the mining_thr_lock. | * | | | 08ece33 Merge branch 'master' of https://github.com/kanoi/cgminer into kanoi-usb | |\ \ \ \ | | * | | | 7abf30b (origin-pull/380/head) distinguish between drv and it's id enum now called drv_id | * | | | | 70b5b84 Merge branch 'master' of https://github.com/kanoi/cgminer into kanoi-usb | |/ / / / | * | | | 61ec1fe mutex all access to mining_thr | * | | | 212f32e Split thr_info array into control_thr and mining_thr pointers so more mining threads can be added later | * | | | 8fbc4da MMQ must copy USB bus:device due to usbinfo change | * | | | 7388942 Stratum disconnect shares - count total against stale | * | | | 05157e0 USB in linux use the expected kernel config to check and detach - and set the configuration in linux also | * | | | 128e327 USB system wide device locking on windows | * | | | 16fa090 usbutils stats_initialised not set | * | | | 028da16 usbutils free found if not used | * | | | 8297304 USB device locking NOOP for windows (for now) | * | | | cb3e3eb USB system wide device locking on linux | * | | | 59c73ae USB usb_init() consistent err/warning/debug messages | * | | | a59b0c0 usbutils.c use correct config from found (not 0) | * | | | d057791 Capitalise driver long names used in applog messages | * | | | 7fbc377 USB move usbdev info that needs to stay around into usbinfo | * | | | 8f4340b BFL allow a 2nd init attempt if the 1st reply is unknown | * | | | 3f4d9fc BFL use #defined strings for work replies | * | | | 383a21b miner.php trim trailing zeros on some of the STATS numbers | * | | | 9447610 ICA use drv->name | * | | | baf3aca usbutils.c release_cgpu() sets nodev | * | | | c1eae36 API stats - include pool network bytes + in miner.php | * | | | 92abe36 MMQ include USB devpath in detection error messages | * | | | a52522a MMQ it's a bitstream | * | | | ea807cf USB BFL transfer is only 64 bytes in a USB1.1 socket | * | | | 24525ed api.c update copyright year | * | | | 34bcc1c USB automatically handle losing the device and report nodev in the API | * | | | 4f460ca Best Share readme | * | | | f53549a BFL minimise first initialisation failure delay since it is common | * | | | 0b3d8c8 API zero - zero statistics - all or bestshare - with optional on screen summary | * | | | bd5f20e api.c pgaenable not re-enabling the device - plus related debug | * | | | bad942e increase device status string length | * | | | f9e04a3 device_drv - allow .name to be changed before add_cgpu() | * | | | a4e95cf device_drv missing drv for cpu and incorrect test | * | | | a344deb rename device_api -> device_drv and all related api -> drv and add a device_drv->drv enum for identifying which driver each is | * | | | 7724989 diffexactone pool diff1 used for share value calculation is ffffffff... not 100000000... :P | * | | | f6bde14 miner.php user/pass fix 'usr' is readonly | * | | | 1b2654e miner.php optional user/pass login restrictions | * | | | 1ce817d (kanoi/icarus, kanoi/bfl, kanoi/api) Merge branch 'api' | * | | | e3db37a Merge branch 'bfl' | * | | | 44ec755 (origin-pull/377/head) BFL USB correct usb stats id | * | | | 211b0f4 BFL USB longer timeout | * | | | 07db1ed BFL USB api.c usbstats | * | | | 03c2cab BFL include all USB requirements | * | | | 70b47a7 BFL USB - README and FPGA-README | * | | | b099615 BFL report USB device numbers for init errors and allow faster 'reinit' | * | | | 040ec58 BFL USB build changes | * | | | cbf6c71 BFL libusb driver | / / / * | | | 580607c Update kernel file names signifying changes. * | | | 2c3a946 Update a pool's last work time when the work is popped as well as staged. * | | | 5c32a47 Merge pull request #375 from luke-jr/bugfix_cfgwrite_fnleak | |_|/ |/| | * | | b4cac54 Keep stratum connections open for 2 minutes after the last work item was staged to allow stray shares to be submitted on pool switching. | |/ |/| * | 3c949e5 Try to extract the sessionid associated with mining.notify on 3rd level array and submit it along with the userid to support mining resume, failing gracefully and restarting if the pool rejects it. * | d9d5a1a Speed up watchdog interval and therefore display updates to 2 seconds. * | 5a3b374 Update copyright dates. |/ * 3dcdb94 Cope with misread sessionid on stratum for now. * b1ae45f Use constants from the array of __constants throughout the diablo kernel. * f72fa03 Create a __constant array for use within diablo kernel. * d16d492 Fix --benchmark generating valid work for cgminer. * 6a0882f Use the sessionid as passed on stratum connect to attempt to resume a connection once and then clear it if it fails, to use a new connection. * 68d6910 Move to storing the nonce1 in the work struct instead of the sessionid for the now defunct first draft mining.resume protocol. * 7f595ca Use global constant arrays for all other constants used in scrypt kernel. * 9b6a518 Use global __constants for sha functions in scrypt kernel. * 6bb942f Use constants for endian swap macros. * f08c3f7 Revise scrypt kernel copyright notice. * 3d032ce Separate out additions in scrypt kernel. * 64f2c06 Reuse some Vals variables that can be assigned to constants earlier in the poclbm kernel, making for fewer ops. * 19725e7 Put all constants used in poclbm kernel into __const memory array to speed up concurrent reads on the wavefront.