NEWS 158 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263
  1. Version 2.10.4 - December 29, 2012
  2. - Change the pool stratum socket buffer to be dynamically allocated to
  3. accomodate any size coinbase and keep receiving data in recv line for up to 60s
  4. if no end of line has been received.
  5. - Differentiate socket full from sock full.
  6. - Allow stratum to startup without notify but check it is valid before creating
  7. stratum work.
  8. - Do not try to generate stratum work unless the notify command has succeeded.
  9. - Reset total diff1 shares when zeroing stats as well to show correct work
  10. utility.
  11. Version 2.10.3 - December 26, 2012
  12. - Do not give the share submission failure message on planned stratum
  13. disconnects.
  14. - Parse anything in the stratum socket if it's full without waiting. Empty the
  15. socket even if a connection is not needed in case there are share returns.
  16. - Provide a mechanism to zero all the statistics from the menu.
  17. - Display the current pool diff in the status line.
  18. - Display block diff in status line.
  19. - Generalise the code for solving a block to enable block solve detection with
  20. scrypt mining.
  21. - Generate the output hash for scrypt as well and use the one function to set
  22. share_diff.
  23. - Use the flip80 function in regeneratehash and the correct sized hash array.
  24. - Use one size for scratchbuf as a macro in scrypt.c
  25. - Stage work outside of the stgd lock to prevent attempted recursive locking in
  26. clone_available.
  27. - share_diff needs to be performed on a BE version of the output hash to work,
  28. leading to false best_share values as spotted by luke-Jr.
  29. - Remove the unused sha224 functions.
  30. - Use the flip functions in hashtest.
  31. - Simplify the setting of the nonce data field in work on submitting nonces.
  32. - Scrypt code does not enter the hashtest function.
  33. - Go back to cloning available work under staged lock.
  34. - Updated links to AMD APP SDK
  35. - Updated link to ADL SDK
  36. - scrypt_diff uses a uint64_t as well.
  37. - Correct target for stratum support with scrypt mining.
  38. - libztex: fixed a typo
  39. - libztex: check returnvalue of libusb_claim_interface() and release the
  40. interface in case of early exit
  41. Version 2.10.2 - December 19, 2012
  42. - Stop all work from the current pool if it's a stratum pool once it is
  43. disconnected since it will be invalid upon reconnecting.
  44. - Discard all staged work from stratum pools as well as the shares upon
  45. disconnection since all the work becomes invalid.
  46. - Use correct cbreak after 15 second delay when no pool is found alive.
  47. - MMQ missing firmware -> ERR not DEBUG
  48. - Allow stratum to work with scrypt.
  49. - MMQ ensure delta clock can never exceed limits
  50. - MMQ lowercase new string constants
  51. - MMQ add api pgaset for clock
  52. - API V1.23 - new pgaset command, to be used soon
  53. - Protect the best_share/best_diff values under control lock.
  54. - MMQ style police
  55. - MMQ count work check timeout failures
  56. - MMQ allow partial work replies and count them
  57. - Check a stratum pool hasn't gone dead while being a backup pool and missed
  58. having its idle flag cleared.
  59. - MMQ overheat: remove clockdown (doesn't help) + ensure no lost shares
  60. - API-README grammar
  61. - API-README explain custom page extensions in miner.php
  62. - miner.php add a sample group pool report
  63. - miner.php allow where,group,having on cumstom pages
  64. Version 2.10.1 - December 14, 2012
  65. - Check for EWOULDBLOCK when supported in send and recv as well.
  66. - Use the raw send() command instead of curl_easy_send since curl raw socket
  67. usage introduces random bugs on windows.
  68. - Use raw recv() command in place of curl_easy_recv since the curl
  69. implementation introduces random bugs on windows builds when the recv fails.
  70. - miner.php when displaying a single rig, add prev/next rig buttons if they
  71. exist, next to refresh
  72. - miner.php allow custom page joins for STATS
  73. - API show if pool has GBT (so people know not to use that pool)
  74. - miner.php - include windows easyphp link
  75. - driver-ztex: use the correct size for the swap array
  76. - API stats - display pool byte transfer stats
  77. - Pool store data transfer stats
  78. - README ModMiner dependency
  79. - Benchmark incorrect work size
  80. - ChangeLog refer to NEWS
  81. - MMQ handle over temp differently and hash longer
  82. - driver-ztex: search the complete noncerange based on the actual speed
  83. - README - update ModMiner details
  84. - API-README update
  85. - api use a dynamic io buffer, truncated before it reaches the current ~64k
  86. limit
  87. Version 2.10.0 - December 10, 2012
  88. - Include prctl header for thread renaming to work.
  89. - Set tv_idle time if a pool is not active when input from the menu.
  90. - usb display message when device is in use/another cgminer
  91. - libztex: avoid the use of libusb_error_name()
  92. - minor unlikely zero pointer test
  93. - BeaverCreek doesn't like BFI INT patching.
  94. - Only stratum pools that are idle need to be kicked via cnx_needed.
  95. - mmq - abbreviate the temperature numbers
  96. - Do not do any setup if opt_api_listen is disabled in api.c.
  97. - usbutils.c uninitialised usbstat for non-primary mmqs
  98. - Only set the lagging flag for select_pool() on failed getwork if we're not in
  99. opt_fail_only mode.
  100. - libztex: in case the selectFpga() failed set the selected fpga to unknown
  101. - Modified windows-build.txt to update git instructions.
  102. - libztex: use a function for the twice called firmware reset code
  103. - libztex: removed an unused struct member (ztex->valid)
  104. - driver-ztex: support for broken fpga on a multifpga board
  105. - Set the pool lagging flag on startup to avoid it being shown initially, and
  106. only unset it once the maximum number of staged work items has been reached.
  107. - Avoid recursive locking of the stgd lock.
  108. - Return value of keep_sockalive is no longer used.
  109. - Remove dependency on mstcpip.h for windows build by making curl version >=
  110. 7.25.0 mandatory on windows builds, and use curl functions for keepalive
  111. whenever possible instead.
  112. - Make main() the getwork scheduler once everything is set up, so that all app
  113. exits use the kill_work and quit paths.
  114. - ztex: more style and whitespace fixes
  115. - libztex: silenced another warning
  116. - Set successful connect to true on auth stratum to allow summary on exit from
  117. single stratum pool.
  118. - Only consider work stale for stratum of different job_id if it's not a share.
  119. - Increment version preempting changed version signifying different codebase to
  120. 2.9
  121. - Hash_pop should signal further waiters on its own pthread conditional in case
  122. there are multiple waiters.
  123. - Check the job_id has not changed on stratum work when deciding if the work is
  124. stale as might occur across disconnections.
  125. - Perform pool_resus on getwork pool that generates work in getwork_thread.
  126. - Set pool lagging message for getwork pool that falls to zero staged in getwork
  127. thread.
  128. - Stage extra work when the primary pool is a getwork pool without rolltime.
  129. - Do not try to clean up twice if kill message is given.
  130. - Only recalculate total_staged in getwork thread if required.
  131. - Include the correct config header in libztex and include it before other
  132. includes.
  133. - Implement a completely new getwork scheduler. Stage all work from the one
  134. thread, making it possible to serialise all requests minimising the number of
  135. getworks requested or local work generated. Use a pthread conditional to wake up
  136. the thread whenever work is removed to generate enough work to stay above the
  137. watermark set by opt_queue. Remove all remnants of the old queueing mechanism,
  138. deleting the now defunct queued count.
  139. - libztex: fixed some warnings and removed some whitespaces
  140. - libztex: silenced some warnings
  141. - Remove all references to the now unused workio_cmd structure.
  142. - Remove the old workio command queue thread, replacing it with a kill
  143. conditional to exit the program.
  144. - Remove getwork command from workio_cmd queues and do them directly from
  145. queue_request.
  146. - Begin tearing down the old workio command queues by removing submit commands
  147. from there and submit them asynchronously via their own threads.
  148. - Update windows build instructions.
  149. - Set pool probed to true on successful authorisation with stratum to avoid it
  150. being pinged later with pool_getswork.
  151. - driver-ztex: libztex_setFreq() must be called before ztex_releaseFpga()
  152. - driver-ztex: changed two pairs of malloc()/memset() to calloc()
  153. - libztex: Read bitstream file in 2kb blocks with simpler and faster code
  154. - Added the binary versions of ztex_ufm1_15d4.ihx and ztex_ufm1_15y1.ihx
  155. - Trivial space removal.
  156. - libztex: Add firmware download support for ZTEX 1.15d and 1.15x
  157. - libztex: Factor out local version of libusb_get_string_descriptor_ascii()
  158. - Shut up some boring old cpu warnings.
  159. - Style changes.
  160. - Allow pool active to be called on stratum or disabled pools in the watchpool
  161. thread if the pool has not been probed.
  162. - libztex: Make log messages say bitstream when refering to bitstreams
  163. - libztex: Don't return error when a bitstream was already configured
  164. - libztex: Read bitstream file in 64kb blocks with simpler and faster code
  165. - libztex: Verify that the mining firmware is not a dummy firmware
  166. - libztex: Match mining firmware ZTEX descriptor against the dummy firmware
  167. - Combine shared padding into one char.
  168. - libztex: Start download sequence only after reading in the new firmware
  169. - libztex: Download mining firmware to all devices with dummy firmware
  170. - lock (most of) the threaded statistics updates
  171. - README stats don't add up
  172. - usbutils.c remove compiler warning
  173. - Make need connection return true if a pool is idle.
  174. - API add Best Share to summary
  175. - Check on creating new GBT work if the structures are up to date and update
  176. them as required rather than regularly.
  177. - Update windows build instructions.
  178. - Enable backup stratum connections for getwork when the primary pool doesn't
  179. have longpoll aka solo mining.
  180. - Check for correct absence of opt_fail_only in cnx_needed.
  181. - Remove unused variable.
  182. - The specification for stratum has been elaborated to say that a changed diff
  183. applies only to new work so do not retarget when submitting shares.
  184. - Use a variable length string array in submit_upstream_work to cope with
  185. massive GBT submissions.
  186. - API lock access to some summary statistics (and copy them)
  187. - Suspend stratum connections to backup pools when there is no requirement to
  188. potentially grab work from them.
  189. - Fix missing export for RenameThread.
  190. - enumerate the mining threadnames
  191. - MMQ avoid possible number overrun crashes
  192. - mmq usb v0.4 + api usb stats
  193. - setting the name of the threads for linux,freebsd,openbsd and osx code is
  194. borrowed from bitcoins util.c, so it is already tested
  195. - Don't show broken WU value with scrypt mining.
  196. - Style police.
  197. - Remove unused getwork times in getswork.
  198. - Fix readme wordwrap.
  199. Version 2.9.6 - December 2, 2012
  200. - Make gen_stratum_work more robust by using a dynamically allocated array for
  201. the header in case bogus data is sent by the pool to avoid overflowing a static
  202. array.
  203. - scrypt_diff now returns a uint64_t
  204. - Support monitoring and reporting much higher diffs for scrypt mining,
  205. truncating irrelevant zeroes from displayed hash.
  206. - Pass ostate values around in scrypt to be able to extract full hashes if
  207. needed later on.
  208. - Since we will be using calloc_str to put a string into it, convert the
  209. function to calloc_strcat which does it automatically.
  210. - Revert "Handle crash exceptions by trying to restart cgminer unless the
  211. --no-restart option is used."
  212. - Count longpoll and GBT decodes as queued work since the count otherwise
  213. remains static.
  214. - Use the string helper functions to create gbt blocks of any length.
  215. - Provide helper functions calloc_str and realloc_strcat to create and extend
  216. arbitrary length arrays based on string length.
  217. Version 2.9.5 - November 25, 2012
  218. - fixes target calc for mips openwrt
  219. - openwrt needs roundl
  220. - Get rid of unused last_work in opencl thread data.
  221. - Do away with the flaky free_work api in the driver code which would often lose
  222. the work data in opencl and simply flush it before exiting the opencl scanhash.
  223. - Use base_work for comparison just for cleanness in __copy_work
  224. - Remove all static work structs, using the make and free functions.
  225. - Add pool no. to stale share detected message.
  226. - Add info about which pool share became stale while resubmitting.
  227. -b Copy the work on opencl_free_work
  228. - Add an extra slot in the max backlog for ztex to minimise dupes.
  229. - Do not use or count the getworks submitted which are simply testing that pools
  230. are still up. This was increasing share leakage and making stats not reflect
  231. real work.
  232. - Track all dynamically allocated memory within the work struct by copying work
  233. structs in a common place, creating freshly allocated heap ram for all arrays
  234. within the copied struct. Clear all work structs from the same place to ensure
  235. memory does not leak from arrays within the struct. Convert the gbt coinbase and
  236. stratum strings within the work struct to heap ram. This will allow arbitrary
  237. lengths without an upper limit for the strings, preventing the overflows that
  238. happen with GBT.
  239. - libztex: Work around ZTEX USB firmware bug exposed by the FreeBSD libusb
  240. - opencl: Use new dev_error function for REASON_DEV_NOSTART
  241. Version 2.9.4 - November 18, 2012
  242. - Provide rudimentary support for the balancing failover strategies with stratum
  243. and GBT by switching pools silently on getwork requests.
  244. - Convert remaining modminer and bfl uses of usleep to nmsleep.
  245. - Convert libztex to nmsleep where possible.
  246. - Convert unreliable usleep calls to nmsleep calls in ztex driver.
  247. - Support workid for block submission on GBT pools that use it.
  248. - Provide rudimentary support for literal ipv6 addresses when parsing stratum
  249. URLs.
  250. - Work around libcurl cflags not working on hacked up mingw installations on
  251. windows.
  252. - Only increase gpu engine speed by a larger step if the temperature is below
  253. hysteresis instead of increasing it to max speed.
  254. - Convert pool not responding and pool alive message on backup pools to verbose
  255. level only since they mean a single failed getwork.
  256. - Update work block on the longpoll work item before calling restart threads to
  257. ensure all work but the longpoll work item gets discarded when we call
  258. discard_stale from restart_threads.
  259. - Do not attempt to remove the stratum share hash after unsuccessful submission
  260. since it may already be removed by clear_stratum_shares.
  261. - Check against a double for current pool diff.
  262. - Support for fractional diffs and the classic just-below-1 share all FFs diff
  263. target.
  264. Version 2.9.3 - November 11, 2012
  265. - Make header larger on gen stratum work to accomodate \0 at the end.
  266. Version 2.9.2 - November 11, 2012
  267. - Use stratum block change from backup pools as an alternative to longpoll for
  268. pools that don't support LP.
  269. - Check share target diff for best_share to be calculated when solo mining.
  270. - Round some more static string arrays to 4 byte boundaries.
  271. - There is no need for the static arrays to be larger than required, so long as
  272. they're 4 byte aligned to appease ARM.
  273. - Store the full stratum url information in rpc_url for correct configuration
  274. file saving.
  275. - Put in a hack to prevent dud work from sneaking into test_work_current being
  276. seen as a new block.
  277. - Reset the work->longpoll flag where it will affect stratum work items as well.
  278. - Check for both coinbase/append and submit/coinbase support before using GBT
  279. protocol.
  280. - First pass through testing for GBT should not set probed to true since we are
  281. about to probe again.
  282. - Hash1 is only used by the deprecated cpu mining code and never changes so
  283. remove it from the work struct and bypass needing to process the value for all
  284. other mining.
  285. - Get a work item once per minute for all getwork and GBT pools to test they're
  286. still alive and to maintain a current GBT template.
  287. - Get a fresh block template with GBT pools on switching to them.
  288. Version 2.9.1 - November 6, 2012
  289. - Reset work flags to prevent GBT shares from being submitted as stratum ones
  290. after switching.
  291. Version 2.9.0 - November 6, 2012
  292. - Add endian swap defines for where missing.
  293. - Only retarget stratum shares to new pool diff if diff has dropped.
  294. - Remove resetting of probed variable when detecting GBT.
  295. - Count lost stratum share submits and increase message priority to warning.
  296. - Only retrieve a new block template for GBT pools that are the current pool.
  297. - Show which pool untracked share messages have come from.
  298. - Add management for dead GBT pools.
  299. - Count lost shares with stratum as submit stale lost.
  300. - Discard record of stratum shares sent and report lost shares on disconnection
  301. since they will never be reported back.
  302. - Swab, don't just swap the bytes in the GBT target.
  303. - Change status window message for GBT connected pools versus LP.
  304. - Generate a gbt work item from longpoll when required to set new block and
  305. message appropriately.
  306. - Use existing pool submit_old bool from gbt data.
  307. - Retrieve a new block template if more than 30 seconds has elapsed since the
  308. last one to keep the data current and test the pool is still alive.
  309. - Update GBT longpollid every time we request a new longpoll.
  310. - Manage appropriate response codes for share submission with GBT.
  311. - Allow the longpoll thread to start with GBT and only set the longpollid once.
  312. - Correct last few components of GBT block generation courtesy of Luke-jr.
  313. - Use correct length for offsetting extra nonce and remaining data.
  314. - Flip all 80 bytes in the flip function which was wrongly named flip256 for its
  315. purpose.
  316. - Calculate midstate for gbt work and remove now unused variable.
  317. - Use a standard function for flipping bytes.
  318. - Insert the extra nonce and remaining data in the correct position in the
  319. coinbase.
  320. - Remove txn size debugging and enlarge gbt block string to prevent overflow.
  321. - Remove varint display debugging.
  322. - Build varint correctly for share submission and sleep 5 seconds before
  323. retrying submit.
  324. - Make gbt_coinbase large enough for submissions, swap bytes correctly to make a
  325. header from GBT and encode the number of transactions in share submission.
  326. - Store the fixed size entries as static variables in GBT in binary form,
  327. byteswapping as is required.
  328. - 32 bit hex encoded variables should be in LE with GBT.
  329. - Target and prevblockhash need to be reversed from GBT variables.
  330. - Construct block for submission when using GBT.
  331. - Use same string for debug as for submission and make string larger to cope
  332. with future GBT messages.
  333. - Skip trying to decipher LP url if we have GBT support.
  334. - Store all the transaction hashes in pool->txn_hashes instead of separating
  335. txn0 and correct generation of merkle root, fixing memory overwrites.
  336. - Hook into various places to generate GBT work where appropriate.
  337. - Create extra work fields when generating GBT work.
  338. - Generate header from correct hashing generation of the merkle root for GBT.
  339. - Generate the merkle root for gbt work generation.
  340. - Create a store of the transactions with GBT in the minimum size form required
  341. to generate work items with a varied coinbase.
  342. - Create a function that generates a GBT coinbase from the existing pool
  343. variables.
  344. - Extract and store the various variables GBT uses when decoding gbt work.
  345. - Check for invalid json result in work_decode.
  346. - Decode work in separate functions for getwork vs gbt.
  347. - Check for the coinbase/append mutable in GBT support to decide whether to use
  348. it or not.
  349. - Add a gbt mutex within the pool struct for protecting the gbt values.
  350. - Convert work decode function to prepare for decoding block templates.
  351. - Check for GBT support on first probing the pool and convert to using the GBT
  352. request as the rpc request for that pool.
  353. - Make the rpc request used with getwork a pool variable to allow it to be
  354. converted to/from gbt requests.
  355. - Changes to build prototypes to support building on FreeBSD 9.1-RC2 amd64
  356. - Free old stratum_work data before replacing it
  357. - There is no need for addrinfo any more.
  358. - server and client sockaddr_in are no longer used in struct pool.
  359. - Merge pull request #322 from luke-jr/bugfix_stratum_tmpwork
  360. - Set sshare id and swork_id within the sshare mutex to avoid multiple share
  361. submits with the same id.
  362. - Initialize temporary stratum work
  363. Version 2.8.7 - October 29, 2012
  364. - Fail on select() failing in stratum thread without needing to attempt
  365. recv_line.
  366. - Add share to stratum database before sending it again in case we get a
  367. response from the pool before it's added.
  368. Version 2.8.6 - October 29, 2012
  369. - Shorten the initiate stratum connect timeout to 30 seconds.
  370. - Shorten the stratum timeout on read to 90 seconds to detect unresponsive pool.
  371. - Display best share difficulty on exit.
  372. - Make stratum socket fail more robust on windows by disabling the send buffer.
  373. - Reuse the same curl handle forcing a new connection instead of risking
  374. derefencing.
  375. - Add information about submission failure to stratum send.
  376. - Only add stratum share to database if we succeeded in submitting it, with a
  377. debug output saying it succeeded.
  378. - Use keepalive with stratum sockets to improve its ability to detect broken
  379. connections.
  380. - Show only the URL in the status bar to avoid long prefixes making for extra
  381. long lines.
  382. - Display compact status in menu and update README to reflect current menu
  383. entries.
  384. - Add a compact display mode that does not list per device statistics in the
  385. status window.
  386. - Add blank spaces after best share displayed.
  387. - Round a few static string arrays up to 4 byte boundaries for ARM.
  388. - Display best share diff for scrypt as well.
  389. - Show the best diff share as "best share" and add info to the README.
  390. - Display the best diff share submitted so far.
  391. - Redundant check.
  392. - The work struct pointer in struct pc_data in findnonce is never freed yet
  393. there is no need to allocate it separately so make struct work a static part of
  394. the struct pc_data. s
  395. Version 2.8.5 - October 23, 2012
  396. - Handle crash exceptions by trying to restart cgminer unless the --no-restart
  397. option is used.
  398. - Switch queued count when choosing a different pool from a failed stratum pool
  399. in getwork thread.
  400. - Put a mandatory 5s wait between reattempting a getwork on failure to avoid
  401. hammering requests.
  402. - The ATI stream / AMD APP SDK environment variables appear to only interfere
  403. with win32 builds so bypass them.
  404. - Make sure to check pool stratum curl exists under lock before attempting any
  405. recv to not risk dereferencing upon attempting to reinitiate stratum.
  406. - Avoid redefining macros and align to 4 byte boundaries.
  407. - API - add Stratum information to pools
  408. - update FPGA-README for MMQ
  409. Version 2.8.4 - October 18, 2012
  410. - Time for dynamic is in microseconds, not ms.
  411. - x86_64 builds of mingw32 are not supported directly and should just configure
  412. as generic mingw32 builds since they're NOT 64 bit.
  413. - Cope with both ATI stream and AMD APP SDK roots being set when building.
  414. - Use 3 significant digits when suffix string is used and values are >1000.
  415. - MMQ new initialisation (that works) and clocking control
  416. - Get rid of unused warning for !scrypt.
  417. - Use select on stratum send to make sure the socket is writeable.
  418. - Cope with dval being zero in suffix_string and display a single decimal place
  419. when significant digits is not specified but the value is greater than 1000.
  420. - Pad out the suffix string function with zeroes on the right.
  421. - Failure to calloc in bin2hex is a fatal failure always so just check for that
  422. failure within the function and abort, simplifying the rest of the code.
  423. - Provide locking around the change of the stratum curl structures to avoid
  424. possible races.
  425. - Bump opencl kernel version numbers.
  426. - Remove atomic ops from opencl kernels given rarity of more than once nonce on
  427. the same wavefront and the potential increased ramspeed requirements to use the
  428. atomics.
  429. - Clear the pool idle flag in stratum when it comes back to life.
  430. - Display correct share hash and share difficulty with scrypt mining.
  431. - Use explicit host to BE functions in scrypt code instead of hard coding
  432. byteswap everywhere.
  433. - Show work target diff for scrypt mining.
  434. - Ease the checking on allocation of padbuffer8 in the hope it works partially
  435. anyway on an apparently failed call.
  436. - Watch for buffer overflows on receiving data into the socket buffer.
  437. - Round target difficulties down to be in keeping with the rounding of detected
  438. share difficulties.
  439. - Dramatically simplify the dynamic intensity calculation by oversampling many
  440. runs through the opencl kernel till we're likely well within the timer
  441. resolution on windows.
  442. - String alignment to 4 byte boundaries and optimisations for bin<->hex
  443. conversions.
  444. - In opencl_free_work, make sure to still flush results in dynamic mode.
  445. - Align static arrays to 4 byte boundaries to appease ARM builds for stratum.
  446. Version 2.8.3 - October 12, 2012
  447. - Left align values that are suffix_string generated.
  448. - Share_diff should not be converting the work data to hex.
  449. - Off by one error.
  450. - Prevent overflows of the port char array in extract_sockaddr.
  451. - Disable stratum detection with scrypt.
  452. - Use the suffix string function when displaying device hashrates.
  453. - Be consistent with the get_statline function.
  454. - Use the suffix string function for displaying hashrate with 4 significant
  455. digits.
  456. - Display the actual share diff next to the pool required diff, using a suffix
  457. creation function to prevent values of >1000 being shown in their entirety.
  458. - Fix 4 * 0 being 0 that would break dynamic intensity mode.
  459. - Fix wrong byteswap macro being used on mingw32 which was breaking target
  460. generation on stratum.
  461. Version 2.8.2 - October 11, 2012
  462. - Reinstate the history on dynamic intensity mode to damp fluctuations in
  463. intensity but use an upper limit on how much the value can increase at any time
  464. to cope with rare overflows.
  465. - Create a fix-protocol option which prevents cgminer from switching to stratum
  466. if it's detected.
  467. - Simplify target generation code.
  468. - Add support for client.get_version for stratum.
  469. - Use a 64 bit unsigned integer on the diff target to generate the hex target.
  470. - Update reconnect message to show whole address including port.
  471. - Look for null values and parse correct separate array entries for url and port
  472. with client reconnect commands for stratum.
  473. - The command for stratum is client.reconnect, not mining.reconnect.
  474. - Only copy the stratum url to the rpc url if an rpc url does not exist.
  475. - Implement rudimentary mining.reconnect support for stratum.
  476. - Ignore the value of stratum_active on calling initiate_stratum and assume
  477. we're always trying to reinitiate it, and set the active flag to false in that
  478. function.
  479. - stratum auth can be unset if we fail to authorise on subsequent calls to
  480. auth_stratum which undoes the requirement of setting it in one place so set it
  481. in pool_active.
  482. Version 2.8.1 - October 8, 2012
  483. - Use the stratum url as the rpc url advertised if we switch to it.
  484. - Count an invalid nonce count as a hardware error on opencl.
  485. - Count each stratum work item as local work.
  486. - Cope with one stratum pool being the only active pool when it dies by sleeping
  487. for 5 seconds before retrying to get work from it instead of getting work
  488. indefinitely.
  489. - Detect stratum outage based on either select timing out or receiving an empty
  490. buffer and properly re-establish connection by disabling the stratum_active
  491. flag, coping with empty buffers in parse_stratum.
  492. Version 2.8.0 - October 7, 2012
  493. - Major upgrade - support for the stratum mining protocol.
  494. - Fix various modminer warnings on mingw.
  495. - Fix sign warning on windows build for bitforce.
  496. - Cast socketfail to integer since SOCKET is an unsigned int on windows.
  497. - Use strtod not strtol for bitforce temp backup.
  498. - Cope with broken drivers returning nonsense values for bitforce temperatures.
  499. - Minor warning fixes.
  500. - Use the stratum thread to detect when a stratum pool has died based on no
  501. message for 2 minutes.
  502. - Only set the stratum auth flag once and once the stratum thread is started,
  503. use that to set/unset the stratum active flag.
  504. - Only hand off to stratum from getwork if we succeed in initiating the
  505. protocol.
  506. - Target should only be 32 bytes copied.
  507. - Use a static array for work submission data instead of stack memory.
  508. - Clear the buffer data before sprinting to it.
  509. - Clear work stratum strings before setting them and add them to debug output.
  510. - Drop stratum connect failed message to verbose level only since it's a regular
  511. probing message.
  512. - TCP Keepalive in curl is only in very recent versions and not required with
  513. regular messages on stratum anyway.
  514. - Move stratum sockets to curl infrastructure with locking around send+recv to
  515. begin support for proxies and ssl.
  516. - Make detect stratum fail if a proxy has been set up.
  517. - Stratum does not currently have any proxy support so do not try to switch to
  518. stratum if a proxy has been specified.
  519. - Windows doesn't work with MSG_PEEK on recv so move to a continuously updating
  520. buffer for incoming messages.
  521. - Alloca is unreliable on windows so use static arrays in util.c stratum code.
  522. - Begin support for mingw stratum build.
  523. - Add space to reject reason.
  524. - Parse the reject reason where possible from stratum share submission.
  525. - Pass json error value to share result function to be able to parse reject
  526. reason in stratum.
  527. - Don't try to parse unneeded parameters in response to mining.subscribe.
  528. - Remove the sshare hash entry if we failed to send it.
  529. - Change notify message to info level to avoid spamming repeatedly when a pool
  530. is down.
  531. - Check the stratum pool difference has not changed compared to the work diff
  532. when testing whether a share meets the target or not and retarget if necessary.
  533. - Bit error in target calculation for stratum.
  534. - Set work_block in gen_stratum_work for when work is reused to avoid thinking
  535. it's all stale.
  536. - Offset the current block detection to the prev block hash.
  537. - We should be testing for id_val, not id in parse stratum response.
  538. - Make target on stratum scale to any size by clearing sequential bits according
  539. to diff.
  540. - Correct target calculation in gen_stratum_work.
  541. - If a share result has an error code but still has an id, it is likely a
  542. reject, not an error.
  543. - Initiate stratum the first time in pool_active only, allowing us to switch to
  544. it on getting a failed getwork and detecting the presence of stratum on the url
  545. at that time.
  546. - Use 5 second timeout on sock full for now as a temporary workaround.
  547. - If no stratum url is set by the end of the detect stratum routine, copy the
  548. sockaddr url.
  549. - Make all buffers slightly larger to prevent overflow.
  550. - Make the stratum recv buffer larger than the recvsize.
  551. - Userpass needs to be copied to user and pass earlier to allow stratum
  552. authorisation to work with it.
  553. - Store a sockaddr url of the stripped url used in determining sockaddr to not
  554. confuse it with the stratum url and fix build warnings.
  555. - Decrease the queued count with stratum work once it's staged as well.
  556. - Allow the stratum retry to initiate and auth stratum in pool_alive to make
  557. sure the stratum thread is started.
  558. - Avoid duplicating pool->rpc_url and setting pool->stratum_url twice to itself.
  559. - Detect if a getwork based pool has the X-Stratum header on startup, and if so,
  560. switch to the stratum based pool.
  561. - Comment update.
  562. - Minor message change.
  563. - Create a work item from a "clean" request from stratum allowing the new block
  564. to be detected and the appropriate block change message to be given.
  565. - Use statically allocated stratum strings in struct work to cope with the
  566. inability to safely deallocate dynamically allocated ram.
  567. - Use the current pool when deciding whether to reuse work from a stratum source
  568. rather than the work's previous pool.
  569. - Copy the stratum url to the rpc url to avoid none being set.
  570. - Provide locking around stratum send operations to avoid races.
  571. - Submit shares from stratum through the abstracted submit share function
  572. detecting what message they belong to and showing the data from the associated
  573. work, and then deleting it from the hash.
  574. - Use a more robust mechanism to obtain a \n terminated string over a socket.
  575. - Abstract out share submit as a function to be useable by stratum.
  576. - Rename parse_stratum to parse_method as it is only for stratum messages that
  577. contain methods.
  578. - Display stratum as mechanism in status line when current pool is running it.
  579. - Count each stratum notify as a getwork equivalent.
  580. - Correct nonce submitted with share.
  581. - Extranonce2 should be added before coinbase2.
  582. - We should be hashing the binary coinbase, not the hex one.
  583. - Fix endianness of nonce submitted for stratum.
  584. - Check that stratum is already active in initiate_stratum to avoid
  585. de-authorising ourselves by subscribing again.
  586. - Begin implementing a hash database of submissions and attempt sending results.
  587. - Copy parameters from stratum work required for share submission.
  588. - Set lagging flag on first adding a pool to prevent pool slow warning at
  589. startup.
  590. - Fix work->target being a 32 byte binary in gen_stratum_work.
  591. - Store and display stripped url in its own variable.
  592. - Create machinery to divert work requests to stratum.
  593. - Generate the work target in gen_stratum_work, setting default diff to 1 in
  594. case it is not yet set.
  595. - Generate work data, midstate and hash1 in gen_stratum_work.
  596. - Generate header created from stratum structures in gen_stratum_work.
  597. - Generate merkle root hash in gen_stratum_work.
  598. - Generate the coinbase for generation of stratum based work.
  599. - The number of transactions is variable so make merkle a variable length
  600. dynamically allocated array and track how many there are for stratum.
  601. - Rename nonce2 to n2size reflecting that it's a size variable and not the
  602. actual nonce.
  603. - Provide rudimentary support for stratum clean work command in the stratum
  604. thread.
  605. - Cope with pools being removed in the stratum thread.
  606. - Use the pool sock value directly in the stratum thread in case it changes
  607. after reconnecting.
  608. - Create a stratum thread per pool that has stratum that monitors the socket and
  609. serves received data.
  610. - Check return value of stratum_parse.
  611. - Complete authorisation in stratum.
  612. - Implement stratum parsing of notify parameters and storing them in the pool
  613. stratum work structure.
  614. - Create helper functions for duplicating json strings to avoid keeping json
  615. references in use.
  616. - Append \n in the sock_send function instead of adding it when constructing
  617. json in stratum.
  618. - Don't keep any json references around with stratum structures.
  619. - Create parse_stratum function that hands off stratum parameters to other
  620. functions to manage pool stratum work struct variables. Implement mining
  621. difficulty setting.
  622. - Create helper functions for checking when a socket is ready to read on and
  623. receive a single line at a time. Begin stratum authorisation process.
  624. - Provide a helper function for reading a single \n terminated string from a
  625. socket.
  626. - Create a stratum work structure to store current work variables.
  627. - Test specifically for stratum being active in pool_active.
  628. - Detect stratum in common place when adding urls, and use a bool to tell us
  629. when it's active.
  630. - Fix warnings.
  631. - Extract and store various parameters on stratum init confirming successful
  632. mining notify.
  633. - Use existing socket macros and close the socket on failure in init stratum.
  634. - Initiate stratum and grab first json result.
  635. - Get detailed addressinfo from the parsed URL for future raw socket usage when
  636. possible. IPV4 only for now.
  637. - Prepare for getaddrinfo call.
  638. - Add data structures to pool struct for socket communications.
  639. - Put all socket definitions in util.h to allow reusing by added socket
  640. functions to be used in util.c.
  641. Version 2.7.7 - October 7, 2012
  642. - Fix unused warnings on ming build.
  643. - Fix sign warning in ocl.c
  644. - fds need to be zeroed before set in modminer.
  645. - Put scrypt warning on separate line to avoid 0 being shown on windows as
  646. bufsize.
  647. - Display correct pool number when block is found.
  648. - Prevent corrupt values returned from the opencl code from trying to read
  649. beyond the end of the buffer by masking the value to a max of 15.
  650. - Icarus USB write failure is also a comms error
  651. - api.c DEBUG message has no paramter
  652. - Icarus catch more USB errors and close/reopen the port
  653. - API-README update cgminer verison number
  654. - hashmeter fix stats kh/s on 32bit windows
  655. Version 2.7.6 - September 24, 2012
  656. - Reorder libztex header include order to fix missing struct definition.
  657. - Display share difficulty on log with a shortened hash display on submission.
  658. - API stats add some pool getwork difficulty stats
  659. - Ignore any pings pushed to the worker threads if the thread is still paused to
  660. prevent it being enabled and disabled repeatedly.
  661. - README - FAQ - usermod group - shouldn't remove other groups
  662. - Test for sequential getwork failures on a pool that might actually be up but
  663. failing to deliver work as we may end up hammering it repeatedly by mistake.
  664. - reduce windows compile warnings
  665. - util.c - bug - proxy - no data end condition
  666. - As we average gpu time over 5 work intervals for dynamic GPU intensity, there
  667. is no need to maintain a rolling average and it avoids the potential long term
  668. corruption of a single overflow value.
  669. - Test for the now-automatically exported variable AMDAPPSDKROOT when looking
  670. for the presence of the OpenCL headers.
  671. - API don't change 'Diff1 Shares' - backward compatability FTW
  672. - miner.php highlighting correctly handling difficulty
  673. - API - Add last share difficulty for devices and pool
  674. - Store and report Accepted,Rejected,Stale difficulty in the summary and API
  675. - WorkTime - display prevblock for scrypt
  676. - api.c remove compile warnings
  677. - Calculate work difficulty for each getwork and display with WorkTime debug
  678. - remove MMQ unused variable warning
  679. - FPGA - allow long or short device names in detect code + style police
  680. - WorkTime - multiple nonce per work and identify the work source
  681. - Optional WorkTime details with each Accepted/Rejected work item
  682. - Icarus - ignore hardware errors in timing mode
  683. - miner.php oops - mistype
  684. - miner.php by default don't display IP/Port numbers in error messages
  685. - api.c all STATUS messages automatically escaped
  686. - api.c add missing escape for comma in MSG_PGAUNW
  687. - API add display of and setting queue,scantime,expiry
  688. - HW: dont submit bad shares
  689. - save individual pool proxy settings to config
  690. - --default-config - allow command line to define the default configuration file
  691. for loading and saving
  692. - API-README update for pools proxy info
  693. - README URL proxy must use quote so show in the example
  694. - bug: remove proxy: from the front of the proxy used
  695. - CURL support for individual proxy per pool and all proxy types
  696. - README spelling/etc
  697. - README - FPGA device FAQ
  698. - HW: error counter auto for all devices - ztex code not fixed
  699. - API pgaidentify - unsupported message should be a warning
  700. - API/BFL identify a device - currently only BFL to flash the led
  701. - BFL add throttle count to internal stats + API
  702. - BFL: missing device id in log message
  703. - miner.php correct to new Diff1 Work field names
  704. - API add device diff1 work
  705. - API-README update
  706. - api.c Correct diff1 field name
  707. - count device diff1 shares
  708. - API-README more debug parameter information
  709. - API allow full debug settings control
  710. Version 2.7.5 - August 31, 2012
  711. - Adjust opencl intensity when adjusting thread count to prevent it getting
  712. pegged at a value below the minimum threads possible.
  713. - miner.h max_hashes -> int64_t
  714. - Keep the local block number in the blocks structs stored and sort them by
  715. number to guarantee we delete the oldest when ageing the block struct entries.
  716. - Use correct sdk version detection for SDK 2.7
  717. - Revert "Pick worksize 256 with Cypress if none is specified."
  718. - Test for lagging once more in queue_request to enable work to leak to backup
  719. pools.
  720. - There is no need to try to switch pools in select_pool since the current pool
  721. is actually not affected by the choice of pool to get work from.
  722. - Only clear the pool lagging flag if we're staging work faster than we're using
  723. it.
  724. - needed flag is currently always false in queue_request. Remove it for now.
  725. - thr is always NULL going into queue_request now.
  726. Version 2.7.4 - August 23, 2012
  727. - Perform select_pool even when not lagging to allow it to switch back if needed
  728. to the primary.
  729. - Simplify macros in output kernels avoiding apparent loops and local variables.
  730. - Carry the needed bool over the work command queue.
  731. - Move the decision to queue further work upstream before threads are spawned
  732. based on fine grained per-pool stats and increment the queued count immediately.
  733. - Track queued and staged per pool once again for future use.
  734. - OpenCL 1.0 does not have native atomic_add and extremely slow support with
  735. atom_add so detect opencl1.0 and use a non-atomic workaround.
  736. - Pools: add RollTime info to API 'stats' and 'Stats' button in miner.php
  737. Version 2.7.3 - August 22, 2012
  738. - Minimise the number of getwork threads we generate.
  739. Version 2.7.2 - August 22, 2012
  740. - Pick worksize 256 with Cypress if none is specified.
  741. - Give warning with sdk2.7 and phatk as well.
  742. - Whitelist sdk2.7 for diablo kernel as well.
  743. - Only keep the last 6 blocks in the uthash database to keep memory usage
  744. constant. Storing more is unhelpful anyway.
  745. - BFL Flash - always distribute source
  746. - Increase kernel versions signifying changed APIs.
  747. - BFL flash - include source in builds and more FPGA-README
  748. - Check we haven't staged work while waiting for a curl entry before proceeding.
  749. - Use atomic ops to never miss a nonce on opencl kernels, including nonce==0,
  750. also allowing us to make the output buffer smaller.
  751. - Remove compile errors/warnings and document compile/usage in FPGA-README
  752. - bitforce-firmware-flash.c by Luke-jr
  753. - Ignore the submit_fail flag when deciding whether to recruit more curls or not
  754. since we have upper bounds on how many curls can be recruited, this test is
  755. redundant and can lead to problems.
  756. - API-README update cgminer version number
  757. - API-README fix groups P: example mistake
  758. - API-README add COIN and other edits
  759. - gpu->hit should be reset on new work as well.
  760. - Do not add time to dynamic opencl calculations over a getwork.
  761. - miner.php allow 'coin' is custom pages
  762. Version 2.7.1 - August 21, 2012
  763. - Update windows build instructions courtesy of sharky.
  764. - Increase max curls to number of mining threads + queue * 2, accounting for up
  765. and downstream comms.
  766. - Queue enough requests to get started.
  767. - There is no point trying to clone_work in get_work() any more since we clone
  768. on every get_work_thread where possible.
  769. - There is no point subtracting 1 from maxq in get_work_thread.
  770. - Only set lagging flag once there are no staged work items.
  771. - select_pool does not switch back to the primary once lagging is disabled.
  772. - miner.php allow page title to be defined in myminer.php
  773. - Free work before retrying in get_work_thread.
  774. - Increment total work counter under mutex lock.
  775. - Increment the queued count after the curl is popped in case there's a delay
  776. waiting on curls and we think we've queued work when in fact we're waiting
  777. - API new command 'coin' with mining information
  778. - Do the dynamic timing in opencl code over a single pass through scanhash to
  779. make sure we're only getting opencl times contributing to the measured inte
  780. - Increase curl reaping time to 5 minutes since comms between curl requests can
  781. be 2 mins apart with lots of rolltime.
  782. - No need for extra variable in hash_push.
  783. - Remove short options -r and -R to allow them to be reused and remove readme
  784. entries for deprecated options.
  785. - Avoid attempting to recursively lock the console mutex by disabling warnings
  786. in gpu_fanpercent when fanspeed monitoring fails on windows. Debugged by l
  787. - Deprecate the opt_fail_pause parameter, leaving a null placeholder for
  788. existing configurations.
  789. - Don't pause after failed getwork, set lagging flag and reassess.
  790. - Add message to share if it's a resubmit.
  791. - We should not be pausing in trying to resubmit shares.
  792. - Get rid of the extending fail pause on failed connects since we discard work
  793. after a period.
  794. - get_work always returns true so turn it into a void function.
  795. - get_work never returns false so get rid of fail pause loop.
  796. - Get rid of pause and retry from get_upstream_work so we only do it from one
  797. place.
  798. - Deprecate the opt_retries feature as no one wants cgminer to automatically
  799. abort. Leave a null placeholder for configurations that still have it.
  800. - Reinstate fix ADL gpu-map not working when there are more ADL devices than
  801. openCL patch by Nite69. Add virtual adl mapping for when none is specified o
  802. - miner.php show summary Diff1 Shares total
  803. - miner.php fix Work Utility totals
  804. - miner.php format new Work Utility and Diff1 Shares
  805. - API V1.17 show Work Utility and Diff1 Shares
  806. Version 2.7.0 - August 18, 2012
  807. - Introduce a new statistic, Work Utility, which is the number of difficulty 1
  808. shares solved per minute. This is useful for measuring a relative rate of work
  809. that is independent of reject rate and target difficulty.
  810. - Implement a new pool strategy, BALANCE, which monitors work performed per pool
  811. as a rolling average every 10 minutes to try and distribute work evenly over all
  812. the pools. Do this by monitoring diff1 solutions to allow different difficulty
  813. target pools to be treated equally, along with solo mining. Update the
  814. documentation to describe this strategy and more accurately describe the
  815. load-balance one.
  816. - Getwork fail was not being detected. Remove a vast amount of unused variables
  817. and functions used in the old queue request mechanism and redefine the getfail
  818. testing.
  819. - Don't try to start devices that don't support scrypt when scrypt mining.
  820. - 0 is a valid return value for read so only break out if read returns -1.
  821. - Consider us lagging only once our queue is almost full and no staged work.
  822. - Simplify the enough work algorithm dramatically.
  823. - Only queue from backup pools once we have nothing staged.
  824. - Don't keep queueing work indefinitely if we're in opt failover mode.
  825. - Make sure we don't opt out of queueing more work if all the queued work is
  826. from one pool.
  827. - Set lagging flag if we're on the last of our staged items.
  828. - Reinstate clone on grabbing work.
  829. - Grab clones from hashlist wherever possible first.
  830. - Cull all the early queue requests since we request every time work is popped
  831. now.
  832. - Keep track of staged rollable work item counts to speed up clone_available.
  833. - Make expiry on should_roll to 2/3 time instead of share duration since some
  834. hardware will have very fast share times.
  835. - Do the cheaper comparison first.
  836. - Check that we'll get 1 shares' worth of work time by rolling before saying we
  837. should roll the work.
  838. - Simplify all those total_secs usages by initialising it to 1 second.
  839. - Overlap queued decrementing with staged incrementing.
  840. - Artificially set the pool lagging flag on pool switch in failover only mode as
  841. well.
  842. - Artificially set the pool lagging flag on work restart to avoid messages about
  843. slow pools after every longpoll.
  844. - Factor in opt_queue value into enough work queued or staged.
  845. - Roll work whenever we can on getwork.
  846. - Queue requests for getwork regardless and test whether we should send for a
  847. getwork from the getwork thread itself.
  848. - Get rid of age_work().
  849. - 0 is a valid return value for read so only break out if read returns -1.
  850. - Offset libusb reads/writes by length written as well in ztex.
  851. - Cope with timeouts and partial reads in ztex code.
  852. - fpga serial I/O extra debug (disabled by default)
  853. Version 2.6.5 - August 15, 2012
  854. - Don't try to get bitforce temperature if we're polling for a result to
  855. minimise the chance of interleaved responses.
  856. - Set memory clock based on memdiff if present from with engine changes,
  857. allowing it to parallel manual changes from the menu as well.
  858. - Increase the timeout on bitforce as per Paul Sheppard's suggestion to account
  859. for throttling + work time + excess.
  860. - Fix ADL gpu-map not working when there are more ADL devices than openCL.
  861. Initial patch supplied by Nite69. Modified to suit.
  862. - Windows' timer resolution is limited to 15ms accuracy. This was breaking
  863. dynamic intensity since it tries to measure below this. Since we are repeatedly
  864. sampling similar timeframes, we can average the gpu_us result over 5 different
  865. values to get very fine precision.
  866. - Fix harmless unused warnings in scrypt.h.
  867. - api.c typo
  868. - API allow display/change failover-only setting
  869. - Check we are not lagging as well as there is enough work in getwork.
  870. - Minimise locking and unlocking when getting counts by reusing shared mutex
  871. lock functions.
  872. - Avoid getting more work if by the time the getwork thread is spawned we find
  873. ourselves with enough work.
  874. - The bitforce buffer is cleared and hw error count incremented on return from a
  875. failed send_work already so no need to do it within the send_work function.
  876. - miner.php allow a custom page section to select all fields with '*' - e.g. to
  877. create a STATS section on a custom page
  878. - Escape " and \ when writing json config file
  879. - miner.php optional single rig totals (on by default)
  880. Version 2.6.4 - August 7, 2012
  881. - Convert the serial autodetect functions to use int instead of char to
  882. enumerate devices.
  883. - Make the serial open timeout for BFL generically 1 second on windows.
  884. - Deuglify windows autodetect code for BFL.
  885. - There is no point zeroing temperature in BFL if we fail to get a response, and
  886. we should register it as a HW error, suggesting throttling.
  887. - Update SCRYPT README with information about HW errors.
  888. - Use the scrypt CPU code to confirm results from OCL code, and mark failures as
  889. HW errors, making it easier to tune scrypt parameters.
  890. - We may as well leave one curl still available per pool instead of reaping the
  891. last one.
  892. - Need to recheck the pool->curls count on regaining the pool lock after the
  893. pthread conditional wait returns.
  894. - Display reaped debug message outside mutex lock to avoid recursive locking.
  895. - Add specific information when ADL detects error -10 saying the device is not
  896. enabled.
  897. - api.c update API start message and include port number
  898. - miner.php ignore arg when readonly
  899. - miner.php allow pool inputs: delete, addpool, poolpriority
  900. Version 2.6.3 - August 5, 2012
  901. - Count likely throttling episodes on bitforce devices as hardware errors.
  902. - Style cleanups.
  903. - Use FTD2XX.DLL on Windows to autodetect BitFORCE SHA256 devices.
  904. - Make pool_disabled the first in the enums == 0, fixing the pool enabled count
  905. which compares if value is not enabled before enabling it.
  906. - Correct writing of scrypt parameters to config file based on command line
  907. parameters only.
  908. - Use different variables for command line specified lookup gap and thread
  909. concurrency to differentiate user defined versus auto chosen values.
  910. - Queue a request on pool switch in case we have no work from the new pool yet.
  911. - Display failover only mode in pool menu and allow it to be toggled live.
  912. - Reinstate check for system queueing lag when the current pool's queue is maxed
  913. out, there is no staged work, and the work is needed now.
  914. - There is no need for pool active testing to be mandatory any more with queue
  915. request changes.
  916. - Fix harmless warnings.
  917. - Check the current staged and global queued as well before queueing requests.
  918. Discard stales before ageing work in the watchdog thread. Queue requests after
  919. discarding and ageing work in watchdog thread. Display accurate global queued in
  920. curses output. Reuse variable in age_work().
  921. - The queueing mechanism has become a complex state machine that is no longer
  922. predictable. Rewrite it from scratch watching only current queues in flight and
  923. staged work available on a pool by pool basis.
  924. - API remove unused warning in non-GPU compile
  925. - api.c in linux allow to open a closed socket in TIME_WAIT
  926. - Queue an extra request whenever staged work drops below mining thread count in
  927. hash_pop.
  928. - Update debian package configs to v2.6.2
  929. Version 2.6.2 - August 3, 2012
  930. - Scrypt mining does not support block testing yet so don't try to print it.
  931. - Clear the bitforce buffer whenever we get an unexpected result as it has
  932. likely throttled and we are getting cached responses out of order, and use the
  933. temperature monitoring as a kind of watchdog to flush unexpected results.
  934. - It is not critical getting the temperature response in bitforce so don't
  935. mandatorily wait on the mutex lock.
  936. - Check there is a cutoff temp actually set in bitforce before using it as a cut
  937. off value otherwise it may think it's set to zero degrees.
  938. - We dropped the temporary stopping of curl recruiting on submit_fail by
  939. mistake, reinstate it.
  940. - Make threads report in either side of the scanhash function in case we miss
  941. reporting in when restarting work.
  942. - Don't make mandatory work and its clones last forever.
  943. - Make test work for pool_active mandatory work items to smooth out staged work
  944. counts when in failover-only mode.
  945. - Add debugging output when work is found stale as to why.
  946. - Print the 3 parameters that are passed to applog for a debug line in
  947. bitforce.c
  948. - Clear bitforce buffer on init as previously.
  949. - Add some headroom to the number of curls available per pool to allow for
  950. longpoll and sendwork curls.
  951. - Revert "Revert "Change BFL driver thread initialising to a constant 100ms
  952. delay between devices instead of a random arrangement.""
  953. - Revert "Remove bitforce_thread_init"
  954. - Show the correct base units on GPU summary.
  955. - Differentiate between the send return value being a bool and the get return
  956. value when managing them in bitforce scanhash.
  957. - 23a8c60 Revert "bitforce: Skip out of sending work if work restart requested"
  958. Version 2.6.1 - July 30, 2012
  959. - Display scrypt as being built in as well.
  960. - Fix build warning about KL_SCRYPT when built without scrypt support.
  961. - Remove the low hash count determinant of hardware being sick. A low hash rate
  962. can be for poor network connectivity or scrypt mining, neither of which are due
  963. to a sick device.
  964. - api.c poolpriority changes
  965. Version 2.6.0 - July 29, 2012
  966. - Display kilohash when suitable, but store the global mhash value still truly
  967. in megahashes to not break the API output.
  968. - Don't try and print curses output for devices that won't fit on the screen.
  969. - Add scrypt documentation in the form of a separate readme.
  970. - Fix build error without scrypt enabled.
  971. - Limit total number of curls recruited per pool to the number of mining threads
  972. to prevent blasting the network when we only have one pool to talk to.
  973. - bitforce: Skip out of sending work if work restart requested
  974. - Keep a counter of enabled pools and use that instead of iterating over the
  975. pool list. Use that value to ensure we don't set the last remaining active pool
  976. to the rejecting state.
  977. - fpgautils: add support for 57.6 kBd serial
  978. - miner.php add a socket RCV timeout for if cgminer is hung and the API thread
  979. is still running
  980. - Limit thread concurrency for scrypt to 5xshaders if shaders is specified.
  981. - Simplify repeated use of gpus[gpu]. in ocl.c
  982. - Find the nearest power of 2 maximum alloc size for the scrypt buffer that can
  983. successfully be allocated and is large enough to accomodate the thread
  984. concurrency chosen, thus mapping it to an intensity.
  985. - Don't make opt_scrypt mandatory blocking with opencl code.
  986. - Update kernel versions reflecting changes in the API.
  987. - Make the thread concurrency and lookup gap options hidden on the command line
  988. and autotune parameters with a newly parsed --shaders option.
  989. - Fix target testing with scrypt kernel as it would have been missing shares
  990. below target.
  991. - Bugfix: Use a mutex to control non-curses output
  992. - Simplify code to a single vprintf path for curses-less printing
  993. - Move opt_quiet check to my_log_curses, so it works for curses-less builds
  994. - Use log_generic for vapplog to cut down on code duplication
  995. - Add space to log output now that there is more screen real estate available.
  996. - BFL force all code to timeout to avoid hanging
  997. - Bugfix: Copy argv[0] given to dirname()
  998. - Always create the largest possible padbuffer for scrypt kernels even if not
  999. needed for thread_concurrency, giving us some headroom for intensity levels.
  1000. - Use the detected maximum allocable memory on a GPU to determine the optimal
  1001. scrypt settings when lookup_gap and thread_concurrency parameters are not given.
  1002. - Check the maximum allocable memory size per opencl device.
  1003. - Add debugging output if buffer allocation fails for scrypt and round up
  1004. bufsize to a multiple of 256.
  1005. - Nonce testing for btc got screwed up, leading to no accepted shares. Fix it.
  1006. - Display size of scrypt buffer used in debug.
  1007. - Allow intensities up to 20 if scrypt is compiled in.
  1008. - Add name to scrypt kernel copyright.
  1009. - Allow lookup gap and thread concurrency to be passed per device and store
  1010. details in kernel binary filename.
  1011. - Ignore negative intensities for scrypt.
  1012. - Change the scale of intensity for scrypt kernel and fix a build warning.
  1013. - Correct target value passed to scrypt kernel.
  1014. - Use 256 output slots for kernels to allow 1 for each worksize.
  1015. - Test the target in the actual scrypt kernel itself saving further
  1016. calculations.
  1017. - Reinstate GPU only opencl device detection.
  1018. - Decrease lookup gap to 1. Does not seem to help in any way being 2.
  1019. - Fix build.
  1020. - Make pad0 and pad1 local variable in scrypt kernel.
  1021. - Constify input variable in scrypt kernel.
  1022. - Send correct values to scrypt kernel to get it finally working.
  1023. - Create command queue before compiling program in opencl.
  1024. - Detach pthread from within the api thread in case it is terminated due to not
  1025. being instantiated before pthread_cancel is called from main, leading to a
  1026. segfault.
  1027. - Debug output per thread hashrate is out by a factor of 1000.
  1028. - Initialise mdplatform.
  1029. - Find the gpu platform with the most devices and use that if no platform option
  1030. is passed.
  1031. - Allow more platforms to be probed if first does not return GPUs.
  1032. - Fix external scrypt algo missing.
  1033. - Limit scrypt to 1 vector.
  1034. - Handle KL_SCRYPT in config write.
  1035. - Get rid of stuff.
  1036. - Don't enqueuewrite buffer at all for pad8 and pass work details around for
  1037. scrypt in dev_blk.
  1038. - Set the correct data for cldata and prepare for pad8 fixes.
  1039. - Bugfix: Fix build without curses but with OpenCL
  1040. - Find the gpu platform with the most devices and use that if no platform option
  1041. is passed.
  1042. - Allow more platforms to be probed if first does not return GPUs.
  1043. - Get rid of spaces in arrays in scrypt kernel.
  1044. - Start with smaller amount of hashes in cpu mining to enable scrypt to return
  1045. today sometime.
  1046. - Show Khash hashrates when scrypt is in use.
  1047. - Free the scratchbuf memory allocated in scrypt and don't check if CPUs are
  1048. sick since they can't be. Prepare for khash hash rates in display.
  1049. - Add cpumining capability for scrypt.
  1050. - Set scrypt settings and buffer size in ocl.c code to be future modifiable.
  1051. - Cope with when we cannot set intensity low enough to meet dynamic interval by
  1052. inducing a forced sleep.
  1053. - Make dynamic and scrypt opencl calls blocking.
  1054. - Calculate midstate in separate function and remove likely/unlikely macros
  1055. since they're dependent on pools, not code design.
  1056. - bitforce: Use "full work" vs "nonce range" for kernel name
  1057. - Display in debug mode when we're making the midstate locally.
  1058. - Fix nonce submission code for scrypt.
  1059. - Make sure goffset is set for scrypt and drop padbuffer8 to something
  1060. manageable for now.
  1061. - Set up buffer8 for scrypt.
  1062. - Build fix for opt scrypt.
  1063. - Don't check postcalc nonce with sha256 in scrypt.
  1064. - Don't test nonce with sha and various fixes for scrypt.
  1065. - Make scrypt buffers and midstate compatible with cgminer.
  1066. - Use cgminer specific output array entries in scrypt kernel.
  1067. - Provide initial support for the scrypt kernel to compile with and mine scrypt
  1068. with the --scrypt option.
  1069. - Enable completely compiling scrypt out.
  1070. - Begin import of scrypt opencl kernel from reaper.
  1071. - bitforce_get_result returns -1 on error now.
  1072. - Check return value of read in BFgets
  1073. - Bugfix: Make our Windows nanosleep/sleep replacements standards-compliant
  1074. (which fixes nmsleep) and include compat.h for bitforce (for sleep)
  1075. - rpc: Use a single switch statement for both stringifications of cgpu->status
  1076. - Fix whitespace mangling.
  1077. - miner.php fix rig # when miners fail
  1078. - Only try to shut down work cleanly if we've successfully connected and started
  1079. mining.
  1080. - Use switch statement for cgpu->status and fix spelling.
  1081. - Abbrv. correction
  1082. - Bugfix: Don't declare devices SICK if they're just busy initialising
  1083. - Bugfix: Calculate nsec in nmsleep correctly
  1084. - Bugfix: Adapt OpenCL scanhash errors to driver API change (errors are now -1,
  1085. not 0)
  1086. - Remove superfluous ave_wait
  1087. - Put kname change for broken nonce-range back in
  1088. - Add average wait time to api stats
  1089. - Change BFL driver thread initialising to a constant 100ms delay between
  1090. devices instead of a random arrangement.
  1091. - Spelling typo.
  1092. - Time opencl work from start of queueing a kernel till it's flushed when
  1093. calculating dynamic intensity.
  1094. - Modify te scanhash API to use an int64_t and return -1 on error, allowing zero
  1095. to be a valid return value.
  1096. - Check for work restart after the hashmeter is invoked for we lose the hashes
  1097. otherwise contributed in the count.
  1098. - Remove disabled: label from mining thread function, using a separate
  1099. mt_disable function.
  1100. - Style changes.
  1101. - Missed one nonce-range disabling.
  1102. - Add average return time to api stats
  1103. - miner.php allow rig names in number buttons
  1104. - Remove bitforce_thread_init The delay thing does nothing useful... when long
  1105. poll comes around, all threads restart at the same time anyway.
  1106. - Change timeouts to time-vals for accuracy.
  1107. - fix API support for big endian machines
  1108. - Cope with signals interrupting the nanosleep of nmsleep.
  1109. - Use standard cfsetispeed/cfsetospeed to set baud rate on *nix
  1110. - miner.php split() flagged deprecated in PHP 5.3.0
  1111. - More BFL tweaks. Add delay between closing and reopening port. Remove buffer
  1112. clear in re-init Add kernel type (mini-rig or single)
  1113. - Make long timeout 10seconds on bitforce for when usleep or nanosleep just
  1114. can't be accurate...
  1115. Version 2.5.0 - July 6, 2012
  1116. - Fix --benchmark not working since the dynamic addition of pools and pool
  1117. stats.
  1118. - Make disabling BFL nonce range support a warning since it has to be explicitly
  1119. enabled on the command line now.
  1120. - miner.php allow renaming table headers
  1121. - Make bitforce nonce range support a command line option --bfl-range since
  1122. enabling it decrease hashrate by 1%.
  1123. - Add sanity checking to make sure we don't make sleep_ms less than 0 in
  1124. bitforce.
  1125. - The fastest minirig devices need a significantly smaller starting sleep time.
  1126. - Use a much shorter initial sleep time to account for faster devices and nonce
  1127. range working, and increase it if nonce range fails to work.
  1128. - Use nmsleep instead of usleep in bitforce.
  1129. - Provide a ms based sleep function that uses nanosleep to avoid the inaccuracy
  1130. of usleep on SMP systems.
  1131. - delay_time_ms is always set so need not be initialised in bitforce.
  1132. - Increase bitforce timeout to 10 seconds.
  1133. - Add more hysteresis and poll ~5 times to allow for timer delays in bitforce
  1134. devices.
  1135. - miner.php allow alternating line colours (off by default)
  1136. - Display the actual duration of wait when it is greater than the cutoff.
  1137. - Set nonce to maximum once we determine nonce range support is broken.
  1138. - Initial wait time is always known so no need to zero it beforehand in
  1139. bitforce.
  1140. - No point counting wait time until the work is actually sent to bitforce
  1141. devices.
  1142. - Use string comparison functions instead of explicit comparisons.
  1143. - Account for wait_ms time when nonce_range is in use on BFL.
  1144. - Split nonces up into 1/5 chunks when nonce range is supported.
  1145. - limit clear buffer iterations.
  1146. - Ad fd check to clear buffer.
  1147. - miner.php remove incorrect 'DATE' error message
  1148. - miner.php allow summary header in custom pages
  1149. - Disable nonce range support in BFL when broken support is detected.
  1150. - Restart_wait is only called with a ms value so incorporate that into the
  1151. function.
  1152. - Only try to adjust dev width when curses is built in.
  1153. - miner.php define custom sum fields as a simple array
  1154. - Fix off-by-one error in nonce increment in bfl.
  1155. - Use BE when setting nonce in bitforce nonce range work.
  1156. - Enable nonce range in the normal init sequence for bfl.
  1157. - Queue extra work at 2/3 differently depending on whether we're using nonce
  1158. range or not.
  1159. - Initially enable support for nonce range support on bfl, splitting nonces up
  1160. into 3/4 size and only disable it if it fails on work submit.
  1161. - Attempt to detect nonce range support in BFL by sending work requring its
  1162. support.
  1163. - Limit retrying on busy for up to BITFORCE_TIMEOUT_MS
  1164. - Attempt to initialise while bitforce device returns BUSY.
  1165. - Extend length of string that can be passed to BFL devices.
  1166. - Fix signedness warning.
  1167. - Adjust device width column to be consistent.
  1168. - Use cgpu-> not gpus[] in watchdog thread.
  1169. - Add api stats (sleep time)
  1170. - Timing tweaks Added long and short timeouts, short for detecting throttling,
  1171. long to give up totally. Reset sleep time when device re-initialised Still check
  1172. results after timeout Back up a larger time if result on first poll.
  1173. - Add API Notify counter 'Comms Error'
  1174. - Style police on api.c
  1175. - Do all logging outside of the bitforce mutex locking to avoid deadlocks.
  1176. - Remove applog call from bfwrite to prevent grabbing nested mutexes.
  1177. - Bitforce style changes.
  1178. - Minor style changes.
  1179. - Remove needless roundl define.
  1180. - Made JSON error message verbose.
  1181. - Fine-tune timing adjustment. Also remove old work_restart timing.
  1182. - Check for gpu return times of >= 0, not just 0, to fix intensity dropping to
  1183. -10.
  1184. - Restart is zeroed in the mining thread so no need to do it inside the bitforce
  1185. code.
  1186. - More improvements to comms. BFL return nothing when throttling, so should not
  1187. be considered an error. Instead repeat with a longer delay.
  1188. - Polling every 10ms there's not much point checking the pthread_cond_timedwait
  1189. as it just adds overhead. Simply check the value of work_restart in the bfl main
  1190. polling loop.
  1191. - Use a pthread conditional that is broadcast whenever work restarts are
  1192. required. Create a generic wait function waiting a specified time on that
  1193. conditional that returns if the condition is met or a specified time passed to
  1194. it has elapsed. Use this to do smarter polling in bitforce to abort work, queue
  1195. more work, and check for results to minimise time spent working needlessly.
  1196. - Add busy time to wait time.
  1197. - api.c put version up to 1.14
  1198. - Add tiny delay after writing to BFL Change BFL errors to something more human
  1199. readable Send work busy re-tries after 10ms delay
  1200. Version 2.4.4 - July 1, 2012
  1201. - Fix builds on non gnu platforms.
  1202. - api.c ensure old mode is always available when not using --api-groups + quit()
  1203. on param errors
  1204. - Implement rudimentary X-Mining-Hashrate support.
  1205. - Detect large swings in temperature when below the target temperature range and
  1206. change fan by amounts dependant on the value of tdiff.
  1207. - Adjust the fanspeed by the magnitude of the temperature difference when in the
  1208. optimal range.
  1209. - Revert "Restarting cgminer from within after ADL has been corrupted only leads
  1210. to a crash. Display a warning only and disable fanspeed monitoring."
  1211. - api.c fix json already closed
  1212. - implement and document API option --api-groups
  1213. - Put upper bounds to under 2 hours that work can be rolled into the future for
  1214. bitcoind will deem it invalid beyond that.
  1215. - define API option --api-groups
  1216. - api.c allow unwell devices to be enabled so they can be cured
  1217. - miner.php - fix/enable autorefresh for custom pages
  1218. - miner.php allow custom summary pages - new 'Mobile' summary
  1219. - Work around pools that advertise very low expire= time inappropriately as this
  1220. leads to many false positives for stale shares detected.
  1221. - Only show ztex board count if any exist.
  1222. - There is no need for work to be a union in struct workio_cmd
  1223. - fpgautils.c include a debug message for all unknown open errors
  1224. - Don't keep rolling work right up to the expire= cut off. Use 2/3 of the time
  1225. between the scantime and the expiry as cutoff for reusing work.
  1226. - Log a specific error when serial opens fail due to lack of user permissions
  1227. - Increase GPU timing resolution to microsecond and add sanity check to ensure
  1228. times are positive.
  1229. - Opencl code may start executing before the clfinish order is given to it so
  1230. get the start timing used for dynamic intensity from before the kernel is
  1231. queued.
  1232. - fpgautils.c - set BAUD rate according to termio spec
  1233. - fpgautils.c - linux ordering back to the correct way
  1234. - miner.php remove unneeded '.'s
  1235. - miner.php add auto refresh options
  1236. - miner.php add 'restart' next to 'quit'
  1237. - miner.php make fontname/size configurable with myminer.php
  1238. - Make the pools array a dynamically allocated array to allow unlimited pools to
  1239. be added.
  1240. - Make the devices array a dynamically allocated array of pointers to allow
  1241. unlimited devices.
  1242. - Dynamic intensity for GPUs should be calculated on a per device basis. Clean
  1243. up the code to only calculate it if required as well.
  1244. - Use a queueing bool set under control_lock to prevent multiple calls to
  1245. queue_request racing.
  1246. - Use the work clone flag to determine if we should subtract it from the total
  1247. queued variable and provide a subtract queued function to prevent looping over
  1248. locked code.
  1249. - Don't decrement staged extras count from longpoll work.
  1250. - Count longpoll's contribution to the queue.
  1251. - Increase queued count before pushing message.
  1252. - Test we have enough work queued for pools with and without rolltime
  1253. capability.
  1254. - As work is sorted by age, we can discard the oldest work at regular intervals
  1255. to keep only 1 of the newest work items per mining thread.
  1256. - Roll work again after duplicating it to prevent duplicates on return to the
  1257. clone function.
  1258. - Abstract out work cloning and clone $mining_threads copies whenever a rollable
  1259. work item is found and return a clone instead.
  1260. - api.c display Pool Av in json
  1261. - Take into account average getwork delay as a marker of pool communications
  1262. when considering work stale.
  1263. - Work out a rolling average getwork delay stored in pool_stats.
  1264. - Getwork delay in stats should include retries for each getwork call.
  1265. - Walk through the thread list instead of searching for them when disabling
  1266. threads for dynamic mode.
  1267. - Extend nrolltime to support the expiry= parameter. Do this by turning the
  1268. rolltime bool into an integer set to the expiry time. If the pool supports
  1269. rolltime but not expiry= then set the expiry time to the standard scantime.
  1270. - When disabling fanspeed monitoring on adl failure, remove any twin GPU
  1271. association. This could have been leading to hangs on machines with dual GPU
  1272. cards when ADL failed.
  1273. - modminer: Don't delay 2nd+ FPGAs during work restart
  1274. - Disable OpenCL code when not available.
  1275. - Fix openwrt crashing on regeneratehash() by making check_solve a noop.
  1276. - FPGA - allow device detect override without an open failure
  1277. - Fix sign warning.
  1278. Version 2.4.3 - June 14, 2012
  1279. - can_roll and should_roll should have no bearing on the cycle period within the
  1280. miner_thread so remove it.
  1281. - Check for strategy being changed to load balance when enabling LPs.
  1282. - Check that all threads on the device that called get_work are waiting on
  1283. getwork before considering the pool lagging.
  1284. - Iterate over each thread belonging to each device in the hashmeter instead of
  1285. searching for them now that they're a list.
  1286. - When using rotate pool strategy, ensure we only select from alive enabled
  1287. pools.
  1288. - Start longpoll from every pool when load balance strategy is in use.
  1289. - Add mandatory and block fields to the work struct. Flag any shares that are
  1290. detected as blocks as mandatory to submit, along with longpoll work from a
  1291. previously rejecting pool.
  1292. - Consider the fan optimal if fanspeed is dropping but within the optimal speed
  1293. window.
  1294. - Fix typo in some API messages (succeess/success)
  1295. - api.c MMQ stat bugs
  1296. - Bugfix: Fix warnings when built without libudev support
  1297. - Bugfix: slay a variety of warnings
  1298. - Bugfix: modminer: Fix unsigned/signed comparison and similar warnings
  1299. - API add ModMinerQuad support
  1300. - Bugfix: Honour forceauto parameter in serial_detect functions
  1301. - modminer: Temperature sensor improvements
  1302. - modminer: Make log messages more consistent in format
  1303. - Only adjust GPU speed up if the fanspeed is within the normal fanrange and
  1304. hasn't been turned to maximum speed under overheat conditions.
  1305. - ModMiner use valid .name
  1306. - New driver: BTCFPGA ModMiner
  1307. - Abstract generally useful FPGA code into fpgautils.c
  1308. - API add stats for pool getworks
  1309. - miner.php option to hide specific fields from the display
  1310. - miner.php add version numbers to the summary page
  1311. - Update debian configs to v2.4.2
  1312. - Add API and FPGA READMEs into Makefile to be included in source distribution.
  1313. - Icarus - fix unit64_t printf warnings
  1314. Version 2.4.2 - June 2, 2012
  1315. - API.class compiled with Java SE 6.0_03 - works with Win7x64
  1316. - miner.php highlight devs too slow finding shares (possibly failing)
  1317. - API update version to V1.11 and document changes
  1318. - API save default config file if none specified
  1319. - api.c save success incorrectly returns error
  1320. - api.c replace BUFSIZ (linux/windows have different values)
  1321. - Move RPC API content out of README to API-README
  1322. - Open a longpoll connection if a pool is in the REJECTING state as it's the
  1323. only way to re-enable it automatically.
  1324. - Use only one longpoll as much as possible by using a pthread conditional
  1325. broadcast that each longpoll thread waits on and checks if it's the current pool
  1326. before
  1327. - If shares are known stale, don't use them to decide to disable a pool for
  1328. sequential rejects.
  1329. - Restarting cgminer from within after ADL has been corrupted only leads to a
  1330. crash. Display a warning only and disable fanspeed monitoring.
  1331. - Icarus: fix abort calculation/allow user specified abort
  1332. - Icarus: make --icarus-timing hidden and document it in FPGA-README
  1333. - Icarus: high accuracy timing and other bitstream speed support
  1334. - add-MIPSEB-to-icarus-for-BIG_ENDIAN
  1335. - work_decode only needs swab32 on midstate under BIG ENDIAN
  1336. - add compile command to api-example.c
  1337. - save config bugfix: writing an extra ',' when no gpus
  1338. - Add dpkg-source commits
  1339. Version 2.4.1 - May 6, 2012
  1340. - In the unlikely event of finding a block, display the block solved count with
  1341. the pool it came from for auditing.
  1342. - Display the device summary on exit even if a device has been disabled.
  1343. - Use correct pool enabled enums in api.c.
  1344. - Import Debian packaging configs
  1345. - Ensure we test for a pool recovering from idle so long as it's not set to
  1346. disabled.
  1347. - Fix pool number display.
  1348. - Give cgminer -T message only if curses is in use.
  1349. - Reinit_adl is no longer used.
  1350. - API 'stats' allow devices to add their own stats also for testing/debug
  1351. - API add getwork stats to cgminer - accesable from API 'stats'
  1352. - Don't initialise variables to zero when in global scope since they're already
  1353. initialised.
  1354. - Get rid of unitialised variable warning when it's false.
  1355. - Move a pool to POOL_REJECTING to be disabled only after 3 minutes of
  1356. continuous rejected shares.
  1357. - Some tweaks to reporting and logging.
  1358. - Change FPGA detection order since BFL hangs on an ICA
  1359. - API support new pool status
  1360. - Add a temporarily disabled state for enabled pools called POOL_REJECTING and
  1361. use the work from each longpoll to help determine when a rejecting pool has
  1362. started working again. Switch pools based on the multipool strategy once a pool
  1363. is re-enabled.
  1364. - Removing extra debug
  1365. - Fix the benchmark feature by bypassing the new networking code.
  1366. - Reset sequential reject counter after a pool is disabled for when it is
  1367. re-enabled.
  1368. - Icarus - correct MH/s and U: with work restart set at 8 seconds
  1369. - ztex updateFreq was always reporting on fpga 0
  1370. - Trying harder to get 1.15y working
  1371. - Specifying threads on multi fpga boards extra cgpu
  1372. - Missing the add cgpu per extra fpga on 1.15y boards
  1373. - API add last share time to each pool
  1374. - Don't try to reap curls if benchmarking is enabled.
  1375. Version 2.4.0 - May 3, 2012
  1376. - Only show longpoll warning once when it has failed.
  1377. - Convert hashes to an unsigned long long as well.
  1378. - Detect pools that have issues represented by endless rejected shares and
  1379. disable them, with a parameter to optionally disable this feature.
  1380. - Bugfix: Use a 64-bit type for hashes_done (miner_thread) since it can overflow
  1381. 32-bit on some FPGAs
  1382. - Implement an older header fix for a label existing before the pthread_cleanup
  1383. macro.
  1384. - Limit the number of curls we recruit on communication failures and with
  1385. delaynet enabled to 5 by maintaining a per-pool curl count, and using a pthread
  1386. conditional that wakes up when one is returned to the ring buffer.
  1387. - Generalise add_pool() functions since they're repeated in add_pool_details.
  1388. - Bugfix: Return failure, rather than quit, if BFwrite fails
  1389. - Disable failing devices such that the user can attempt to re-enable them
  1390. - Bugfix: thread_shutdown shouldn't try to free the device, since it's needed
  1391. afterward
  1392. - API bool's and 1TBS fixes
  1393. - Icarus - minimise code delays and name timer variables
  1394. - api.c V1.9 add 'restart' + redesign 'quit' so thread exits cleanly
  1395. - api.c bug - remove extra ']'s in notify command
  1396. - Increase pool watch interval to 30 seconds.
  1397. - Reap curls that are unused for over a minute. This allows connections to be
  1398. closed, thereby allowing the number of curl handles to always be the minimum
  1399. necessary to not delay networking.
  1400. - Use the ringbuffer of curls from the same pool for submit as well as getwork
  1401. threads. Since the curl handles were already connected to the same pool and are
  1402. immediately available, share submission will not be delayed by getworks.
  1403. - Implement a scaleable networking framework designed to cope with any sized
  1404. network requirements, yet minimise the number of connections being reopened. Do
  1405. this by create a ring buffer linked list of curl handles to be used by getwork,
  1406. recruiting extra handles when none is immediately available.
  1407. - There is no need for the submit and getwork curls to be tied to the pool
  1408. struct.
  1409. - Do not recruit extra connection threads if there have been connection errors
  1410. to the pool in question.
  1411. - We should not retry submitting shares indefinitely or we may end up with a
  1412. huge backlog during network outages, so discard stale shares if we failed to
  1413. submit them and they've become stale in the interim.
  1414. Version 2.3.6 - April 29, 2012
  1415. - Shorten stale share messages slightly.
  1416. - Protect the freeing of current_hash under mutex_lock to prevent racing on it
  1417. when set_curblock is hit concurrently.
  1418. - Change default behaviour to submitting stale, removing the --submit-stale
  1419. option and adding a --no-submit-stale option.
  1420. - Make sure to start the getwork and submit threads when a pool is added on the
  1421. fly. This fixes a crash when a pool is added to running cgminer and then
  1422. switched to.
  1423. - Faster hardware can easily outstrip the speed we can get work and submit
  1424. shares when using only one connection per pool.
  1425. - Test the queued list to see if any get/submits are already queued and if they
  1426. are, start recruiting extra connections by generating new threads.
  1427. - This allows us to reuse network connections at low loads but recuit new open
  1428. connections as they're needed, so that cgminer can scale to hardware of any
  1429. size.
  1430. Version 2.3.5 - April 28, 2012
  1431. - Restarting cgminer leads to a socket that can't be bound for 60 seconds, so
  1432. increase the interval that API binding waits to 30 seconds to minimise the
  1433. number of times it will retry, spamming the logs.
  1434. - Give a longpoll message for any longpoll that detects a block change, primary
  1435. or backup, and also display which pool it was.
  1436. - Decrease utility display to one decimal place.
  1437. - Small cosmetic output alignment.
  1438. - Add pool number to stale share message.
  1439. - Add space to log output now that there is more screen real estate available.
  1440. - Indentation clean up.
  1441. - Merge branch 'master' of github.com:ckolivas/cgminer
  1442. - Remove thread id display from rejected shares as well.
  1443. - Merge pull request #185 from Diapolo/diakgcn
  1444. - add goffset support for diakgcn with -v 1 and update kernel version
  1445. - Set have_longpoll to true when there is at least one pool with longpoll.
  1446. - Don't display the thread ID since it adds no useful information over the
  1447. device number.
  1448. - Don't display the first 8 bytes of a share since they will always be zero at
  1449. >= 1 difficulty.
  1450. - work->longpoll is reset across test_work_current so we need to recheck what
  1451. pool it belongs to.
  1452. - Use longpolls from backup pools with failover-only enabled just to check for
  1453. block changes, but don't use them as work.
  1454. - Start longpoll only after we have tried to extract the longpoll URL.
  1455. - Check for submitold flag on resubmit of shares, and give different message for
  1456. stale shares on retry.
  1457. - Check for submitold before submitstale.
  1458. - Don't force fresh curl connections on anything but longpoll threads.
  1459. - Create one longpoll thread per pool, using backup pools for those pools that
  1460. don't have longpoll.
  1461. - Use the work created from the longpoll return only if we don't have
  1462. failover-enabled, and only flag the work as a longpoll if it is the current
  1463. pool.
  1464. - This will work around the problem of trying to restart the single longpoll
  1465. thread on pool changes that was leading to race conditions.
  1466. - It will also have less work restarts from the multiple longpolls received from
  1467. different pools.
  1468. - Remove the ability to disable longpoll. It is not a useful feature and will
  1469. conflict with planned changes to longpoll code.
  1470. - Remove the invalid entries from the example configuration file.
  1471. - Add support for latest ATI SDK on windows.
  1472. - Export missing function from libztex.
  1473. - miner.php change socktimeoutsec = 10 (it only waits once)
  1474. - Bugfix: Make initial_args a const char** to satisfy exec argument type warning
  1475. (on Windows only)
  1476. - miner.php add a timeout so you don't sit and wait ... forever
  1477. - Create discrete persistent submit and get work threads per pool, thus allowing
  1478. all submitworks belonging to the same pool to reuse the same curl handle, and
  1479. all getworks to reuse their own handle.
  1480. - Use separate handles for submission to not make getwork potentially delay
  1481. share submission which is time critical.
  1482. - This will allow much more reusing of persistent connections instead of opening
  1483. new ones which can flood routers.
  1484. - This mandated a rework of the extra longpoll support (for when pools are
  1485. switched) and this is managed by restarting longpoll cleanly and waiting for a
  1486. thread join.
  1487. - miner.php only show the current date header once
  1488. - miner.php also add current time like single rig page
  1489. - miner.php display rig 'when' table at top of the multi-rig summary page
  1490. - README - add some Ztex details
  1491. - api.c include zTex in the FPGA support list
  1492. - api.c ensure 'devs' shows PGA's when only PGA code is compiled
  1493. - cgminer.c sharelog code consistency and compile warning fix
  1494. - README correct API version number
  1495. - README spelling error
  1496. - api.c combine all pairs of sprintfs()
  1497. - api.c uncomment and use BLANK (and COMMA)
  1498. - Code style cleanup
  1499. - Annotating frequency changes with the changed from value
  1500. - README clarification of 'notify' command
  1501. - README update for API RPC 'devdetails'
  1502. - api.c 'devdetails' list static details of devices
  1503. - Using less heap space as my TP-Link seems to not handle this much
  1504. Version 2.3.4 - April 25, 2012
  1505. - Extensively document the cause of GPU device issues and the use of --gpu-map.
  1506. - Support for share logging
  1507. - Detect poorly performing combination of SDK and phatk kernel and add verbose
  1508. warning at startup.
  1509. - Icarus update to new add_cgpu()
  1510. - Icarus driver working with Linux and Windows
  1511. - api.c fix unused variable compile warning
  1512. - Display all OpenCL devices when -n is called as well to allow debugging of
  1513. differential mapping of OpenCL to ADL.
  1514. - Add a --gpu-map option which will allow arbitrarily mapping ADL devices to
  1515. OpenCL devices for instances where association by enumeration alone fails.
  1516. - Increase upper limit on number of extra items to queue as some FPGA code can't
  1517. yet reliably keep many devices busy.
  1518. - Display configuration file information when -c option is passed and only when
  1519. file exists on loading default config file.
  1520. - Display configuration file loaded, if any, and debug output if configuration
  1521. file parsing failed.
  1522. - Add missing ztex header to Makefile for distribution.
  1523. - Document long-form COM port device names on Windows, required to specify
  1524. serial ports above 9
  1525. - Include ztex bitstreams firmware in distribution and install if configured in.
  1526. - Style police on driver-ztex.c
  1527. - work_restart should only be changed by cgminer.c now
  1528. - Shut down the api cleanly when the api thread is cancelled. This should allow
  1529. the api socket to be closed successfully to next be reopened with app_restart.
  1530. - Make a union for cgpu device handles, and rename "device" to "device_ztex"
  1531. since it's Ztex-specific
  1532. - Initialise name variable.
  1533. - Remove unnecessary check for variable that always has memory allocated.
  1534. - Bugfix: Missing "break" no-op in default case
  1535. - Make the status window and log window as large as can fit on startup,
  1536. rechecking to see if it can be enlarged after the fact. This allows any number
  1537. of devices to be displayed provided the window is made long enough without
  1538. corrupting the output.
  1539. - Style police on libztex.c.
  1540. - API add removepool like the screen interface
  1541. - api.c escape required characters in return strings + pools returns the
  1542. username
  1543. - Set lp_path to NULL after free for consistency.
  1544. - Removing dmalloc import left behind by mistake
  1545. - Fixing leak in resp_hdr_cb
  1546. - miner.php warning highlight GPU stats if they are zero (e.g. ADL not enabled)
  1547. - miner.php highlight any device that isn't 'Enabled'
  1548. - miner.php highlight any Status that isn't 'Alive'
  1549. - miner.php optionally support multiple rigs
  1550. - Initial Ztex support 1.15x board.
  1551. Version 2.3.3 - April 15, 2012
  1552. - Don't even display that cpumining is disabled on ./configure to discourage
  1553. people from enabling it.
  1554. - Do a complete cgminer restart if the ATI Display Library fails, as it does on
  1555. windows after running for some time, when fanspeed reporting fails.
  1556. - Cache the initial arguments passed to cgminer and implement an attempted
  1557. restart option from the settings menu.
  1558. - Disable per-device status lines when there are more than 8 devices since
  1559. screen output will be corrupted, enumerating them to the log output instead at
  1560. startup.
  1561. - Reuse Vals[] array more than W[] till they're re-initialised on the second
  1562. sha256 cycle in poclbm kernel.
  1563. - Minor variable alignment in poclbm kernel.
  1564. - Make sure to disable devices with any status not being DEV_ENABLED to ensure
  1565. that thermal cutoff code works as it was setting the status to DEV_RECOVER.
  1566. - Re-initialising ADL simply made the driver fail since it is corruption over
  1567. time within the windows driver that's responsible. Revert "Attempt to
  1568. re-initialise ADL should a device that previously reported fanspeed stops
  1569. reporting it."
  1570. - Microoptimise poclbm kernel by ordering Val variables according to usage
  1571. frequency.
  1572. Version 2.3.2 - March 31, 2012
  1573. - Damping small changes in hashrate so dramatically has the tendency to always
  1574. make the hashrate underread so go back to gentle damping instead.
  1575. - Revert the crossover of variables from Vals to W in poclbm kernel now that
  1576. Vals are the first declared variables so they're used more frequently.
  1577. - Vals variables appearing first in the array in poclbm is faster.
  1578. - Change the preferred vector width to 1 for Tahiti only, not all poclbm
  1579. kernels.
  1580. - Use a time constant 0.63 for when large changes in hashrate are detected to
  1581. damp change in case the large change is an aliasing artefact instead of a real
  1582. chang
  1583. - Only increment stale counter if the detected stales are discarded.
  1584. - Attempt to re-initialise ADL should a device that previously reported fanspeed
  1585. stops reporting it.
  1586. - Move the ADL setup and clearing to separate functions and provide a reinit_adl
  1587. function to be used when adl fails while running.
  1588. - Use slightly more damping on the decay time function in the never-ending quest
  1589. to smooth off the hashmeter.
  1590. - Set the starting fanspeed to a safe and fairly neutral 50% when autofan is
  1591. enabled.
  1592. - Provide locking around updates of cgpu hashrates as well to prevent multiple
  1593. threads accessing data fields on the same device.
  1594. - Display the beginning of the new block in verbose mode in the logs.
  1595. - Reinstate old diablo kernel variable ordering from 120222, adding only goffset
  1596. and vector size hint. The massive variable ordering change only helped one SDK
  1597. on
  1598. - Change the version number on the correct kernels.
  1599. - api.c devicecode/osinfo incorrectly swapped for json
  1600. - Add extensive instructions on how to make a native windows build.
  1601. - Update version numbers of poclbm and diablo kernels as their APIs have also
  1602. changed.
  1603. - Use global offset parameter to diablo and poclbm kernel ONLY for 1 vector
  1604. kernels.
  1605. - Use poclbm preferentially on Tahiti now regardless of SDK.
  1606. - Remove unused constant passed to poclbm.
  1607. - Clean up use of macros in poclbm and use bitselect everywhere possible.
  1608. - Add vector type hint to diablo kernel.
  1609. - Add worksize and vector attribute hints to the poclbm kernel.
  1610. - Spaces for non-aligned variables in poclbm.
  1611. - More tidying of poclbm.
  1612. - Swap Vals and W variables where they can overlap in poclbm.
  1613. - More tidying of poclbm.
  1614. - Tidy up first half of poclbm.
  1615. - Clean up use of any() by diablo and poclbm kernels.
  1616. - Minor variable symmetry changes in poclbm.
  1617. - Put additions on separate lines for consistency in poclbm.
  1618. - Consolidate last use of W11 into Vals4 in poclbm.
  1619. - Change email due to SPAM
  1620. - api.c miner.php add a '*' to the front of all notify counters - simplifies
  1621. future support of new counters
  1622. - miner.php add display 'notify' command
  1623. - Small change to help arch's without processor affinity
  1624. - Fix bitforce compile error
  1625. - api.c notify should report disabled devices also - of course
  1626. - API returns the simple device history with the 'notify' command
  1627. - code changes for supporting a simple device history
  1628. - api.c Report an OS string in config to help with device issues
  1629. - api.c fix Log Interval - integer in JSON
  1630. - api.c config 'Device Code' to show list of compiled devices + README
  1631. - api.c increase buffer size close to current code allowable limit
  1632. - removed 8-component vector support from kernel, as this is not supported in
  1633. CGMINER anyway
  1634. - forgot to update kernel modification date, fixed ;)
  1635. - reordered an addition in the kernel, which results in less instructions used
  1636. in the GPU ISA code for GCN
  1637. - miner.php: option for readonly or check privileged access
  1638. - Ignore reduntant-with-build options --disable-gpu, --no-adl, and --no-restart
  1639. - miner.php: ereg_replace is DEPRECATED so use preg_replace instead
  1640. - Make curses TUI support optional at compile-time.
  1641. - Bugfix: AC_ARG_WITH provides withval instead of enableval
  1642. - miner.php split devs output for different devices
  1643. - api.c: correct error messages
  1644. - icarus.c modify (regular) timeout warning to only be debug
  1645. - icarus.c set the windows TODO timeout
  1646. - Allow specifying a specific driver for --scan-serial
  1647. - optimized nonce-check and output code for -v 2 and -v 4
  1648. - Bugfix: Check for libudev header (not just library) in configure, and document
  1649. optional dependency
  1650. - Add API support for Icarus and Bitforce
  1651. - Next API version is 1.4 (1.3 is current)
  1652. - README/api.c add "When" the request was processed to STATUS
  1653. - Bugfix: ZLX to read BitFORCE temp, not ZKX -.-
  1654. - Use libudev to autodetect BitFORCE GPUs, if available
  1655. - Use the return value of fan_autotune to set fan_optimal instead of passing it
  1656. as a pointer.
  1657. - Pass the lasttemp from the device we're using to adjust fanspeed in twin
  1658. devices.
  1659. - fix the name to 3 chars, fix the multi-icarus support
  1660. - Bugfix: "-S auto" is the default if no -S is specified, and there is no such
  1661. delay in using it
  1662. - README add information missing from --scan-serial
  1663. - Update README RPC API Version comment
  1664. - Bugfix: Allow enabling CPU even without OpenCL support
  1665. - Change failed-to-mine number of requested shares messge to avoid segfault on
  1666. recursive calling of quit().
  1667. - Get rid of extra char which is just truncated in poclbm kernel.
  1668. - only small code formating changes
  1669. - removed vec_step() as this could lead to errors on older SDKs
  1670. - unified code for generating nonce in kernel and moved addition of base to the
  1671. end -> faster
  1672. Version 2.3.1 - February 24, 2012
  1673. - Revert input and output code on diakgcn and phatk kernels to old style which
  1674. worked better for older hardware and SDKs.
  1675. - Add a vector*worksize parameter passed to those kernels to avoid one op.
  1676. - Increase the speed of hashrate adaptation.
  1677. - Only send out extra longpoll requests if we want longpolls.
  1678. - API implement addpool command
  1679. - API return the untouched Total MH also (API now version 1.3)
  1680. - Add enable/disablepool to miner.php example and reduce font size 1pt
  1681. Version 2.3.0 - February 23, 2012
  1682. - Consider extra longpoll work items as staged_extra so as to make sure we queue
  1683. more work if queueing regular work items as longpolls.
  1684. - Use diablo kernel on all future SDKs for Tahiti and set preferred vector width
  1685. to 1 on poclbm kernel only.
  1686. - Explicitly type the constants in diakgcn kernel as uint, to be in line with
  1687. poclbm kernel.
  1688. - Reset all hash counters at the same time as resetting start times to get
  1689. accurate hashrates on exiting which is mandatory for benchmarking.
  1690. - Report thread out before it starts to avoid being flagged as sick when waiting
  1691. for the first work item.
  1692. - Don't disable and re-enable devices as they may recover and in the meantime
  1693. have their status set to OFF.
  1694. - API new commands enablepool and disablepool (version already incremented)
  1695. - Tolerate new-format temperature readings for bitforce
  1696. - Modify cgminer.c pool control to allow API to call it
  1697. - Bugfix: Fix BitFORCE driver memory leak in debug logging
  1698. - Extra byte was being unused in poclbm leading to failure on some platforms.
  1699. - Explicitly type the constants in poclbm kernel as uint.
  1700. - Don't save 'include' when saving the configuration
  1701. - Allow configuration file to include another recursively
  1702. - Use the SDK and hardware information to choose good performing default
  1703. kernels.
  1704. - Move phatk kernel to offset vector based nonce bases as well.
  1705. - Add a --benchmark feature which works on a fake item indefinitely to compare
  1706. device performance without any server or networking influence.
  1707. - Allow writing of multiple worksizes to the configuration file.
  1708. - Allow writing of multiple vector sizes to the configuration file.
  1709. - Allow writing of multiple kernels to the configuration file.
  1710. - Allow multiple different kernels to be chosen per device.
  1711. - Allow the worksize to be set per-device.
  1712. - Allow different vectors to be set per device.
  1713. - If we're well below the target temperature, increase gpu engine speed back to
  1714. maximum in case we have gotten lost between profiles during an idle period.
  1715. - We should be setting the value of fan_optimal, not its address.
  1716. - As all kernels will be new versions it's an opportunity to change the .bin
  1717. format and make it simpler. Specifying bitalign is redundant and long can be l.
  1718. - Use any() in kernel output code.
  1719. - Put the nonce for each vector offset in advance, avoiding one extra addition
  1720. in the kernel.
  1721. - Reset times after all mining threads are started to make estimating hashrates
  1722. easier at startup.
  1723. - Bugfix: allow no-exec (NX) stack
  1724. - Fix minor warning.
  1725. - fix the bitforce.c code style follow 1TBS
  1726. - fix icarus.c compile warning
  1727. - small changes to speedup no vec for AMD 898.1 OCL runtime
  1728. - Update licensing to GPL V3.
  1729. - Reset the longpoll flag after it's been used once to prevent it restarting
  1730. work again.
  1731. - Begin import of DiabloMiner kernel.
  1732. - Modify API debug messages to say API instead of DBG
  1733. - When API shuts down cgminer don't kill itself
  1734. - Don't make rolled work from the longpoll be seen as other longpoll work items.
  1735. - API add 'privileged' command so can verify access level
  1736. - Set the lp_sent variable under lock since there will almost always be a race
  1737. on setting this variable, potentially leading to multiple LPs being sent out.
  1738. - API restrict access to all non display commands by default
  1739. - Update API version to 1.2 for new 'Log Interval'
  1740. - API add --log Interval to 'config' reply
  1741. - --api-allow special case 0/0 means all
  1742. Version 2.2.7 - February 20, 2012
  1743. - Send out extra longpolls when we have switched pools and the longpoll thread
  1744. is still bound to the old one. This is particularly useful with p2pool where
  1745. longpolls do not correlate with main bitcoin block change and would have led to
  1746. high reject rates on failover.
  1747. - Store whether a work item is the result of a longpoll or not in struct work
  1748. and use it to help determine block changes directly from the work longpoll bool.
  1749. - Keep track of when a longpoll has been sent for a pool and if the current pool
  1750. is requesting work but has not sent a longpoll request, convert one of the work
  1751. items to a longpoll.
  1752. - Store the longpoll url in the pool struct and update it from the pool_active
  1753. test in case it changes. This is to allow further changes to longpoll management
  1754. on switching pools.
  1755. - Re-check for a longpoll supporting pool every 30 seconds if none is found
  1756. initially.
  1757. - Report threads as busy waiting on getwork on startup to avoid them being
  1758. flagged sick on startup during slow networking.
  1759. - Allow devices that are disabled due to overheating to be flagged as recovering
  1760. instead of disabling them and re-enable them if they're below ideal temperatures
  1761. - Tahiti prefers worksize 64 with poclbm.
  1762. - No need to expressly retain the opencl program now that the zero binary issue
  1763. is fixed. This actually fixes cgminer to work with the latest SDK included with
  1764. the ATI catalyst driver 12.2.
  1765. - Show error code on any opencl failure status.
  1766. - Add detection for version 898.1 SDK as well but only give SDK 2.6 warning once
  1767. on startup instead of with each device initialisation.
  1768. - Always use a fresh connection for longpoll as prolonged persistent connections
  1769. can fail for many reasons.
  1770. - Keep track of intended engine clock speed and only adjust up if it's higher
  1771. than the last intended speed. This avoids setting the clock speed to one
  1772. relative to a lower profile one by mistake.
  1773. - Use gpu-memdiff on startup if an engine clockspeed is set and a memdiff value
  1774. is set.
  1775. - Revert "Adjust engine speed up according to performance level engine setting,
  1776. not the current engine speed." - ineffectual.
  1777. - Freeze the queues on all threads that are sent the pause message to prevent
  1778. them trying to start up again with saved pings in their queues.
  1779. - Updates to diakgcn kernel/
  1780. - Consolidate all screen updates to the watchdog thread and touch both windows
  1781. before refresh.
  1782. - Curses will be disabled in clean_up so don't do it early in kill_work, and
  1783. disable_adl so that GPU settings may be restored to normal in case shutting down
  1784. curses leads to instability on windows.
  1785. - Stop the mining threads before trying to kill them.
  1786. - Plain refresh() does not give reliably screen updates so get rid of all uses
  1787. of it.
  1788. - First release with working diakgcn kernel.
  1789. Version 2.2.6 - February 16, 2012
  1790. - Provide warning on each startup about sdk 2.6
  1791. - Fix unused warnings on win32.
  1792. - bitforce: Simplify BFopen WIN32 ifdef/else
  1793. - Fix initialization warning with jansson 1.3
  1794. - bitforce: Cleanup extraneous TODO that isn't needed
  1795. - Move tcsetattr (and new tcflush) into *nix BFopen to simplify things a bit
  1796. - Add message explaining 2nd thread disabling for dynamic mode and how to tune
  1797. it.
  1798. - Move logwindow down once number of devices is known.
  1799. - Automatically choose phatk kernel for bitalign non-gcn ATI cards, and then
  1800. only select poclbm if SDK2.6 is detected.
  1801. - Allow the refresh interval to be adjusted in dynamic intensity with a
  1802. --gpu-dyninterval parameter.
  1803. - Make curses display visible right from the beginning and fix the window sizes
  1804. so the initial messages don't get lost once the status window is drawn.
  1805. - The amount of work scanned can fluctuate when intensity changes and since we
  1806. do this one cycle behind, we increment the work more than enough to prevent
  1807. repeati
  1808. - bitforce: Set a 30 second timeout for serial port on Windows, since the
  1809. default is undefined
  1810. - Use PreVal4addT1 instead of PreVal4 in poclbm kernel.
  1811. - Import PreVal4 and PreVal0 into poclbm kernel.
  1812. - Import more prepared constants into poclbm kernel.
  1813. - Keep variables in one array but use Vals[] name for consistency with other
  1814. kernel designs.
  1815. - Replace constants that are mandatorily added in poclbm kernel with one value.
  1816. - Remove addition of final constant before testing for result in poclbm kernel.
  1817. - Hand optimise variable addition order.
  1818. - Hand optimise first variable declaration order in poclbm kernel.
  1819. - Radical reordering machine based first pass to change variables as late as
  1820. possible, bringing their usage close together.
  1821. - fix strcpy NULL pointer if env HOME unset.
  1822. - bitforce: Disable automatic scanning when at least one device is specified
  1823. manually
  1824. - Unroll all poclbm additions to enable further optimisations.
  1825. Version 2.2.5 - February 13, 2012
  1826. - Make output buffer write only as per Diapolo's suggestion.
  1827. - Constify nonce in poclbm.
  1828. - Use local and group id on poclbm kernel as well.
  1829. - Microoptimise phatk kernel on return code.
  1830. - Adjust engine speed up according to performance level engine setting, not the
  1831. current engine speed.
  1832. - Try to load a binary if we've defaulted to the poclbm kernel on SDK2.6
  1833. - Use the poclbm kernel on SDK2.6 with bitalign devices only if there is no
  1834. binary available.
  1835. - Further generic microoptimisations to poclbm kernel.
  1836. - The longstanding generation of a zero sized binary appears to be due to the
  1837. OpenCL library putting the binary in a RANDOM SLOT amongst 4 possible binary
  1838. locations. Iterate over each of them after building from source till the real
  1839. binary is found and use that.
  1840. - Fix harmless warnings with -Wsign-compare to allow cgminer to build with -W.
  1841. - Fix missing field initialisers warnings.
  1842. - Put win32 equivalents of nanosleep and sleep into compat.h fixing sleep() for
  1843. adl.c.
  1844. - Restore compatibility with Jansson 1.3 and 2.0 (api.c required 2.1)
  1845. - Modularized logging, support for priority based logging
  1846. - Move CPU chipset specific optimization into device-cpu
  1847. Version 2.2.4 - February 11, 2012
  1848. - Fix double definition of A0 B0 to zeroA zeroB.
  1849. - Retain cl program after successfully loading a binary image. May decrease
  1850. failures to build kernels at startup.
  1851. - Variable unused after this so remove setting it.
  1852. - BFI INT patching is not necessarily true on binary loading of files and not
  1853. true on ATI SDK2.6+. Report bitalign instead.
  1854. - Various string fixes for reject reason.
  1855. - Generalize --temp-cutoff and implement support for reading temperature from
  1856. BitFORCE FPGAs
  1857. - Change message from recovered to alive since it is used on startup as well as
  1858. when a pool has recovered.
  1859. - Start mining as soon as any pool is found active and rely on the watchpool
  1860. thread to bring up other pools.
  1861. - Delayed responses from testing pools that are down can hold up the watchdog
  1862. thread from getting to its device testing code, leading to false detection of
  1863. the GPU not checking in, and can substantially delay auto gpu/auto fan
  1864. management leading to overheating. Move pool watching to its own thread.
  1865. - Bugfix: BitFORCE index needs to be static to count correctly
  1866. - Space out retrieval of extra work according to the number of mining threads.
  1867. - Make shutdown more robust. Enable the input thread only after the other
  1868. threads exist. Don't kill off the workio thread and use it to exit main() only
  1869. if there is an unexpected problem. Use kill_work() for all anticipated shutdowns
  1870. where possible. Remove unused thread entry.
  1871. - Change poclbm version number.
  1872. - One array is faster than 2 separate arrays so change to that in poclbm kernel.
  1873. - Microoptimisations to poclbm kernel which increase throughput slightly.
  1874. - Import diablominer kernel. Currently disabled as not working.
  1875. - Import diapolo kernel. Currently disabled as not working.
  1876. - Conflicting entries of cl_kernel may have been causing problems, and
  1877. automatically chosen kernel type was not being passed on. Rename the enum to
  1878. cl_kernels and store the chosen kernel in each clState.
  1879. - Set cl_amd_media_ops with the BITALIGN flag and allow non-bitselect devices to
  1880. build.
  1881. - ALlow much longer filenames for kernels to load properly.
  1882. - Allow different kernels to be used by different devices and fix the logic fail
  1883. of overcorrecting on last commit with !strstr.
  1884. - Fix kernel selection process and build error.
  1885. - queue_phatk_kernel now uses CL_SET_VARG() for base-nonce(s), too
  1886. - added OpenCL >= 1.1 detection code, in preparation of OpenCL 1.1 global offset
  1887. parameter support
  1888. - Use K array explicitly to make it clear what is being added.
  1889. - Work items have a tendency to expire at exactly the same time and we don't
  1890. queue extra items when there are plenty in the queue, regardless of age. Allow
  1891. extra work items to be queued if adequate time has passed since we last
  1892. requested work even if over the limit.
  1893. - Discard work when failover-only is enabled and the work has come from a
  1894. different pool.
  1895. - Missing include to build on newer mingw32.
  1896. - Move from the thread safe localtime_r to regular localtime which is the only
  1897. one supported on newer pthread libraries on mingw32 to make it compile with the
  1898. newer ming. Thread safety is of no importance where localtime is used in this
  1899. code.
  1900. - Define in_addr_t in windows if required
  1901. - sys/wait.h not required in windows
  1902. - Allow API to restrict access by IP address
  1903. - Add pool switching to example miner.php
  1904. - Display X-Reject-Reason, when provided
  1905. - Remove the test for whether the device is on the highest profil level before
  1906. raising the GPU speed as it is ineffectual and may prevent raising the GPU
  1907. speed.
  1908. - Remove unnecessary check for opt_debug one every invocation of applog at
  1909. LOG_DEBUG level and place the check in applog().
  1910. Version 2.2.3 - February 6, 2012
  1911. - Revert "Rewrite the convoluted get_work() function to be much simpler and roll
  1912. work as much as possible with each new work item." This seems to cause a race on
  1913. work in free_work(). Presumably other threads are still accessing the structure.
  1914. Version 2.2.2 - February 6, 2012
  1915. - Provide support for the submitold extension on a per-pool basis based on the
  1916. value being detected in a longpoll.
  1917. - Don't send a ping to a dynamic device if it's not enabled as that will just
  1918. enable it for one pass and then disable it again.
  1919. - Rewrite the convoluted get_work() function to be much simpler and roll work as
  1920. much as possible with each new work item.
  1921. - Roll as much work as possible from the work returned from a longpoll.
  1922. - Rolling work on each loop through the mining thread serves no purpose.
  1923. - Allow to stage more than necessary work items if we're just rolling work.
  1924. - Replace divide_work with reuse_work function used twice.
  1925. - Give rolled work a new ID to make sure there is no confusion in the hashtable
  1926. lookups.
  1927. - Remove now-defunct hash_div variables.
  1928. - Remove unused get_dondata function.
  1929. - Silence ADL warnings.
  1930. - Silence unused parameter warnings.
  1931. - Stagger the restart of every next thread per device to keep devices busy ahead
  1932. of accessory threads per device.
  1933. - Deprecate the --donation feature. Needlessly complex, questionable usefulness,
  1934. depends on author's server and a central pool of some kind, and was not heavily
  1935. adopted.
  1936. - It's devices that report back now, not threads, update message.
  1937. - Continue auto-management of fan and engine speeds even if a device is disabled
  1938. for safety reasons.
  1939. - No need to check we're highest performance level when throttling GPU engine
  1940. speed.
  1941. - Abstract out tests for whether work has come from a block that has been seen
  1942. before and whether a string is from a previously seen block.
  1943. - Probe but don't set the timeout to 15 seconds as some networks take a long
  1944. time to timeout.
  1945. - Remove most compiler warnings from api.c
  1946. - Add last share's pool info in cgpu_info
  1947. - Allow the OpenCL platform ID to be chosen with --gpu-platform.
  1948. - Iterate over all platforms displaying their information and number of devices
  1949. when --ndevs is called.
  1950. - Deprecate main.c
  1951. - Some networks can take a long time to resolve so go back to 60 second timeouts
  1952. instead of 15.
  1953. - Only enable curses on failure if curses is desired.
  1954. - Fix warnings in bitforce.c
  1955. - Bugfix: Need to open BitForce tty for read-write
  1956. - Fix various build issues.
  1957. - Modularize code: main.c -> device-cpu + device-gpu
  1958. - Fix phatk kernel not working on non-bitalign capable devices (Nvidia, older
  1959. ATI).
  1960. - Update poclbm kernel for better performance on GCN and new SDKs with bitalign
  1961. support when not BFI INT patching. Update phatk kernel to work properly for non
  1962. BFI INT patched kernels, providing support for phatk to run on GCN and non-ATI
  1963. cards.
  1964. - Return last accepted share pool/time for devices
  1965. - Display accepted share pool/time for CPUs
  1966. - Bug intensity always shows GPU 0
  1967. - Update example web miner.php to use new API commands
  1968. Version 2.2.1 - January 30, 2012
  1969. NOTE - The GPU Device reordering in 2.2.0 by default was considered a bad idea
  1970. so the original GPU ordering is used by default again unless reordering is
  1971. explicitly requested.
  1972. - Fix bitforce failing to build into cgminer.
  1973. - Add missing options to write config function.
  1974. - Add a --gpu-reorder option to only reorder devices according to PCI Bus ID
  1975. when requested.
  1976. - Fix for midstate support being broken on pools that supported no-midstate
  1977. work by ensuring numbers are 32 bits in sha2.c
  1978. - Set virtual GPUs to work when ADL is disabled or all mining will occur on GPU
  1979. 0.
  1980. - Add information about paused threads in the menu status.
  1981. - Disable all but the first thread on GPUs in dynamic mode for better
  1982. interactivity.
  1983. - Set the latest network access time on share submission for --net-delay even if
  1984. we're not delaying that submission for further network access.
  1985. - Clear adl on exiting after probing values since it may attempt to overclock.
  1986. - As share submission is usually staggered, and delays can be costly, submit
  1987. shares without delay even when --net-delay is enabled.
  1988. - Display GPU number and device name when ADL is successfully enabled on it.
  1989. - Display GPU ordering remapping in verbose mode.
  1990. - Don't fail in the case the number of ADL and OpenCL devices do not match, and
  1991. do not attempt to reorder devices unless they match. Instead give a warning
  1992. about
  1993. - Display error codes should ADL not return ADL_OK in the more critical function
  1994. calls.
  1995. - Fix unused warning.
  1996. - Fix compile warnings in api.c
  1997. - Add extensive ADL based device info in debug mode.
  1998. - Make --ndevs display verbose opencl information as well to make debugging
  1999. version information easier.
  2000. - Display information about the opencl platform with verbose enabled.
  2001. - Explicitly check for nvidia in opencl platform strings as well.
  2002. Version 2.2.0 - January 29, 2012
  2003. NOTE: GPU Device order will change with this release with ATI GPUs as cgminer
  2004. now can enumerate them according to their Bus ID which means the values should
  2005. now correlate with their physical position on the motherboard.
  2006. - Default to poclbm kernel on Tahiti (7970) since phatk does not work, even
  2007. though performance is sub-standard so that at least it will mine successfully by
  2008. defau
  2009. - Retain cl program after every possible place we might build the program.
  2010. - Update ADL SDK URL.
  2011. - Fix potential overflow.
  2012. - Map GPU devices to virtual devices in their true physical order based on
  2013. BusNumber.
  2014. - Change the warning that comes with failure to init cl on a device to be more
  2015. generic and accurate.
  2016. - Advertise longpoll support in X-Mining-Extensions
  2017. - Detect dual GPU cards by iterating through all GPUs, finding ones without
  2018. fanspeed and matching twins with fanspeed one bus ID apart.
  2019. - Do not attempt to build the program that becomes the kernel twice. This could
  2020. have been leading to failures on initialising cl.
  2021. - Some opencl compilers have issues with no spaces after -D in the compiler
  2022. options.
  2023. - Allow intensity up to 14.
  2024. - Use calloced stack memory for CompilerOptions to ensure sprintf writes to the
  2025. beginning of the char.
  2026. - Whitelist 79x0 cards to prefer no vectors as they perform better without.
  2027. - Adjust fan speed gently while in the optimal range when temperature is
  2028. drifting to minimise overshoot in either direction.
  2029. - Detect dual GPU cards via the indirect information of - 1st card has a fan
  2030. controller. 2nd card does not have a fan controller, cards share the same device
  2031. name
  2032. - Instead of using the BFI_INT patching hack on any device reporting
  2033. cl_amd_media_ops, create a whitelist of devices that need it. This should enable
  2034. GCN architec
  2035. - Fixed API compiling issue on OS X
  2036. - Add more explanation of JSON format and the 'save' command
  2037. - Return an error if using ADL API commands when it's not available
  2038. - Read off lpThermalControllerInfo from each ADL device.
  2039. - Add ADL_Overdrive5_ThermalDevices_Enum interface.
  2040. - Add API commands: config, switchpool, gpu settings, save
  2041. - Implement socks4 proxy support.
  2042. - Fix send() for JSON strings
  2043. - Introduce a --net-delay option which guarantees at least 250ms between any
  2044. networking requests to not overload slow routers.
  2045. - Generalise locking init code.
  2046. - Allow invalid values to be in the configuration file, just skipping over them
  2047. provided the rest of the file is valid JSON. This will allow older configurat
  2048. - Allow CPU mining explicitly enable only if other mining support is built in.
  2049. - BitForce FPGA support
  2050. - Configure out building and support of all CPU mining code unless
  2051. --enable-cpumining is enabled.
  2052. - Allow parsed values to be zero which will allow 0 values in the config file to
  2053. work.
  2054. - Advertise that we can make our own midstate, so the pool can skip generating
  2055. it for us
  2056. - Refactor the CPU scanhash_* functions to use a common API. Fixes bugs.
  2057. - Don't consider a pool lagging if a request has only just been filed. This
  2058. should decrease the false positives for "pool not providing work fast enough".
  2059. - Invalidating work after longpoll made hash_pop return no work giving a false
  2060. positive for dead pool. Rework hash_pop to retry while finds no staged work u
  2061. - Remove TCP_NODELAY from curl options as many small packets may be contributing
  2062. to network overload, when --net-delay is enabled.
  2063. - Refactor miner_thread to be common code for any kind of device
  2064. - Simplify submit_nonce loop and avoid potentially missing FOUND - 1 entry.
  2065. Reported by Luke-Jr.
  2066. - Micro-optimisation in sha256_sse2 code courtesy of Guido Ascioti
  2067. guido.ascioti@gmail.com
  2068. - Refactor to abstract device-specific code
  2069. Version 2.1.2 - January 6, 2012
  2070. - If api-description is specified, save it when writing the config file
  2071. - Adjust utility width to be constant maximum as well.
  2072. - Add percent signs to reject ratio outputs
  2073. - Should the donation pool fail, don't make the fallover pool behave as though
  2074. the primary pool is lagging.
  2075. - Use an alternative pool should the donation getwork fail.
  2076. Version 2.1.1 - January 1, 2012
  2077. - Include API examples in distribution tarball.
  2078. - Don't attempt to pthread_join when cancelling threads as they're already
  2079. detached and doing so can lead to a segfault.
  2080. - Give more generic message if slow pool at startup is the donation pool.
  2081. - Continue to attempt restarting GPU threads if they're flagged dead at 1 min.
  2082. intervals.
  2083. - Don't attempt to restart sick flagged GPUs while they're still registering
  2084. activity.
  2085. - Make curl use fresh connections whenever there is any communication issue
  2086. in case there are dead persistent connections preventing further comms from
  2087. working.
  2088. - Display pool in summary if only 1 pool.
  2089. - Adjust column width of A/R/HW to be the maximum of any device and align them.
  2090. Version 2.1.0 - December 27, 2011
  2091. - Major infrastructure upgrade with RPC interface for controlling via sockets
  2092. encoded with/without JSON courtesy of Andrew Smith. Added documentation for
  2093. use of the API and sample code to use with it.
  2094. - Updated linux-usb-cgminer document.
  2095. - Rewrite of longpoll mechanism to choose the current pool wherever possible to
  2096. use for the longpoll, or any pool that supports longpoll if the current one
  2097. does not.
  2098. - Display information about longpoll when the chosen server has changed.
  2099. - Fix the bug where longpoll generated work may have been sent back to the
  2100. wrong pool, causing rejects.
  2101. - Fix a few race conditions on closing cgminer which caused some of the crashes
  2102. on exit.
  2103. - Only adjust gpu engine speed in autotune mode if the gpu is currently at the
  2104. performance level of that being adjusted.
  2105. - Various fixes for parsing/writing of configuration files.
  2106. - Do not add blank lines for threads of unused CPUs.
  2107. - Show which pool is unresponsive on startup.
  2108. - Only show GPU management menu item if GPUs are in use.
  2109. - Align most device columns in the curses display.
  2110. Version 2.0.8 - November 11, 2011
  2111. - Make longpoll do a mandatory flushing of all work even if the block hasn't
  2112. changed, thus supporting longpoll initiated work change of any sort and merged
  2113. mining.
  2114. - Byteswap computed hash in hashtest so it can be correctly checked. This fixes
  2115. the very rare possibility that a block solve on solo mining was missed.
  2116. - Add x86_64 w64 mingw32 target
  2117. - Allow a fixed speed difference between memory and GPU clock speed with
  2118. --gpu-memdiff that will change memory speed when GPU speed is changed in
  2119. autotune mode.
  2120. - Don't load the default config if a config file is specified on the command
  2121. line.
  2122. - Don't build VIA on apple since -a auto bombs instead of gracefully ignoring
  2123. VIA failing.
  2124. - Build fix for dlopen/dlclose errors in glibc.
  2125. Version 2.0.7 - October 17, 2011
  2126. - Support work without midstate or hash1, which are deprecated in bitcoind 0.5+
  2127. - Go to kernel build should we fail to clCreateProgramWithBinary instead of
  2128. failing on that device. This should fix the windows problems with devices not
  2129. initialising.
  2130. - Support new configuration file format courtesy of Chris Savery which can write
  2131. the config file from the menu and will load it on startup.
  2132. - Write unix configuration to .cgminer/cgminer.conf by default and prompt to
  2133. overwrite if given a filename from the menu that exists.
  2134. Version 2.0.6 - October 9, 2011
  2135. - Must initialise the donorpool mutex or it fails on windows.
  2136. - Don't make donation work interfere with block change detection allowing
  2137. donation to work regardless of the block chain we're mining on.
  2138. - Expire shares as stale with a separate timeout from the scantime, defaulting
  2139. to 120 seconds.
  2140. - Retry pools after a delay of 15 seconds if none can be contacted on startup
  2141. unless a key is pressed.
  2142. - Don't try to build adl features without having adl.
  2143. - Properly check shares against target difficulty - This will no longer show
  2144. shares when solo mining at all unless they're considered to be a block solve.
  2145. - Add altivec 4 way (cpu mining) support courtesy of Gilles Risch.
  2146. - Try to use SSL if the server supports it.
  2147. - Display the total solved blocks on exit (LOL if you're lucky).
  2148. - Use ADL activity report to tell us if a sick GPU is still busy suggesting it
  2149. is hard hung and do not attempt to restart it.
  2150. Version 2.0.5 - September 27, 2011
  2151. - Intensity can now be set to dynamic or static values per-device.
  2152. - New donation feature --donation sends a proportion of shares to author's
  2153. account of choice, but is disabled by default!
  2154. - The hash being displayed and block detection has been fixed.
  2155. - Devices not being mined on will not attempt to be ADL managed.
  2156. - Intensity is now displayed per GPU device.
  2157. - Make longpoll attempt to restart as often as opt_retries specifies.
  2158. - We weren't rolling work as often as we could.
  2159. - Correct some memory management issues.
  2160. - Build fixes.
  2161. - Don't mess with GPUs if we don't have them.
  2162. Version 2.0.4 - September 23, 2011
  2163. - Confused Longpoll messages should be finally fixed with cgminer knowing for
  2164. sure who found the new block and possibly avoiding a rare crash.
  2165. - Display now shows the actual hash and will say BLOCK! if a block is deemed
  2166. solved.
  2167. - Extra spaces, which would double space lines on small terminals, have been
  2168. removed.
  2169. - Fan speed change is now damped if it is already heading in the correct
  2170. direction to minimise overshoot.
  2171. - Building without opencl libraries is fixed.
  2172. - GPUs are autoselected if there is only one when in the GPU management menu.
  2173. - GPU menu is refreshed instead of returning to status after a GPU change.
  2174. Version 2.0.3 - September 17, 2011
  2175. - Various modes of failure to set fanspeeds and adl values have been addressed
  2176. and auto-fan should work now on most hardware, and possibly other values
  2177. which previously would not have worked.
  2178. - Fixed a crash that can occur on switching pools due to longpoll thread races.
  2179. - Use ATISTREAMSDKROOT if available at build time.
  2180. - Fanspeed management is returned to the driver default on exit instead of
  2181. whatever it was when cgminer was started.
  2182. - Logging of events deemed WARNING or ERR now will display even during
  2183. periods where menu input is being awaited on.
  2184. Version 2.0.2 - September 11, 2011
  2185. - Exit cleanly if we abort before various threads are set up or if they no
  2186. longer exist.
  2187. - Fix a rare crash in HASH_DEL due to using different mutexes to protect the
  2188. data.
  2189. - Flag devices that have never started and don't allow enabling of devices
  2190. without restarting them.
  2191. - Only force the adapter speed to high if we've flagged this device as being
  2192. managed.
  2193. - Flag any devices with autofan or autogpu as being managed.
  2194. - Use a re-entrant value to store what fanspeed we're trying to set in case the
  2195. card doesn't support small changes. Force it to a multiple of 10% if it
  2196. fails on trying to speed up the fan.
  2197. - Do not bother resetting values to old ones if changes to GPU parameters report
  2198. failure, instead returning a failure code only if the return value from get()
  2199. differs.
  2200. - Remove redundant check.
  2201. - Only display supported values from fanspeed on change settings.
  2202. - Missing bracket from output.
  2203. - Display fan percentage on devices that only support reporting percent and not
  2204. RPM.
  2205. - Properly substitute DLOPEN flags to build with ADL support when -ldl is needed
  2206. and not when opencl is not found.
  2207. Version 2.0.1 - September 9, 2011
  2208. - Fix building on 32bit glibc with dlopen with -lpthread and -ldl
  2209. - ByteReverse is not used and the bswap opcode breaks big endian builds. Remove
  2210. it.
  2211. - Ignore whether the display is active or not since only display enabled devices
  2212. work this way, and we skip over repeat entries anwyay.
  2213. - Only reset values on exiting if we've ever modified them.
  2214. - Flag adl as active if any card is successfully activated.
  2215. - Add a thermal cutoff option as well and set it to 95 degrees by default.
  2216. - Change the fan speed by only 5% if it's over the target temperature but less
  2217. than the hysteresis value to minimise overshoot down in temperature.
  2218. - Add a --no-adl option to disable ADL monitoring and GPU settings.
  2219. - Only show longpoll received delayed message at verbose level.
  2220. - Allow temperatures greater than 100 degrees.
  2221. - We should be passing a float for the remainder of the vddc values.
  2222. - Implement accepting a range of engine speeds as well to allow a lower limit to
  2223. be specified on the command line.
  2224. - Allow per-device fan ranges to be set and use them in auto-fan mode.
  2225. - Display which GPU has overheated in warning message.
  2226. - Allow temperature targets to be set on a per-card basis on the command line.
  2227. - Display fan range in autofan status.
  2228. - Setting the hysteresis is unlikely to be useful on the fly and doesn't belong
  2229. in the per-gpu submenu.
  2230. - With many cards, the GPU summaries can be quite long so use a terse output
  2231. line when showing them all.
  2232. - Use a terser device status line to show fan RPM as well when available.
  2233. - Define max gpudevices in one macro.
  2234. - Allow adapterid 0 cards to enumerate as a device as they will be non-AMD
  2235. cards, and enable ADL on any AMD card.
  2236. - Do away with the increasingly confusing and irrelevant total queued and
  2237. efficiency measures per device.
  2238. - Only display values in the log if they're supported and standardise device log
  2239. line printing.
  2240. Version 2.0.0 - September 6, 2011
  2241. Major feature upgrade - GPU monitoring, (over)clocking and fan control for ATI
  2242. GPUs.
  2243. New command line switches:
  2244. --auto-fan- Automatically adjust all GPU fan speeds to maintain a target
  2245. temperature
  2246. --auto-gpu- Automatically adjust all GPU engine clock speeds to maintain
  2247. a target temperature
  2248. --gpu-engine <arg> Set the GPU engine (over)clock in Mhz - one value for all or
  2249. separate by commas for per card.
  2250. --gpu-fan <arg> Set the GPU fan percentage - one value for all or separate
  2251. by commas for per card.
  2252. --gpu-memclock <arg> Set the GPU memory (over)clock in Mhz - one value for all
  2253. or separate by commas for per card.
  2254. --gpu-powertune <arg> Set the GPU powertune percentage - one value for all or
  2255. separate by commas for per card.
  2256. --gpu-vddc <arg> Set the GPU voltage in Volts - one value for all or separate
  2257. by commas for per card.
  2258. --temp-hysteresis <arg> Set how much the temperature can fluctuate outside
  2259. limits when automanaging speeds (default: 3)
  2260. --temp-overheat <arg> Set the overheat temperature when automatically managing
  2261. fan and GPU speeds (default: 85)
  2262. --temp-target <arg> Set the target temperature when automatically managing fan
  2263. and GPU speeds (default: 75)
  2264. - Implement ATI ADL support for GPU parameter monitoring now and setting later
  2265. (temp, fan, clocks etc.).
  2266. - Check for the presence of the ADL header files in ADL_SDK.
  2267. - Import adl_functions.h from amd overdrive ctrl.
  2268. - Implement a setup function that tries to detect GPUs that support the ADL and
  2269. link in the parameters into the gpus struct.
  2270. - Put a summary of monitoring information from the GPU menu.
  2271. - Implement changing memory speed and voltage on the fly.
  2272. - Implement fan speed setting.
  2273. - Minor corrections to set fan speed by percentage.
  2274. - Make sure to read off the value in RPM only.
  2275. - Implement auto fanspeed adjustment to maintain a target temperature and
  2276. fanspeed below 85%, with an overheat check that will speed the fan up to 100%.
  2277. - Add an --auto-fan command line option to allow all GPUs to have autofan
  2278. enabled from startup.
  2279. - Add a gpu autotune option which adjusts GPU speed to maintain a target
  2280. temperature within the bounds of the default GPU speed and any overclocking set.
  2281. - Avoid a dereference if the longpoll thread doesn't exist.
  2282. - Clean up by setting performance profiles and fan settings to startup levels on
  2283. exit.
  2284. - Add a small amount of hysteresis before lowering clock speed.
  2285. - Allow target, overheat and hysteresis temperatures to be set from command
  2286. line.
  2287. - Combine all stats collating into one function to avoid repeating function
  2288. calls on each variable.
  2289. - Add gpu statistics to debugging output via the watchdog thread.
  2290. - Implement menus to change temperature limits.
  2291. - Implement setting the GPU engine clock speed of all devices or each device as
  2292. a comma separated value.
  2293. - Implement setting the GPU memory clock speed of all devices or each device as
  2294. a comma separated value.
  2295. - Implement setting the GPU voltage of all devices or each device as a comma
  2296. separated value.
  2297. - Implement setting the GPU fan speed of all devices or each device as a comma
  2298. separated value.
  2299. - Add support for monitoring powertune setting.
  2300. - Implement changing of powertune value from the GPU change settings menu.
  2301. - Get the value of powertune in get_stats.
  2302. - Implement setting the GPU powertune value of all devices or each device as a
  2303. comma separated value.
  2304. - Remove the safety checks in speed setting since confirmation is done first in
  2305. the menu, then show the new current values after a short pause.
  2306. - Force the speed to high on startup and restore it to whatever the setting was
  2307. on exit.
  2308. - Add temperature to standard output where possible and use more compact output.
  2309. - Move and print at the same time in curses to avoid random trampling display
  2310. errors.
  2311. - Update the status window only from the watchdog thread, do not rewrite the top
  2312. status messages and only refresh once all the status window is complete,
  2313. clearing the window each time to avoid corruption.
  2314. - Set a safe starting fan speed if we're automanaging the speeds.
  2315. - Provide locking around all adl calls to prevent races.
  2316. - Lower profile settings cannot be higher than higher profile ones so link any
  2317. drops in settings.
  2318. - Add new needed text files to distribution.
  2319. - Queue requests ignoring the number of staged clones since they get discarded
  2320. very easily leading to false positives for pool not providing work fast enough.
  2321. - Include libgen.h in opt.c to fix win32 compilation warnings.
  2322. - Fix compilation warning on win32.
  2323. - Add the directory name from the arguments cgminer was called from as well to
  2324. allow it running from a relative pathname.
  2325. - Add a --disable-adl option to configure and only enable it if opencl support
  2326. exists.
  2327. - Retry before returning a failure to get upstream work as a failure to avoid
  2328. false positives for pool dead.
  2329. - Retry also if the decoding of work fails.
  2330. - Use the presence of X-Roll-Ntime in the header as a bool for exists unless N
  2331. is found in the response.
  2332. Version 1.6.2 - September 2, 2011
  2333. - Add --failover-only option to not leak work to backup pools when the primary
  2334. pool is lagging.
  2335. - Change recommendation to intensity 9 for dedicated miners.
  2336. - Fix the bouncing short term value by allowing it to change dynamically when
  2337. the latest value is very different from the rolling value, but damp the change
  2338. when it gets close.
  2339. - Use the curses_lock to protect the curses_active variable and test it under
  2340. lock.
  2341. - Go back to requesting work 2/3 of the way through the current scantime with
  2342. CPU mining as reports of mining threads running out of work have occurred with
  2343. only 5 seconds to retrieve work.
  2344. - Add start and stop time scheduling for regular time of day running or once off
  2345. start/stop options.
  2346. - Print summary on quit modes.
  2347. - Put some sanity checks on the times that can be input.
  2348. - Give a verbose message when no active pools are found and pause before
  2349. exiting.
  2350. - Add verbose message when a GPU fails to initialise, and disable the correct
  2351. GPU.
  2352. - Cryptopp asm32 was not correctly updated to the incremental nonce code so the
  2353. hash counter was bogus.
  2354. - Get rid of poorly executed curl check.
  2355. - If curl does not have sockopts, do not try to compile the
  2356. json_rpc_call_sockopt_cb function, making it possible to build against older
  2357. curl libraries.
  2358. - Most people expect /usr/local when an unspecified prefix is used so change to
  2359. that.
  2360. - Rename localgen occasions to getwork fail occasions since localgen is
  2361. unrelated now.
  2362. Version 1.6.1 - August 29, 2011
  2363. - Copy cgminer path, not cat it.
  2364. - Switching between redrawing windows does not fix the crash with old
  2365. libncurses, so redraw both windows, but only when the window size hasn't
  2366. changed.
  2367. - Reinstate minimum 1 extra in queue to make it extremely unlikely to ever have
  2368. 0 staged work items and any idle time.
  2369. - Return -1 if no input is detected from the menu to prevent it being
  2370. interpreted as a 0.
  2371. - Make pthread, libcurl and libcurses library checks mandatory or fail.
  2372. - Add a --disable-opencl configure option to make it possible to override
  2373. detection of opencl and build without GPU mining support.
  2374. - Confusion over the variable name for number of devices was passing a bogus
  2375. value which likely was causing the zero sized binary issue.
  2376. - cgminer no longer supports default url user and pass so remove them.
  2377. - Don't show value of intensity since it's dynamic by default.
  2378. - Add options to explicitly enable CPU mining or disable GPU mining.
  2379. - Convert the opt queue into a minimum number of work items to have queued
  2380. instead of an extra number to decrease risk of getting idle devices without
  2381. increasing risk of higher rejects.
  2382. - Statify tv_sort.
  2383. - Check for SSE2 before trying to build 32 bit SSE2 assembly version. Prevents
  2384. build failure when yasm is installed but -msse2 is not specified.
  2385. - Add some defines to configure.ac to enable exporting of values and packaging,
  2386. and clean up output.
  2387. - Give convenient summary at end of ./configure.
  2388. - Display version information and add --version command line option, and make
  2389. sure we flush stdout.
  2390. - Enable curses after the mining threads are set up so that failure messages
  2391. won't be lost in the curses interface.
  2392. - Disable curses after inputting a pool if we requested no curses interface.
  2393. - Add an option to break out after successfully mining a number of accepted
  2394. shares.
  2395. - Exit with a failed return code if we did not reach opt_shares.
  2396. - The cpu mining work data can get modified before we copy it if we submit it
  2397. async, and the sync submission is not truly sync anyway, so just submit it sync.
  2398. Version 1.6.0 - August 26, 2011
  2399. - Make restarting of GPUs optional for systems that hang on any attempt to
  2400. restart them. Fix DEAD status by comparing it to last live time rather than
  2401. last attempted restart time since that happens every minute.
  2402. - Move staged threads to hashes so we can sort them by time.
  2403. - Create a hash list of all the blocks created and search them to detect when a
  2404. new block has definitely appeared, using that information to detect stale work
  2405. and discard it.
  2406. - Update configure.ac for newer autoconf tools.
  2407. - Use the new hashes directly for counts instead of the fragile counters
  2408. currently in use.
  2409. - Update to latest sse2 code from cpuminer-ng.
  2410. - Allow LP to reset block detect and block detect lp flags to know who really
  2411. came first.
  2412. - Get start times just before mining begins to not have very slow rise in
  2413. average.
  2414. - Add message about needing one server.
  2415. - We can queue all the necessary work without hitting frequent stales now with
  2416. the time and string stale protection active all the time. This prevents a
  2417. pool being falsely labelled as not providing work fast enough.
  2418. - Include uthash.h in distro.
  2419. - Implement SSE2 32 bit assembly algorithm as well.
  2420. - Fail gracefully if unable to open the opencl files.
  2421. - Make cgminer look in the install directory for the .cl files making make
  2422. install work correctly.
  2423. - Allow a custom kernel path to be entered on the command line.
  2424. - Bump threshhold for lag up to maximum queued but no staged work.
  2425. - Remove fragile source patching for bitalign, vectors et. al and simply pass it
  2426. with the compiler options.
  2427. - Actually check the value returned for the x-roll-ntime extension to make sure
  2428. it isn't saying N.
  2429. - Prevent segfault on exit for when accessory threads don't exist.
  2430. - Disable curl debugging with opt protocol since it spews to stderr.
  2431. Version 1.5.8 - August 23, 2011
  2432. - Minimise how much more work can be given in cpu mining threads each interval.
  2433. - Make the fail-pause progressively longer each time it fails until the network
  2434. recovers.
  2435. - Only display the lagging message if we've requested the work earlier.
  2436. - Clean up the pool switching to not be dependent on whether the work can roll
  2437. or not by setting a lagging flag and then the idle flag.
  2438. - Only use one thread to determine if a GPU is sick or well, and make sure to
  2439. reset the sick restart attempt time.
  2440. - The worksize was unintentionally changed back to 4k by mistake, this caused a
  2441. slowdown.
  2442. Version 1.5.7 - August 22, 2011
  2443. - Fix a crash with --algo auto
  2444. - Test at appropriate target difficulty now.
  2445. - Add per-device statics log output with --per-device-stats
  2446. - Fix breakage that occurs when 1 or 4 vectors are chosen on new phatk.
  2447. - Make rolltime report debug level only now since we check it every work
  2448. item.
  2449. - Add the ability to enable/disable per-device stats on the fly and match
  2450. logging on/off.
  2451. - Explicitly tell the compiler to retain the program to minimise the chance of
  2452. the zero sized binary errors.
  2453. - Add one more instruction to avoid one branch point in the common path in the
  2454. cl return code. Although this adds more ALUs overall and more branch points, the
  2455. common path code has the same number of ALUs and one less jmp, jmps being more
  2456. expensive.
  2457. - Explicitly link in ws2_32 on the windows build and update README file on how
  2458. to compile successfully on windows.
  2459. - Release cl resources should the gpu mining thread abort.
  2460. - Attempt to restart a GPU once every minute while it's sick.
  2461. - Don't kill off the reinit thread if it fails to init a GPU but returns safely.
  2462. - Only declare a GPU dead if there's been no sign of activity from the reinit
  2463. thread for 10 mins.
  2464. - Never automatically disable any pools but just specify them as idle if they're
  2465. unresponsive at startup.
  2466. - Use any longpoll available, and don't disable it if switching to a server that
  2467. doesn't have it. This allows you to mine solo, yet use the longpoll from a pool
  2468. even if the pool is the backup server.
  2469. - Display which longpoll failed and don't free the ram for lp_url since it
  2470. belongs to the pool hdr path.
  2471. - Make the tcp setsockopts unique to linux in the hope it allows freebsd et. al
  2472. to compile.
  2473. Version 1.5.6 - August 17, 2011
  2474. - New phatk and poclbm kernels. Updated phatk to be in sync with latest 2.2
  2475. courtesy of phateus. Custom modified to work best with cgminer.
  2476. - Updated output buffer code to use a smaller buffer with the kernels.
  2477. - Clean up the longpoll management to ensure the right paths go to the right
  2478. pool and display whether we're connected to LP or not in the status line.
  2479. Version 1.5.5 - August 16, 2011
  2480. - Rework entirely the GPU restart code. Strike a balance between code that
  2481. re-initialises the GPU entirely so that soft hangs in the code are properly
  2482. managed, but if a GPU is completely hung, the thread restart code fails
  2483. gracefully, so that it does not take out any other code or devices. This will
  2484. allow cgminer to keep restarting GPUs that can be restarted, but continue
  2485. mining even if one or more GPUs hangs which would normally require a reboot.
  2486. - Add --submit-stale option which submits all shares, regardless of whether they
  2487. would normally be considered stale.
  2488. - Keep options in alphabetical order.
  2489. - Probe for slightly longer for when network conditions are lagging.
  2490. - Only display the CPU algo when we're CPU mining.
  2491. - As we have keepalives now, blaming network flakiness on timeouts appears to
  2492. have been wrong. Set a timeout for longpoll to 1 hour, and most other
  2493. network connectivity to 1 minute.
  2494. - Simplify output code and remove HW errors from CPU stats.
  2495. - Simplify code and tidy output.
  2496. - Only show cpu algo in summary if cpu mining.
  2497. - Log summary at the end as per any other output.
  2498. - Flush output.
  2499. - Add a linux-usb-cgminer guide courtesy of Kano.
  2500. Version 1.5.4 - August 14, 2011
  2501. - Add new option: --monitor <cmd> Option lets user specify a command <cmd> that
  2502. will get forked by cgminer on startup. cgminer's stderr output subsequently gets
  2503. piped directly to this command.
  2504. - Allocate work from one function to be able to initialise variables added
  2505. later.
  2506. - Add missing fflush(stdout) for --ndevs and conclusion summary.
  2507. - Preinitialise the devices only once on startup.
  2508. - Move the non cl_ variables into the cgpu info struct to allow creating a new
  2509. cl state on reinit, preserving known GPU variables.
  2510. - Create a new context from scratch in initCQ in case something was corrupted to
  2511. maximise our chance of succesfully creating a new worker thread. Hopefully this
  2512. makes thread restart on GPU failure more reliable, without hanging everything
  2513. in the case of a completely wedged GPU.
  2514. - Display last initialised time in gpu management info, to know if a GPU has
  2515. been re-initialised.
  2516. - When pinging a sick cpu, flush finish and then ping it in a separate thread in
  2517. the hope it recovers without needing a restart, but without blocking code
  2518. elsewhere.
  2519. - Only consider a pool lagging if we actually need the work and we have none
  2520. staged despite queue requests stacking up. This decreases significantly the
  2521. amount of work that leaks to the backup pools.
  2522. - The can_roll function fails inappropriately in stale_work.
  2523. - Only put the message that a pool is down if not pinging it every minute. This
  2524. prevents cgminer from saying pool down at 1 minute intervals unless in debug
  2525. mode.
  2526. - Free all work in one place allowing us to perform actions on it in the future.
  2527. - Remove the extra shift in the output code which was of dubious benefit. In
  2528. fact in cgminer's implementation, removing this caused a miniscule speedup.
  2529. - Test each work item to see if it can be rolled instead of per-pool and roll
  2530. whenever possible, adhering to the 60 second timeout. This makes the period
  2531. after a longpoll have smaller dips in throughput, as well as requiring less
  2532. getworks overall thus increasing efficiency.
  2533. - Stick to rolling only work from the current pool unless we're in load balance
  2534. mode or lagging to avoid aggressive rolling imitating load balancing.
  2535. - If a work item has had any mining done on it, don't consider it discarded
  2536. work.
  2537. Version 1.5.3 - July 30, 2011
  2538. - Significant work went into attempting to make the thread restart code robust
  2539. to identify sick threads, tag them SICK after 1 minute, then DEAD after 5
  2540. minutes of inactivity and try to restart them. Instead of re-initialising the
  2541. GPU completely, only a new cl context is created to avoid hanging the rest of
  2542. the GPUs should the dead GPU be hung irrevocably.
  2543. - Use correct application name in syslog.
  2544. - Get rid of extra line feeds.
  2545. - Use pkg-config to check for libcurl version
  2546. - Implement per-thread getwork count with proper accounting to not over-account
  2547. queued items when local work replaces it.
  2548. - Create a command queue from the program created from source which allows us
  2549. to flush the command queue in the hope it will not generate a zero sized binary
  2550. any more.
  2551. - Be more willing to get work from the backup pools if the work is simply being
  2552. queued faster than it is being retrieved.
  2553. Version 1.5.2 - July 28, 2011
  2554. - Restarting a hung GPU can hang the rest of the GPUs so just declare it dead
  2555. and provide the information in the status.
  2556. - The work length in the miner thread gets smaller but doesn't get bigger if
  2557. it's under 1 second. This could end up leading to CPU under-utilisation and
  2558. lower and lower hash rates. Fix it by increasing work length if it drops
  2559. under 1 second.
  2560. - Make the "quiet" mode still update the status and display errors, and add a
  2561. new --real-quiet option which disables all output and can be set once while
  2562. running.
  2563. - Update utility and efficiency figures when displaying them.
  2564. - Some Intel HD graphics support the opencl commands but return errors since
  2565. they don't support opencl. Don't fail with them, just provide a warning and
  2566. disable GPU mining.
  2567. - Add http:// if it's not explicitly set for URL entries.
  2568. - Log to the output file at any time with warnings and errors, instead of just
  2569. when verbose mode is on.
  2570. - Display the correct current hash as per blockexplorer, truncated to 16
  2571. characters, with just the time.
  2572. Version 1.5.1 - July 27, 2011
  2573. - Two redraws in a row cause a crash in old libncurses so just do one redraw
  2574. using the main window.
  2575. - Don't adjust hash_div only up for GPUs. Disable hash_div adjustment for GPUs.
  2576. - Only free the thread structures if the thread still exists.
  2577. - Update both windows separately, but not at the same time to prevent the double
  2578. refresh crash that old libncurses has. Do the window resize check only when
  2579. about to redraw the log window to minimise ncurses cpu usage.
  2580. - Abstract out the decay time function and use it to make hash_div a rolling
  2581. average so it doesn't change too abruptly and divide work in chunks large enough
  2582. to guarantee they won't overlap.
  2583. - Sanity check to prove locking.
  2584. - Don't take more than one lock at a time.
  2585. - Make threads report out when they're queueing a request and report if they've
  2586. failed.
  2587. - Make cpu mining work submission asynchronous as well.
  2588. - Properly detect stale work based on time from staging and discard instead of
  2589. handing on, but be more lax about how long work can be divided for up to the
  2590. scantime.
  2591. - Do away with queueing work separately at the start and let each thread grab
  2592. its own work as soon as it's ready.
  2593. - Don't put an extra work item in the queue as each new device thread will do so
  2594. itself.
  2595. - Make sure to decrease queued count if we discard the work.
  2596. - Attribute split work as local work generation.
  2597. - If work has been cloned it is already at the head of the list and when being
  2598. reinserted into the queue it should be placed back at the head of the list.
  2599. - Dividing work is like the work is never removed at all so treat it as such.
  2600. However the queued bool needs to be reset to ensure we *can* request more work
  2601. even if we didn't initially.
  2602. - Make the display options clearer.
  2603. - Add debugging output to tq_push calls.
  2604. - Add debugging output to all tq_pop calls.
  2605. Version 1.5.0 - July 26, 2011
  2606. - Increase efficiency of slow mining threads such as CPU miners dramatically. Do
  2607. this by detecting which threads cannot complete searching a work item within the
  2608. scantime and then divide up a work item into multiple smaller work items.
  2609. Detect the age of the work items and if they've been cloned before to prevent
  2610. doing the same work over. If the work is too old to be divided, then see if it
  2611. can be time rolled and do that to generate work. This dramatically decreases the
  2612. number of queued work items from a pool leading to higher overall efficiency
  2613. (but the same hashrate and share submission rate).
  2614. - Don't request work too early for CPUs as CPUs will scan for the full
  2615. opt_scantime anyway.
  2616. - Simplify gpu management enable/disable/restart code.
  2617. - Implement much more accurate rolling statistics per thread and per gpu and
  2618. improve accuracy of rolling displayed values.
  2619. - Make the rolling log-second average more accurate.
  2620. - Add a menu to manage GPUs on the fly allowing you to enable/disable GPUs or
  2621. try restarting them.
  2622. - Keep track of which GPUs are alive versus enabled.
  2623. - Start threads for devices that are even disabled, but don't allow them to
  2624. start working.
  2625. - The last pool is when we are low in total_pools, not active_pools.
  2626. - Make the thread restart do a pthread_join after disabling the device, only
  2627. re-enabling it if we succeed in restarting the thread. Do this from a separate
  2628. thread so as to not block any other code.This will allow cgminer to continue
  2629. even if one GPU hangs.
  2630. - Try to do every curses manipulation under the curses lock.
  2631. - Only use the sockoptfunction if the version of curl is recent enough.
  2632. Version 1.4.1 - July 24, 2011
  2633. - Do away with GET for dealing with longpoll forever. POST is the one that works
  2634. everywhere, not the other way around.
  2635. - Detect when the primary pool is lagging and start queueing requests on backup
  2636. pools if possible before needing to roll work.
  2637. - Load balancing puts more into the current pool if there are disabled pools.
  2638. Fix.
  2639. - Disable a GPU device should the thread fail to init.
  2640. - Out of order command queue may fail on osx. Try without if it fails.
  2641. - Fix possible dereference on blank inputs during input_pool.
  2642. - Defines missing would segfault on --help when no sse mining is built in.
  2643. - Revert "Free up resources/stale compilers." - didn't help.
  2644. - Only try to print the status of active devices or it would crash.
  2645. - Some hardware might benefit from the less OPS so there's no harm in leaving
  2646. kernel changes that do that apart from readability of the code.
  2647. Version 1.4.0 - July 23, 2011
  2648. - Feature upgrade: Add keyboard input during runtime to allow modification of
  2649. and viewing of numerous settings such as adding/removing pools, changing
  2650. multipool management strategy, switching pools, changing intensiy, verbosity,
  2651. etc. with a simple keypress menu system.
  2652. - Free up resources/stale compilers.
  2653. - Kernels are safely flushed in a way that allows out of order execution to
  2654. work.
  2655. - Sometimes the cl compiler generates zero sized binaries and only a reboot
  2656. seems to fix it.
  2657. - Don't try to stop/cancel threads that don't exist.
  2658. - Only set option to show devices and exit if built with opencl support.
  2659. - Enable curses earlier and exit with message in main for messages to not be
  2660. lost in curses windows.
  2661. - Make it possible to enter server credentials with curses input if none are
  2662. specified on the command line.
  2663. - Abstract out a curses input function and separate input pool function to allow
  2664. for live adding of pools later.
  2665. - Remove the nil arguments check to allow starting without parameters.
  2666. - Disable/enable echo & cbreak modes.
  2667. - Add a thread that takes keyboard input and allow for quit, silent, debug,
  2668. verbose, normal, rpc protocol debugging and clear screen options.
  2669. - Add pool option to input and display current pool status, pending code to
  2670. allow live changes.
  2671. - Add a bool for explicit enabling/disabling of pools.
  2672. - Make input pool capable of bringing up pools while running.
  2673. - Do one last check of the work before submitting it.
  2674. - Implement the ability to live add, enable, disable, and switch to pools.
  2675. - Only internally test for block changes when the work matches the current pool
  2676. to prevent interleaved block change timing on multipools.
  2677. - Display current pool management strategy to enable changing it on the fly.
  2678. - The longpoll blanking of the current_block data may not be happening before
  2679. the work is converted and appears to be a detected block change. Blank the
  2680. current block be
  2681. - Make --no-longpoll work again.
  2682. - Abstract out active pools count.
  2683. - Allow the pool strategy to be modified on the fly.
  2684. - Display pool information on the fly as well.
  2685. - Add a menu and separate out display options.
  2686. - Clean up the messy way the staging thread communicates with the longpoll
  2687. thread to determine who found the block first.
  2688. - Make the input windows update immediately instead of needing a refresh.
  2689. - Allow log interval to be set in the menu.
  2690. - Allow scan settings to be modified at runtime.
  2691. - Abstract out the longpoll start and explicitly restart it on pool change.
  2692. - Make it possible to enable/disable longpoll.
  2693. - Set priority correctly on multipools. Display priority and alive/dead
  2694. information in display_pools.
  2695. - Implement pool removal.
  2696. - Limit rolltime work generation to 10 iterations only.
  2697. - Decrease testing log to info level.
  2698. - Extra refresh not required.
  2699. - With huge variation in GPU performance, allow intensity to go from -10 to +10.
  2700. - Tell getwork how much of a work item we're likely to complete for future
  2701. splitting up of work.
  2702. - Remove the mandatory work requirement at startup by testing for invalid work
  2703. being passed which allows for work to be queued immediately. This also
  2704. removes the requirem
  2705. - Make sure intensity is carried over to thread count and is at least the
  2706. minimum necessary to work.
  2707. - Unlocking error on retry. Locking unnecessary anyway so remove it.
  2708. - Clear log window from consistent place. No need for locking since logging is
  2709. disabled during input.
  2710. - Cannot print the status of threads that don't exist so just queue enough work
  2711. for the number of mining threads to prevent crash with -Q N.
  2712. - Update phatk kernel to one with new parameters for slightly less overhead
  2713. again. Make the queue kernel parameters call a function pointer to select
  2714. phatk or poclbm.
  2715. - Make it possible to select the choice of kernel on the command line.
  2716. - Simplify the output part of the kernel. There's no demonstrable advantage from
  2717. more complexity.
  2718. - Merge pull request #18 from ycros/cgminer
  2719. - No need to make leaveok changes win32 only.
  2720. - Build support in for all SSE if possible and only set the default according to
  2721. machine capabilities.
  2722. - Win32 threading and longpoll keepalive fixes.
  2723. - Win32: Fix for mangled output on the terminal on exit.
  2724. Version 1.3.1 - July 20, 2011
  2725. - Feature upgrade; Multiple strategies for failover. Choose from default which
  2726. now falls back to a priority order from 1st to last, round robin which only
  2727. changes pools when one is idle, rotate which changes pools at user-defined
  2728. intervals, and load-balance which spreads the work evenly amongst all pools.
  2729. - Implement pool rotation strategy.
  2730. - Implement load balancing algorithm by rotating requests to each pool.
  2731. - Timeout on failed discarding of staged requests.
  2732. - Implement proper flagging of idle pools, test them with the watchdog thread,
  2733. and failover correctly.
  2734. - Move pool active test to own function.
  2735. - Allow multiple strategies to be set for multipool management.
  2736. - Track pool number.
  2737. - Don't waste the work items queued on testing the pools at startup.
  2738. - Reinstate the mining thread watchdog restart.
  2739. - Add a getpoll bool into the thread information and don't restart threads stuck
  2740. waiting on work.
  2741. - Rename the idlenet bool for the pool for later use.
  2742. - Allow the user/pass userpass urls to be input in any order.
  2743. - When json rpc errors occur they occur in spits and starts, so trying to limit
  2744. them with the comms error bool doesn't stop a flood of them appearing.
  2745. - Reset the queued count to allow more work to be queued for the new pool on
  2746. pool switch.
  2747. Version 1.3.0 - July 19, 2011
  2748. - Massive infrastructure update to support pool failover.
  2749. - Accept multiple parameters for url, user and pass and set up structures of
  2750. pool data accordingly.
  2751. - Probe each pool for what it supports.
  2752. - Implement per pool feature support according to rolltime support as
  2753. advertised by server.
  2754. - Do switching automatically based on a 300 second timeout of locally generated
  2755. work or 60 seconds of no response from a server that doesn't support rolltime.
  2756. - Implement longpoll server switching.
  2757. - Keep per-pool data and display accordingly.
  2758. - Make sure cgminer knows how long the pool has actually been out for before
  2759. deeming it a prolonged outage.
  2760. - Fix bug with ever increasing staged work in 1.2.8 that eventually caused
  2761. infinite rejects.
  2762. - Make warning about empty http requests not show by default since many
  2763. servers do this regularly.
  2764. Version 1.2.8 - July 18, 2011
  2765. - More OSX build fixes.
  2766. - Add an sse4 algorithm to CPU mining.
  2767. - Fix CPU mining with other algorithms not working.
  2768. - Rename the poclbm file to ensure a new binary is built since.
  2769. - We now are guaranteed to have one fresh work item after a block change and we
  2770. should only discard staged requests.
  2771. - Don't waste the work we retrieve from a longpoll.
  2772. - Provide a control lock around global bools to avoid racing on them.
  2773. - Iterating over 1026 nonces when confirming data from the GPU is old code
  2774. and unnecessary and can lead to repeats/stales.
  2775. - The poclbm kernel needs to be updated to work with the change to 4k sized
  2776. output buffers.
  2777. - longpoll seems to work either way with post or get but some servers prefer
  2778. get so change to httpget.
  2779. Version 1.2.7 - July 16, 2011
  2780. - Show last 8 characters of share submitted in log.
  2781. - Display URL connected to and user logged in as in status.
  2782. - Display current block and when it was started in the status line.
  2783. - Only pthread_join the mining threads if they exist as determined by
  2784. pthread_cancel and don't fail on pthread_cancel.
  2785. - Create a unique work queue for all getworks instead of binding it to thread 0
  2786. to avoid any conflict over thread 0's queue.
  2787. - Clean up the code to make it clear it's watchdog thread being messaged to
  2788. restart the threads.
  2789. - Check the current block description hasn't been blanked pending the real
  2790. new current block data.
  2791. - Re-enable signal handlers once the signal has been received to make it
  2792. possible to kill cgminer if it fails to shut down.
  2793. - Disable restarting of CPU mining threads pending further investigation.
  2794. - Update longpoll messages.
  2795. - Add new block data to status line.
  2796. - Fix opencl tests for osx.
  2797. - Only do local generation of work if the work item is not stale itself.
  2798. - Check for stale work within the mining threads and grab new work if
  2799. positive.
  2800. - Test for idle network conditions and prevent threads from being restarted
  2801. by the watchdog thread under those circumstances.
  2802. - Make sure that local work generation does not continue indefinitely by
  2803. stopping it after 10 minutes.
  2804. - Tweak the kernel to have a shorter path using a 4k buffer and a mask on the
  2805. nonce value instead of a compare and loop for a shorter code path.
  2806. - Allow queue of zero and make that default again now that we can track how
  2807. work is being queued versus staged. This can decrease reject rates.
  2808. - Queue precisely the number of mining threads as longpoll_staged after a
  2809. new block to not generate local work.
  2810. Version 1.2.6 - July 15, 2011
  2811. - Put a current system status line beneath the total work status line
  2812. - Fix a counting error that would prevent cgminer from correctly detecting
  2813. situations where getwork was failing - this would cause stalls sometimes
  2814. unrecoverably.
  2815. - Limit the maximum number of requests that can be put into the queue which
  2816. otherwise could get arbitrarily long during a network outage.
  2817. - Only count getworks that are real queue requests.
  2818. Version 1.2.5 - July 15, 2011
  2819. - Conflicting -n options corrected
  2820. - Setting an intensity with -I disables dynamic intensity setting
  2821. - Removed option to manually disable dynamic intensity
  2822. - Improve display output
  2823. - Implement signal handler and attempt to clean up properly on exit
  2824. - Only restart threads that are not stuck waiting on mandatory getworks
  2825. - Compatibility changes courtesy of Ycros to build on mingw32 and osx
  2826. - Explicitly grab first work item to prevent false positive hardware errors
  2827. due to working on uninitialised work structs
  2828. - Add option for non curses --text-only output
  2829. - Ensure we connect at least once successfully before continuing to retry to
  2830. connect in case url/login parameters were wrong
  2831. - Print an executive summary when cgminer is terminated
  2832. - Make sure to refresh the status window
  2833. Versions -> 1.2.4
  2834. - Con Kolivas - July 2011. New maintainership of code under cgminer name.
  2835. - Massive rewrite to incorporate GPU mining.
  2836. - Incorporate original oclminer c code.
  2837. - Rewrite gpu mining code to efficient work loops.
  2838. - Implement per-card detection and settings.
  2839. - Implement vector code.
  2840. - Implement bfi int patching.
  2841. - Import poclbm and phatk ocl kernels and use according to hardware type.
  2842. - Implement customised optimised versions of opencl kernels.
  2843. - Implement binary kernel generation and loading.
  2844. - Implement preemptive asynchronous threaded work gathering and pushing.
  2845. - Implement variable length extra work queues.
  2846. - Optimise workloads to be efficient miners instead of getting lots of extra
  2847. work.
  2848. - Implement total hash throughput counters, per-card accepted, rejected and
  2849. hw error count.
  2850. - Staging and watchdog threads to prevent fallover.
  2851. - Stale and reject share guarding.
  2852. - Autodetection of new blocks without longpoll.
  2853. - Dynamic setting of intensity to maintain desktop interactivity.
  2854. - Curses interface with generous statistics and information.
  2855. - Local generation of work (xroll ntime) when detecting poor network
  2856. connectivity.
  2857. Version 1.0.2
  2858. - Linux x86_64 optimisations - Con Kolivas
  2859. - Optimise for x86_64 by default by using sse2_64 algo
  2860. - Detects CPUs and sets number of threads accordingly
  2861. - Uses CPU affinity for each thread where appropriate
  2862. - Sets scheduling policy to lowest possible
  2863. - Minor performance tweaks
  2864. Version 1.0.1 - May 14, 2011
  2865. - OSX support
  2866. Version 1.0 - May 9, 2011
  2867. - jansson 2.0 compatibility
  2868. - correct off-by-one in date (month) display output
  2869. - fix platform detection
  2870. - improve yasm configure bits
  2871. - support full URL, in X-Long-Polling header
  2872. Version 0.8.1 - March 22, 2011
  2873. - Make --user, --pass actually work
  2874. - Add User-Agent HTTP header to requests, so that server operators may
  2875. more easily identify the miner client.
  2876. - Fix minor bug in example JSON config file
  2877. Version 0.8 - March 21, 2011
  2878. - Support long polling: http://deepbit.net/longpolling.php
  2879. - Adjust max workload based on scantime (default 5 seconds,
  2880. or 60 seconds for longpoll)
  2881. - Standardize program output, and support syslog on Unix platforms
  2882. - Suport --user/--pass options (and "user" and "pass" in config file),
  2883. as an alternative to the current --userpass
  2884. Version 0.7.2 - March 14, 2011
  2885. - Add port of ufasoft's sse2 assembly implementation (Linux only)
  2886. This is a substantial speed improvement on Intel CPUs.
  2887. - Move all JSON-RPC I/O to separate thread. This reduces the
  2888. number of HTTP connections from one-per-thread to one, reducing resource
  2889. usage on upstream bitcoind / pool server.
  2890. Version 0.7.1 - March 2, 2011
  2891. - Add support for JSON-format configuration file. See example
  2892. file example-cfg.json. Any long argument on the command line
  2893. may be stored in the config file.
  2894. - Timestamp each solution found
  2895. - Improve sha256_4way performance. NOTE: This optimization makes
  2896. the 'hash' debug-print output for sha256_way incorrect.
  2897. - Use __builtin_expect() intrinsic as compiler micro-optimization
  2898. - Build on Intel compiler
  2899. - HTTP library now follows HTTP redirects
  2900. Version 0.7 - February 12, 2011
  2901. - Re-use CURL object, thereby reuseing DNS cache and HTTP connections
  2902. - Use bswap_32, if compiler intrinsic is not available
  2903. - Disable full target validation (as opposed to simply H==0) for now
  2904. Version 0.6.1 - February 4, 2011
  2905. - Fully validate "hash < target", rather than simply stopping our scan
  2906. if the high 32 bits are 00000000.
  2907. - Add --retry-pause, to set length of pause time between failure retries
  2908. - Display proof-of-work hash and target, if -D (debug mode) enabled
  2909. - Fix max-nonce auto-adjustment to actually work. This means if your
  2910. scan takes longer than 5 seconds (--scantime), the miner will slowly
  2911. reduce the number of hashes you work on, before fetching a new work unit.
  2912. Version 0.6 - January 29, 2011
  2913. - Fetch new work unit, if scanhash takes longer than 5 seconds (--scantime)
  2914. - BeeCee1's sha256 4way optimizations
  2915. - lfm's byte swap optimization (improves via, cryptopp)
  2916. - Fix non-working short options -q, -r
  2917. Version 0.5 - December 28, 2010
  2918. - Exit program, when all threads have exited
  2919. - Improve JSON-RPC failure diagnostics and resilience
  2920. - Add --quiet option, to disable hashmeter output.
  2921. Version 0.3.3 - December 27, 2010
  2922. - Critical fix for sha256_cryptopp 'cryptopp_asm' algo
  2923. Version 0.3.2 - December 23, 2010
  2924. - Critical fix for sha256_via
  2925. Version 0.3.1 - December 19, 2010
  2926. - Critical fix for sha256_via
  2927. - Retry JSON-RPC failures (see --retry, under "minerd --help" output)
  2928. Version 0.3 - December 18, 2010
  2929. - Add crypto++ 32bit assembly implementation
  2930. - show version upon 'minerd --help'
  2931. - work around gcc 4.5.x bug that killed 4way performance
  2932. Version 0.2.2 - December 6, 2010
  2933. - VIA padlock implementation works now
  2934. - Minor build and runtime fixes
  2935. Version 0.2.1 - November 29, 2010
  2936. - avoid buffer overflow when submitting solutions
  2937. - add Crypto++ sha256 implementation (C only, ASM elided for now)
  2938. - minor internal optimizations and cleanups
  2939. Version 0.2 - November 27, 2010
  2940. - Add script for building a Windows installer
  2941. - improve hash performance (hashmeter) statistics
  2942. - add tcatm 4way sha256 implementation
  2943. - Add experimental VIA Padlock sha256 implementation
  2944. Version 0.1.2 - November 26, 2010
  2945. - many small cleanups and micro-optimizations
  2946. - build win32 exe using mingw
  2947. - RPC URL, username/password become command line arguments
  2948. - remove unused OpenSSL dependency
  2949. Version 0.1.1 - November 24, 2010
  2950. - Do not build sha256_generic module separately from cpuminer.
  2951. Version 0.1 - November 24, 2010
  2952. - Initial release.