NEWS 254 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264
  1. Version 3.7.1 - 5th November 2013
  2. - Return ETIMEDOUT regardless if we fail in cgsem_mswait since we may be waiting
  3. on it on shutdown and the return response is harmless.
  4. - Clean up completely on avalon shutdown.
  5. - Use cgsem timed waits in avalon driver to not miss any queued wake ups to
  6. account for async messages coming during a flush work.
  7. - Statline before is too long on icarus that doesn't have monitoring.
  8. - Different windows+usb combinations respond with varying levels of reliability
  9. wrt timeouts so use a nominal extra 40ms before cancelling transfers that fail
  10. to time out on their own.
  11. - Do all hotplug_process under the write mining_thr_lock
  12. - Fix for opt_worktime on big endian machines.
  13. - Correct set_blockdiff for big endian machines.
  14. - Make sure cgpu exists in the restart threads loop in cases of hotplug etc.
  15. - Treat usb write timeout errors as unrecoverable.
  16. - Transfer errors are filtered out in usbutils now so no need to look for them
  17. in NODEV checks.
  18. - Remove now unused entries from struct cg_usb_device
  19. - Do not double up with checking for end of timeout measurements in usb
  20. read/write.
  21. - Do get_work in fill_queue without holding other locks.
  22. - Initialise usb after all the locks and conditionals are initialised.
  23. - Use only a trylock in flush queue to prevent deadlocks.
  24. - Add a wr_trylock wrapper for pthread rw lock write trylock.
  25. - Scale diff for scrypt when testing for block solves.
  26. - Fix for non curses build.
  27. Version 3.7.0 - 4th November 2013
  28. - Use WRITEIOERR macro check for all usb writes.
  29. - Always use a usb read buffer instead of having to explicitly enable it.
  30. - Force unlocking of the console lock on restart to avoid corrupting the console
  31. state when we finally quit.
  32. - Never wait indefinitely for a pthread conditional in the hash_pop loop in case
  33. the work scheduler misses the last wakeup.
  34. - Make hash_pop signal the work scheduler each time it waits on the conditional
  35. that it should look for more work.
  36. - Discriminate between libusb transfer errors and regular libusb errors and make
  37. sure to capture them all.
  38. - Always read a full sized transfer for bulk reads.
  39. - Deprecate preferred packet size functions in usbutils since they're unhelpful.
  40. - Copy known transferred amount back to buffer for usb reads instead of
  41. requested length.
  42. - Treat timeout errors on usb writes as IO errors.
  43. - Ignore iManufacturer from bitfury devices to support bluefury as well as
  44. redfury.
  45. - Add more debugging info for when usb details don't match.
  46. - Look for timeout overruns in usb read/write.
  47. - Use an int for usb_read/write to identify overruns.
  48. - Use the callback timeout as a safety mechanism only on windows.
  49. - Instead of using complicated sleeps to emulate characters per second on usb
  50. writes, submit only as many characters as can be transferred per usb poll of
  51. 1ms, and use timeouts in bulk transfers, cancelling transfers only as a
  52. failsafe.
  53. - Remove discarded work from quota used.
  54. - Display works completed in summary and API data.
  55. - Store how many work items are worked on per pool.
  56. - Make each pool store its on reference for what the most current block is and
  57. fine tune management of block change in shared pool failover strategies using
  58. the information.
  59. - Rationalise use of current_hash to a single hex string the length of the
  60. previous block and display only the first non zero hex chars of the block in the
  61. status window.
  62. - Update uthash to latest.
  63. - show_hash doesn't know the size of the string so hard code the max size.
  64. - Remove as many initial zeroes as exist on share display, abstracting out a
  65. hash show function to use across different submission mechanisms.
  66. - Add missing endian swap functions for 64bits.
  67. - Sanity check for absurd target setting and divide by zero.
  68. - Abstract out conversion of a 256 bit endian number to a double, correcting
  69. errors and use it for determining any magnitude share diff.
  70. - Avoid the extra generation of a byte flipped hash2 in struct work and directly
  71. use the LE work hash.
  72. - Add a sanity check to avoid divide by zero crashes in set_target
  73. - Calculate diff from target accurately for all 256 bits.
  74. - Set a true 256bit binary target based on any diff value in set_target()
  75. - Provide a copy_work_noffset function for copying a work struct but changing
  76. its ntime.
  77. - Make calls to flush queue and flush work asynchronous wrt to the main work
  78. loops.
  79. - Share is also above target for submit noffset nonce.
  80. - Use round for displaying current pool diff.
  81. - Use round for stratum share diff display instead of floor.
  82. - Use round instead of floor for displayed pool difficulty.
  83. - Allow arbitrary diffs to be tested against nonces via a test_nonce_diff
  84. function.
  85. - Abstract out the rebuilding of hash2 in work.
  86. - Share is above, not below target, when it doesn't meet it.
  87. - Add the ability to add uint8 and uint16 entities to api data.
  88. - Use a non blocking connect with a 1 second select timeout when initiating
  89. stratum to allow us to iterate over all IPs returned by getaddrinfo in round
  90. robin DNS pools.
  91. - Minor style changes to output.
  92. - Revert two different hash_sequence(_head)'s to one variable, use
  93. HF_SEQUENCE_DISTANCE in both places
  94. - Remove duplicate HF_SEQUENCE_DISTANCE() macro, and duplicate hash_sequence
  95. from info structure
  96. - Change SEQUENCE_DISTANCE() macro to HF_SEQUENCE_DISTANCE()
  97. - Structure changes for OP_NONCE, add big endian header
  98. - klondike - initialise stat_lock
  99. - klondike - better to unlock locks than to lock them twice :)
  100. - Add copyright notice to knc driver.
  101. - Trivial style changes to knc driver.
  102. - Improve performance of work generation by optimizing hex2bin and bin2hex
  103. - klondike - change options to clock and temptarget only
  104. - klondike - fix another uninit dev warning
  105. - klondike - downgrade 'late update' but add an idle detect - and correct error
  106. levels
  107. - klondike - fix isc uninit warning
  108. - Use a mutex to protect data in the knc structure, to prevent loading more work
  109. during a flush, and unlock and return to main between calls to get_queued_work.
  110. - Use the existing device_data for knc state data.
  111. - Only count successful nonces as hashrate in the knc driver.
  112. - Fix trivial warnings in knc driver.
  113. - Add KNC to api
  114. - klondike - drop the device for hotplug if it's unresponsive
  115. - usbutils - usb_nodev() allow a driver to drop a device
  116. - klondike - single 'shutdown' and ensure it happens
  117. - klondike remove SCNu8 - unsupported on windows
  118. - Correctly calculate sleep_estimate in usbutils that may have been preventing
  119. usecps from working.
  120. - Use a sanity check on timeout on windows.
  121. - Better HW error count; disable permanently those cores which fail often
  122. - KnC driver: knc-spi-fpga ASIC driver
  123. - Fixup jansson & libusb include paths when using separate build directory
  124. - 'llround' is more suitable here than 'roundl'
  125. - Silence warning if MAX/MIN is already defined
  126. - Remove prebuild ccan/opt dependencies
  127. - Reinstate block solve testing.
  128. - Dramatically simplify the calculation of blockdiff.
  129. - Simplify the set_target function, allowing it to work properly for fractional
  130. diffs.
  131. - Merge hashfast driver
  132. - Merge KnC driver
  133. Version 3.6.6 - 26th October 2013
  134. - Remove inappropriate extra locking in _usb_transfer_read
  135. Version 3.6.5 - 26th October 2013
  136. - klondike - fix uninitialised dev bug
  137. - Adjust the binary ntime data in submit_noffset_nonce even when there is no hex
  138. ntime string for eg. gbt.
  139. - Put an entry into the work struct telling drivers how much they can roll the
  140. ntime themselves.
  141. - Only set libusb cancellable status if the transfer succeeds.
  142. - Remove the applog on miner threads dying to prevent deadlocks on exit.
  143. - Do one extra guaranteed libusb event handling before testing if there are any
  144. pending async usb transfers.
  145. - Use a linked list for all usb transfers instead of just cancellable ones.
  146. - Provide a mechanism for informing drivers of updated work templates for
  147. stratum and gbt mining.
  148. - Add cancellable transfers correctly to the ct_list
  149. - Check for presence of thr in icarus get nonce for startup nonce testing to
  150. work.
  151. - Use cancellable usb transfers in the icarus driver to avoid having to loop and
  152. poll when waiting for a response and to speed up work restart response time.
  153. - Add a usb_read_ii_timeout_cancellable wrapper
  154. - Add usb transfer cancellation on shutdown and documentation regarding where
  155. cancellable transfers are suitable.
  156. - Use cancellable transfers on bitfury device.
  157. - Cancel cancellable usb transfers on work restart messages.
  158. - Don't bother having a separate cancellable transfer struct for usb transfers,
  159. simply include the list in the usb_transfer struct.
  160. - Add wrappers for usb_read_cancellable and usb_read_timeout_cancellable
  161. - Specifically set the cancellable state for it to not be uninitialised in the
  162. usb transfer struct.
  163. - Alter the usb cancellable list only under cgusb_fd_lock write lock.
  164. - Pass the cancellable option to _usb_read options to decide on whether to add
  165. usb transfers to the list of cancellable transfers.
  166. - Create a linked list of potentially cancellable usb transfers.
  167. - Don't attempt to disable curses or print a summary during an app restart to
  168. prevent deadlocks.
  169. - Keep the libusb event handle polling thread active until there are no async
  170. usb transfers in progress.
  171. - Keep a global counter of how many async usb transfers are in place.
  172. - Perform libusb_submit_transfer under the write variant of cgusb_fd_lock
  173. - klondike - error condition handling
  174. - Avoid entering static libusb directory if --with-system-libusb is enabled.
  175. - Minor opencl build corrections.
  176. - Enable dynamic linking against system libusb --with-system-libusb
  177. - Modify Makefile to only include opencl related code when configured in.
  178. - Convert opencl to need to be explicitly enabled during build with
  179. --enable-opencl
  180. - Implement a cglock_destroy function.
  181. - Implement a rwlock_destroy function.
  182. - Implement a mutex_destroy function.
  183. - Add usb command name to critical libusb error reporting.
  184. - Use windows' own higher resolution time and handlers allowing us to have
  185. higher precision absolute timeouts.
  186. - Fix lldiv error in windows cgminer_t calculation.
  187. - miner.php correct sort gen field names largest to smallest
  188. - api ... the code related to device elapsed
  189. - api add device elapsed since hotplug devices Elapsed is less than cgminer
  190. Elapsed
  191. - Drop usb buffering message to debug logging level.
  192. - Do the ntime binary modification to the work struct when submitting an ntime
  193. offset nonce within submit_noffset_nonce
  194. - Code cleanup and improved documentation
  195. - Improvements to support for BitBurner boards
  196. - Convert libusb transfer errors to regular libusb error messages to allow for
  197. accurate message reporting.
  198. Version 3.6.4 - 18th October 2013
  199. - Fixing the memory leak for remaining semaphores means we can go back to using
  200. async transfers on other OSes with our own timeout management again.
  201. - Use the forcelog function on shutdown to cope with indeterminate console lock
  202. states due to killing of threads.
  203. - Add a forcelog variant of applog which invalidates any console lock to force
  204. output.
  205. - Send pthread_cancel to failed completion_timeout that has timed out.
  206. - Simplify queued hashtable by storing unqueued work separately in a single
  207. pointer.
  208. - bflsc use getinfo chip parallelization if it is present
  209. - bflsc - fix brackets so [Chips] isn't always null
  210. - Remove unused variables.
  211. - Use cgcompletion timeouts for the unreliable shutdown functions on kill_work.
  212. - Fix cgcompletion return code and free on successful completion.
  213. - Provide a cg_completion_timeout helper function for unreliable functions that
  214. takes arbitrary functions and parameters and reliably returns.
  215. - Perform sync transfers on shutdown to allow final transfers to complete.
  216. - Destroy cgsems used after transfers to not leave open files on osx.
  217. - klondike rewrite work control
  218. - allow __work_complete() access
  219. - miner.h allow devices to tv_stamp work
  220. Version 3.6.3 - 17th October 2013
  221. - API add 'MHS %ds' to 'summary'
  222. - Optional lock tracking and stats via the API
  223. - Speed up polling repeat again in usb poll thread and handle async after the
  224. message to disable polling is complete.
  225. - Revert to using timeouts on !linux since libusb leaks memory without them.
  226. - Revert to libusb instead of libusbx
  227. Version 3.6.2 - 17th October 2013
  228. - Remove unused components of jansson
  229. - Remove unused parts of libusb
  230. - Work around older libtoolize that fails without top ltmain.sh not being
  231. present during autogen
  232. - Fix open coded use of autoreconf in autogen
  233. - Update jansson to only build parts we require and suited to our build
  234. environment.
  235. - Initial import of jansson-2.5
  236. - Prevent further USB transfers from occurring once the shutdown signal has been
  237. sent to prevent transfers getting stuck and libusb failing to shut down.
  238. - Make the USB polling thread poll every second to potentially aid longer
  239. timeout transfers.
  240. - Set device_diff on work in get_work to not be missed with drivers that use
  241. get_work directly.
  242. - Convert icarus driver to hash_driver_work model.
  243. - bflsc - also allow ' 0' in DEVICES IN CHAIN
  244. - bflsc - allow a 0 in DEVICES IN CHAIN
  245. - Add needed EXTRA_DIST for libusbx.
  246. - Update libusbx configure.ac changes.
  247. - Revert libusb Makefile changes from going to libusbx.
  248. - Fix trivial libusbx warnings.
  249. - Convert libusb-1.0.16-rc10 to libusbx-1.0.17
  250. Version 3.6.1 - 14th October 2013
  251. - Emulate the libusb_control_transfer sync setup in our async variant.
  252. - usbutils - make all libusb_error_name messages the same
  253. Version 3.6.0 - 14th October 2013
  254. - increasing max miners for avalon driver
  255. - using separate identifier for bitburner fury boards
  256. - changes to bitburner driver for bitburner fury boards
  257. - hexstr is too small in test_work_current
  258. - Windows uses errno for WSAETIMEDOUT
  259. - Convert the usb callback function to using cgsem_t timed waits to avoid race
  260. conditions with conditionals/mutexes.
  261. - Give correct return code in cgsem_mswait
  262. - Check for correct timeout error in cgsem_mswait
  263. - Fix util.h exports for cgsem_mswait
  264. - Implement a generic cgsem_mswait similar to sem_timedwait
  265. - Use the one LIBUSB_ERROR_TIMEOUT for cancelled transactions since this error
  266. is explicitly tested for in various drivers.
  267. - Do not use locking on usb callback function pthread signalling to prevent
  268. deadlock with libusb's own event lock.
  269. - Use a write lock when performing any USB control transfers to prevent
  270. concurrent transfers.
  271. - Free a libusb transfer after we have finished using it to avoid a dereference
  272. in usb_control_transfer
  273. - Do not perform bfi int patching for opencl1.2 or later.
  274. - Although async transfers are meant to use heap memory, we never return before
  275. the transfer function has completed so stack memory will suffice for control
  276. transfers, fixing a memory leak in the process.
  277. - klondike - correct/reverse min/max stats
  278. - api incorrect message name
  279. - klondike - use a link list queue rather than a circular buffer - and add
  280. timing stats
  281. - Use a timeout with usb handle events set to a nominal 200ms and wait for the
  282. polling thread to shut down before deinitialising libusb.
  283. - Use stack memory for hex used in stratum share submissions.
  284. - Use stack memory in test_work_current, avoiding a malloc/free cycle each time.
  285. - Provide a lower level __bin2hex function that does not allocate memory itself.
  286. - Convert the bitfury driver to use the hash_driver_work version of hash_work.
  287. - Add a hash_driver_work function to allow for drivers that wish to do their own
  288. work queueing and management.
  289. - Convert all usb control transfers to asynchronous communication with our own
  290. timeout management as well.
  291. - Klondike - increase circular read buffer size
  292. - Klondike - extra zero value and range checking in temp conversion
  293. - klondike - display MHz also
  294. - Make pthread conditional timeouts handle all bulk usb transfer timeouts
  295. performing libusb_cancel_transfer, disabling timeouts within libusb itself.
  296. - Avoid calling get_statline_before on exit to avoid trying to use it on drivers
  297. in an indeterminate state.
  298. - Avoid calling get_statline on exit.
  299. - Add a small amount to the usb timeout before cancelling to allow for a regular
  300. usb polling interval to pass.
  301. - Do not attempt to clear a usb halt before sending the cancel message since all
  302. transfers should normally be cancelled before attempting to clear a halt
  303. condition, and only change the return message to a timeout if it's consistent
  304. with a cancellation.
  305. - Retry up to USB_RETRY_MAX times to clear a halt condition before failing.
  306. - Show the error number as well as the description in erroring bulk transfers.
  307. - Drop logging level for failed to connect to stratum to verbose mode only since
  308. we hit it regularly.
  309. - We are always dependent on libusb handling events so use the blocking
  310. libusb_handle_events in the polling thread and use a bool to know if we should
  311. continue polling.
  312. - Use fractional hashrate return values in bitfury_scanhash to minimise the
  313. number of times we return 0 based on hashrate so far to further damp out
  314. displayed hashrate.
  315. - Check for presence of driver name in DRIVER_COUNT_FOUND to prevent strcmp on a
  316. null pointer when a driver is not built in.
  317. - CMR allow sending flash and clock commands
  318. - Kill off threads that have failed using hash_sole_work instead of just
  319. disabling them.
  320. - Make the bf1 getinfo size a macro
  321. - Failing to add_cgpu in bitfury should be a terminal failure.
  322. - Check return values when attempting to open a BF1 device and set the msg size
  323. as a macro.
  324. - Display errors on failed usb read and write and consider sequential IO errors
  325. a permanent failure.
  326. - Use libusb's own error name function instead of hand coding the error names.
  327. - Limit ms_tdiff to 1 hour as a sanity check.
  328. - Enable the usb buffer in avalon driver.
  329. - Check for async transfer variants of error messages.
  330. - Remove unused variables.
  331. - Try switching pools if for some reason we end up with only idle pools and have
  332. ended up current_pool set to an idle one.
  333. - Check a pool is stable for >5 mins before switching back to it.
  334. - Minimise the time between dropping the read devlock and grabbing the write
  335. devlock to avoid tons of logging spam in the interim.
  336. - Check for libusb transfer stall error to be consistent with async IO errors
  337. returned for a halt condition.
  338. - Check for continuous IO errors on USB and consider the device inactive if more
  339. than retry max.
  340. - Make the devlock a cglock in usbutils and only grab the write lock for
  341. fundamental changes allowing us to send and receive transfers concurrently
  342. without lock contention.
  343. - Prevent overflows in us_tdiff and ms_tdiff.
  344. - Change second initialise message on bitfury verbose mode.
  345. - Submitting an ntime offset nonce needs to be done on a copy of the work
  346. instead of the original so abstract out shared components as much as possible,
  347. minimising strdups in copy_work and make submit_work_async work take copied
  348. work, cleaning up code in the process.
  349. - Provide a way for drivers to submit work that it has internally rolled the
  350. ntime value by returning the amount it has ntime rolled to be added.
  351. - Typo in configure.ac
  352. - Remove unmaintained broken ztex driver.
  353. - Icarus - use a data structure for I/O rather than magic numbers
  354. - delete old tracked ccan/opt/*.o files
  355. - klondike correct cvtKlnToC() temperature calculation
  356. - klondike - correct 1st reply debug based on define
  357. - klondike - debug dump structured replies
  358. - klondike - avoid division by zero if maxcount is unexpectedly zero
  359. - klondike store and report errorcount and noise
  360. - klondike - fix chipstats api stats buffer overrun with 16 chips
  361. - klondike add new nonecount only once
  362. - klondike - report mh/s based on nonces found + put old estimate into API stats
  363. - klondike use a memcpy
  364. - klondike fix bracket tabs indenting
  365. - api.c missing Klondike from ASIC list
  366. - Klondike update code to current git
  367. - Add 2nd CMR to 01-cgminer.rules
  368. - Add Klondike to 01-cgminer.rules
  369. - Klondike to main directory
  370. - Klondike consistent code spacing
  371. - Klondike update driver code to current git
  372. - update firmware for 16 chips, add dist files
  373. - beta final 0.3.0 release
  374. - updated firmware, IOC method
  375. - prevent nonces when not state W
  376. - added driver config option support
  377. - fixes for 300 MHz, fix K1 parts list
  378. - update driver, docs
  379. - update firmware & utils
  380. - updated cgminer driver for 3.3.1
  381. - update firmware and driver, create new cgminer fork
  382. - update klondike driver
  383. - add cgminer driver file as-is
  384. - Add API output displaying USB cancellations.
  385. - Store statistics on how often we have to cancel async bulk transfers and add a
  386. debug message whenever we do.
  387. - Treat any unexpected timeouts waiting for async transfers as though there may
  388. be a usb halt condition and attempt to clear the halt before cancelling the
  389. tranfer.
  390. - Remove zero packet flag on usb as it's unsupported outside linux and
  391. unnecessary.
  392. - Fake the libusb transfer timed out message if we force cancel it with our own
  393. async functions.
  394. - Use asynchronous transfers for all bulk transfers, allowing us to use our own
  395. timers and cancelling transfers that take too long.
  396. - Add libusb error warning message when significant error occurs.
  397. - Icarus CMR2 detect FPGA setup
  398. - Disable bitfury device thread on it disappearing.
  399. Version 3.5.0 - 29th September 2013
  400. - Add magic init sequence required on BF1 devices to get them mining on windows.
  401. - usbinfo.devlock is only ever write locked so convert it to a mutex
  402. - Icarus remove unneeded opt_debug tests due to applog being a macro
  403. - Icarus - CMR shouldn't wait the full timeout due to handle sharing
  404. - We should only yield once in cg_wunlock
  405. - Provide a function to downgrade a cglock from a write lock to an intermediate
  406. variant.
  407. - Deuglify use of _PARSE_COMMANDS macro expansions.
  408. - Deuglify use of usb parse commands macro in usbutils.
  409. - Use the driver add commands macros in api.c to avoid individually listing
  410. them.
  411. - Separate out asic fpga and opencl drivers in the driver parse commands macro
  412. for use individually as needed.
  413. - Use macro expansion in usb_find_devices to avoid explicitly listing them all.
  414. - Use macro expansion to iterate over all the drivers without explicitly writing
  415. them out in usbutils.c
  416. - Iterate over the bitfury offsets in order of decreasing likelihood.
  417. - Reattach the kernel driver on linux on usb_uninit.
  418. - Attach the kernel driver on failure to usb init on linux.
  419. - libusb kernel driver operations are only available on linux.
  420. - There is no need to get the external prototypes for drivers in cgminer.c any
  421. more.
  422. - Remove unnecessary gpu_threads initialisation.
  423. - Put avalon last in the sequence of adding drivers to prevent it trying to
  424. claim similar chip devices on startup.
  425. - Use macro expansion to iterate over all device drivers without needing to
  426. explicitly code in support in all places. Pass a hotplug bool to the detect()
  427. function to prevent opencl trying to hogplug GPUs.
  428. - Forward declare all device drivers in miner.h avoiding the need to export them
  429. everywhere else.
  430. - Add a noop function for driver detect when it's missing.
  431. - Reuse the DRIVER_ macros to avoid having yet another definition for DRV_
  432. - Use macro expansion to generate extern device_drv prototypes.
  433. - Create a macro list of drivers to enable easier addition of further drivers.
  434. - There is no point setting the BF1 preferred packet size to the maximum since
  435. it will do so automatically.
  436. - icarus ensure all cmr interfaces are initialised properly
  437. - usbutils - fix USBDEBUG warnings
  438. - Remove unnecessary steps in communicating with BF1 and just use USB interface
  439. 1.
  440. - usbutils - usb_bulk_transfer fix the buf/data fix
  441. - usb_bulk_transfer - use the allocated buffer
  442. - Set preferred packet sizes per interface on BF1.
  443. - usbutils allow PrefPacketSize per endpoint
  444. - Remove magic control sequences on open/close on BF1 and just flush the read
  445. buffers.
  446. - Check return codes in getinfo and reset and fail as needed in BF1.
  447. - Check return code for bitfury_open and release resources properly on failed
  448. initialisation.
  449. - Abstract out flushing of interrupt reads in BF1 devices.
  450. - Perform interrupt read after close message on BF1 as per serial close.
  451. - Perform interrupt read flush as per serial open on BF1 devices.
  452. - Add information for 2nd USB interface on BF1 devices and choose interface 1
  453. for bulk transfers.
  454. - usbutils - bulk transfer copy test fix
  455. - usbutils - add USBDEBUG for usb_bulk_transfer
  456. - Add more read_ii variants to usbutils.
  457. - Name remainder of BFU usb commands used.
  458. - Use submit_tested_work in bitfury driver to avoid unnecessarily re-testing the
  459. work for validity.
  460. - Abstract out work submission once it's been tested, to be used by drivers that
  461. do their own internal validity testing.
  462. - Store the hash2 array in struct work for further reuse.
  463. - usbutils - which_intinfo not requried
  464. - Use the test_nonce function within submit_nonce and store the uint32
  465. corresponding to hash2 37 for further use.
  466. - usbutils - interfaces must all be on one handle - ep implies the interface
  467. - avalon stats use exact type
  468. - Only set share diff if we've confirmed it's a share first.
  469. - Update ASIC-README for bitfury devices.
  470. - Use an array of offsets when checking nonces in bitfury_checkresults
  471. - Limit the duration we wait for reads in BF1 based on time already elapsed to
  472. account for other delays such as work restart messages or out of work.
  473. - Minimise size of serial string we copy in BF1 stats to avoid overflow.
  474. - Implement basic API stats for BF1 and increase array of results to check for
  475. the rare straggling result.
  476. - Space debug output for bf1 to separate from numerals.
  477. - Abstract out the bitfury open close and reset functions and use them on
  478. reinit.
  479. - Rename BF1 devices BF1
  480. - Check for work restart, breaking out early after usb reads in BF1.
  481. - Do not lose the first sets of results from BF1.
  482. - There is no point checking for results from the next round of work on BF1.
  483. - Last result returned by BF1 is an end of results marker so ignore it.
  484. - restart_wait should return 0 if thr_restart is true.
  485. - Remove unused code by bitfury driver since current driver uses serialised
  486. scanhash.
  487. - Meter out return of estimated hashes in BF1 to smooth out visible hashrate.
  488. - Optimise inner scanhash loop for bf1.
  489. - Add yet another backup work for triple buffering of work in bf1 to account for
  490. extra late results returned and don't check nonce offsets which appear to never
  491. return.
  492. - Name the work request and result usb commands for BF1
  493. - Define a mandatory upper limit to waiting for reset and data on BF1 based on
  494. full nonce duration.
  495. - Decrease usb buffering to verbose logging.
  496. - Add in first draft for a serialised work model sending/receiving data for BF1
  497. devices.
  498. - Add complete close sequence to bf1 as it happens on serial.
  499. - Provide a bitfury identify function for bf1.
  500. - Reliably extract BF1 information at startup and reset the device.
  501. - Add commands for getting BF1 bitfury info
  502. - Add magic BF1 bitfury open and close control sequences.
  503. - Add BF1 detection code to bitfury driver.
  504. - Create basic placeholders for bitfury driver code.
  505. - Add bf1 device information to usbutils to enable device detection.
  506. - Add basic defines for building for bitfury devices.
  507. - Add redfury device to udev rules.
  508. - avalon: display the FPGA controller version on API
  509. - pool_active uninitialised_var rolltime
  510. - Use macro expansion to only need to define usb enums and commands in one
  511. place.
  512. - usbutils saving incorrect overflow buffer
  513. - ignore libusb.la and *.lo on linux
  514. - icarus support CMR with no extensions
  515. - usbtils - interfaces dont work yet in libusb windows so disable for that only
  516. - Provide a --disable-libcurl config option to build support for stratum mining
  517. only.
  518. - Fix the api-example.c compile under Linux
  519. - usbutils - only release the device once - for the first intinfo
  520. - usbutils set_interface is no longer valid
  521. - ubsutils interfaces much each have their own handle
  522. - usbutils kernel_detach should use the interface number
  523. - usbutils - allow the driver to change which_intinfo
  524. - Reset quotas on load balance for all pools at the same time to avoid running
  525. out during selection and unintentionally dropping to fallback.
  526. - Break out of select pool from a common point for appropriate debug messages
  527. and to avoid further tests.
  528. - usbutils correct/reverse CMR product numbers
  529. - usbutils specifically track handles and interfaces
  530. - change drivers to use usb_interface() - required for multi interface change
  531. - usbutils - allow a device to use multiple interfaces (and better var names)
  532. - Cast -1 to (char) to cope with different default char types on ARM.
  533. Version 3.4.3 - 13th September 2013
  534. - Put corefoundation and iokit separate in ldflags for darwin.
  535. - Add rules for libusb Makefile.am building on osx
  536. - Add flags for building libusb statically on osx.
  537. - Find the greatest common denominator in quotas and use the smallest number of
  538. consecutive work items per pool in quota load balance mode to smooth hashrate
  539. across pools with large quotas. Give excess quota to priority pool 0 instead of
  540. pool 0.
  541. - Avoid dynamically adding stack memory for nonce2 in the stratum send thread
  542. and check the pool's nonce2_len will not cause an overflow.
  543. - Add subdir-objects to automake options.
  544. - Use inet_addr instead of inet_network to fix windows build.
  545. - Remove unused pbase variable.
  546. - Add support for socks4/4a proxies with stratum, and drop back to socks4
  547. support via the global --socks-proxy command to not break previous
  548. configurations.
  549. - Fix warning on mingw build.
  550. - Only show long-poll message in pool summary if it's not using stratum.
  551. - Increase the time for the waiting for work message to be given to be greater
  552. than that required for a pool swap in the scheduler which is set to 5s.
  553. - Change message in status when using a balanced pool strategy to notify if
  554. there's a stratum pool as well.
  555. - Use the --failover-only flag to have special meaning in combination with
  556. load-balance mode to distribute any unused quota back to pool 0 to maintain
  557. ratios amongst other pools.
  558. - Display quota and allow it to be modified via the pool menu.
  559. - Add API commands and modify output to support pool quota displaying and
  560. changing.
  561. - Change message in status when using a balanced pool strategy to notify if
  562. there's a stratum pool as well.
  563. - Add quota support to configuration files.
  564. - Rotate pools on all failures to set a pool in select_pool.
  565. - Use quotas for load-balance pool strategy.
  566. - Provide a mechanism for setting a pool quota to be used by load-balance.
  567. - Use the --socks-proxy option with stratum, changing it to defaulting to socks5
  568. and give appropriate message should it fail to connect.
  569. - Cope with trailing slashes in stratum urls.
  570. - Add more debugging messages when negotiating with proxies for stratum.
  571. - Test specifically for socks5h in socks support for stratum.
  572. - Add support for socks5 proxy with stratum
  573. - Provide support for negotiating a stratum connection via http proxies.
  574. - Connect to the proxy URL and port if specified for stratum sockets instead of
  575. the pool directly.
  576. - Extract any proxy url and port to be used by sockaddr if possible using
  577. extract_sockaddr.
  578. - Make extract_sockaddr set variables passed to it rather than pool struct
  579. members.
  580. - miner.php sort the mcast rigs so they are always in the same relative order
  581. - miner.php allow sending the muticast message multiple times
  582. - miner.php mcast ignore duplicate replies
  583. Version 3.4.2 - 3rd September 2013
  584. - take_queued_work_bymidstate should use a write lock.
  585. - miner.php coding warning
  586. - miner.php disable 'gen' by default
  587. - miner.php allow formula generation of new fields
  588. - miner.php add doctype
  589. - miner.php remove incorrect echo
  590. - miner.php optional error if not enough mcast rigs are found
  591. Version 3.4.1 - 31st August 2013
  592. - API mcast add a description option with miner.php
  593. - Always use a maxpacketsize buffer in usb_bulk_transfer
  594. - bflsc ensure getinfo cannot overflow it's storage buffer
  595. - Don't decref json values in stratum parsing due to memory corruption.
  596. - Use 64 bytes for all libusb control transfers.
  597. - Skip dissecting opt->names in parse_config if it doesn't exist.
  598. - Use an internal buffer in _usb_transfer_read in case the read is larger than
  599. the buffer passed to it.
  600. - ICA optional limit timing with short=N or long=N
  601. - Revert to old custom tolines function since strtok_r is not portable.
  602. - bflsc remove unused commented out code
  603. - logging - code mistake
  604. - logging - applogsiz() for large messages
  605. - Provide base structures for getaddrinfo.
  606. - Include string.h in bflsc driver.
  607. - Get rid of linear removal of spaces in bflsc text parsing and use strstr
  608. throughout instead.
  609. - Use reentrant strtok in tolines() function in bflsc to avoid racing on
  610. contextless calls.
  611. - Show how small a too small result in bflsc is.
  612. - Duplicate the buffer in process_results in bflsc since strtok modifies it
  613. making debugging output limited to one line.
  614. - Only process nonces in bflsc if the breakdown function succeeds.
  615. - Ignore zero count messages in bflsc instead of trying to parse them.
  616. - Return ok in tolines when it doesn't match inprocess message for bflsc.
  617. - Remove inprocess line instead of deleting all following responses in bflsc.
  618. - Change ok testing logic in breakdown() in bflsc and return if not ok at any
  619. stage.
  620. - Check the return value of tolines in bflsc driver.
  621. - Use strtok to parse lines in bflsc driver.
  622. - Add libusb-1.0 m4 directory and gitignore file.
  623. - Properly convert from ranlib to lt_init in configure.ac
  624. - Make autoconf always build for libusb.
  625. - More autoconf fixes.
  626. - Unconditionally build jansson statically from the cgminer source tree.
  627. - Only test for all usb devices once in configure.ac
  628. - Fix various libusb warnings and possible bugs on linux build.
  629. - Add make clean and maintainer-clean to autogen
  630. - Remove examples from libusb Makefile and generated autoconf files.
  631. - Fix libusb subdirectory builds.
  632. - Remove cached files from libusb autoconf on running autogen.sh
  633. - Remove unused HAVE_LISBUSB macro and use USE_USBUTILS everywhere.
  634. - Use direct auto* files to avoid failure of autoreconf
  635. - Remove unused and maintainer cleaned files
  636. - Show RT_LIBS in ./configure output.
  637. - First import of libusb-1.0
  638. - bflsc xlinkstr use snprintf
  639. - Fix win32 build.
  640. - Use take_queued_work_bymidstate in the bflsc driver to avoid the rare chance
  641. repeated results come back from the same work item.
  642. - Provide a funcion that looks up queued work by midstate and then removes it
  643. from the device hash database.
  644. - Fix no -rt library on darwin.
  645. - Update included jansson to v2.4
  646. - Fix OSX build.
  647. - Provide an osx fix for cgtimers and a fallback to timevals for all other
  648. platforms !linux !win32 !osx.
  649. - Move two more timer functions out of define macros to enable them to be used
  650. by future osx code.
  651. - cgtimer_sub is now the same since cgtimer_t should be the same on all
  652. platforms.
  653. - miner.php fix missing global
  654. - Only count submitted nonces as diff1shares if they're valid.
  655. - Substantially raise the maximum avalon frequency for water-cooled, over-volted
  656. designs.
  657. - Compile MCast.java with an old java
  658. - API Multicast sample MCast.java+MCast.class
  659. - BTB show C/MHz/mV for device
  660. - api.c remove unused reply string
  661. - api.c fix mcast debug message bug
  662. - miner.php implement API Multicast handling to automatically find your local
  663. net miners
  664. - API mcast only reply to remote IP's that are allowed access
  665. - Initial API Multicast response v0.1 to find cgminer APIs
  666. - Use timespecs on windows as cgtimer_t to capitalise on the higher resolution
  667. clock changes.
  668. - Abstract out the conversion of system time to an lldiv_t in decimicroseconds.
  669. - Use our own gettimeofday implementation on windows for it to be consistent
  670. across ming builds and higher resolution.
  671. Version 3.4.0 - 21st August 2013
  672. - Use stack data for HW error% in avalon stats.
  673. - Add avalon HW error% to stats and only show BTB variables if avalon is a BTB.
  674. - Check for cnx_needed on each loop through wait_lp_current.
  675. - Return positive for cnx_needed when no_work is true.
  676. - Stratum is used more often so test for it first.
  677. - Reorder support names alphabetically.
  678. - Only display the no pool work message once if there are multiple waiters in
  679. hash_pop
  680. - Provide a message and set a bool when no work is available from any pools and
  681. when it resumes again.
  682. - We don't want to continue into the hash_pop function if the getq is frozen.
  683. - Only report threads in and out in queued work devices across a get work since
  684. the rest happens asynchronously and the get work is what the device might be
  685. waiting on.
  686. - Thread reportin and out can be static non inline.
  687. - usbutils cps sleep_estimate is not an underestimate
  688. - usbutils add cps stats estimates
  689. - Provide cgtimer_sub helper functions.
  690. - Provide cgtimer_to_ms helper functions.
  691. - Rename cgsleep_prepare_r as cgtimer_time to get time in cgtimer_t format and
  692. call cgsleep_prepare_r as a macro for cgtimer_time
  693. - Use the reentrant cgsleep functions for usecps in usbutils.
  694. - TimeBeginPeriod and TimeEndPeriod do not add significant overhead when run the
  695. entire time for cgminer so avoid trying to maintain balanced numbers of them for
  696. specific time calls to simplify code.
  697. - Replace all references to the old n*sleep functions with the equivalent
  698. cgsleep_*s replacements.
  699. - timeGetTime uses huge resources on windows so revert to using timevals for its
  700. implementation of cgtimer_t
  701. - Quotient/remainder error in ms division.
  702. - Only grab a queued work item if we successfully grab the lock to submit work
  703. in bflsc_send_work
  704. - BTB get version from Firmware
  705. - Carve out the unused portions of sha2 implementation.
  706. - Import Aaron D. Gifford's fast sha256 implementation.
  707. - Increase the que_low watermarks on BFLSC for they are too low to keep the
  708. device busy on scanwork loops.
  709. - Provide cgtimer_to_timeval helper functions.
  710. - Provide a timeval_to_cgtime helper function to reuse values.
  711. - Check for thr->work_restart in restart_wait.
  712. - We should be using que_low to decrease scan sleep time in bflsc.
  713. - Prepare sleep time on bflsc if no dev needs work yet to avoid busy waiting.
  714. - Simplify cgsleep code for windows by using a typedef for cgtimer_t that
  715. resolves to clock resolution, using that internally.
  716. - On windows use the higher accuracy timegettime function to really get 1ms
  717. clock and timer accuracy.
  718. - Use the cgsleep reentrant function to sleep for bflsc between read results to
  719. account for time taken to perform reads.
  720. - Use 100ms delay between checking for results on all bflsc devices as the
  721. buffering of results mean checking more frequently just wastes CPU and causes
  722. more lock contention for only marginally better latencies.
  723. - Fix missed endtimeperiod in overrun timer on windows.
  724. - Make cgsleep_us_r take an int64_t for us.
  725. - Make the cgsleep functions build on windows.
  726. - Use the cgsleep reentrant function in avalon_send_task.
  727. - Use the reentrant cgsleep functions within the avalon_send_tasks function.
  728. - Set high resolution timing on windows within the cgsleep functions.
  729. - Use the reentrant cgsleep function to time sleeps on reading from avalon.
  730. - Provide reentrant versions of cgsleep functions to allow start time to be set
  731. separately from the beginning of the actual sleep, allowing scheduling delays to
  732. be counted in the sleep.
  733. - Make the nmsleep and nusleep functions use the new cgsleep functions
  734. internally till functions are migrated to the new cgsleep API.
  735. - Add a ms_to_timespec helper function, and create a cgsleep_ms function that
  736. uses absolute timers with clock_nanosleep to avoid overruns.
  737. - Add rt lib linkage to enable use of clock_nanosleep functions with older
  738. glibc.
  739. - Add necessary time header include to avalon driver.
  740. - Do a sleep of the full duration it would take to do all the work using
  741. clock_nanosleep in avalon_send_tasks to avoid sleep overruns before polling to
  742. see if it's ready.
  743. - Add a timeraddspec helper function.
  744. - Provide a us_to_timespec helper function.
  745. - Use the us_to_timeval helper function in the avalon driver.
  746. - Provide a us_to_timeval helper function.
  747. - Use timeval_to_spec helper in avalon driver.
  748. - Add helper functions to convert timespec to timeval and vice versa.
  749. - simplifying buffer full check
  750. - forking bitburner write thread function
  751. - making sure original Avalon is unaffected by BitBurner changes
  752. - changes to queueing strategy for BitBurner boards
  753. - Do not poll in avalon_get_results without sleeping if we have finished parsing
  754. a full result.
  755. - Add c to ambient temperature display for avalon driver.
  756. - BTB allow up to 1400mV as per firmware limits
  757. - avalon for timeout allow d='calculate it' and fix uninitialised
  758. - Use cloned work when finding avalon results since another thread can discard
  759. the work item while it's in use.
  760. - Provide a variant of find_work_bymidstate that returns a clone of the found
  761. work.
  762. Version 3.3.4 - 14th August 2013
  763. - API/miner.php add some % fields
  764. - Nonce2 stratum submission is not working with nonce2 lengths >4, revert the
  765. buggy __bin2hex function and use bin2hex.
  766. - The write thread in avalon is only ever actually woken up by timeout so remove
  767. the write semaphore and use a simple sleep poll.
  768. - Fix warning.
  769. - Interrupting reads on the avalon to start writes loses data so remove the
  770. cgsem_post in the read code.
  771. - Add room for the null byte at the end of the nonce2 string on stratum share
  772. submission and zero the allocated ram.
  773. Version 3.3.3 - 13th August 2013
  774. - Only perform the bin2hex on nonce2 data if it's required for stratum
  775. submission, thereby removing the last conversion of that type from stratum work
  776. generation.
  777. - Create a work data template when receiving stratum notification, allowing a
  778. simple memcpy of the merkle root avoiding more hex2bin conversions on each work
  779. generation.
  780. - Export the workpadding char in miner.h
  781. - Avoid a potential overflow should a pool specify a large nonce2 length with
  782. stratum.
  783. - Avoid one more hex2bin in gen stratum work.
  784. - Rename work gbt_coinbase to coinbase to be in line with pool variable name.
  785. - Perform merkle bin hex2bin on stratum notify to avoid doing it on each work
  786. generation.
  787. - Reuse just the one pool coinbase variable in stratum, avoiding more string
  788. functions and storage in gen_stratum_work on each work generation.
  789. - Rename pool gbt_coinbase variable to coinbase to combine it with the stratum
  790. coinbase data.
  791. - Use a nonce2 offset variable for both gbt and stratum to consolidate
  792. requirements on work generation.
  793. - Merge pull request #474 from kanoi/master
  794. - util.c update quit call for new functions
  795. - use correct define for OSX in util.c
  796. - miner.h inline semaphores increase information on failure
  797. - util.c expand quit to show file/func/line
  798. - Merge remote-tracking branch 'conman/master'
  799. - Cache as much of the gbt coinbase as possible to avoid doing unnecessary
  800. hex2bin conversion on every work generation with gbt.
  801. - We should be using a cg_wlock initially in generating stratum and gbt work
  802. before downgrading the lock.
  803. - Add the ability to downgrade a write variant of the cglocks.
  804. - Fix --scrypt being required before scrypt intensities on command line or not
  805. working at all via config files.
  806. - Cache the hex2bin of pool nonce1 in stratum, avoiding hex2bin on each work
  807. generation.
  808. - Cache the binary generation of coinbase1 and 2 on stratum, avoiding a hex2bin
  809. of coinbase1 and 2 on each work generation.
  810. - cgsem - increase information on failure
  811. - avalon init write_sem before use
  812. - 3.3.2 - 9th August 2013
  813. - Fix uninit variable warnings.
  814. - usbutils - force check every combination
  815. - Fix warning.
  816. - Recreate curses windows on windows when a device is hotplugged to allow window
  817. resizing without crashing.
  818. - Update copyright notice.
  819. - Limit intensity range according to whether scrypt is in use or not.
  820. - Do not allow benchmark mode to be used with scrypt.
  821. - Add a --bflsc-overheat command which allows you to set the throttling
  822. temperature for BFLSC devices or disable it.
  823. - Move bflsc defines to a header file.
  824. - avalon allow frequency to be set via the API
  825. - BTB voltage management via the API - and set default on startup
  826. - Avalon BTB allow partial work to be transferred
  827. - avalon_cts use correct buffer
  828. - miner.php format Best Share
  829. - remove unnecessary memcpy
  830. - using more concise description
  831. - using usb_ident
  832. - forgot a return
  833. - changes to Avalon driver for BitBurner boards
  834. - Revert "Sleep after sending icarus work to emulate working at 115200 baud."
  835. - api correct timeout stat display
  836. - usb timeouts - min/max also
  837. - log USB timeouts in API stats
  838. - usbutils report failed timeouts
  839. - usbutils ensure stats macros are using the macro arguments
  840. - Check for negative wait time in socket_full.
  841. - Fix extra argument passed to statline before.
  842. - Adjust socket wait timeout in recv_line according to how long we've already
  843. waited to avoid a 60 second wait dropping to 1 second due to a blocked socket.
  844. - usbutils use a heap buffer for bulk read rather than stack
  845. - usbutils only one bulk transfer call per stat
  846. - set device_drv function noops when first add_cgpu
  847. - usbutils - in init only change the config if needed
  848. - bflsc nonce per work item stats
  849. - bflsc increase flush count to handle parallel work
  850. - force type checking on curses
  851. - logging - size check sprintf
  852. - usbutils - size check all sprintf
  853. - cgminer - size check all sprintf
  854. - size check get_datestamp/get_timestamp and remove unused cgpu->init
  855. - make all statline overflow safe
  856. - WU only needs +2 width
  857. - Check for a timeout in avalon_scanhash and post to the write sem if we receive
  858. one.
  859. - Decay result count in avalon more slowly to not falsely detect idle periods as
  860. low result return rates.
  861. - Count the number of miners idled in avalon to account more accurately for when
  862. its result return rate is too low.
  863. - Fix potential dereference when starting avalon with all new work.
  864. - Convert the decay_time function into one that truly creates an exponentially
  865. decaying average over opt_log_interval.
  866. - Only throttle avalon clockspeed in avalon_auto in non optimal temperature
  867. settings if the fanspeed has reached maximum.
  868. - Reinstate more aggressive <2% HW error target for avalon-auto
  869. - Set avalon fan min and fan max to PWM values instead of percentage.
  870. - Provide an --avalon-freq command line to give a valid range of frequencies for
  871. avalon in auto mode.
  872. - Set the avalon idle frequency to lowest if avalon auto is enabled and we have
  873. an overheat condition.
  874. - Decrease avalon frequency in auto mode if we are unable to maintain the
  875. temperature in the optimal range.
  876. - Don't count invalid nonces as hashrate for bflsc.
  877. - Use a more conservative upper limit of 1% for hardware errors with avalon auto
  878. frequency.
  879. - Allow the avalon fanspeed range to be passed as parameter on the command line,
  880. default to 20-100%
  881. - Just display A: and R: for difficulty accepted and rejected to preserve screen
  882. real estate and decrease decimal places for WU.
  883. - correct device DR: and remove global U:
  884. - Update all screen A/R to instead use DA/DR and device U to WU
  885. - miner.php add ASC fields
  886. - GPU fan rpm display 9999 when it overflows
  887. - bflsc get volts stats needs its own GETVOLTS
  888. - Support all avalon frequencies on the command line.
  889. - Move to slightly more relaxed timeouts for avalon.
  890. - MMQ turn on cps delays
  891. - bflsc x-link header different to documentation
  892. - Reset the other auto counters in avalon when idling a device.
  893. - usbutils/icarus include more locking to usbdev access
  894. - Icarus turn on cps delays by default
  895. - usbutils cps correct time measurement
  896. Version 3.3.1 - 25th June 2013
  897. - Add an avalon-auto option which enables dynamic overclocking based on hardware
  898. error rate for maximum effective hashrate.
  899. - Add an --avalon-cutoff feature which puts the avalon idle should it reach this
  900. temperature, defaulting to 60, re-enabling it when it gets to target
  901. temperature.
  902. - Change default avalon target temperature to 50 degrees.
  903. - usbutils - incorrect test for * in bus:dev
  904. - Redo +1 fix in bflsc.
  905. Version 3.3.0 - 24th June 2013
  906. - Add an --avalon-temp option to allow a user specified target temperature.
  907. - Demote no matching work message to verbose logging only on avalon.
  908. - Make the fan control on the avalon a simple PID controller with a target
  909. temperature of 45.
  910. - Demote bflsc hw error messages to verbose logging only.
  911. - bflsc - handle xlink timeouts by having generic IO functions
  912. - Demote the invalid nonce warning to log info.
  913. - Ignore iManufacturer for BFLSC devices since the device name will still match
  914. and some unbinned chips are missing it.
  915. - sc_count shouldn't be +1 in bflsc.
  916. - Use the info timeout for read_nl in getidentify bflsc.
  917. - Add a usb_read_nl_timeout macro.
  918. - bflsc try getinfo twice
  919. - set MSG_ASCUSBNODEV always defined
  920. - Hard code the preferred packet size for AMU, BLT and ICA.
  921. - API V1.26 update ASIC support
  922. - Icarus enable the read buffer for the detect nonce
  923. - Support new overclocking speeds for avalon: 325, 350 and 375
  924. - undo icarus show errno, put it as debug in ubsutils
  925. - icarus add errno to rerr and werr
  926. - Sleep after sending icarus work to emulate working at 115200 baud.
  927. - Use the nusleep function for sleeping after sending work in avalon.
  928. - Show an integer only for diff if it is one.
  929. - Set the avalon preferred packet size to 512.
  930. - Reinstate the maxPacketSize determined by the end descriptor but allow the
  931. driver to override it.
  932. - Only update hashmeter if we have done hashes or haven't updated longer than
  933. the log interval, fixing a us/ms error.
  934. - Use only one cgsem in avalon signalling when the write thread should commit
  935. work by reading the status bytes off during an avalon_read, minimising the
  936. number of usb calls and resetting from only one place.
  937. - Change avalon no valid work message to no matching work to match API
  938. terminology.
  939. - Use low latency usb transfers on the avalon, sleeping up to half a buffer's
  940. worth only if no data is returning to increase hashrate, abolish lost work and
  941. decrease CPU.
  942. - Minimise the sleep times in avalon read to avoid result loss.
  943. - Use a half nonce range before cycling through avalon's scanwork to ensure it
  944. gets a chance to fill work if time is tight for the write thread to signal a
  945. wakeup.
  946. - Temporarily limit usb transfer sizes to 512 till we provide a way for each
  947. driver to choose the upper limit.
  948. - Increase watchdog sick time to longer than it takes for a pool to be detected
  949. dead.
  950. - Limit USB transfers to the max size reported by the descriptors.
  951. - Increase the BFLSC timeout to allow the maximum number of results to be
  952. returned for BAS in time.
  953. - Decrease BAL and BAS latency to be just larger than one result read.
  954. - disable curses device resize that crashes on windows
  955. - BFLSC latest firmware has its own thermal cutoff set to 90, so use the same
  956. value in case we have an old firmware that isn't throttling by itself.
  957. - Drop watermark low limits for bflsc.
  958. - Set the fanspeed on bflsc to max if we don't know the temperature.
  959. - Use a low watermark for queueing mandatory work on bflsc instead of zero.
  960. - Only mandatorily grab the bflsc mutex on submitting work when the queue is
  961. empty.
  962. - Adjust bflsc v2 watermarks.
  963. - Only increase sleep time on bflsc if the queue isn't emptying at all over the
  964. sleep duration.
  965. - Fix warning.
  966. - bflsc yet more API stats
  967. - bflsc add some more API stats
  968. - bflsc correct firmware matching
  969. - bflsc correct comment
  970. - Fixed Commands with No params
  971. - bflsc driver support for v2 firmware
  972. - Odd Issues
  973. - Fixed Python Example
  974. - Added Python Api Example
  975. - Added Python Api Example
  976. - Multiplier fail for microseconds vs milliseconds when updating hashmeter in
  977. hash_queued_work.
  978. - Only make threads report in/out across the actual driver code and update their
  979. status on reporting out as well as in.
  980. - usbutils initialise close key/sem
  981. - usbutils cleanup linux semaphores on release
  982. - Difficulty should be unconditionally byteswapped, not swapped to big endian.
  983. - We should be setting cancelstate, not canceltype when disabling it for usb
  984. locking.
  985. - Pthread cancel state should be set to disable on usb DEVLOCK.
  986. - Fanauto on bflsc is Z9X according to the source code, not 5 as per the draft
  987. protocol document.
  988. Version 3.2.2 - 16th June 2013
  989. - Record and report USB pipe errors via API stats
  990. - Suspend stratum connections when we know they've failed and don't try to recv
  991. data from them once the socket no longer exists.
  992. - Pipe error is quite common on usb3 so drop logging to verbose level only.
  993. - ocl.c fix applog warnings on windows
  994. - applog/quit fix GPU errors created
  995. - usbutils - DEVLOCK other usbdev access
  996. - applog usb device list can be > LOGBUFSIZ
  997. - fix windows log warnings
  998. - logging remove extra added <LF>
  999. - remove varargs from logging/quit/in general as much as possible
  1000. - Don't yield when downgrading a cg ilock.
  1001. - Don't yield on grabbing the read lock variant of cglocks.
  1002. - Off by one error in device count for display.
  1003. - Don't display devices beyond the most_devices count in the curses status.
  1004. - Only display as many device rows as the maximum live existed at any time.
  1005. - usb lock out use cg locks
  1006. - usb lock out transfers during open/close
  1007. - Add error message to libusb pipe error
  1008. - Differentiate libusb control transfer pipe errors from transfer errors since
  1009. they're not fatal.
  1010. - Create a usb_bulk_transfer wrapper for libusb_bulk_transfer to cope with pipe
  1011. errors.
  1012. - Only show efficiency in pool information for pools that don't support local
  1013. work generation.
  1014. - Create a pool_localgen bool function for testing when a pool can generate work
  1015. locally.
  1016. - ignore file that is generated on Macs
  1017. - compile unix code on Mac OS X fixes not finding the config file in $HOME
  1018. - Use mining start time for device MH/U calculations
  1019. - Decrease the sleep duration before reading in avalon to not let the read
  1020. buffer overflow.
  1021. - Failure to read and write on pseudo semaphores on apple happens routinely on
  1022. shut down so should not be a quit error, just a warning.
  1023. - Unlock usb dev lock in the same place in usbutils.
  1024. - Sleep if the avalon buffer is empty and we've requested a read to allow the
  1025. write thread to take precedence.
  1026. - Yield after releasing a lock in case we are on a device with limited CPU
  1027. resources.
  1028. - Add the cgpu_info structure before avalon reset.
  1029. - Tidy up DEVLOCK/UNLOCK to have consistent use of the pstate variable without
  1030. needing brace level match.
  1031. - Icarus driver elaspsed timeout shouldn't be just USB I/O
  1032. - usbutils avoid leaving devlock locked when thread cancelled
  1033. - MMQ fix nodev failure caused by changes
  1034. - ubsutils lock all access to nodev and cgusb
  1035. - USB make device_path handled by usbutils
  1036. - tidy up free in device detect functions
  1037. - USB control creation and free of cgpu
  1038. - Add FAQ regarding Work Utility.
  1039. - Throttling the BFLSC at 80 seems to prevent generating garbled responses of
  1040. higher temps.
  1041. - Return after failed bin2hex conversion in bflsc.
  1042. - Demote failed hex2bin result to LOG_INFO and check return result in
  1043. driver-bflsc to avoid doing find_work_by_midstate.
  1044. - Set BFLSC fan speed coarsely to keep it under 60 or auto as per specs saying
  1045. it tries to stay below 60.
  1046. - Limit usbutils LATENCY_STD to 32ms to keep transfers under 512 bytes.
  1047. - Move macro definition to bflsc driver
  1048. - Use a longer timeout for retrieving bflsc details.
  1049. - Add a usb_read_ok_timeout wrapper to cope with slow init'ing devices.
  1050. - cgsem_post after creating the thread info
  1051. - Fix build.
  1052. - Use cgsem structures instead of the flaky pings in the work queue to start
  1053. mining threads and remove the unused thr_info_freeze function.
  1054. Version 3.2.1 - 7th June 2013
  1055. - Shorten the avalon statline to fit in the curses interface and show the lowest
  1056. speed fan cooling the asic devices.
  1057. - Set usbdev in usbutils after checking for nodev to avoid trying to access a
  1058. dereferenced value.
  1059. - AMU usbstatus correct name from enable UART
  1060. - Icarus AMU enable the UART
  1061. - Only libusb close if libusb release succeeds.
  1062. - Failed reads and writes on cgsem_post and cgsem_wait should be extremely rare.
  1063. - Implement cgminer specific cgsem semaphores to imitate unnamed semaphore
  1064. behaviour on osx which does not support them.
  1065. - Set cgusb->buffer to NULL when doing usb_buffer_disable.
  1066. - Temporarily fix apple not having semtimedop by ignoring the timeout value.
  1067. - BFLSC enable buffered USB reading
  1068. - Icarus use buffered USB reading
  1069. - bflsc & icarus use usb_ftdi_set_latency
  1070. - usb_ftdi_set_latency LOG_ERRs if called incorrectly
  1071. - add usb_ftdi_set_latency
  1072. - usbutils optional read buffering
  1073. - Set the avalon read transfer latency to avoid sleeping when no data is
  1074. returned after very short latency settings.
  1075. - correct bflsc BFLSC_BUFSIZ max calculation
  1076. - Fix build for !curses
  1077. - restore max code - since timeout is unsigned
  1078. - compile warning - remove unused max
  1079. - usb set FTDI latency higher to minimise status bytes
  1080. - Check for zero timeout on _usb_write.
  1081. - Check for zero timeout in usb read.
  1082. - Define a minimum polling time based on frequency of mandatory updates of ftdi
  1083. responses at 40ms.
  1084. - Sleep right up to the timeout instead of the first half if we find ourselves
  1085. polling in _usb_read
  1086. - Enforce half timeout sized sleeps in usb_read if we find the device is not
  1087. respecting libusb timeouts to avoid polling frequently.
  1088. - Add more ASIC documentation.
  1089. - Update README
  1090. - Remove start device limitation on log window size to allow it to get larger
  1091. with hotplugged devices.
  1092. - Switch logsize after hotplugging a device.
  1093. - Change switch_compact function name to switch_logsize to be used for other
  1094. changes.
  1095. - Only adjust cursor positions with curses locked.
  1096. - devs display - fix GPU duplicate bug
  1097. - Do not hotplug enable a device if devices have been specified and the hotplug
  1098. device falls outside this range.
  1099. - Change the --device parameter parsing and configuration to use ranges and
  1100. comma separated values.
  1101. - basic copyright statement in API.java
  1102. - devs display - show ZOMBIEs after all others
  1103. - Modify scrypt kernel message.
  1104. - Check for pool_disabled in wait_lp_current
  1105. - usbutils semun use proper def for linux which fixes OSX also
  1106. - Check for pool enabled in cnx_needed.
  1107. - Icarus add delays during intialisation
  1108. - Update documentation.
  1109. - Update copyrights of modified files.
  1110. Version 3.2.0 - 31st May 2013
  1111. - Add FAQ about windows USB keyboards and hotplug interactions.
  1112. - Fix mingw build warnings in icarus driver.
  1113. - Make usb_ftdi_cts use the _usb_transfer_read function.
  1114. - Update ASIC-README with avalon info regarding default behaviour.
  1115. - Break out of idling loop in avalon_idle if the buffer is full.
  1116. - Provide some defaults for avalon if none are specified and do not try to claim
  1117. the device if it fails to reset with them and no options are specified.
  1118. - usbutils automatically track IO errors
  1119. - usbutils allow a short wait for resources to be released
  1120. - correct semaphore timeout comment
  1121. - Set the fanspeed to the nominal chosen for GPUs.
  1122. - Inverted sem_init logic.
  1123. - Document avalon options in ASIC-README
  1124. - Do avalon driver detection last as it will try to claim any similar device and
  1125. they are not reliably detected.
  1126. - Clamp initial GPU fanspeed to within user specified range.
  1127. - Use a counting semaphore to signal the usb resource thread that it has work to
  1128. do.
  1129. - Avalon fan factor is already multiplied into the info values.
  1130. - Get rid of zeros which corrupt display.
  1131. - Logic fail on minimum fanspeed reporting.
  1132. - Provide a workaround for fan0 sensor not being used on avalon and pad fan RPM
  1133. with zeros.
  1134. - Add ambient temp and lowest fan RPM information to avalon statline.
  1135. - Display max temperature and fanspeed data for avalon.
  1136. - Set devices to disabled after they exit the hashing loops to prevent the
  1137. watchdog thread from trying to act on them.
  1138. - Add avalon driver to hotplug.
  1139. - Shut down the avalon mining thread if the device disappears.
  1140. - Check for no usb device in usb_ftdi_cts
  1141. - Check for valid usbdev in _usb_read in case the device has been unplugged.
  1142. - Scanhash functions perform driver shutdown so don't repeat it.
  1143. - Change the opencl shutdown sequence.
  1144. - Send the shutdown message to threads and do the thread shutdown functions
  1145. before more forcefully sending pthread_cancel to threads.
  1146. - Use the cgpu_info shutdown to determine when to stop the avalon read and write
  1147. threads.
  1148. - Use semaphores to signal a reset to pause the read thread while the write
  1149. thread does the actual reset, making all writes come from the same place.
  1150. - Remove now unneeded fgpautils.h include from avalon.
  1151. - usb_transfer_read should also not play with the endianness.
  1152. - Use the USB wrappers for avalon, telling usbutils that we want the raw data.
  1153. - Use separate ep for avalon tasks vs avalon reset and do not loop in write
  1154. indefinitely.
  1155. - Remove unneeded function and checks in avalon write code.
  1156. - CMR handle baud options
  1157. - work_restart is reset within the queued hash work loop.
  1158. - Fix avalon shutdown sequence.
  1159. - Execute driver shutdown sequence during kill_work.
  1160. - Use nusleep in avalon_get_results in place of nmsleep.
  1161. - Provide an nusleep equivalent function to nmsleep.
  1162. - usb/ica add more (incomplete) CMR settings
  1163. - Give a buffer of perceived results in avalon during idle periods to allow for
  1164. results once it becomes active again.
  1165. - libusb_control_transfer are meant to be endian specific, but host endianness
  1166. so no conversion is needed.
  1167. - Reuse old MTX Handle
  1168. - usbutils check all memory allocation
  1169. - usb separate thread for resource locking and modified windows locking code
  1170. - Icarus report data direction with comms errors
  1171. - Set the read and write threads for avalon to not cancel within libusb
  1172. functions and wait for the threads to pthread_join on shutdown.
  1173. - Offset needs to be incremented after avalon reads.
  1174. - Make the avalon_read function parse the ftdi responses appopriately.
  1175. - Use the avalon read timeout to completion if no data has been read.
  1176. - wait_avalon_ready should only be used before writes.
  1177. - Ask for the correct amount to read in avalon get results.
  1178. - Spawn the avalon read thread first with info->reset set to discard any data
  1179. till work is adequately queued.
  1180. - Use direct usb read commands to avoid ftdi data being automatically cut off in
  1181. avalon reads.
  1182. - Do a simple usb_read_once for the avalon result from a reset command.
  1183. - Make sure avalon is ready to receive more usb commands before sending them.
  1184. - Implement avalon_ready and avalon_wait_ready functions for when usb is ready
  1185. to receive commands.
  1186. - avalon_read should not loop but just return whatever it has succeeded in
  1187. reading.
  1188. - Set avalon_info to device data void struct.
  1189. - Specify avalon in avalon_reset.
  1190. - First pass rewriting serialdev into direct usb dev for avalon driver.
  1191. - Define a cts equivalent for direct usb and use it for avalon driver full.
  1192. - Compile usbutils into avalon driver.
  1193. - Check results come in at least at 2/3 the rate they should be on avalon and if
  1194. not, reset it.
  1195. - Give a warning but don't reset if the avalon buffer is full early.
  1196. - Discard any reads obtained from the avalon get results thread during a reset.
  1197. - Differentiate initial reset in avalon from subsequent ones.
  1198. - Perform a mandatory reset if the avalon buffer signals it's full before it has
  1199. queued its normal quota of work.
  1200. - Wait till buffer is cleared after sending idle tasks to avalon before
  1201. returning from avalon_idle.
  1202. - Lock qlock mutex during reset from read thread in avalon to prevent more work
  1203. being sent till the reset is over.
  1204. - Reset avalon if we continue to be unable to send all the work items.
  1205. - Add avalon reset response to debugging output.
  1206. - Do a wait_avalon_ready before sending a reset code.
  1207. - Iterate over spare bytes in the avalon result returned from a reset request
  1208. trying to find the beginning of the reset.
  1209. - Idle avalon after reset.
  1210. - Check for nothing but consecutive bad results on avalon and reset the FPGA if
  1211. it happens.
  1212. - Make submit_nonce return a bool for whether it's a valid share or not.
  1213. - Unset the work restart flag sooner in avalon_flush_work to avoid re-entering
  1214. the flush work function and just reset the queued counter instead of rotating
  1215. the array to avoid runs of no valid work.
  1216. - Implement an avalon_flush_work function for work restarts.
  1217. - Shut down avalon read and write threads and idle the miners on closing it.
  1218. - Tighter control over work submissions in avalon allows us to use a smaller
  1219. array.
  1220. - Rotate avalon array to reset the queued count before releasing the lock so
  1221. work will always be available on next pass.
  1222. - Move avalon read thread start till after conditional wait, store idle status
  1223. in avalon_info and use it to determine whether an error is appropriate or not.
  1224. - Wait till the avalon_send_tasks thread has filled the avalon with idle work
  1225. before starting the avalon_get_results thread.
  1226. - Use AVA_GETS_OK macro in avalon_read.
  1227. - Do all writes on avalon with a select() timeout to prevent indefinite blocking
  1228. and loop if less than desired is written.
  1229. - Check explicitly that ava_buffer_full equals the macro.
  1230. - Send initial reset as an avalon task to remove avalon_write function.
  1231. - avalon_clear_readbuf is no longer required.
  1232. - Check for 2 stray bytes on avalon reset.
  1233. - Create a separate thread for handling all work and idle submission to the
  1234. avalon which messages the scanhash function it has completed to update
  1235. statistics.
  1236. - usbutils ensure it compiles without stats
  1237. - usbutils include transfer mode in usbstats
  1238. - Give the avalon get results thread name the device number as well.
  1239. - Make sure we're not adjusting temps on every successful work retrieval on
  1240. avalon.
  1241. - Count missing work items from behind a successful work read in avalon as well.
  1242. - Change message for work not found in avalon parser.
  1243. - usbutils handle bulk_transfer partial writes
  1244. - Simplify debugging and only discard from avalon read buffer if at least one
  1245. full result has been discarded.
  1246. - Only display discarded bytes in avalon if they're not used as nonces.
  1247. - Only loop once through avalon_parse_results, but do so after timeouts as well.
  1248. - Only debug and move ram if spare bytes exist in avalon buffer.
  1249. - Remove off by one error.
  1250. - Inverted logic.
  1251. - Add more debugging to avalon reads.
  1252. - Convert unsigned size_ts to ints for parsing avalon messages.
  1253. - Cope with not finding nonces in avalon parsing gracefully by not overflowing
  1254. buffers.
  1255. - Adjust avalon temp values on one lot of valid nonces from the parser.
  1256. - Created a threaded message parser for avalon reads.
  1257. - Avalon_wait_write is not effective during resets so do it after going idle.
  1258. - Send only a single byte reset.
  1259. - Repeat going idle after avalon reset, and wait for write ready before sending
  1260. each reset request instead of some arbitrary sleep time.
  1261. - Timeouts on avalon_read and avalon_write should be 100ms.
  1262. - Don't close avalon after detecting it until we're cleaning up, instead using
  1263. reset for comms failures.
  1264. - Check for avalon_wait_write before sending reset command.
  1265. - Sleep in avalon_write_ready.
  1266. - Make avalon_wait_write a bool function and check its return value.
  1267. - Show how many idle tasks are sent to avalon if it aborts on buffer full.
  1268. - Reset avalon->device_fd after it is closed.
  1269. - Create an avalon_wait_write function that is used before sending avalon idle
  1270. command.
  1271. - Avoid repeating avalon_idle in do_avalon_close and extra sleep.
  1272. - Pass fd to avalon_idle.
  1273. - Do avalon_reset after info structure is set up.
  1274. - Rework avalon reset sequence to include idling of chips and waiting for them
  1275. to go idle followed by 2nd reset and then checking result.
  1276. - Do a non-blocking read of anything in the avalon buffer after opening the
  1277. device.
  1278. - Assign the avalon info data to the device_data in cgpu_info.
  1279. - thread shutdown is different on windows
  1280. - usbutils make all windows timeouts 999ms
  1281. - usb add another Cairnsmore1 USB chip
  1282. - icarus do the full detect test twice if required
  1283. - CMR usb config guess
  1284. - usb add transfer_read and commented out in icarus
  1285. - usbutils allow unrounded control transfers
  1286. - icarus ICA initialisation
  1287. - icarus report err on read failure
  1288. - icarus correct device_id and use device_data for icarus_info
  1289. - miner.h remove unused device_file and add device_data
  1290. - miner.h icarus no long uses fd
  1291. - icarus AMU config transfers
  1292. - Create a logwin_update function which mandatorily updates the logwin and use
  1293. it when input is expected to prevent display refresh delays.
  1294. - usbutils force an unknown IDENT for zero
  1295. - icarus set default options/timing based on device
  1296. - Must unlock curses as well in logwin_update.
  1297. - Create a logwin_update function which mandatorily updates the logwin and use
  1298. it when input is expected to prevent display refresh delays.
  1299. - icarus report usb write error information
  1300. - Add name to icarus copyright notice.
  1301. - Check for *pth dereference on pthread_join
  1302. - usbutils name latency correctly
  1303. - Check for restart before buffering more reads in Icarus.
  1304. - Icarus should timeout if it's greater than the timeout duration even if it's
  1305. receiving data.
  1306. - We should check for amount buffered in icarus get_nonce against amount already
  1307. received.
  1308. - Make mining threads report out during work submission.
  1309. - submit_work_async is no longer used directly by driver code.
  1310. - Fix first read timeout on icarus get nonce.
  1311. - Retry icarus_initialise if the first read attempt fails.
  1312. - Properly pthread_join miner threads on shutdown.
  1313. - Properly pthread_join miner threads on shutdown.
  1314. - Use a persistent single separate thread for stratum share submission that uses
  1315. workqueues since all stratum sends are serialised.
  1316. - All stratum calls to recv_line are serialised from the one place so there is
  1317. no need to use locking around recv().
  1318. - Only allow the mining thread to be cancelled when it is not within driver
  1319. code, making for cleaner shutdown and allowing us to pthread_join the miner
  1320. threads on kill_work().
  1321. - Only allow the mining thread to be cancelled when it is not within driver
  1322. code, making for cleaner shutdown and allowing us to pthread_join the miner
  1323. threads on kill_work().
  1324. - Set pool->probed to true after an attempt to resolve the url via stratum code.
  1325. - icarus test nodev everywhere
  1326. - usbutils/icarus separate FTDI transfer values and more debug
  1327. - add icarus to hotplug
  1328. - usbutils add rest of icarus
  1329. - simple serial-USB python test script
  1330. - icarus->USB v0.1 incomplete - missing initialise()
  1331. - README spelling
  1332. - Update documentation for icarus switch to USB
  1333. - Add USB rules for supported USB devices
  1334. - switch icarus configuration to usb
  1335. - usbutils new command for icarus
  1336. - usb add a numeric sub-indentity for each name
  1337. - usbutils - make FTDI handling automatic
  1338. - fix duplicate name
  1339. - usbutils set Black Arrow Lancelot's as BAL and match the lot->llt name
  1340. - usbutils identify Icarus devices
  1341. - libusb_control_transfer 16 bit words are endian specific.
  1342. - usb_applog separate amt display
  1343. - Show pool difficulty more verbosely if it changes via stratum.
  1344. - Attribute whatever stats we can get on untracked stratum shares based on
  1345. current pool diff.
  1346. - Provide a --lowmem option which does not cache shares on failed submission to
  1347. prevent low memory hardware (eg Avalon) from crashing.
  1348. - Update util.c
  1349. Version 3.1.1 - May 11th, 2013
  1350. - Use a discrete device target for scrypt that dynamically changes to ensure we
  1351. still report a work utility even if no shares are submitted such as in solo
  1352. mining.
  1353. - Make set_work_target a function to set a specified char as target for use
  1354. elsewhere.
  1355. - Further consolidate the hash regeneration between sha and scrypt doing it only
  1356. once and always checking the share diff for both before submission.
  1357. - Regenerate the hash before checking the share diff in hashtest().
  1358. - Minor typo.
  1359. - Use a scantime of 30 seconds for scrypt if none is specified.
  1360. - Support more shares to be returned for scrypt mining.
  1361. - Update the write config to properly record device entries and remove disabled
  1362. option.
  1363. - Show a different warning and loglevel for failure to resolve a URL on first or
  1364. subsequent testing of stratum pool URLs.
  1365. - Fix the problem of seting up termio of ttyUSB0 for icarus. the CSIZE is the
  1366. mask of CS2/4/8 From: navyxliu <navy.xliu@gmail.com>
  1367. - Set all stratum sockets to nonblocking to avoid trying to use MSG_DONTWAIT on
  1368. windows.
  1369. - Fix warnings on win32 build.
  1370. - Only use MSG_NOSIGNAL for !win32 since it doesn't exist on windows.
  1371. - Use MSG_NOSIGNAL on stratum send()
  1372. - Set TCP_NODELAY for !linux for raw sockets.
  1373. - Use TCP_NODELAY with raw sockets if !opt_delaynet
  1374. - Make raw sockets compile on windows
  1375. - Recheck select succeeds on EWOULDBLOCK for stratum.
  1376. - usbutils/mmq fixed size usb_read default to wait for all data
  1377. - usbutils optional (disabled by default) dev debug
  1378. - Add an ftdi usb read macro without newline
  1379. - Avalon usb interface should be 0.
  1380. - Add more debug for failure to USB init.
  1381. - Recv() should all be non-blocking for raw sockets in stratum.
  1382. - Change verbosity and error for getaddrinfo warnings in setup stratum socket.
  1383. - Free servinfo after p is checked in setup stratum socket.
  1384. - Use raw sockets without curl for stratum communications.
  1385. - Sacrifice curl handle memory on stratum disconnects on all versions of libcurl
  1386. to avoid curl corruption.
  1387. - Don't use TCP_NODELAY if opt_delaynet is enabled with stratum.
  1388. - Fix warnings in avalon driver.
  1389. - Make FULLNONCE an ULL to fix a warning on 32 bit.
  1390. - ztx correct applog typing
  1391. - ocl correct applog typing
  1392. - util correct applog typing
  1393. - api correct applog typing
  1394. - cgminer correct applog typing
  1395. - scrypt correct applog typing
  1396. - bfl correct applog typing
  1397. - ica correct applog typing
  1398. - mmq correct applog typing
  1399. - adl fix trailing %
  1400. - usbutils correct applog typing
  1401. - applog - force type checking
  1402. - Simplify the many lines passed as API data in the avalon driver now that the
  1403. API does not need persistent storage for the name.
  1404. - Duplicate the name string always in api_add_data_full to not need persistent
  1405. storage for names passed to it.
  1406. - Add extra matching work count data in API for Avalon with 4 modules.
  1407. Version 3.1.0 - April 28th, 2013
  1408. - va_copy is meant to be matched by a va_end in log_generic.
  1409. - usbutils remove_in_use break
  1410. - usbutils remove_in_use missing prev
  1411. - usbutils missing add_in_use
  1412. - Clean up summary slightly better on exit.
  1413. - Make the scan sleep time after scanwork in bflsc dynamic to keep queues
  1414. between watermark levels.
  1415. - Remove unused temp counts in bflsc.
  1416. - Calculate a rolling 5 min average set of temperatures for bflsc.
  1417. - Damp the display of voltage for BFLSC devices.
  1418. - Damp the temperature display measurement for bflsc since it fluctuates so
  1419. wildly.
  1420. - bflsc add volt stats
  1421. - Handle failed tolines command in bflsc driver.
  1422. - Can use a read lock instead of a write lock in bflsc scanwork.
  1423. - Since we are filling a queue on the bflsc devices, there is no need to run
  1424. through scanwork frequently provided we use the restart_wait function to abort
  1425. early during a block change.
  1426. - Remove flushed work in bfl scanwork from the hash table.
  1427. - Set correct device in process_nonces in bflsc driver.
  1428. - bflsc add work reply INPROCESS: missing from the spec
  1429. - bflsc put in some error messages not yet written
  1430. - bflsc get completed hashes as late as possible
  1431. - Fix potential memory leak with unused work items in bflsc_queue_full
  1432. - Reverse bools in bflsc_queue_full
  1433. - Avoid recursive loop calling correct function instead.
  1434. - bflsc fix details identification
  1435. - Differentiate BFLSC device from regular bitforce and give warning if no
  1436. support is compiled in.
  1437. - util.c str_text make a fully text readable version of str
  1438. - BFLSC fix FPGA identity overlap
  1439. - Locking error in bflsc_send_work
  1440. - Use htobe32 function for converting nonce in bflsc.
  1441. - Replace deprecated bzero with memset in bflsc driver.
  1442. - Fix compilation of bflsc driver without opencl.
  1443. - Check for realloc failures in bflsc driver.
  1444. - Check for failure to calloc in bflsc driver.
  1445. - Trivial style change
  1446. - Use copy_time function in bflsc driver.
  1447. - Use cgtime in bflsc driver and update copyright notice.
  1448. - Use a separate function for bfl initialise that doesn't require locking.
  1449. - Fix BFLSC building.
  1450. - bflsc v0.1
  1451. Version 3.0.1 - April 25th, 2013
  1452. - Bypass attempting to read and save binary files on OSX to avoid crashes on >1
  1453. GPU.
  1454. - Receive failures in recv_line should unconditionally fail.
  1455. - Use sock_blocks in api.c
  1456. - Use sock_blocks function for stratum send and receive.
  1457. - Create an OS specific sock_blocks function.
  1458. Version 3.0.0 - April 22nd, 2013
  1459. - Further fix distdir for hexdump.c
  1460. - Fix build and distdir.
  1461. - Remove all CPU mining code.
  1462. - compile on win32
  1463. - Update SCRYPT README with improved hashrates for 7970.
  1464. - Use copy_time helper throughout cgminer.c
  1465. - Provide wrappers for commonly used timer routines with API stats.
  1466. - Avoid one cgtime call in sole_hash_work.
  1467. - Fulltest is true if value is <= target.
  1468. - Use system host to endian functions for clarity in fulltest.
  1469. - Provide endian_flipX functions to avoid special casing big endian in cgminer.c
  1470. - Provide a flip128 helper to simplify big endian flipping.
  1471. - Use flip helpers to simplify code for calculation of midstate.
  1472. - Use flip32 function instead of open coding it in gen_stratum_work.
  1473. - Move util.c exports to util.h
  1474. - Fix warning on building avalon on win32
  1475. - Use cgtime in driver-avalon.c
  1476. - Use cgtime in driver-icarus.c
  1477. - Use cgtime in driver-bitforce.c
  1478. - Use cgtime in logging.c
  1479. - Use cgtime in usbutils.c
  1480. - Use cgtime in driver-opencl.c
  1481. - Use cgtime wrapper in driver-modminer.c
  1482. - Use cgtime in driver-ztex.c
  1483. - Use cgtime in compat.h
  1484. - Use cgtime instead of gettimeofday in fpgautils.c
  1485. - Replace gettimeofday usage in cgminer.c with cgtime
  1486. - Create a cgminer specific gettimeofday wrapper that is always called with tz
  1487. set to NULL and increases the resolution on windows.
  1488. - Add high resolution to nmsleep wrapper on windows.
  1489. - Set default ocl work size for scrypt to 256.
  1490. - define le32toh if needed
  1491. - fliter out the wrong result from adjust fan code
  1492. - compile avalon driver on win32 and win64
  1493. - Restart threads on the rare chance we found the block ourselves.
  1494. - Add more FAQs about crossfire.
  1495. - Set last device valid work on adding device.
  1496. - Increment last device valid work count in submit_nonce to cover scrypt.
  1497. - Set opt_scrypt drv max diff for correctness.
  1498. - Make scrypt submission use the submit_nonce code, with nonces matching
  1499. endianness.
  1500. - Do testing for HW errors on submit nonce for both scrypt and sha.
  1501. - Increment hardware error count from the one site.
  1502. - Rename scrypt regenhash function for consistency.
  1503. - Add new best share info to verbose logging.
  1504. - Add notice for when network diff is changed.
  1505. - Convert error getting device IDs in ocl code to info log level only since
  1506. multiple platforms may be installed and the error is harmless there.
  1507. - Unnecessary extra array in ocl code.
  1508. - Further driver FAQs.
  1509. - Add MAC FAQ.
  1510. - Add more FAQ details.
  1511. - Check for work restart after disable in the hash queued work loop since it may
  1512. be a long time before we re-enable a device.
  1513. - Unconditionally test for many wrong results on avalon and reset to avoid
  1514. passing a corrupt avalon result to temperature code.
  1515. - build out of source dir
  1516. - Set device_diff for queued work or there will be no diff1 share count.
  1517. - Only reset an avalon device with no results when there are no results
  1518. consecutively.
  1519. - More FAQs.
  1520. - More FAQs.
  1521. - Cleanup when stratum curl fails to initialise.
  1522. - Avoid applog in recalloc_sock.
  1523. - Avoid applog under stratum_lock in recv_line.
  1524. - Avoid applog under stratum_lock in __stratum_send.
  1525. - Put spacing around locking in util.c for clarity.
  1526. - Avoid applog under cg_wlock.
  1527. - Put spacing around locking code for clarity.
  1528. - Avoid applog under pool_lock.
  1529. - Avoid more recursive locks.
  1530. - Avoid applog while ch_lock is held.
  1531. - Avoid recursive locks in fill_queue.
  1532. - Variable is already initialised in global scope.
  1533. - More GPU faqs.
  1534. - More README faqs.
  1535. - Yet more README faqs.
  1536. - Add more faqs to README.
  1537. - Wrap result wrong tests in avalon scanhash in unlikely() and only consider a
  1538. hash count of zero wrong if a restart wasn't issued.
  1539. - avalon: if result_wrong >= get_work_count jump out the read loop
  1540. - Fix warning on 32bit.
  1541. - Fix warning on 32bit.
  1542. - Avoid curl_easy_cleanup on old curl versions in setup_stratum_curl as well.
  1543. - fix the fan control on max temp2/3
  1544. - for some reason network down. one simple cgminer command: "cgminer -o
  1545. 127.0.0.1:8888 -O fa:ke --avalon-options 115200:32:10:50:256" can idle the
  1546. avalon for safe power and protect chip
  1547. - if hash_count == 0; reinit avalon, fix the 0MHS bug use the max value of temp1
  1548. and temp2 for fan control
  1549. - Reinstate the matching_work_count per subdevice on avalon based on the work
  1550. subid.
  1551. - Avalon driver is missing the drv_id.
  1552. - Rationalise and simplify the share diff and block solve detection to a common
  1553. site.
  1554. - Rationalise and simplify the share diff and block solve detection to a common
  1555. site.
  1556. - Make the avalon array size a macro.
  1557. - Use replacement of work items in the avalon buffer as needed instead of
  1558. flushing them.
  1559. - Reinstate wrong work count to reset avalon regardless and display number of
  1560. wrong results.
  1561. - Revert "The result_wrong measurement for avalon is continually leading to
  1562. false positives so remove it."
  1563. - select() on serial usb in avalon does not work properly with zero timeout.
  1564. - The result_wrong measurement for avalon is continually leading to false
  1565. positives so remove it.
  1566. - Revert "Use only 2 queued work arrays in avalon."
  1567. - Use no timeout on further reads in avalon_gets
  1568. - Do sequential reads in avalon_get_reset to cope with partial reads.
  1569. - Show read discrepancy in avalon_get_reset.
  1570. - Reuse avalon_get_work_count variable.
  1571. - Check for AVA_GETS_RESTART when deciding if avalon has messed up.
  1572. - Make the detection of all wrong results on avalon much more conservative to
  1573. avoid false positives on work restarts.
  1574. - Show error codes on select and read fail in avalon.
  1575. - If we get a restart message in avalon_gets still check if there's a receive
  1576. message to parse first without a timeout before returning AVA_GETS_RESTART.
  1577. - Use only 2 queued work arrays in avalon.
  1578. - avalon_gets is always called from the one call site so inline it.
  1579. - The read_count is unused by the avalon get result code and no longer required
  1580. for avalon reset so simplify code removing it.
  1581. - Use a separate avalon_get_reset function for resetting avalon instead of using
  1582. avalon_get_result.
  1583. - The current hash count returned by avalon scanhash is just an obfuscated
  1584. utility counter so make it explicit.
  1585. - Check for a restart before a timeout in message parsing code in avalon.
  1586. - We should check for a restart message before checking for a timeout in avalon
  1587. scanhash.
  1588. - Store the subid for the work item in avalon.
  1589. - usbutils more stats for bflsc
  1590. - Fix record_temp_fan function in avalon driver. Patch by Xiangfu
  1591. <xiangfu@openmobilefree.net>
  1592. - Remove inappropriate memset of struct avalon result which was corrupting fan
  1593. values.
  1594. - Fix warning with no curses built in.
  1595. - Bump version to 2.11.4
  1596. - Add API support for Avalon.
  1597. - Only do_avalon_close once on multiple errors.
  1598. - Reset the result_wrong count on block change in avalon scanhash to prevent
  1599. false positives for all nonces failed.
  1600. - Small timeouts on select() instead of instant timeout increase reliability of
  1601. socket reads and writes.
  1602. - Only get extra work in fill_queue if we don't have any unqueued work in the
  1603. list.
  1604. - Small timeouts on select() instead of instant timeout increase reliability of
  1605. socket reads and writes.
  1606. - Rotate the avalon work array and free work on AVA_SEND_BUFFER_EMPTY as well.
  1607. - Only get extra work in fill_queue if we don't have any unqueued work in the
  1608. list.
  1609. - Don't get any work if our queue is already full in avalon_fill.
  1610. - Differentiate socket closed from socket error in recv_line.
  1611. - Differentiate socket closed from socket error in recv_line.
  1612. - Free avalon->works in the event we call avalon_prepare on failure to
  1613. initialise.
  1614. - Fix warnings.
  1615. - Create an array of 4 lots of work for avalon and cycle through them.
  1616. - Remove unused per unit matching work count for avalon.
  1617. - Rename the confusing avalon_info pointer.
  1618. - Simplify avalon scanhash code using the new find_queued_work_bymidstate
  1619. function. Partially works only.
  1620. - Members of cgpu_info for avalon are not meant to be in the union.
  1621. - Use correct struct device_drv for avalon_drv.
  1622. - cgminer.c -S help to only say Icarus
  1623. - Check enough work is queued before queueing more in avalon_fill.
  1624. - Actually put the work in the avalon queue.
  1625. - Rneame avalon_api to avalon_drv.
  1626. - First draft of port of avalon driver to new cgminer queued infrastructure.
  1627. - Add Makefile entry for driver-avalon.
  1628. - Add configure support for avalon.
  1629. Version 2.11.4 - April 5th, 2013
  1630. - Remove bfl-sc option from configure for 2.11 branch.
  1631. - Only update hashrate calculation with the log interval.
  1632. - Update the total_tv_end only when we show the log to prevent failure to update
  1633. logs.
  1634. - Minor README updates.
  1635. - Add example 7970 tuning for scrypt in readme.
  1636. - Update driver recommendations.
  1637. - Add extensive GPU FAQs for the flood of new Scrypt miners.
  1638. - Remove help option for cpumining in build environment.
  1639. - Remove scripts that make it too easy to compile CPU mining support.
  1640. - Win32 and win64 build updates
  1641. - Remove references to CPU mining from README.
  1642. - Show share hash as little endian as needed.
  1643. - usbutils extra message requirements
  1644. - Make hashmeter frequency for hash_queued_work match sole_work.
  1645. - Update links and recommended SDKs.
  1646. - Update scrypt readme re drivers and sdk.
  1647. - usbutils.c usb_cmdname() usb_cmds -> string name
  1648. - BFL FPGA Windows timeout set to 999ms
  1649. - AUTHORS - spam update time (one year since the last)
  1650. - Update README for x970 memdiff values.
  1651. - Update README to match changes to display.
  1652. - Remove increasingly irrelevant discarded work from status lines.
  1653. - Remove increasingly irrelevant queued and efficiency values from status and
  1654. move WU to status line.
  1655. - Allow cgminer to start if usb hotplug is enabled but no devices yet exist.
  1656. - Do not scan other gpu platforms if one is specified.
  1657. - Update README for sync objects on windows.
  1658. - Update README about intensity.
  1659. - Add information for setting gpu max alloc and sync parameters for windows with
  1660. scrypt.
  1661. - If the hashmeter is less than the log interval and being updated by the
  1662. watchdog, don't update the hashrate.
  1663. Version 2.11.3 - March 17, 2013
  1664. - Update docs and reorder README to show executive summary near top.
  1665. - Update the hashmeter at most 5 times per second.
  1666. - Usbutils use its own internal read buffer
  1667. - Calculate work utility for devices that support target diffs of greater than
  1668. 1, and update scrypt code to use it.
  1669. - usbutils allow read termination match to be a string
  1670. - Set default GPU threads to 1 for scrypt.
  1671. - Connect backup stratum pools if the primary pool cannot deliver work.
  1672. - Use a new algorithm for choosing a thread concurrency when none or no shader
  1673. value is specified for scrypt.
  1674. - Do not round up the bufsize to the maximum allocable with scrypt.
  1675. - Remove the rounding-up of the scrypt padbuffer which was not effectual and
  1676. counter-productive on devices with lots of ram, limiting thread concurrencies
  1677. and intensities.
  1678. - bufsize is an unsigned integer, make it so for debug.
  1679. - Update the hashmeter once per second but only display the extra logs every
  1680. opt_log_inteval.
  1681. - add a dummy ztex to usbutils so cgminer -n lists ztex also
  1682. - nDevs required for -n with usb
  1683. - USB device list - convert some common error numbers to messages
  1684. - USB -n 'known' text only without ---usb-list-all
  1685. - USB modify -n and --usb-dump to only show known devices or use new
  1686. --usb-list-all option to see all
  1687. - Make pool adding while running asynchronous, using the pool test thread
  1688. functionality.
  1689. - Only curl easy cleanup a stratum curl if it exists.
  1690. - Sacrifice the ram of curl handles in stratum disconnects when we have built
  1691. with old libcurl to avoid crashes.
  1692. - cgminer -n to include a USB device list
  1693. - usbutils allow call of usb_all() from other code
  1694. - Convert gbt_lock to a cg_lock.
  1695. - Add intermediate variants of cglocks that can be up or downgraded to read or
  1696. write locks and use them for stratum work generation.
  1697. - Move the stratum and GBT data to be protected under a new cg_lock data_lock.
  1698. - Convert the ch_lock to cg_lock.
  1699. - Convert the control_lock to a cg_lock.
  1700. - Remove unused qd_lock.
  1701. - Implement cg_lock write biased rwlocks.
  1702. - do usb_initialise() after the started message so we see it
  1703. - --usb-dump display brief dump if value = 0
  1704. - USB add --usb options to limit USB device selection v0.1
  1705. Version 2.11.2 - March 9, 2013
  1706. - Whitelist AMD APP SDK 2.8 for diablo kernel.
  1707. - Cope with the highest opencl platform not having usable devices.
  1708. - Fix memory leak with share submission on GPU work structures as discovered by
  1709. twobitcoins.
  1710. - usb_cleanup() without locking.
  1711. - Use curl_easy_cleanup to close any open stratum sockets.
  1712. - Show pool number in switch message
  1713. - Don't start testing any pools with the watchpool thread if any of the test
  1714. threads are still active.
  1715. - Set sockd to false should curl setup fail on stratum.
  1716. - Close any open sockets when reusing a curl handle and reopen the socket
  1717. whenever we're retrying stratum.
  1718. - Set pool died on failed testing to allow idle flag and time to be set.
  1719. - Remove unused pthread_t typedefs from struct pool.
  1720. - Perform pool_resus on all pools that are found alive with the test pool
  1721. threads.
  1722. - Use pool_unworkable in select_balanced as well.
  1723. - Differentiate pool_unusable from pool_unworkable.
  1724. - Keep a connection open on higher priority stratum pools to fail back to them.
  1725. - Rename threads according to what pool they're associated with as well.
  1726. - Set the wrong bool in pool_active
  1727. - Start the stratum thread only if we successfully init and authorise it,
  1728. otherwise unset the init flag.
  1729. - Make the initialisation of the stratum thread more robust allowing the
  1730. watchpool thread safe access to it after the stratum thread is started.
  1731. - API no longer ignore send() status
  1732. - API make the main socket non-static
  1733. Version 2.11.1 - March 7, 2013
  1734. - Shorten the time before keepalive probes are sent out and how frequently
  1735. they're sent with stratum curls.
  1736. - Only set stratum auth once to prevent multiple threads being started.
  1737. - Display select return value on select fail in stratum thread.
  1738. - Clear the socket of anything in the receive buffer if we're going to retry
  1739. connecting.
  1740. - Allow pools to be resuscitated on first startup by the watchpool thread.
  1741. - Check all pools simultaneously at startup switching to the first alive one to
  1742. speed up startup.
  1743. - Clear just the socket buffer when we don't care what is left in a stratum
  1744. socket.
  1745. - Clear the stratum socket whenever we are closing it since the buffer is going
  1746. to be reused.
  1747. - Do not continue work from a stratum pool where the connection has been
  1748. interrupted.
  1749. - Reset stratum_notify flag on suspend_stratum as well.
  1750. - Close any sockets opened if we fail to initiate stratum but have opened the
  1751. socket.
  1752. - Close any existing stratum socket if we are attempting to restart stratum so
  1753. the pool knows the connection has gone.
  1754. - Show mechanism of stratum interruption if select times out.
  1755. - Make stratum connection interrupted message higher priority to be visible at
  1756. normal logging levels.
  1757. - Implement client.show_message support for stratum.
  1758. - API add 'Network Difficulty' to 'coin'
  1759. - Setup BFLSC support
  1760. - API use control_lock when switching pools
  1761. - Make sure to retry only once with noresume support for stratum.
  1762. - Instead of keeping track of when the last work item was generated to keep
  1763. stratum connections open, keep them open if any shares have been submitted
  1764. awaiting a response.
  1765. - usbutils.c copy full size to 'Last Command'
  1766. - configure - set USE_USBUTILS when usbutils is required and use it in the code
  1767. - Clear last pool work on switching pools if the current pool supports local
  1768. work generation or we are in failover only mode.
  1769. - make rw locks: mining_thr_lock and devices_lock
  1770. - Release MMQ device only once (not 4 times)
  1771. - api.c fix MSG overlap
  1772. - Hotplug - allow setting interval via --hotplug or API
  1773. - curses - fix - put a dev_width inside #ifdef
  1774. - usb_cleanup() use correct locking mechanism
  1775. - Implement and use usb_cleanup() on shutdown or restart
  1776. - miner.php report 'Last Valid Work' as time before request
  1777. - API - return Last Valid Work
  1778. - api -> drv
  1779. - ZTX bug set missing drv_id
  1780. Version 2.11.0 - March 2, 2013
  1781. - Update kernel file names signifying changes.
  1782. - Update a pool's last work time when the work is popped as well as staged.
  1783. - API always report failed send() replies
  1784. - Update diff stale: total and pools when stratum throws away shares
  1785. - Keep stratum connections open for 2 minutes after the last work item was
  1786. staged to allow stray shares to be submitted on pool switching.
  1787. - Try to extract the sessionid associated with mining.notify on 3rd level array
  1788. and submit it along with the userid to support mining resume, failing gracefully
  1789. and restarting if the pool rejects it.
  1790. - Speed up watchdog interval and therefore display updates to 2 seconds.
  1791. - Update copyright dates.
  1792. - Cope with misread sessionid on stratum for now.
  1793. - Use constants from the array of __constants throughout the diablo kernel.
  1794. - Create a __constant array for use within diablo kernel.
  1795. - Fix --benchmark generating valid work for cgminer.
  1796. - Use the sessionid as passed on stratum connect to attempt to resume a
  1797. connection once and then clear it if it fails, to use a new connection.
  1798. - Move to storing the nonce1 in the work struct instead of the sessionid for the
  1799. now defunct first draft mining.resume protocol.
  1800. - Use global constant arrays for all other constants used in scrypt kernel.
  1801. - Use global __constants for sha functions in scrypt kernel.
  1802. - Use constants for endian swap macros.
  1803. - Revise scrypt kernel copyright notice.
  1804. - Separate out additions in scrypt kernel.
  1805. - Reuse some Vals[] variables that can be assigned to constants earlier in the
  1806. poclbm kernel, making for fewer ops.
  1807. - Put all constants used in poclbm kernel into __const memory array to speed up
  1808. concurrent reads on the wavefront.
  1809. - BFL stop 1st init command if no device
  1810. - Add a get_queued function for devices to use to retrieve work items from the
  1811. queued hashtable.
  1812. - Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free
  1813. - Bugfix: Missing pool_no parameter to applog for no-stratum-sessionid debug
  1814. message
  1815. - Add the choice of hash loop to the device driver, defaulting to hash_sole_work
  1816. if none is specified.
  1817. - Add comments.
  1818. - Add a driver specific flush_work for queued devices that may have work items
  1819. already queued to abort working on them on the device and discard them.
  1820. - Flush queued work on a restart from the hash database and discard the work
  1821. structs.
  1822. - Create a central point for removal of work items completed by queued device
  1823. drivers.
  1824. - Create a fill_queue function that creates hashtables of as many work items as
  1825. is required by the device driver till it flags the queue full.
  1826. - Create the hash queued work variant for use with devices that are fast enough
  1827. to require a queue.
  1828. - Update copyright year.
  1829. - Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle,
  1830. not opt_log_interval.
  1831. - Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle,
  1832. not opt_log_interval.
  1833. - Only continue submitting shares with mining.resume support on stratum when the
  1834. session id matches.
  1835. - Provide support for mining.resume with stratum, currently re-authorising after
  1836. successful resumption pending finalising of the protocol process.
  1837. - Provide basic framework for restarting stratum depending on whether resume
  1838. support exists or not.
  1839. - Abstract out the setting up of the stratum curl socket.
  1840. - Free sessionid in clean_work and remove redundant setting of strings to NULL
  1841. since the whole work struct is zeroed.
  1842. - Only clear stratum shares mandatorily on stratum dropouts when the pool does
  1843. not support resume.
  1844. - Try resubmitting stratum shares every 5 seconds for up to 2 minutes if the
  1845. pool session id exists and matches on failure to submit.
  1846. - Do as much outside of mutex locking of sshare_lock as possible.
  1847. - Remove last reference to struct work used outside the sshare_lock in
  1848. submit_work_thread
  1849. - Unlock the sshare_lock in submit_work_thread when all references to work and
  1850. sshare are complete.
  1851. - Add timestamps to stratum_share structs as they're generated and copy the
  1852. stratum sessionid if it exists to stratum work generated.
  1853. - Store session id for stratum if the pool supports it for future mining.resume
  1854. support.
  1855. - API.java allow partial reads
  1856. - debug_cb buffer type warning
  1857. - MMQ rewrite the last of the old scanhash loop and drastically reduce CPU
  1858. - hash_sole_work can be static
  1859. - Make the numbuf larger to accept larger scrypt parameters.
  1860. - Keep the unique id of each work item across copy_work to prevent multiple work
  1861. items having the same id.
  1862. - Abstract out the main hashing loop to allow us to use a separate loop for
  1863. devices that are fast enough to require queued work.
  1864. - Provide a noop thread_enable function for drivers that don't support it.
  1865. - Provide a noop thread_shutdown function for drivers that don't support it.
  1866. - Provide a noop hw_error function for drivers that don't support it.
  1867. - Provide a noop prepare_work for drivers that don't support it.
  1868. - Provide a noop thread_init for drivers that don't support it.
  1869. - Provide a noop can_limit_work for devices that don't support it.
  1870. - Provide a noop thread_prepare function for drivers that don't use
  1871. thread_prepare.
  1872. - Use blank_get_statline_before for GPU devices that don't support adl
  1873. monitoring.
  1874. - Provide a noop get_stats function for drivers that don't support it.
  1875. - Provide a blank get_statline for drivers that don't support it.
  1876. - Provide a blank get_statline_before function for drivers that don't have one.
  1877. - Fill drivers missing reinit_device with a noop version.
  1878. - add 'count' to cumstomsummarypage 'calc'
  1879. - hotplug use get_thread() where appropriate
  1880. - convert sleep(const) to nmsleep()
  1881. - remove empty #ifdef
  1882. - call a separate get_devices() with locking, as required
  1883. - usbutils - avoid free cgusb twice
  1884. - usbutils hotplug v0.1
  1885. - Report USB nodev as ZOMBIE on the screen
  1886. - Change file modes.
  1887. Version 2.10.5 - February 7, 2013
  1888. - Fix logic fail on partial writes with stratum send that was leading to corrupt
  1889. message submissions.
  1890. - Do not consider every call to stratum_resumed a pool recovery unless it was
  1891. actually idle.
  1892. - Do not enable the pool disable on reject feature unless explicitly enabled
  1893. with --disable-rejecting.
  1894. - Stratum disconnect shares - count total against stale
  1895. - Use sanity checking to prevent a possible overflow with invalid data being
  1896. given by the pool for difficulty as reported by luke-Jr.
  1897. - Check for calloc failure for completeness in gen_stratum_work.
  1898. - Cache the coinbase length to speed up stratum work generation.
  1899. - Cache the header length when generating stratum work to avoid calculating it
  1900. on every work generation, and to only need one alloc+sprintf, speeding up work
  1901. generation.
  1902. - Use heap ram for coinbase in gen_stratum_work, zeroing it before use.
  1903. - Provide a wrapper for aligning lengths of size_t to 4 byte boundaries.
  1904. - Fix memory leak on stratum share submission.
  1905. - Zero the best share string memory when zeroing stats.
  1906. Version 2.10.4 - December 29, 2012
  1907. - Change the pool stratum socket buffer to be dynamically allocated to
  1908. accomodate any size coinbase and keep receiving data in recv line for up to 60s
  1909. if no end of line has been received.
  1910. - Differentiate socket full from sock full.
  1911. - Allow stratum to startup without notify but check it is valid before creating
  1912. stratum work.
  1913. - Do not try to generate stratum work unless the notify command has succeeded.
  1914. - Reset total diff1 shares when zeroing stats as well to show correct work
  1915. utility.
  1916. Version 2.10.3 - December 26, 2012
  1917. - Do not give the share submission failure message on planned stratum
  1918. disconnects.
  1919. - Parse anything in the stratum socket if it's full without waiting. Empty the
  1920. socket even if a connection is not needed in case there are share returns.
  1921. - Provide a mechanism to zero all the statistics from the menu.
  1922. - Display the current pool diff in the status line.
  1923. - Display block diff in status line.
  1924. - Generalise the code for solving a block to enable block solve detection with
  1925. scrypt mining.
  1926. - Generate the output hash for scrypt as well and use the one function to set
  1927. share_diff.
  1928. - Use the flip80 function in regeneratehash and the correct sized hash array.
  1929. - Use one size for scratchbuf as a macro in scrypt.c
  1930. - Stage work outside of the stgd lock to prevent attempted recursive locking in
  1931. clone_available.
  1932. - share_diff needs to be performed on a BE version of the output hash to work,
  1933. leading to false best_share values as spotted by luke-Jr.
  1934. - Remove the unused sha224 functions.
  1935. - Use the flip functions in hashtest.
  1936. - Simplify the setting of the nonce data field in work on submitting nonces.
  1937. - Scrypt code does not enter the hashtest function.
  1938. - Go back to cloning available work under staged lock.
  1939. - Updated links to AMD APP SDK
  1940. - Updated link to ADL SDK
  1941. - scrypt_diff uses a uint64_t as well.
  1942. - Correct target for stratum support with scrypt mining.
  1943. - libztex: fixed a typo
  1944. - libztex: check returnvalue of libusb_claim_interface() and release the
  1945. interface in case of early exit
  1946. Version 2.10.2 - December 19, 2012
  1947. - Stop all work from the current pool if it's a stratum pool once it is
  1948. disconnected since it will be invalid upon reconnecting.
  1949. - Discard all staged work from stratum pools as well as the shares upon
  1950. disconnection since all the work becomes invalid.
  1951. - Use correct cbreak after 15 second delay when no pool is found alive.
  1952. - MMQ missing firmware -> ERR not DEBUG
  1953. - Allow stratum to work with scrypt.
  1954. - MMQ ensure delta clock can never exceed limits
  1955. - MMQ lowercase new string constants
  1956. - MMQ add api pgaset for clock
  1957. - API V1.23 - new pgaset command, to be used soon
  1958. - Protect the best_share/best_diff values under control lock.
  1959. - MMQ style police
  1960. - MMQ count work check timeout failures
  1961. - MMQ allow partial work replies and count them
  1962. - Check a stratum pool hasn't gone dead while being a backup pool and missed
  1963. having its idle flag cleared.
  1964. - MMQ overheat: remove clockdown (doesn't help) + ensure no lost shares
  1965. - API-README grammar
  1966. - API-README explain custom page extensions in miner.php
  1967. - miner.php add a sample group pool report
  1968. - miner.php allow where,group,having on cumstom pages
  1969. Version 2.10.1 - December 14, 2012
  1970. - Check for EWOULDBLOCK when supported in send and recv as well.
  1971. - Use the raw send() command instead of curl_easy_send since curl raw socket
  1972. usage introduces random bugs on windows.
  1973. - Use raw recv() command in place of curl_easy_recv since the curl
  1974. implementation introduces random bugs on windows builds when the recv fails.
  1975. - miner.php when displaying a single rig, add prev/next rig buttons if they
  1976. exist, next to refresh
  1977. - miner.php allow custom page joins for STATS
  1978. - API show if pool has GBT (so people know not to use that pool)
  1979. - miner.php - include windows easyphp link
  1980. - driver-ztex: use the correct size for the swap array
  1981. - API stats - display pool byte transfer stats
  1982. - Pool store data transfer stats
  1983. - README ModMiner dependency
  1984. - Benchmark incorrect work size
  1985. - ChangeLog refer to NEWS
  1986. - MMQ handle over temp differently and hash longer
  1987. - driver-ztex: search the complete noncerange based on the actual speed
  1988. - README - update ModMiner details
  1989. - API-README update
  1990. - api use a dynamic io buffer, truncated before it reaches the current ~64k
  1991. limit
  1992. Version 2.10.0 - December 10, 2012
  1993. - Include prctl header for thread renaming to work.
  1994. - Set tv_idle time if a pool is not active when input from the menu.
  1995. - usb display message when device is in use/another cgminer
  1996. - libztex: avoid the use of libusb_error_name()
  1997. - minor unlikely zero pointer test
  1998. - BeaverCreek doesn't like BFI INT patching.
  1999. - Only stratum pools that are idle need to be kicked via cnx_needed.
  2000. - mmq - abbreviate the temperature numbers
  2001. - Do not do any setup if opt_api_listen is disabled in api.c.
  2002. - usbutils.c uninitialised usbstat for non-primary mmqs
  2003. - Only set the lagging flag for select_pool() on failed getwork if we're not in
  2004. opt_fail_only mode.
  2005. - libztex: in case the selectFpga() failed set the selected fpga to unknown
  2006. - Modified windows-build.txt to update git instructions.
  2007. - libztex: use a function for the twice called firmware reset code
  2008. - libztex: removed an unused struct member (ztex->valid)
  2009. - driver-ztex: support for broken fpga on a multifpga board
  2010. - Set the pool lagging flag on startup to avoid it being shown initially, and
  2011. only unset it once the maximum number of staged work items has been reached.
  2012. - Avoid recursive locking of the stgd lock.
  2013. - Return value of keep_sockalive is no longer used.
  2014. - Remove dependency on mstcpip.h for windows build by making curl version >=
  2015. 7.25.0 mandatory on windows builds, and use curl functions for keepalive
  2016. whenever possible instead.
  2017. - Make main() the getwork scheduler once everything is set up, so that all app
  2018. exits use the kill_work and quit paths.
  2019. - ztex: more style and whitespace fixes
  2020. - libztex: silenced another warning
  2021. - Set successful connect to true on auth stratum to allow summary on exit from
  2022. single stratum pool.
  2023. - Only consider work stale for stratum of different job_id if it's not a share.
  2024. - Increment version preempting changed version signifying different codebase to
  2025. 2.9
  2026. - Hash_pop should signal further waiters on its own pthread conditional in case
  2027. there are multiple waiters.
  2028. - Check the job_id has not changed on stratum work when deciding if the work is
  2029. stale as might occur across disconnections.
  2030. - Perform pool_resus on getwork pool that generates work in getwork_thread.
  2031. - Set pool lagging message for getwork pool that falls to zero staged in getwork
  2032. thread.
  2033. - Stage extra work when the primary pool is a getwork pool without rolltime.
  2034. - Do not try to clean up twice if kill message is given.
  2035. - Only recalculate total_staged in getwork thread if required.
  2036. - Include the correct config header in libztex and include it before other
  2037. includes.
  2038. - Implement a completely new getwork scheduler. Stage all work from the one
  2039. thread, making it possible to serialise all requests minimising the number of
  2040. getworks requested or local work generated. Use a pthread conditional to wake up
  2041. the thread whenever work is removed to generate enough work to stay above the
  2042. watermark set by opt_queue. Remove all remnants of the old queueing mechanism,
  2043. deleting the now defunct queued count.
  2044. - libztex: fixed some warnings and removed some whitespaces
  2045. - libztex: silenced some warnings
  2046. - Remove all references to the now unused workio_cmd structure.
  2047. - Remove the old workio command queue thread, replacing it with a kill
  2048. conditional to exit the program.
  2049. - Remove getwork command from workio_cmd queues and do them directly from
  2050. queue_request.
  2051. - Begin tearing down the old workio command queues by removing submit commands
  2052. from there and submit them asynchronously via their own threads.
  2053. - Update windows build instructions.
  2054. - Set pool probed to true on successful authorisation with stratum to avoid it
  2055. being pinged later with pool_getswork.
  2056. - driver-ztex: libztex_setFreq() must be called before ztex_releaseFpga()
  2057. - driver-ztex: changed two pairs of malloc()/memset() to calloc()
  2058. - libztex: Read bitstream file in 2kb blocks with simpler and faster code
  2059. - Added the binary versions of ztex_ufm1_15d4.ihx and ztex_ufm1_15y1.ihx
  2060. - Trivial space removal.
  2061. - libztex: Add firmware download support for ZTEX 1.15d and 1.15x
  2062. - libztex: Factor out local version of libusb_get_string_descriptor_ascii()
  2063. - Shut up some boring old cpu warnings.
  2064. - Style changes.
  2065. - Allow pool active to be called on stratum or disabled pools in the watchpool
  2066. thread if the pool has not been probed.
  2067. - libztex: Make log messages say bitstream when refering to bitstreams
  2068. - libztex: Don't return error when a bitstream was already configured
  2069. - libztex: Read bitstream file in 64kb blocks with simpler and faster code
  2070. - libztex: Verify that the mining firmware is not a dummy firmware
  2071. - libztex: Match mining firmware ZTEX descriptor against the dummy firmware
  2072. - Combine shared padding into one char.
  2073. - libztex: Start download sequence only after reading in the new firmware
  2074. - libztex: Download mining firmware to all devices with dummy firmware
  2075. - lock (most of) the threaded statistics updates
  2076. - README stats don't add up
  2077. - usbutils.c remove compiler warning
  2078. - Make need connection return true if a pool is idle.
  2079. - API add Best Share to summary
  2080. - Check on creating new GBT work if the structures are up to date and update
  2081. them as required rather than regularly.
  2082. - Update windows build instructions.
  2083. - Enable backup stratum connections for getwork when the primary pool doesn't
  2084. have longpoll aka solo mining.
  2085. - Check for correct absence of opt_fail_only in cnx_needed.
  2086. - Remove unused variable.
  2087. - The specification for stratum has been elaborated to say that a changed diff
  2088. applies only to new work so do not retarget when submitting shares.
  2089. - Use a variable length string array in submit_upstream_work to cope with
  2090. massive GBT submissions.
  2091. - API lock access to some summary statistics (and copy them)
  2092. - Suspend stratum connections to backup pools when there is no requirement to
  2093. potentially grab work from them.
  2094. - Fix missing export for RenameThread.
  2095. - enumerate the mining threadnames
  2096. - MMQ avoid possible number overrun crashes
  2097. - mmq usb v0.4 + api usb stats
  2098. - setting the name of the threads for linux,freebsd,openbsd and osx code is
  2099. borrowed from bitcoins util.c, so it is already tested
  2100. - Don't show broken WU value with scrypt mining.
  2101. - Style police.
  2102. - Remove unused getwork times in getswork.
  2103. - Fix readme wordwrap.
  2104. Version 2.9.6 - December 2, 2012
  2105. - Make gen_stratum_work more robust by using a dynamically allocated array for
  2106. the header in case bogus data is sent by the pool to avoid overflowing a static
  2107. array.
  2108. - scrypt_diff now returns a uint64_t
  2109. - Support monitoring and reporting much higher diffs for scrypt mining,
  2110. truncating irrelevant zeroes from displayed hash.
  2111. - Pass ostate values around in scrypt to be able to extract full hashes if
  2112. needed later on.
  2113. - Since we will be using calloc_str to put a string into it, convert the
  2114. function to calloc_strcat which does it automatically.
  2115. - Revert "Handle crash exceptions by trying to restart cgminer unless the
  2116. --no-restart option is used."
  2117. - Count longpoll and GBT decodes as queued work since the count otherwise
  2118. remains static.
  2119. - Use the string helper functions to create gbt blocks of any length.
  2120. - Provide helper functions calloc_str and realloc_strcat to create and extend
  2121. arbitrary length arrays based on string length.
  2122. Version 2.9.5 - November 25, 2012
  2123. - fixes target calc for mips openwrt
  2124. - openwrt needs roundl
  2125. - Get rid of unused last_work in opencl thread data.
  2126. - Do away with the flaky free_work api in the driver code which would often lose
  2127. the work data in opencl and simply flush it before exiting the opencl scanhash.
  2128. - Use base_work for comparison just for cleanness in __copy_work
  2129. - Remove all static work structs, using the make and free functions.
  2130. - Add pool no. to stale share detected message.
  2131. - Add info about which pool share became stale while resubmitting.
  2132. -b Copy the work on opencl_free_work
  2133. - Add an extra slot in the max backlog for ztex to minimise dupes.
  2134. - Do not use or count the getworks submitted which are simply testing that pools
  2135. are still up. This was increasing share leakage and making stats not reflect
  2136. real work.
  2137. - Track all dynamically allocated memory within the work struct by copying work
  2138. structs in a common place, creating freshly allocated heap ram for all arrays
  2139. within the copied struct. Clear all work structs from the same place to ensure
  2140. memory does not leak from arrays within the struct. Convert the gbt coinbase and
  2141. stratum strings within the work struct to heap ram. This will allow arbitrary
  2142. lengths without an upper limit for the strings, preventing the overflows that
  2143. happen with GBT.
  2144. - libztex: Work around ZTEX USB firmware bug exposed by the FreeBSD libusb
  2145. - opencl: Use new dev_error function for REASON_DEV_NOSTART
  2146. Version 2.9.4 - November 18, 2012
  2147. - Provide rudimentary support for the balancing failover strategies with stratum
  2148. and GBT by switching pools silently on getwork requests.
  2149. - Convert remaining modminer and bfl uses of usleep to nmsleep.
  2150. - Convert libztex to nmsleep where possible.
  2151. - Convert unreliable usleep calls to nmsleep calls in ztex driver.
  2152. - Support workid for block submission on GBT pools that use it.
  2153. - Provide rudimentary support for literal ipv6 addresses when parsing stratum
  2154. URLs.
  2155. - Work around libcurl cflags not working on hacked up mingw installations on
  2156. windows.
  2157. - Only increase gpu engine speed by a larger step if the temperature is below
  2158. hysteresis instead of increasing it to max speed.
  2159. - Convert pool not responding and pool alive message on backup pools to verbose
  2160. level only since they mean a single failed getwork.
  2161. - Update work block on the longpoll work item before calling restart threads to
  2162. ensure all work but the longpoll work item gets discarded when we call
  2163. discard_stale from restart_threads.
  2164. - Do not attempt to remove the stratum share hash after unsuccessful submission
  2165. since it may already be removed by clear_stratum_shares.
  2166. - Check against a double for current pool diff.
  2167. - Support for fractional diffs and the classic just-below-1 share all FFs diff
  2168. target.
  2169. Version 2.9.3 - November 11, 2012
  2170. - Make header larger on gen stratum work to accomodate \0 at the end.
  2171. Version 2.9.2 - November 11, 2012
  2172. - Use stratum block change from backup pools as an alternative to longpoll for
  2173. pools that don't support LP.
  2174. - Check share target diff for best_share to be calculated when solo mining.
  2175. - Round some more static string arrays to 4 byte boundaries.
  2176. - There is no need for the static arrays to be larger than required, so long as
  2177. they're 4 byte aligned to appease ARM.
  2178. - Store the full stratum url information in rpc_url for correct configuration
  2179. file saving.
  2180. - Put in a hack to prevent dud work from sneaking into test_work_current being
  2181. seen as a new block.
  2182. - Reset the work->longpoll flag where it will affect stratum work items as well.
  2183. - Check for both coinbase/append and submit/coinbase support before using GBT
  2184. protocol.
  2185. - First pass through testing for GBT should not set probed to true since we are
  2186. about to probe again.
  2187. - Hash1 is only used by the deprecated cpu mining code and never changes so
  2188. remove it from the work struct and bypass needing to process the value for all
  2189. other mining.
  2190. - Get a work item once per minute for all getwork and GBT pools to test they're
  2191. still alive and to maintain a current GBT template.
  2192. - Get a fresh block template with GBT pools on switching to them.
  2193. Version 2.9.1 - November 6, 2012
  2194. - Reset work flags to prevent GBT shares from being submitted as stratum ones
  2195. after switching.
  2196. Version 2.9.0 - November 6, 2012
  2197. - Add endian swap defines for where missing.
  2198. - Only retarget stratum shares to new pool diff if diff has dropped.
  2199. - Remove resetting of probed variable when detecting GBT.
  2200. - Count lost stratum share submits and increase message priority to warning.
  2201. - Only retrieve a new block template for GBT pools that are the current pool.
  2202. - Show which pool untracked share messages have come from.
  2203. - Add management for dead GBT pools.
  2204. - Count lost shares with stratum as submit stale lost.
  2205. - Discard record of stratum shares sent and report lost shares on disconnection
  2206. since they will never be reported back.
  2207. - Swab, don't just swap the bytes in the GBT target.
  2208. - Change status window message for GBT connected pools versus LP.
  2209. - Generate a gbt work item from longpoll when required to set new block and
  2210. message appropriately.
  2211. - Use existing pool submit_old bool from gbt data.
  2212. - Retrieve a new block template if more than 30 seconds has elapsed since the
  2213. last one to keep the data current and test the pool is still alive.
  2214. - Update GBT longpollid every time we request a new longpoll.
  2215. - Manage appropriate response codes for share submission with GBT.
  2216. - Allow the longpoll thread to start with GBT and only set the longpollid once.
  2217. - Correct last few components of GBT block generation courtesy of Luke-jr.
  2218. - Use correct length for offsetting extra nonce and remaining data.
  2219. - Flip all 80 bytes in the flip function which was wrongly named flip256 for its
  2220. purpose.
  2221. - Calculate midstate for gbt work and remove now unused variable.
  2222. - Use a standard function for flipping bytes.
  2223. - Insert the extra nonce and remaining data in the correct position in the
  2224. coinbase.
  2225. - Remove txn size debugging and enlarge gbt block string to prevent overflow.
  2226. - Remove varint display debugging.
  2227. - Build varint correctly for share submission and sleep 5 seconds before
  2228. retrying submit.
  2229. - Make gbt_coinbase large enough for submissions, swap bytes correctly to make a
  2230. header from GBT and encode the number of transactions in share submission.
  2231. - Store the fixed size entries as static variables in GBT in binary form,
  2232. byteswapping as is required.
  2233. - 32 bit hex encoded variables should be in LE with GBT.
  2234. - Target and prevblockhash need to be reversed from GBT variables.
  2235. - Construct block for submission when using GBT.
  2236. - Use same string for debug as for submission and make string larger to cope
  2237. with future GBT messages.
  2238. - Skip trying to decipher LP url if we have GBT support.
  2239. - Store all the transaction hashes in pool->txn_hashes instead of separating
  2240. txn0 and correct generation of merkle root, fixing memory overwrites.
  2241. - Hook into various places to generate GBT work where appropriate.
  2242. - Create extra work fields when generating GBT work.
  2243. - Generate header from correct hashing generation of the merkle root for GBT.
  2244. - Generate the merkle root for gbt work generation.
  2245. - Create a store of the transactions with GBT in the minimum size form required
  2246. to generate work items with a varied coinbase.
  2247. - Create a function that generates a GBT coinbase from the existing pool
  2248. variables.
  2249. - Extract and store the various variables GBT uses when decoding gbt work.
  2250. - Check for invalid json result in work_decode.
  2251. - Decode work in separate functions for getwork vs gbt.
  2252. - Check for the coinbase/append mutable in GBT support to decide whether to use
  2253. it or not.
  2254. - Add a gbt mutex within the pool struct for protecting the gbt values.
  2255. - Convert work decode function to prepare for decoding block templates.
  2256. - Check for GBT support on first probing the pool and convert to using the GBT
  2257. request as the rpc request for that pool.
  2258. - Make the rpc request used with getwork a pool variable to allow it to be
  2259. converted to/from gbt requests.
  2260. - Changes to build prototypes to support building on FreeBSD 9.1-RC2 amd64
  2261. - Free old stratum_work data before replacing it
  2262. - There is no need for addrinfo any more.
  2263. - server and client sockaddr_in are no longer used in struct pool.
  2264. - Merge pull request #322 from luke-jr/bugfix_stratum_tmpwork
  2265. - Set sshare id and swork_id within the sshare mutex to avoid multiple share
  2266. submits with the same id.
  2267. - Initialize temporary stratum work
  2268. Version 2.8.7 - October 29, 2012
  2269. - Fail on select() failing in stratum thread without needing to attempt
  2270. recv_line.
  2271. - Add share to stratum database before sending it again in case we get a
  2272. response from the pool before it's added.
  2273. Version 2.8.6 - October 29, 2012
  2274. - Shorten the initiate stratum connect timeout to 30 seconds.
  2275. - Shorten the stratum timeout on read to 90 seconds to detect unresponsive pool.
  2276. - Display best share difficulty on exit.
  2277. - Make stratum socket fail more robust on windows by disabling the send buffer.
  2278. - Reuse the same curl handle forcing a new connection instead of risking
  2279. derefencing.
  2280. - Add information about submission failure to stratum send.
  2281. - Only add stratum share to database if we succeeded in submitting it, with a
  2282. debug output saying it succeeded.
  2283. - Use keepalive with stratum sockets to improve its ability to detect broken
  2284. connections.
  2285. - Show only the URL in the status bar to avoid long prefixes making for extra
  2286. long lines.
  2287. - Display compact status in menu and update README to reflect current menu
  2288. entries.
  2289. - Add a compact display mode that does not list per device statistics in the
  2290. status window.
  2291. - Add blank spaces after best share displayed.
  2292. - Round a few static string arrays up to 4 byte boundaries for ARM.
  2293. - Display best share diff for scrypt as well.
  2294. - Show the best diff share as "best share" and add info to the README.
  2295. - Display the best diff share submitted so far.
  2296. - Redundant check.
  2297. - The work struct pointer in struct pc_data in findnonce is never freed yet
  2298. there is no need to allocate it separately so make struct work a static part of
  2299. the struct pc_data. s
  2300. Version 2.8.5 - October 23, 2012
  2301. - Handle crash exceptions by trying to restart cgminer unless the --no-restart
  2302. option is used.
  2303. - Switch queued count when choosing a different pool from a failed stratum pool
  2304. in getwork thread.
  2305. - Put a mandatory 5s wait between reattempting a getwork on failure to avoid
  2306. hammering requests.
  2307. - The ATI stream / AMD APP SDK environment variables appear to only interfere
  2308. with win32 builds so bypass them.
  2309. - Make sure to check pool stratum curl exists under lock before attempting any
  2310. recv to not risk dereferencing upon attempting to reinitiate stratum.
  2311. - Avoid redefining macros and align to 4 byte boundaries.
  2312. - API - add Stratum information to pools
  2313. - update FPGA-README for MMQ
  2314. Version 2.8.4 - October 18, 2012
  2315. - Time for dynamic is in microseconds, not ms.
  2316. - x86_64 builds of mingw32 are not supported directly and should just configure
  2317. as generic mingw32 builds since they're NOT 64 bit.
  2318. - Cope with both ATI stream and AMD APP SDK roots being set when building.
  2319. - Use 3 significant digits when suffix string is used and values are >1000.
  2320. - MMQ new initialisation (that works) and clocking control
  2321. - Get rid of unused warning for !scrypt.
  2322. - Use select on stratum send to make sure the socket is writeable.
  2323. - Cope with dval being zero in suffix_string and display a single decimal place
  2324. when significant digits is not specified but the value is greater than 1000.
  2325. - Pad out the suffix string function with zeroes on the right.
  2326. - Failure to calloc in bin2hex is a fatal failure always so just check for that
  2327. failure within the function and abort, simplifying the rest of the code.
  2328. - Provide locking around the change of the stratum curl structures to avoid
  2329. possible races.
  2330. - Bump opencl kernel version numbers.
  2331. - Remove atomic ops from opencl kernels given rarity of more than once nonce on
  2332. the same wavefront and the potential increased ramspeed requirements to use the
  2333. atomics.
  2334. - Clear the pool idle flag in stratum when it comes back to life.
  2335. - Display correct share hash and share difficulty with scrypt mining.
  2336. - Use explicit host to BE functions in scrypt code instead of hard coding
  2337. byteswap everywhere.
  2338. - Show work target diff for scrypt mining.
  2339. - Ease the checking on allocation of padbuffer8 in the hope it works partially
  2340. anyway on an apparently failed call.
  2341. - Watch for buffer overflows on receiving data into the socket buffer.
  2342. - Round target difficulties down to be in keeping with the rounding of detected
  2343. share difficulties.
  2344. - Dramatically simplify the dynamic intensity calculation by oversampling many
  2345. runs through the opencl kernel till we're likely well within the timer
  2346. resolution on windows.
  2347. - String alignment to 4 byte boundaries and optimisations for bin<->hex
  2348. conversions.
  2349. - In opencl_free_work, make sure to still flush results in dynamic mode.
  2350. - Align static arrays to 4 byte boundaries to appease ARM builds for stratum.
  2351. Version 2.8.3 - October 12, 2012
  2352. - Left align values that are suffix_string generated.
  2353. - Share_diff should not be converting the work data to hex.
  2354. - Off by one error.
  2355. - Prevent overflows of the port char array in extract_sockaddr.
  2356. - Disable stratum detection with scrypt.
  2357. - Use the suffix string function when displaying device hashrates.
  2358. - Be consistent with the get_statline function.
  2359. - Use the suffix string function for displaying hashrate with 4 significant
  2360. digits.
  2361. - Display the actual share diff next to the pool required diff, using a suffix
  2362. creation function to prevent values of >1000 being shown in their entirety.
  2363. - Fix 4 * 0 being 0 that would break dynamic intensity mode.
  2364. - Fix wrong byteswap macro being used on mingw32 which was breaking target
  2365. generation on stratum.
  2366. Version 2.8.2 - October 11, 2012
  2367. - Reinstate the history on dynamic intensity mode to damp fluctuations in
  2368. intensity but use an upper limit on how much the value can increase at any time
  2369. to cope with rare overflows.
  2370. - Create a fix-protocol option which prevents cgminer from switching to stratum
  2371. if it's detected.
  2372. - Simplify target generation code.
  2373. - Add support for client.get_version for stratum.
  2374. - Use a 64 bit unsigned integer on the diff target to generate the hex target.
  2375. - Update reconnect message to show whole address including port.
  2376. - Look for null values and parse correct separate array entries for url and port
  2377. with client reconnect commands for stratum.
  2378. - The command for stratum is client.reconnect, not mining.reconnect.
  2379. - Only copy the stratum url to the rpc url if an rpc url does not exist.
  2380. - Implement rudimentary mining.reconnect support for stratum.
  2381. - Ignore the value of stratum_active on calling initiate_stratum and assume
  2382. we're always trying to reinitiate it, and set the active flag to false in that
  2383. function.
  2384. - stratum auth can be unset if we fail to authorise on subsequent calls to
  2385. auth_stratum which undoes the requirement of setting it in one place so set it
  2386. in pool_active.
  2387. Version 2.8.1 - October 8, 2012
  2388. - Use the stratum url as the rpc url advertised if we switch to it.
  2389. - Count an invalid nonce count as a hardware error on opencl.
  2390. - Count each stratum work item as local work.
  2391. - Cope with one stratum pool being the only active pool when it dies by sleeping
  2392. for 5 seconds before retrying to get work from it instead of getting work
  2393. indefinitely.
  2394. - Detect stratum outage based on either select timing out or receiving an empty
  2395. buffer and properly re-establish connection by disabling the stratum_active
  2396. flag, coping with empty buffers in parse_stratum.
  2397. Version 2.8.0 - October 7, 2012
  2398. - Major upgrade - support for the stratum mining protocol.
  2399. - Fix various modminer warnings on mingw.
  2400. - Fix sign warning on windows build for bitforce.
  2401. - Cast socketfail to integer since SOCKET is an unsigned int on windows.
  2402. - Use strtod not strtol for bitforce temp backup.
  2403. - Cope with broken drivers returning nonsense values for bitforce temperatures.
  2404. - Minor warning fixes.
  2405. - Use the stratum thread to detect when a stratum pool has died based on no
  2406. message for 2 minutes.
  2407. - Only set the stratum auth flag once and once the stratum thread is started,
  2408. use that to set/unset the stratum active flag.
  2409. - Only hand off to stratum from getwork if we succeed in initiating the
  2410. protocol.
  2411. - Target should only be 32 bytes copied.
  2412. - Use a static array for work submission data instead of stack memory.
  2413. - Clear the buffer data before sprinting to it.
  2414. - Clear work stratum strings before setting them and add them to debug output.
  2415. - Drop stratum connect failed message to verbose level only since it's a regular
  2416. probing message.
  2417. - TCP Keepalive in curl is only in very recent versions and not required with
  2418. regular messages on stratum anyway.
  2419. - Move stratum sockets to curl infrastructure with locking around send+recv to
  2420. begin support for proxies and ssl.
  2421. - Make detect stratum fail if a proxy has been set up.
  2422. - Stratum does not currently have any proxy support so do not try to switch to
  2423. stratum if a proxy has been specified.
  2424. - Windows doesn't work with MSG_PEEK on recv so move to a continuously updating
  2425. buffer for incoming messages.
  2426. - Alloca is unreliable on windows so use static arrays in util.c stratum code.
  2427. - Begin support for mingw stratum build.
  2428. - Add space to reject reason.
  2429. - Parse the reject reason where possible from stratum share submission.
  2430. - Pass json error value to share result function to be able to parse reject
  2431. reason in stratum.
  2432. - Don't try to parse unneeded parameters in response to mining.subscribe.
  2433. - Remove the sshare hash entry if we failed to send it.
  2434. - Change notify message to info level to avoid spamming repeatedly when a pool
  2435. is down.
  2436. - Check the stratum pool difference has not changed compared to the work diff
  2437. when testing whether a share meets the target or not and retarget if necessary.
  2438. - Bit error in target calculation for stratum.
  2439. - Set work_block in gen_stratum_work for when work is reused to avoid thinking
  2440. it's all stale.
  2441. - Offset the current block detection to the prev block hash.
  2442. - We should be testing for id_val, not id in parse stratum response.
  2443. - Make target on stratum scale to any size by clearing sequential bits according
  2444. to diff.
  2445. - Correct target calculation in gen_stratum_work.
  2446. - If a share result has an error code but still has an id, it is likely a
  2447. reject, not an error.
  2448. - Initiate stratum the first time in pool_active only, allowing us to switch to
  2449. it on getting a failed getwork and detecting the presence of stratum on the url
  2450. at that time.
  2451. - Use 5 second timeout on sock full for now as a temporary workaround.
  2452. - If no stratum url is set by the end of the detect stratum routine, copy the
  2453. sockaddr url.
  2454. - Make all buffers slightly larger to prevent overflow.
  2455. - Make the stratum recv buffer larger than the recvsize.
  2456. - Userpass needs to be copied to user and pass earlier to allow stratum
  2457. authorisation to work with it.
  2458. - Store a sockaddr url of the stripped url used in determining sockaddr to not
  2459. confuse it with the stratum url and fix build warnings.
  2460. - Decrease the queued count with stratum work once it's staged as well.
  2461. - Allow the stratum retry to initiate and auth stratum in pool_alive to make
  2462. sure the stratum thread is started.
  2463. - Avoid duplicating pool->rpc_url and setting pool->stratum_url twice to itself.
  2464. - Detect if a getwork based pool has the X-Stratum header on startup, and if so,
  2465. switch to the stratum based pool.
  2466. - Comment update.
  2467. - Minor message change.
  2468. - Create a work item from a "clean" request from stratum allowing the new block
  2469. to be detected and the appropriate block change message to be given.
  2470. - Use statically allocated stratum strings in struct work to cope with the
  2471. inability to safely deallocate dynamically allocated ram.
  2472. - Use the current pool when deciding whether to reuse work from a stratum source
  2473. rather than the work's previous pool.
  2474. - Copy the stratum url to the rpc url to avoid none being set.
  2475. - Provide locking around stratum send operations to avoid races.
  2476. - Submit shares from stratum through the abstracted submit share function
  2477. detecting what message they belong to and showing the data from the associated
  2478. work, and then deleting it from the hash.
  2479. - Use a more robust mechanism to obtain a \n terminated string over a socket.
  2480. - Abstract out share submit as a function to be useable by stratum.
  2481. - Rename parse_stratum to parse_method as it is only for stratum messages that
  2482. contain methods.
  2483. - Display stratum as mechanism in status line when current pool is running it.
  2484. - Count each stratum notify as a getwork equivalent.
  2485. - Correct nonce submitted with share.
  2486. - Extranonce2 should be added before coinbase2.
  2487. - We should be hashing the binary coinbase, not the hex one.
  2488. - Fix endianness of nonce submitted for stratum.
  2489. - Check that stratum is already active in initiate_stratum to avoid
  2490. de-authorising ourselves by subscribing again.
  2491. - Begin implementing a hash database of submissions and attempt sending results.
  2492. - Copy parameters from stratum work required for share submission.
  2493. - Set lagging flag on first adding a pool to prevent pool slow warning at
  2494. startup.
  2495. - Fix work->target being a 32 byte binary in gen_stratum_work.
  2496. - Store and display stripped url in its own variable.
  2497. - Create machinery to divert work requests to stratum.
  2498. - Generate the work target in gen_stratum_work, setting default diff to 1 in
  2499. case it is not yet set.
  2500. - Generate work data, midstate and hash1 in gen_stratum_work.
  2501. - Generate header created from stratum structures in gen_stratum_work.
  2502. - Generate merkle root hash in gen_stratum_work.
  2503. - Generate the coinbase for generation of stratum based work.
  2504. - The number of transactions is variable so make merkle a variable length
  2505. dynamically allocated array and track how many there are for stratum.
  2506. - Rename nonce2 to n2size reflecting that it's a size variable and not the
  2507. actual nonce.
  2508. - Provide rudimentary support for stratum clean work command in the stratum
  2509. thread.
  2510. - Cope with pools being removed in the stratum thread.
  2511. - Use the pool sock value directly in the stratum thread in case it changes
  2512. after reconnecting.
  2513. - Create a stratum thread per pool that has stratum that monitors the socket and
  2514. serves received data.
  2515. - Check return value of stratum_parse.
  2516. - Complete authorisation in stratum.
  2517. - Implement stratum parsing of notify parameters and storing them in the pool
  2518. stratum work structure.
  2519. - Create helper functions for duplicating json strings to avoid keeping json
  2520. references in use.
  2521. - Append \n in the sock_send function instead of adding it when constructing
  2522. json in stratum.
  2523. - Don't keep any json references around with stratum structures.
  2524. - Create parse_stratum function that hands off stratum parameters to other
  2525. functions to manage pool stratum work struct variables. Implement mining
  2526. difficulty setting.
  2527. - Create helper functions for checking when a socket is ready to read on and
  2528. receive a single line at a time. Begin stratum authorisation process.
  2529. - Provide a helper function for reading a single \n terminated string from a
  2530. socket.
  2531. - Create a stratum work structure to store current work variables.
  2532. - Test specifically for stratum being active in pool_active.
  2533. - Detect stratum in common place when adding urls, and use a bool to tell us
  2534. when it's active.
  2535. - Fix warnings.
  2536. - Extract and store various parameters on stratum init confirming successful
  2537. mining notify.
  2538. - Use existing socket macros and close the socket on failure in init stratum.
  2539. - Initiate stratum and grab first json result.
  2540. - Get detailed addressinfo from the parsed URL for future raw socket usage when
  2541. possible. IPV4 only for now.
  2542. - Prepare for getaddrinfo call.
  2543. - Add data structures to pool struct for socket communications.
  2544. - Put all socket definitions in util.h to allow reusing by added socket
  2545. functions to be used in util.c.
  2546. Version 2.7.7 - October 7, 2012
  2547. - Fix unused warnings on ming build.
  2548. - Fix sign warning in ocl.c
  2549. - fds need to be zeroed before set in modminer.
  2550. - Put scrypt warning on separate line to avoid 0 being shown on windows as
  2551. bufsize.
  2552. - Display correct pool number when block is found.
  2553. - Prevent corrupt values returned from the opencl code from trying to read
  2554. beyond the end of the buffer by masking the value to a max of 15.
  2555. - Icarus USB write failure is also a comms error
  2556. - api.c DEBUG message has no paramter
  2557. - Icarus catch more USB errors and close/reopen the port
  2558. - API-README update cgminer verison number
  2559. - hashmeter fix stats kh/s on 32bit windows
  2560. Version 2.7.6 - September 24, 2012
  2561. - Reorder libztex header include order to fix missing struct definition.
  2562. - Display share difficulty on log with a shortened hash display on submission.
  2563. - API stats add some pool getwork difficulty stats
  2564. - Ignore any pings pushed to the worker threads if the thread is still paused to
  2565. prevent it being enabled and disabled repeatedly.
  2566. - README - FAQ - usermod group - shouldn't remove other groups
  2567. - Test for sequential getwork failures on a pool that might actually be up but
  2568. failing to deliver work as we may end up hammering it repeatedly by mistake.
  2569. - reduce windows compile warnings
  2570. - util.c - bug - proxy - no data end condition
  2571. - As we average gpu time over 5 work intervals for dynamic GPU intensity, there
  2572. is no need to maintain a rolling average and it avoids the potential long term
  2573. corruption of a single overflow value.
  2574. - Test for the now-automatically exported variable AMDAPPSDKROOT when looking
  2575. for the presence of the OpenCL headers.
  2576. - API don't change 'Diff1 Shares' - backward compatability FTW
  2577. - miner.php highlighting correctly handling difficulty
  2578. - API - Add last share difficulty for devices and pool
  2579. - Store and report Accepted,Rejected,Stale difficulty in the summary and API
  2580. - WorkTime - display prevblock for scrypt
  2581. - api.c remove compile warnings
  2582. - Calculate work difficulty for each getwork and display with WorkTime debug
  2583. - remove MMQ unused variable warning
  2584. - FPGA - allow long or short device names in detect code + style police
  2585. - WorkTime - multiple nonce per work and identify the work source
  2586. - Optional WorkTime details with each Accepted/Rejected work item
  2587. - Icarus - ignore hardware errors in timing mode
  2588. - miner.php oops - mistype
  2589. - miner.php by default don't display IP/Port numbers in error messages
  2590. - api.c all STATUS messages automatically escaped
  2591. - api.c add missing escape for comma in MSG_PGAUNW
  2592. - API add display of and setting queue,scantime,expiry
  2593. - HW: dont submit bad shares
  2594. - save individual pool proxy settings to config
  2595. - --default-config - allow command line to define the default configuration file
  2596. for loading and saving
  2597. - API-README update for pools proxy info
  2598. - README URL proxy must use quote so show in the example
  2599. - bug: remove proxy: from the front of the proxy used
  2600. - CURL support for individual proxy per pool and all proxy types
  2601. - README spelling/etc
  2602. - README - FPGA device FAQ
  2603. - HW: error counter auto for all devices - ztex code not fixed
  2604. - API pgaidentify - unsupported message should be a warning
  2605. - API/BFL identify a device - currently only BFL to flash the led
  2606. - BFL add throttle count to internal stats + API
  2607. - BFL: missing device id in log message
  2608. - miner.php correct to new Diff1 Work field names
  2609. - API add device diff1 work
  2610. - API-README update
  2611. - api.c Correct diff1 field name
  2612. - count device diff1 shares
  2613. - API-README more debug parameter information
  2614. - API allow full debug settings control
  2615. Version 2.7.5 - August 31, 2012
  2616. - Adjust opencl intensity when adjusting thread count to prevent it getting
  2617. pegged at a value below the minimum threads possible.
  2618. - miner.h max_hashes -> int64_t
  2619. - Keep the local block number in the blocks structs stored and sort them by
  2620. number to guarantee we delete the oldest when ageing the block struct entries.
  2621. - Use correct sdk version detection for SDK 2.7
  2622. - Revert "Pick worksize 256 with Cypress if none is specified."
  2623. - Test for lagging once more in queue_request to enable work to leak to backup
  2624. pools.
  2625. - There is no need to try to switch pools in select_pool since the current pool
  2626. is actually not affected by the choice of pool to get work from.
  2627. - Only clear the pool lagging flag if we're staging work faster than we're using
  2628. it.
  2629. - needed flag is currently always false in queue_request. Remove it for now.
  2630. - thr is always NULL going into queue_request now.
  2631. Version 2.7.4 - August 23, 2012
  2632. - Perform select_pool even when not lagging to allow it to switch back if needed
  2633. to the primary.
  2634. - Simplify macros in output kernels avoiding apparent loops and local variables.
  2635. - Carry the needed bool over the work command queue.
  2636. - Move the decision to queue further work upstream before threads are spawned
  2637. based on fine grained per-pool stats and increment the queued count immediately.
  2638. - Track queued and staged per pool once again for future use.
  2639. - OpenCL 1.0 does not have native atomic_add and extremely slow support with
  2640. atom_add so detect opencl1.0 and use a non-atomic workaround.
  2641. - Pools: add RollTime info to API 'stats' and 'Stats' button in miner.php
  2642. Version 2.7.3 - August 22, 2012
  2643. - Minimise the number of getwork threads we generate.
  2644. Version 2.7.2 - August 22, 2012
  2645. - Pick worksize 256 with Cypress if none is specified.
  2646. - Give warning with sdk2.7 and phatk as well.
  2647. - Whitelist sdk2.7 for diablo kernel as well.
  2648. - Only keep the last 6 blocks in the uthash database to keep memory usage
  2649. constant. Storing more is unhelpful anyway.
  2650. - BFL Flash - always distribute source
  2651. - Increase kernel versions signifying changed APIs.
  2652. - BFL flash - include source in builds and more FPGA-README
  2653. - Check we haven't staged work while waiting for a curl entry before proceeding.
  2654. - Use atomic ops to never miss a nonce on opencl kernels, including nonce==0,
  2655. also allowing us to make the output buffer smaller.
  2656. - Remove compile errors/warnings and document compile/usage in FPGA-README
  2657. - bitforce-firmware-flash.c by Luke-jr
  2658. - Ignore the submit_fail flag when deciding whether to recruit more curls or not
  2659. since we have upper bounds on how many curls can be recruited, this test is
  2660. redundant and can lead to problems.
  2661. - API-README update cgminer version number
  2662. - API-README fix groups P: example mistake
  2663. - API-README add COIN and other edits
  2664. - gpu->hit should be reset on new work as well.
  2665. - Do not add time to dynamic opencl calculations over a getwork.
  2666. - miner.php allow 'coin' is custom pages
  2667. Version 2.7.1 - August 21, 2012
  2668. - Update windows build instructions courtesy of sharky.
  2669. - Increase max curls to number of mining threads + queue * 2, accounting for up
  2670. and downstream comms.
  2671. - Queue enough requests to get started.
  2672. - There is no point trying to clone_work in get_work() any more since we clone
  2673. on every get_work_thread where possible.
  2674. - There is no point subtracting 1 from maxq in get_work_thread.
  2675. - Only set lagging flag once there are no staged work items.
  2676. - select_pool does not switch back to the primary once lagging is disabled.
  2677. - miner.php allow page title to be defined in myminer.php
  2678. - Free work before retrying in get_work_thread.
  2679. - Increment total work counter under mutex lock.
  2680. - Increment the queued count after the curl is popped in case there's a delay
  2681. waiting on curls and we think we've queued work when in fact we're waiting
  2682. - API new command 'coin' with mining information
  2683. - Do the dynamic timing in opencl code over a single pass through scanhash to
  2684. make sure we're only getting opencl times contributing to the measured inte
  2685. - Increase curl reaping time to 5 minutes since comms between curl requests can
  2686. be 2 mins apart with lots of rolltime.
  2687. - No need for extra variable in hash_push.
  2688. - Remove short options -r and -R to allow them to be reused and remove readme
  2689. entries for deprecated options.
  2690. - Avoid attempting to recursively lock the console mutex by disabling warnings
  2691. in gpu_fanpercent when fanspeed monitoring fails on windows. Debugged by l
  2692. - Deprecate the opt_fail_pause parameter, leaving a null placeholder for
  2693. existing configurations.
  2694. - Don't pause after failed getwork, set lagging flag and reassess.
  2695. - Add message to share if it's a resubmit.
  2696. - We should not be pausing in trying to resubmit shares.
  2697. - Get rid of the extending fail pause on failed connects since we discard work
  2698. after a period.
  2699. - get_work always returns true so turn it into a void function.
  2700. - get_work never returns false so get rid of fail pause loop.
  2701. - Get rid of pause and retry from get_upstream_work so we only do it from one
  2702. place.
  2703. - Deprecate the opt_retries feature as no one wants cgminer to automatically
  2704. abort. Leave a null placeholder for configurations that still have it.
  2705. - Reinstate fix ADL gpu-map not working when there are more ADL devices than
  2706. openCL patch by Nite69. Add virtual adl mapping for when none is specified o
  2707. - miner.php show summary Diff1 Shares total
  2708. - miner.php fix Work Utility totals
  2709. - miner.php format new Work Utility and Diff1 Shares
  2710. - API V1.17 show Work Utility and Diff1 Shares
  2711. Version 2.7.0 - August 18, 2012
  2712. - Introduce a new statistic, Work Utility, which is the number of difficulty 1
  2713. shares solved per minute. This is useful for measuring a relative rate of work
  2714. that is independent of reject rate and target difficulty.
  2715. - Implement a new pool strategy, BALANCE, which monitors work performed per pool
  2716. as a rolling average every 10 minutes to try and distribute work evenly over all
  2717. the pools. Do this by monitoring diff1 solutions to allow different difficulty
  2718. target pools to be treated equally, along with solo mining. Update the
  2719. documentation to describe this strategy and more accurately describe the
  2720. load-balance one.
  2721. - Getwork fail was not being detected. Remove a vast amount of unused variables
  2722. and functions used in the old queue request mechanism and redefine the getfail
  2723. testing.
  2724. - Don't try to start devices that don't support scrypt when scrypt mining.
  2725. - 0 is a valid return value for read so only break out if read returns -1.
  2726. - Consider us lagging only once our queue is almost full and no staged work.
  2727. - Simplify the enough work algorithm dramatically.
  2728. - Only queue from backup pools once we have nothing staged.
  2729. - Don't keep queueing work indefinitely if we're in opt failover mode.
  2730. - Make sure we don't opt out of queueing more work if all the queued work is
  2731. from one pool.
  2732. - Set lagging flag if we're on the last of our staged items.
  2733. - Reinstate clone on grabbing work.
  2734. - Grab clones from hashlist wherever possible first.
  2735. - Cull all the early queue requests since we request every time work is popped
  2736. now.
  2737. - Keep track of staged rollable work item counts to speed up clone_available.
  2738. - Make expiry on should_roll to 2/3 time instead of share duration since some
  2739. hardware will have very fast share times.
  2740. - Do the cheaper comparison first.
  2741. - Check that we'll get 1 shares' worth of work time by rolling before saying we
  2742. should roll the work.
  2743. - Simplify all those total_secs usages by initialising it to 1 second.
  2744. - Overlap queued decrementing with staged incrementing.
  2745. - Artificially set the pool lagging flag on pool switch in failover only mode as
  2746. well.
  2747. - Artificially set the pool lagging flag on work restart to avoid messages about
  2748. slow pools after every longpoll.
  2749. - Factor in opt_queue value into enough work queued or staged.
  2750. - Roll work whenever we can on getwork.
  2751. - Queue requests for getwork regardless and test whether we should send for a
  2752. getwork from the getwork thread itself.
  2753. - Get rid of age_work().
  2754. - 0 is a valid return value for read so only break out if read returns -1.
  2755. - Offset libusb reads/writes by length written as well in ztex.
  2756. - Cope with timeouts and partial reads in ztex code.
  2757. - fpga serial I/O extra debug (disabled by default)
  2758. Version 2.6.5 - August 15, 2012
  2759. - Don't try to get bitforce temperature if we're polling for a result to
  2760. minimise the chance of interleaved responses.
  2761. - Set memory clock based on memdiff if present from with engine changes,
  2762. allowing it to parallel manual changes from the menu as well.
  2763. - Increase the timeout on bitforce as per Paul Sheppard's suggestion to account
  2764. for throttling + work time + excess.
  2765. - Fix ADL gpu-map not working when there are more ADL devices than openCL.
  2766. Initial patch supplied by Nite69. Modified to suit.
  2767. - Windows' timer resolution is limited to 15ms accuracy. This was breaking
  2768. dynamic intensity since it tries to measure below this. Since we are repeatedly
  2769. sampling similar timeframes, we can average the gpu_us result over 5 different
  2770. values to get very fine precision.
  2771. - Fix harmless unused warnings in scrypt.h.
  2772. - api.c typo
  2773. - API allow display/change failover-only setting
  2774. - Check we are not lagging as well as there is enough work in getwork.
  2775. - Minimise locking and unlocking when getting counts by reusing shared mutex
  2776. lock functions.
  2777. - Avoid getting more work if by the time the getwork thread is spawned we find
  2778. ourselves with enough work.
  2779. - The bitforce buffer is cleared and hw error count incremented on return from a
  2780. failed send_work already so no need to do it within the send_work function.
  2781. - miner.php allow a custom page section to select all fields with '*' - e.g. to
  2782. create a STATS section on a custom page
  2783. - Escape " and \ when writing json config file
  2784. - miner.php optional single rig totals (on by default)
  2785. Version 2.6.4 - August 7, 2012
  2786. - Convert the serial autodetect functions to use int instead of char to
  2787. enumerate devices.
  2788. - Make the serial open timeout for BFL generically 1 second on windows.
  2789. - Deuglify windows autodetect code for BFL.
  2790. - There is no point zeroing temperature in BFL if we fail to get a response, and
  2791. we should register it as a HW error, suggesting throttling.
  2792. - Update SCRYPT README with information about HW errors.
  2793. - Use the scrypt CPU code to confirm results from OCL code, and mark failures as
  2794. HW errors, making it easier to tune scrypt parameters.
  2795. - We may as well leave one curl still available per pool instead of reaping the
  2796. last one.
  2797. - Need to recheck the pool->curls count on regaining the pool lock after the
  2798. pthread conditional wait returns.
  2799. - Display reaped debug message outside mutex lock to avoid recursive locking.
  2800. - Add specific information when ADL detects error -10 saying the device is not
  2801. enabled.
  2802. - api.c update API start message and include port number
  2803. - miner.php ignore arg when readonly
  2804. - miner.php allow pool inputs: delete, addpool, poolpriority
  2805. Version 2.6.3 - August 5, 2012
  2806. - Count likely throttling episodes on bitforce devices as hardware errors.
  2807. - Style cleanups.
  2808. - Use FTD2XX.DLL on Windows to autodetect BitFORCE SHA256 devices.
  2809. - Make pool_disabled the first in the enums == 0, fixing the pool enabled count
  2810. which compares if value is not enabled before enabling it.
  2811. - Correct writing of scrypt parameters to config file based on command line
  2812. parameters only.
  2813. - Use different variables for command line specified lookup gap and thread
  2814. concurrency to differentiate user defined versus auto chosen values.
  2815. - Queue a request on pool switch in case we have no work from the new pool yet.
  2816. - Display failover only mode in pool menu and allow it to be toggled live.
  2817. - Reinstate check for system queueing lag when the current pool's queue is maxed
  2818. out, there is no staged work, and the work is needed now.
  2819. - There is no need for pool active testing to be mandatory any more with queue
  2820. request changes.
  2821. - Fix harmless warnings.
  2822. - Check the current staged and global queued as well before queueing requests.
  2823. Discard stales before ageing work in the watchdog thread. Queue requests after
  2824. discarding and ageing work in watchdog thread. Display accurate global queued in
  2825. curses output. Reuse variable in age_work().
  2826. - The queueing mechanism has become a complex state machine that is no longer
  2827. predictable. Rewrite it from scratch watching only current queues in flight and
  2828. staged work available on a pool by pool basis.
  2829. - API remove unused warning in non-GPU compile
  2830. - api.c in linux allow to open a closed socket in TIME_WAIT
  2831. - Queue an extra request whenever staged work drops below mining thread count in
  2832. hash_pop.
  2833. - Update debian package configs to v2.6.2
  2834. Version 2.6.2 - August 3, 2012
  2835. - Scrypt mining does not support block testing yet so don't try to print it.
  2836. - Clear the bitforce buffer whenever we get an unexpected result as it has
  2837. likely throttled and we are getting cached responses out of order, and use the
  2838. temperature monitoring as a kind of watchdog to flush unexpected results.
  2839. - It is not critical getting the temperature response in bitforce so don't
  2840. mandatorily wait on the mutex lock.
  2841. - Check there is a cutoff temp actually set in bitforce before using it as a cut
  2842. off value otherwise it may think it's set to zero degrees.
  2843. - We dropped the temporary stopping of curl recruiting on submit_fail by
  2844. mistake, reinstate it.
  2845. - Make threads report in either side of the scanhash function in case we miss
  2846. reporting in when restarting work.
  2847. - Don't make mandatory work and its clones last forever.
  2848. - Make test work for pool_active mandatory work items to smooth out staged work
  2849. counts when in failover-only mode.
  2850. - Add debugging output when work is found stale as to why.
  2851. - Print the 3 parameters that are passed to applog for a debug line in
  2852. bitforce.c
  2853. - Clear bitforce buffer on init as previously.
  2854. - Add some headroom to the number of curls available per pool to allow for
  2855. longpoll and sendwork curls.
  2856. - Revert "Revert "Change BFL driver thread initialising to a constant 100ms
  2857. delay between devices instead of a random arrangement.""
  2858. - Revert "Remove bitforce_thread_init"
  2859. - Show the correct base units on GPU summary.
  2860. - Differentiate between the send return value being a bool and the get return
  2861. value when managing them in bitforce scanhash.
  2862. - 23a8c60 Revert "bitforce: Skip out of sending work if work restart requested"
  2863. Version 2.6.1 - July 30, 2012
  2864. - Display scrypt as being built in as well.
  2865. - Fix build warning about KL_SCRYPT when built without scrypt support.
  2866. - Remove the low hash count determinant of hardware being sick. A low hash rate
  2867. can be for poor network connectivity or scrypt mining, neither of which are due
  2868. to a sick device.
  2869. - api.c poolpriority changes
  2870. Version 2.6.0 - July 29, 2012
  2871. - Display kilohash when suitable, but store the global mhash value still truly
  2872. in megahashes to not break the API output.
  2873. - Don't try and print curses output for devices that won't fit on the screen.
  2874. - Add scrypt documentation in the form of a separate readme.
  2875. - Fix build error without scrypt enabled.
  2876. - Limit total number of curls recruited per pool to the number of mining threads
  2877. to prevent blasting the network when we only have one pool to talk to.
  2878. - bitforce: Skip out of sending work if work restart requested
  2879. - Keep a counter of enabled pools and use that instead of iterating over the
  2880. pool list. Use that value to ensure we don't set the last remaining active pool
  2881. to the rejecting state.
  2882. - fpgautils: add support for 57.6 kBd serial
  2883. - miner.php add a socket RCV timeout for if cgminer is hung and the API thread
  2884. is still running
  2885. - Limit thread concurrency for scrypt to 5xshaders if shaders is specified.
  2886. - Simplify repeated use of gpus[gpu]. in ocl.c
  2887. - Find the nearest power of 2 maximum alloc size for the scrypt buffer that can
  2888. successfully be allocated and is large enough to accomodate the thread
  2889. concurrency chosen, thus mapping it to an intensity.
  2890. - Don't make opt_scrypt mandatory blocking with opencl code.
  2891. - Update kernel versions reflecting changes in the API.
  2892. - Make the thread concurrency and lookup gap options hidden on the command line
  2893. and autotune parameters with a newly parsed --shaders option.
  2894. - Fix target testing with scrypt kernel as it would have been missing shares
  2895. below target.
  2896. - Bugfix: Use a mutex to control non-curses output
  2897. - Simplify code to a single vprintf path for curses-less printing
  2898. - Move opt_quiet check to my_log_curses, so it works for curses-less builds
  2899. - Use log_generic for vapplog to cut down on code duplication
  2900. - Add space to log output now that there is more screen real estate available.
  2901. - BFL force all code to timeout to avoid hanging
  2902. - Bugfix: Copy argv[0] given to dirname()
  2903. - Always create the largest possible padbuffer for scrypt kernels even if not
  2904. needed for thread_concurrency, giving us some headroom for intensity levels.
  2905. - Use the detected maximum allocable memory on a GPU to determine the optimal
  2906. scrypt settings when lookup_gap and thread_concurrency parameters are not given.
  2907. - Check the maximum allocable memory size per opencl device.
  2908. - Add debugging output if buffer allocation fails for scrypt and round up
  2909. bufsize to a multiple of 256.
  2910. - Nonce testing for btc got screwed up, leading to no accepted shares. Fix it.
  2911. - Display size of scrypt buffer used in debug.
  2912. - Allow intensities up to 20 if scrypt is compiled in.
  2913. - Add name to scrypt kernel copyright.
  2914. - Allow lookup gap and thread concurrency to be passed per device and store
  2915. details in kernel binary filename.
  2916. - Ignore negative intensities for scrypt.
  2917. - Change the scale of intensity for scrypt kernel and fix a build warning.
  2918. - Correct target value passed to scrypt kernel.
  2919. - Use 256 output slots for kernels to allow 1 for each worksize.
  2920. - Test the target in the actual scrypt kernel itself saving further
  2921. calculations.
  2922. - Reinstate GPU only opencl device detection.
  2923. - Decrease lookup gap to 1. Does not seem to help in any way being 2.
  2924. - Fix build.
  2925. - Make pad0 and pad1 local variable in scrypt kernel.
  2926. - Constify input variable in scrypt kernel.
  2927. - Send correct values to scrypt kernel to get it finally working.
  2928. - Create command queue before compiling program in opencl.
  2929. - Detach pthread from within the api thread in case it is terminated due to not
  2930. being instantiated before pthread_cancel is called from main, leading to a
  2931. segfault.
  2932. - Debug output per thread hashrate is out by a factor of 1000.
  2933. - Initialise mdplatform.
  2934. - Find the gpu platform with the most devices and use that if no platform option
  2935. is passed.
  2936. - Allow more platforms to be probed if first does not return GPUs.
  2937. - Fix external scrypt algo missing.
  2938. - Limit scrypt to 1 vector.
  2939. - Handle KL_SCRYPT in config write.
  2940. - Get rid of stuff.
  2941. - Don't enqueuewrite buffer at all for pad8 and pass work details around for
  2942. scrypt in dev_blk.
  2943. - Set the correct data for cldata and prepare for pad8 fixes.
  2944. - Bugfix: Fix build without curses but with OpenCL
  2945. - Find the gpu platform with the most devices and use that if no platform option
  2946. is passed.
  2947. - Allow more platforms to be probed if first does not return GPUs.
  2948. - Get rid of spaces in arrays in scrypt kernel.
  2949. - Start with smaller amount of hashes in cpu mining to enable scrypt to return
  2950. today sometime.
  2951. - Show Khash hashrates when scrypt is in use.
  2952. - Free the scratchbuf memory allocated in scrypt and don't check if CPUs are
  2953. sick since they can't be. Prepare for khash hash rates in display.
  2954. - Add cpumining capability for scrypt.
  2955. - Set scrypt settings and buffer size in ocl.c code to be future modifiable.
  2956. - Cope with when we cannot set intensity low enough to meet dynamic interval by
  2957. inducing a forced sleep.
  2958. - Make dynamic and scrypt opencl calls blocking.
  2959. - Calculate midstate in separate function and remove likely/unlikely macros
  2960. since they're dependent on pools, not code design.
  2961. - bitforce: Use "full work" vs "nonce range" for kernel name
  2962. - Display in debug mode when we're making the midstate locally.
  2963. - Fix nonce submission code for scrypt.
  2964. - Make sure goffset is set for scrypt and drop padbuffer8 to something
  2965. manageable for now.
  2966. - Set up buffer8 for scrypt.
  2967. - Build fix for opt scrypt.
  2968. - Don't check postcalc nonce with sha256 in scrypt.
  2969. - Don't test nonce with sha and various fixes for scrypt.
  2970. - Make scrypt buffers and midstate compatible with cgminer.
  2971. - Use cgminer specific output array entries in scrypt kernel.
  2972. - Provide initial support for the scrypt kernel to compile with and mine scrypt
  2973. with the --scrypt option.
  2974. - Enable completely compiling scrypt out.
  2975. - Begin import of scrypt opencl kernel from reaper.
  2976. - bitforce_get_result returns -1 on error now.
  2977. - Check return value of read in BFgets
  2978. - Bugfix: Make our Windows nanosleep/sleep replacements standards-compliant
  2979. (which fixes nmsleep) and include compat.h for bitforce (for sleep)
  2980. - rpc: Use a single switch statement for both stringifications of cgpu->status
  2981. - Fix whitespace mangling.
  2982. - miner.php fix rig # when miners fail
  2983. - Only try to shut down work cleanly if we've successfully connected and started
  2984. mining.
  2985. - Use switch statement for cgpu->status and fix spelling.
  2986. - Abbrv. correction
  2987. - Bugfix: Don't declare devices SICK if they're just busy initialising
  2988. - Bugfix: Calculate nsec in nmsleep correctly
  2989. - Bugfix: Adapt OpenCL scanhash errors to driver API change (errors are now -1,
  2990. not 0)
  2991. - Remove superfluous ave_wait
  2992. - Put kname change for broken nonce-range back in
  2993. - Add average wait time to api stats
  2994. - Change BFL driver thread initialising to a constant 100ms delay between
  2995. devices instead of a random arrangement.
  2996. - Spelling typo.
  2997. - Time opencl work from start of queueing a kernel till it's flushed when
  2998. calculating dynamic intensity.
  2999. - Modify te scanhash API to use an int64_t and return -1 on error, allowing zero
  3000. to be a valid return value.
  3001. - Check for work restart after the hashmeter is invoked for we lose the hashes
  3002. otherwise contributed in the count.
  3003. - Remove disabled: label from mining thread function, using a separate
  3004. mt_disable function.
  3005. - Style changes.
  3006. - Missed one nonce-range disabling.
  3007. - Add average return time to api stats
  3008. - miner.php allow rig names in number buttons
  3009. - Remove bitforce_thread_init The delay thing does nothing useful... when long
  3010. poll comes around, all threads restart at the same time anyway.
  3011. - Change timeouts to time-vals for accuracy.
  3012. - fix API support for big endian machines
  3013. - Cope with signals interrupting the nanosleep of nmsleep.
  3014. - Use standard cfsetispeed/cfsetospeed to set baud rate on *nix
  3015. - miner.php split() flagged deprecated in PHP 5.3.0
  3016. - More BFL tweaks. Add delay between closing and reopening port. Remove buffer
  3017. clear in re-init Add kernel type (mini-rig or single)
  3018. - Make long timeout 10seconds on bitforce for when usleep or nanosleep just
  3019. can't be accurate...
  3020. Version 2.5.0 - July 6, 2012
  3021. - Fix --benchmark not working since the dynamic addition of pools and pool
  3022. stats.
  3023. - Make disabling BFL nonce range support a warning since it has to be explicitly
  3024. enabled on the command line now.
  3025. - miner.php allow renaming table headers
  3026. - Make bitforce nonce range support a command line option --bfl-range since
  3027. enabling it decrease hashrate by 1%.
  3028. - Add sanity checking to make sure we don't make sleep_ms less than 0 in
  3029. bitforce.
  3030. - The fastest minirig devices need a significantly smaller starting sleep time.
  3031. - Use a much shorter initial sleep time to account for faster devices and nonce
  3032. range working, and increase it if nonce range fails to work.
  3033. - Use nmsleep instead of usleep in bitforce.
  3034. - Provide a ms based sleep function that uses nanosleep to avoid the inaccuracy
  3035. of usleep on SMP systems.
  3036. - delay_time_ms is always set so need not be initialised in bitforce.
  3037. - Increase bitforce timeout to 10 seconds.
  3038. - Add more hysteresis and poll ~5 times to allow for timer delays in bitforce
  3039. devices.
  3040. - miner.php allow alternating line colours (off by default)
  3041. - Display the actual duration of wait when it is greater than the cutoff.
  3042. - Set nonce to maximum once we determine nonce range support is broken.
  3043. - Initial wait time is always known so no need to zero it beforehand in
  3044. bitforce.
  3045. - No point counting wait time until the work is actually sent to bitforce
  3046. devices.
  3047. - Use string comparison functions instead of explicit comparisons.
  3048. - Account for wait_ms time when nonce_range is in use on BFL.
  3049. - Split nonces up into 1/5 chunks when nonce range is supported.
  3050. - limit clear buffer iterations.
  3051. - Ad fd check to clear buffer.
  3052. - miner.php remove incorrect 'DATE' error message
  3053. - miner.php allow summary header in custom pages
  3054. - Disable nonce range support in BFL when broken support is detected.
  3055. - Restart_wait is only called with a ms value so incorporate that into the
  3056. function.
  3057. - Only try to adjust dev width when curses is built in.
  3058. - miner.php define custom sum fields as a simple array
  3059. - Fix off-by-one error in nonce increment in bfl.
  3060. - Use BE when setting nonce in bitforce nonce range work.
  3061. - Enable nonce range in the normal init sequence for bfl.
  3062. - Queue extra work at 2/3 differently depending on whether we're using nonce
  3063. range or not.
  3064. - Initially enable support for nonce range support on bfl, splitting nonces up
  3065. into 3/4 size and only disable it if it fails on work submit.
  3066. - Attempt to detect nonce range support in BFL by sending work requring its
  3067. support.
  3068. - Limit retrying on busy for up to BITFORCE_TIMEOUT_MS
  3069. - Attempt to initialise while bitforce device returns BUSY.
  3070. - Extend length of string that can be passed to BFL devices.
  3071. - Fix signedness warning.
  3072. - Adjust device width column to be consistent.
  3073. - Use cgpu-> not gpus[] in watchdog thread.
  3074. - Add api stats (sleep time)
  3075. - Timing tweaks Added long and short timeouts, short for detecting throttling,
  3076. long to give up totally. Reset sleep time when device re-initialised Still check
  3077. results after timeout Back up a larger time if result on first poll.
  3078. - Add API Notify counter 'Comms Error'
  3079. - Style police on api.c
  3080. - Do all logging outside of the bitforce mutex locking to avoid deadlocks.
  3081. - Remove applog call from bfwrite to prevent grabbing nested mutexes.
  3082. - Bitforce style changes.
  3083. - Minor style changes.
  3084. - Remove needless roundl define.
  3085. - Made JSON error message verbose.
  3086. - Fine-tune timing adjustment. Also remove old work_restart timing.
  3087. - Check for gpu return times of >= 0, not just 0, to fix intensity dropping to
  3088. -10.
  3089. - Restart is zeroed in the mining thread so no need to do it inside the bitforce
  3090. code.
  3091. - More improvements to comms. BFL return nothing when throttling, so should not
  3092. be considered an error. Instead repeat with a longer delay.
  3093. - Polling every 10ms there's not much point checking the pthread_cond_timedwait
  3094. as it just adds overhead. Simply check the value of work_restart in the bfl main
  3095. polling loop.
  3096. - Use a pthread conditional that is broadcast whenever work restarts are
  3097. required. Create a generic wait function waiting a specified time on that
  3098. conditional that returns if the condition is met or a specified time passed to
  3099. it has elapsed. Use this to do smarter polling in bitforce to abort work, queue
  3100. more work, and check for results to minimise time spent working needlessly.
  3101. - Add busy time to wait time.
  3102. - api.c put version up to 1.14
  3103. - Add tiny delay after writing to BFL Change BFL errors to something more human
  3104. readable Send work busy re-tries after 10ms delay
  3105. Version 2.4.4 - July 1, 2012
  3106. - Fix builds on non gnu platforms.
  3107. - api.c ensure old mode is always available when not using --api-groups + quit()
  3108. on param errors
  3109. - Implement rudimentary X-Mining-Hashrate support.
  3110. - Detect large swings in temperature when below the target temperature range and
  3111. change fan by amounts dependant on the value of tdiff.
  3112. - Adjust the fanspeed by the magnitude of the temperature difference when in the
  3113. optimal range.
  3114. - Revert "Restarting cgminer from within after ADL has been corrupted only leads
  3115. to a crash. Display a warning only and disable fanspeed monitoring."
  3116. - api.c fix json already closed
  3117. - implement and document API option --api-groups
  3118. - Put upper bounds to under 2 hours that work can be rolled into the future for
  3119. bitcoind will deem it invalid beyond that.
  3120. - define API option --api-groups
  3121. - api.c allow unwell devices to be enabled so they can be cured
  3122. - miner.php - fix/enable autorefresh for custom pages
  3123. - miner.php allow custom summary pages - new 'Mobile' summary
  3124. - Work around pools that advertise very low expire= time inappropriately as this
  3125. leads to many false positives for stale shares detected.
  3126. - Only show ztex board count if any exist.
  3127. - There is no need for work to be a union in struct workio_cmd
  3128. - fpgautils.c include a debug message for all unknown open errors
  3129. - Don't keep rolling work right up to the expire= cut off. Use 2/3 of the time
  3130. between the scantime and the expiry as cutoff for reusing work.
  3131. - Log a specific error when serial opens fail due to lack of user permissions
  3132. - Increase GPU timing resolution to microsecond and add sanity check to ensure
  3133. times are positive.
  3134. - Opencl code may start executing before the clfinish order is given to it so
  3135. get the start timing used for dynamic intensity from before the kernel is
  3136. queued.
  3137. - fpgautils.c - set BAUD rate according to termio spec
  3138. - fpgautils.c - linux ordering back to the correct way
  3139. - miner.php remove unneeded '.'s
  3140. - miner.php add auto refresh options
  3141. - miner.php add 'restart' next to 'quit'
  3142. - miner.php make fontname/size configurable with myminer.php
  3143. - Make the pools array a dynamically allocated array to allow unlimited pools to
  3144. be added.
  3145. - Make the devices array a dynamically allocated array of pointers to allow
  3146. unlimited devices.
  3147. - Dynamic intensity for GPUs should be calculated on a per device basis. Clean
  3148. up the code to only calculate it if required as well.
  3149. - Use a queueing bool set under control_lock to prevent multiple calls to
  3150. queue_request racing.
  3151. - Use the work clone flag to determine if we should subtract it from the total
  3152. queued variable and provide a subtract queued function to prevent looping over
  3153. locked code.
  3154. - Don't decrement staged extras count from longpoll work.
  3155. - Count longpoll's contribution to the queue.
  3156. - Increase queued count before pushing message.
  3157. - Test we have enough work queued for pools with and without rolltime
  3158. capability.
  3159. - As work is sorted by age, we can discard the oldest work at regular intervals
  3160. to keep only 1 of the newest work items per mining thread.
  3161. - Roll work again after duplicating it to prevent duplicates on return to the
  3162. clone function.
  3163. - Abstract out work cloning and clone $mining_threads copies whenever a rollable
  3164. work item is found and return a clone instead.
  3165. - api.c display Pool Av in json
  3166. - Take into account average getwork delay as a marker of pool communications
  3167. when considering work stale.
  3168. - Work out a rolling average getwork delay stored in pool_stats.
  3169. - Getwork delay in stats should include retries for each getwork call.
  3170. - Walk through the thread list instead of searching for them when disabling
  3171. threads for dynamic mode.
  3172. - Extend nrolltime to support the expiry= parameter. Do this by turning the
  3173. rolltime bool into an integer set to the expiry time. If the pool supports
  3174. rolltime but not expiry= then set the expiry time to the standard scantime.
  3175. - When disabling fanspeed monitoring on adl failure, remove any twin GPU
  3176. association. This could have been leading to hangs on machines with dual GPU
  3177. cards when ADL failed.
  3178. - modminer: Don't delay 2nd+ FPGAs during work restart
  3179. - Disable OpenCL code when not available.
  3180. - Fix openwrt crashing on regeneratehash() by making check_solve a noop.
  3181. - FPGA - allow device detect override without an open failure
  3182. - Fix sign warning.
  3183. Version 2.4.3 - June 14, 2012
  3184. - can_roll and should_roll should have no bearing on the cycle period within the
  3185. miner_thread so remove it.
  3186. - Check for strategy being changed to load balance when enabling LPs.
  3187. - Check that all threads on the device that called get_work are waiting on
  3188. getwork before considering the pool lagging.
  3189. - Iterate over each thread belonging to each device in the hashmeter instead of
  3190. searching for them now that they're a list.
  3191. - When using rotate pool strategy, ensure we only select from alive enabled
  3192. pools.
  3193. - Start longpoll from every pool when load balance strategy is in use.
  3194. - Add mandatory and block fields to the work struct. Flag any shares that are
  3195. detected as blocks as mandatory to submit, along with longpoll work from a
  3196. previously rejecting pool.
  3197. - Consider the fan optimal if fanspeed is dropping but within the optimal speed
  3198. window.
  3199. - Fix typo in some API messages (succeess/success)
  3200. - api.c MMQ stat bugs
  3201. - Bugfix: Fix warnings when built without libudev support
  3202. - Bugfix: slay a variety of warnings
  3203. - Bugfix: modminer: Fix unsigned/signed comparison and similar warnings
  3204. - API add ModMinerQuad support
  3205. - Bugfix: Honour forceauto parameter in serial_detect functions
  3206. - modminer: Temperature sensor improvements
  3207. - modminer: Make log messages more consistent in format
  3208. - Only adjust GPU speed up if the fanspeed is within the normal fanrange and
  3209. hasn't been turned to maximum speed under overheat conditions.
  3210. - ModMiner use valid .name
  3211. - New driver: BTCFPGA ModMiner
  3212. - Abstract generally useful FPGA code into fpgautils.c
  3213. - API add stats for pool getworks
  3214. - miner.php option to hide specific fields from the display
  3215. - miner.php add version numbers to the summary page
  3216. - Update debian configs to v2.4.2
  3217. - Add API and FPGA READMEs into Makefile to be included in source distribution.
  3218. - Icarus - fix unit64_t printf warnings
  3219. Version 2.4.2 - June 2, 2012
  3220. - API.class compiled with Java SE 6.0_03 - works with Win7x64
  3221. - miner.php highlight devs too slow finding shares (possibly failing)
  3222. - API update version to V1.11 and document changes
  3223. - API save default config file if none specified
  3224. - api.c save success incorrectly returns error
  3225. - api.c replace BUFSIZ (linux/windows have different values)
  3226. - Move RPC API content out of README to API-README
  3227. - Open a longpoll connection if a pool is in the REJECTING state as it's the
  3228. only way to re-enable it automatically.
  3229. - Use only one longpoll as much as possible by using a pthread conditional
  3230. broadcast that each longpoll thread waits on and checks if it's the current pool
  3231. before
  3232. - If shares are known stale, don't use them to decide to disable a pool for
  3233. sequential rejects.
  3234. - Restarting cgminer from within after ADL has been corrupted only leads to a
  3235. crash. Display a warning only and disable fanspeed monitoring.
  3236. - Icarus: fix abort calculation/allow user specified abort
  3237. - Icarus: make --icarus-timing hidden and document it in FPGA-README
  3238. - Icarus: high accuracy timing and other bitstream speed support
  3239. - add-MIPSEB-to-icarus-for-BIG_ENDIAN
  3240. - work_decode only needs swab32 on midstate under BIG ENDIAN
  3241. - add compile command to api-example.c
  3242. - save config bugfix: writing an extra ',' when no gpus
  3243. - Add dpkg-source commits
  3244. Version 2.4.1 - May 6, 2012
  3245. - In the unlikely event of finding a block, display the block solved count with
  3246. the pool it came from for auditing.
  3247. - Display the device summary on exit even if a device has been disabled.
  3248. - Use correct pool enabled enums in api.c.
  3249. - Import Debian packaging configs
  3250. - Ensure we test for a pool recovering from idle so long as it's not set to
  3251. disabled.
  3252. - Fix pool number display.
  3253. - Give cgminer -T message only if curses is in use.
  3254. - Reinit_adl is no longer used.
  3255. - API 'stats' allow devices to add their own stats also for testing/debug
  3256. - API add getwork stats to cgminer - accesable from API 'stats'
  3257. - Don't initialise variables to zero when in global scope since they're already
  3258. initialised.
  3259. - Get rid of unitialised variable warning when it's false.
  3260. - Move a pool to POOL_REJECTING to be disabled only after 3 minutes of
  3261. continuous rejected shares.
  3262. - Some tweaks to reporting and logging.
  3263. - Change FPGA detection order since BFL hangs on an ICA
  3264. - API support new pool status
  3265. - Add a temporarily disabled state for enabled pools called POOL_REJECTING and
  3266. use the work from each longpoll to help determine when a rejecting pool has
  3267. started working again. Switch pools based on the multipool strategy once a pool
  3268. is re-enabled.
  3269. - Removing extra debug
  3270. - Fix the benchmark feature by bypassing the new networking code.
  3271. - Reset sequential reject counter after a pool is disabled for when it is
  3272. re-enabled.
  3273. - Icarus - correct MH/s and U: with work restart set at 8 seconds
  3274. - ztex updateFreq was always reporting on fpga 0
  3275. - Trying harder to get 1.15y working
  3276. - Specifying threads on multi fpga boards extra cgpu
  3277. - Missing the add cgpu per extra fpga on 1.15y boards
  3278. - API add last share time to each pool
  3279. - Don't try to reap curls if benchmarking is enabled.
  3280. Version 2.4.0 - May 3, 2012
  3281. - Only show longpoll warning once when it has failed.
  3282. - Convert hashes to an unsigned long long as well.
  3283. - Detect pools that have issues represented by endless rejected shares and
  3284. disable them, with a parameter to optionally disable this feature.
  3285. - Bugfix: Use a 64-bit type for hashes_done (miner_thread) since it can overflow
  3286. 32-bit on some FPGAs
  3287. - Implement an older header fix for a label existing before the pthread_cleanup
  3288. macro.
  3289. - Limit the number of curls we recruit on communication failures and with
  3290. delaynet enabled to 5 by maintaining a per-pool curl count, and using a pthread
  3291. conditional that wakes up when one is returned to the ring buffer.
  3292. - Generalise add_pool() functions since they're repeated in add_pool_details.
  3293. - Bugfix: Return failure, rather than quit, if BFwrite fails
  3294. - Disable failing devices such that the user can attempt to re-enable them
  3295. - Bugfix: thread_shutdown shouldn't try to free the device, since it's needed
  3296. afterward
  3297. - API bool's and 1TBS fixes
  3298. - Icarus - minimise code delays and name timer variables
  3299. - api.c V1.9 add 'restart' + redesign 'quit' so thread exits cleanly
  3300. - api.c bug - remove extra ']'s in notify command
  3301. - Increase pool watch interval to 30 seconds.
  3302. - Reap curls that are unused for over a minute. This allows connections to be
  3303. closed, thereby allowing the number of curl handles to always be the minimum
  3304. necessary to not delay networking.
  3305. - Use the ringbuffer of curls from the same pool for submit as well as getwork
  3306. threads. Since the curl handles were already connected to the same pool and are
  3307. immediately available, share submission will not be delayed by getworks.
  3308. - Implement a scaleable networking framework designed to cope with any sized
  3309. network requirements, yet minimise the number of connections being reopened. Do
  3310. this by create a ring buffer linked list of curl handles to be used by getwork,
  3311. recruiting extra handles when none is immediately available.
  3312. - There is no need for the submit and getwork curls to be tied to the pool
  3313. struct.
  3314. - Do not recruit extra connection threads if there have been connection errors
  3315. to the pool in question.
  3316. - We should not retry submitting shares indefinitely or we may end up with a
  3317. huge backlog during network outages, so discard stale shares if we failed to
  3318. submit them and they've become stale in the interim.
  3319. Version 2.3.6 - April 29, 2012
  3320. - Shorten stale share messages slightly.
  3321. - Protect the freeing of current_hash under mutex_lock to prevent racing on it
  3322. when set_curblock is hit concurrently.
  3323. - Change default behaviour to submitting stale, removing the --submit-stale
  3324. option and adding a --no-submit-stale option.
  3325. - Make sure to start the getwork and submit threads when a pool is added on the
  3326. fly. This fixes a crash when a pool is added to running cgminer and then
  3327. switched to.
  3328. - Faster hardware can easily outstrip the speed we can get work and submit
  3329. shares when using only one connection per pool.
  3330. - Test the queued list to see if any get/submits are already queued and if they
  3331. are, start recruiting extra connections by generating new threads.
  3332. - This allows us to reuse network connections at low loads but recuit new open
  3333. connections as they're needed, so that cgminer can scale to hardware of any
  3334. size.
  3335. Version 2.3.5 - April 28, 2012
  3336. - Restarting cgminer leads to a socket that can't be bound for 60 seconds, so
  3337. increase the interval that API binding waits to 30 seconds to minimise the
  3338. number of times it will retry, spamming the logs.
  3339. - Give a longpoll message for any longpoll that detects a block change, primary
  3340. or backup, and also display which pool it was.
  3341. - Decrease utility display to one decimal place.
  3342. - Small cosmetic output alignment.
  3343. - Add pool number to stale share message.
  3344. - Add space to log output now that there is more screen real estate available.
  3345. - Indentation clean up.
  3346. - Merge branch 'master' of github.com:ckolivas/cgminer
  3347. - Remove thread id display from rejected shares as well.
  3348. - Merge pull request #185 from Diapolo/diakgcn
  3349. - add goffset support for diakgcn with -v 1 and update kernel version
  3350. - Set have_longpoll to true when there is at least one pool with longpoll.
  3351. - Don't display the thread ID since it adds no useful information over the
  3352. device number.
  3353. - Don't display the first 8 bytes of a share since they will always be zero at
  3354. >= 1 difficulty.
  3355. - work->longpoll is reset across test_work_current so we need to recheck what
  3356. pool it belongs to.
  3357. - Use longpolls from backup pools with failover-only enabled just to check for
  3358. block changes, but don't use them as work.
  3359. - Start longpoll only after we have tried to extract the longpoll URL.
  3360. - Check for submitold flag on resubmit of shares, and give different message for
  3361. stale shares on retry.
  3362. - Check for submitold before submitstale.
  3363. - Don't force fresh curl connections on anything but longpoll threads.
  3364. - Create one longpoll thread per pool, using backup pools for those pools that
  3365. don't have longpoll.
  3366. - Use the work created from the longpoll return only if we don't have
  3367. failover-enabled, and only flag the work as a longpoll if it is the current
  3368. pool.
  3369. - This will work around the problem of trying to restart the single longpoll
  3370. thread on pool changes that was leading to race conditions.
  3371. - It will also have less work restarts from the multiple longpolls received from
  3372. different pools.
  3373. - Remove the ability to disable longpoll. It is not a useful feature and will
  3374. conflict with planned changes to longpoll code.
  3375. - Remove the invalid entries from the example configuration file.
  3376. - Add support for latest ATI SDK on windows.
  3377. - Export missing function from libztex.
  3378. - miner.php change socktimeoutsec = 10 (it only waits once)
  3379. - Bugfix: Make initial_args a const char** to satisfy exec argument type warning
  3380. (on Windows only)
  3381. - miner.php add a timeout so you don't sit and wait ... forever
  3382. - Create discrete persistent submit and get work threads per pool, thus allowing
  3383. all submitworks belonging to the same pool to reuse the same curl handle, and
  3384. all getworks to reuse their own handle.
  3385. - Use separate handles for submission to not make getwork potentially delay
  3386. share submission which is time critical.
  3387. - This will allow much more reusing of persistent connections instead of opening
  3388. new ones which can flood routers.
  3389. - This mandated a rework of the extra longpoll support (for when pools are
  3390. switched) and this is managed by restarting longpoll cleanly and waiting for a
  3391. thread join.
  3392. - miner.php only show the current date header once
  3393. - miner.php also add current time like single rig page
  3394. - miner.php display rig 'when' table at top of the multi-rig summary page
  3395. - README - add some Ztex details
  3396. - api.c include zTex in the FPGA support list
  3397. - api.c ensure 'devs' shows PGA's when only PGA code is compiled
  3398. - cgminer.c sharelog code consistency and compile warning fix
  3399. - README correct API version number
  3400. - README spelling error
  3401. - api.c combine all pairs of sprintfs()
  3402. - api.c uncomment and use BLANK (and COMMA)
  3403. - Code style cleanup
  3404. - Annotating frequency changes with the changed from value
  3405. - README clarification of 'notify' command
  3406. - README update for API RPC 'devdetails'
  3407. - api.c 'devdetails' list static details of devices
  3408. - Using less heap space as my TP-Link seems to not handle this much
  3409. Version 2.3.4 - April 25, 2012
  3410. - Extensively document the cause of GPU device issues and the use of --gpu-map.
  3411. - Support for share logging
  3412. - Detect poorly performing combination of SDK and phatk kernel and add verbose
  3413. warning at startup.
  3414. - Icarus update to new add_cgpu()
  3415. - Icarus driver working with Linux and Windows
  3416. - api.c fix unused variable compile warning
  3417. - Display all OpenCL devices when -n is called as well to allow debugging of
  3418. differential mapping of OpenCL to ADL.
  3419. - Add a --gpu-map option which will allow arbitrarily mapping ADL devices to
  3420. OpenCL devices for instances where association by enumeration alone fails.
  3421. - Increase upper limit on number of extra items to queue as some FPGA code can't
  3422. yet reliably keep many devices busy.
  3423. - Display configuration file information when -c option is passed and only when
  3424. file exists on loading default config file.
  3425. - Display configuration file loaded, if any, and debug output if configuration
  3426. file parsing failed.
  3427. - Add missing ztex header to Makefile for distribution.
  3428. - Document long-form COM port device names on Windows, required to specify
  3429. serial ports above 9
  3430. - Include ztex bitstreams firmware in distribution and install if configured in.
  3431. - Style police on driver-ztex.c
  3432. - work_restart should only be changed by cgminer.c now
  3433. - Shut down the api cleanly when the api thread is cancelled. This should allow
  3434. the api socket to be closed successfully to next be reopened with app_restart.
  3435. - Make a union for cgpu device handles, and rename "device" to "device_ztex"
  3436. since it's Ztex-specific
  3437. - Initialise name variable.
  3438. - Remove unnecessary check for variable that always has memory allocated.
  3439. - Bugfix: Missing "break" no-op in default case
  3440. - Make the status window and log window as large as can fit on startup,
  3441. rechecking to see if it can be enlarged after the fact. This allows any number
  3442. of devices to be displayed provided the window is made long enough without
  3443. corrupting the output.
  3444. - Style police on libztex.c.
  3445. - API add removepool like the screen interface
  3446. - api.c escape required characters in return strings + pools returns the
  3447. username
  3448. - Set lp_path to NULL after free for consistency.
  3449. - Removing dmalloc import left behind by mistake
  3450. - Fixing leak in resp_hdr_cb
  3451. - miner.php warning highlight GPU stats if they are zero (e.g. ADL not enabled)
  3452. - miner.php highlight any device that isn't 'Enabled'
  3453. - miner.php highlight any Status that isn't 'Alive'
  3454. - miner.php optionally support multiple rigs
  3455. - Initial Ztex support 1.15x board.
  3456. Version 2.3.3 - April 15, 2012
  3457. - Don't even display that cpumining is disabled on ./configure to discourage
  3458. people from enabling it.
  3459. - Do a complete cgminer restart if the ATI Display Library fails, as it does on
  3460. windows after running for some time, when fanspeed reporting fails.
  3461. - Cache the initial arguments passed to cgminer and implement an attempted
  3462. restart option from the settings menu.
  3463. - Disable per-device status lines when there are more than 8 devices since
  3464. screen output will be corrupted, enumerating them to the log output instead at
  3465. startup.
  3466. - Reuse Vals[] array more than W[] till they're re-initialised on the second
  3467. sha256 cycle in poclbm kernel.
  3468. - Minor variable alignment in poclbm kernel.
  3469. - Make sure to disable devices with any status not being DEV_ENABLED to ensure
  3470. that thermal cutoff code works as it was setting the status to DEV_RECOVER.
  3471. - Re-initialising ADL simply made the driver fail since it is corruption over
  3472. time within the windows driver that's responsible. Revert "Attempt to
  3473. re-initialise ADL should a device that previously reported fanspeed stops
  3474. reporting it."
  3475. - Microoptimise poclbm kernel by ordering Val variables according to usage
  3476. frequency.
  3477. Version 2.3.2 - March 31, 2012
  3478. - Damping small changes in hashrate so dramatically has the tendency to always
  3479. make the hashrate underread so go back to gentle damping instead.
  3480. - Revert the crossover of variables from Vals to W in poclbm kernel now that
  3481. Vals are the first declared variables so they're used more frequently.
  3482. - Vals variables appearing first in the array in poclbm is faster.
  3483. - Change the preferred vector width to 1 for Tahiti only, not all poclbm
  3484. kernels.
  3485. - Use a time constant 0.63 for when large changes in hashrate are detected to
  3486. damp change in case the large change is an aliasing artefact instead of a real
  3487. chang
  3488. - Only increment stale counter if the detected stales are discarded.
  3489. - Attempt to re-initialise ADL should a device that previously reported fanspeed
  3490. stops reporting it.
  3491. - Move the ADL setup and clearing to separate functions and provide a reinit_adl
  3492. function to be used when adl fails while running.
  3493. - Use slightly more damping on the decay time function in the never-ending quest
  3494. to smooth off the hashmeter.
  3495. - Set the starting fanspeed to a safe and fairly neutral 50% when autofan is
  3496. enabled.
  3497. - Provide locking around updates of cgpu hashrates as well to prevent multiple
  3498. threads accessing data fields on the same device.
  3499. - Display the beginning of the new block in verbose mode in the logs.
  3500. - Reinstate old diablo kernel variable ordering from 120222, adding only goffset
  3501. and vector size hint. The massive variable ordering change only helped one SDK
  3502. on
  3503. - Change the version number on the correct kernels.
  3504. - api.c devicecode/osinfo incorrectly swapped for json
  3505. - Add extensive instructions on how to make a native windows build.
  3506. - Update version numbers of poclbm and diablo kernels as their APIs have also
  3507. changed.
  3508. - Use global offset parameter to diablo and poclbm kernel ONLY for 1 vector
  3509. kernels.
  3510. - Use poclbm preferentially on Tahiti now regardless of SDK.
  3511. - Remove unused constant passed to poclbm.
  3512. - Clean up use of macros in poclbm and use bitselect everywhere possible.
  3513. - Add vector type hint to diablo kernel.
  3514. - Add worksize and vector attribute hints to the poclbm kernel.
  3515. - Spaces for non-aligned variables in poclbm.
  3516. - More tidying of poclbm.
  3517. - Swap Vals and W variables where they can overlap in poclbm.
  3518. - More tidying of poclbm.
  3519. - Tidy up first half of poclbm.
  3520. - Clean up use of any() by diablo and poclbm kernels.
  3521. - Minor variable symmetry changes in poclbm.
  3522. - Put additions on separate lines for consistency in poclbm.
  3523. - Consolidate last use of W11 into Vals4 in poclbm.
  3524. - Change email due to SPAM
  3525. - api.c miner.php add a '*' to the front of all notify counters - simplifies
  3526. future support of new counters
  3527. - miner.php add display 'notify' command
  3528. - Small change to help arch's without processor affinity
  3529. - Fix bitforce compile error
  3530. - api.c notify should report disabled devices also - of course
  3531. - API returns the simple device history with the 'notify' command
  3532. - code changes for supporting a simple device history
  3533. - api.c Report an OS string in config to help with device issues
  3534. - api.c fix Log Interval - integer in JSON
  3535. - api.c config 'Device Code' to show list of compiled devices + README
  3536. - api.c increase buffer size close to current code allowable limit
  3537. - removed 8-component vector support from kernel, as this is not supported in
  3538. CGMINER anyway
  3539. - forgot to update kernel modification date, fixed ;)
  3540. - reordered an addition in the kernel, which results in less instructions used
  3541. in the GPU ISA code for GCN
  3542. - miner.php: option for readonly or check privileged access
  3543. - Ignore reduntant-with-build options --disable-gpu, --no-adl, and --no-restart
  3544. - miner.php: ereg_replace is DEPRECATED so use preg_replace instead
  3545. - Make curses TUI support optional at compile-time.
  3546. - Bugfix: AC_ARG_WITH provides withval instead of enableval
  3547. - miner.php split devs output for different devices
  3548. - api.c: correct error messages
  3549. - icarus.c modify (regular) timeout warning to only be debug
  3550. - icarus.c set the windows TODO timeout
  3551. - Allow specifying a specific driver for --scan-serial
  3552. - optimized nonce-check and output code for -v 2 and -v 4
  3553. - Bugfix: Check for libudev header (not just library) in configure, and document
  3554. optional dependency
  3555. - Add API support for Icarus and Bitforce
  3556. - Next API version is 1.4 (1.3 is current)
  3557. - README/api.c add "When" the request was processed to STATUS
  3558. - Bugfix: ZLX to read BitFORCE temp, not ZKX -.-
  3559. - Use libudev to autodetect BitFORCE GPUs, if available
  3560. - Use the return value of fan_autotune to set fan_optimal instead of passing it
  3561. as a pointer.
  3562. - Pass the lasttemp from the device we're using to adjust fanspeed in twin
  3563. devices.
  3564. - fix the name to 3 chars, fix the multi-icarus support
  3565. - Bugfix: "-S auto" is the default if no -S is specified, and there is no such
  3566. delay in using it
  3567. - README add information missing from --scan-serial
  3568. - Update README RPC API Version comment
  3569. - Bugfix: Allow enabling CPU even without OpenCL support
  3570. - Change failed-to-mine number of requested shares messge to avoid segfault on
  3571. recursive calling of quit().
  3572. - Get rid of extra char which is just truncated in poclbm kernel.
  3573. - only small code formating changes
  3574. - removed vec_step() as this could lead to errors on older SDKs
  3575. - unified code for generating nonce in kernel and moved addition of base to the
  3576. end -> faster
  3577. Version 2.3.1 - February 24, 2012
  3578. - Revert input and output code on diakgcn and phatk kernels to old style which
  3579. worked better for older hardware and SDKs.
  3580. - Add a vector*worksize parameter passed to those kernels to avoid one op.
  3581. - Increase the speed of hashrate adaptation.
  3582. - Only send out extra longpoll requests if we want longpolls.
  3583. - API implement addpool command
  3584. - API return the untouched Total MH also (API now version 1.3)
  3585. - Add enable/disablepool to miner.php example and reduce font size 1pt
  3586. Version 2.3.0 - February 23, 2012
  3587. - Consider extra longpoll work items as staged_extra so as to make sure we queue
  3588. more work if queueing regular work items as longpolls.
  3589. - Use diablo kernel on all future SDKs for Tahiti and set preferred vector width
  3590. to 1 on poclbm kernel only.
  3591. - Explicitly type the constants in diakgcn kernel as uint, to be in line with
  3592. poclbm kernel.
  3593. - Reset all hash counters at the same time as resetting start times to get
  3594. accurate hashrates on exiting which is mandatory for benchmarking.
  3595. - Report thread out before it starts to avoid being flagged as sick when waiting
  3596. for the first work item.
  3597. - Don't disable and re-enable devices as they may recover and in the meantime
  3598. have their status set to OFF.
  3599. - API new commands enablepool and disablepool (version already incremented)
  3600. - Tolerate new-format temperature readings for bitforce
  3601. - Modify cgminer.c pool control to allow API to call it
  3602. - Bugfix: Fix BitFORCE driver memory leak in debug logging
  3603. - Extra byte was being unused in poclbm leading to failure on some platforms.
  3604. - Explicitly type the constants in poclbm kernel as uint.
  3605. - Don't save 'include' when saving the configuration
  3606. - Allow configuration file to include another recursively
  3607. - Use the SDK and hardware information to choose good performing default
  3608. kernels.
  3609. - Move phatk kernel to offset vector based nonce bases as well.
  3610. - Add a --benchmark feature which works on a fake item indefinitely to compare
  3611. device performance without any server or networking influence.
  3612. - Allow writing of multiple worksizes to the configuration file.
  3613. - Allow writing of multiple vector sizes to the configuration file.
  3614. - Allow writing of multiple kernels to the configuration file.
  3615. - Allow multiple different kernels to be chosen per device.
  3616. - Allow the worksize to be set per-device.
  3617. - Allow different vectors to be set per device.
  3618. - If we're well below the target temperature, increase gpu engine speed back to
  3619. maximum in case we have gotten lost between profiles during an idle period.
  3620. - We should be setting the value of fan_optimal, not its address.
  3621. - As all kernels will be new versions it's an opportunity to change the .bin
  3622. format and make it simpler. Specifying bitalign is redundant and long can be l.
  3623. - Use any() in kernel output code.
  3624. - Put the nonce for each vector offset in advance, avoiding one extra addition
  3625. in the kernel.
  3626. - Reset times after all mining threads are started to make estimating hashrates
  3627. easier at startup.
  3628. - Bugfix: allow no-exec (NX) stack
  3629. - Fix minor warning.
  3630. - fix the bitforce.c code style follow 1TBS
  3631. - fix icarus.c compile warning
  3632. - small changes to speedup no vec for AMD 898.1 OCL runtime
  3633. - Update licensing to GPL V3.
  3634. - Reset the longpoll flag after it's been used once to prevent it restarting
  3635. work again.
  3636. - Begin import of DiabloMiner kernel.
  3637. - Modify API debug messages to say API instead of DBG
  3638. - When API shuts down cgminer don't kill itself
  3639. - Don't make rolled work from the longpoll be seen as other longpoll work items.
  3640. - API add 'privileged' command so can verify access level
  3641. - Set the lp_sent variable under lock since there will almost always be a race
  3642. on setting this variable, potentially leading to multiple LPs being sent out.
  3643. - API restrict access to all non display commands by default
  3644. - Update API version to 1.2 for new 'Log Interval'
  3645. - API add --log Interval to 'config' reply
  3646. - --api-allow special case 0/0 means all
  3647. Version 2.2.7 - February 20, 2012
  3648. - Send out extra longpolls when we have switched pools and the longpoll thread
  3649. is still bound to the old one. This is particularly useful with p2pool where
  3650. longpolls do not correlate with main bitcoin block change and would have led to
  3651. high reject rates on failover.
  3652. - Store whether a work item is the result of a longpoll or not in struct work
  3653. and use it to help determine block changes directly from the work longpoll bool.
  3654. - Keep track of when a longpoll has been sent for a pool and if the current pool
  3655. is requesting work but has not sent a longpoll request, convert one of the work
  3656. items to a longpoll.
  3657. - Store the longpoll url in the pool struct and update it from the pool_active
  3658. test in case it changes. This is to allow further changes to longpoll management
  3659. on switching pools.
  3660. - Re-check for a longpoll supporting pool every 30 seconds if none is found
  3661. initially.
  3662. - Report threads as busy waiting on getwork on startup to avoid them being
  3663. flagged sick on startup during slow networking.
  3664. - Allow devices that are disabled due to overheating to be flagged as recovering
  3665. instead of disabling them and re-enable them if they're below ideal temperatures
  3666. - Tahiti prefers worksize 64 with poclbm.
  3667. - No need to expressly retain the opencl program now that the zero binary issue
  3668. is fixed. This actually fixes cgminer to work with the latest SDK included with
  3669. the ATI catalyst driver 12.2.
  3670. - Show error code on any opencl failure status.
  3671. - Add detection for version 898.1 SDK as well but only give SDK 2.6 warning once
  3672. on startup instead of with each device initialisation.
  3673. - Always use a fresh connection for longpoll as prolonged persistent connections
  3674. can fail for many reasons.
  3675. - Keep track of intended engine clock speed and only adjust up if it's higher
  3676. than the last intended speed. This avoids setting the clock speed to one
  3677. relative to a lower profile one by mistake.
  3678. - Use gpu-memdiff on startup if an engine clockspeed is set and a memdiff value
  3679. is set.
  3680. - Revert "Adjust engine speed up according to performance level engine setting,
  3681. not the current engine speed." - ineffectual.
  3682. - Freeze the queues on all threads that are sent the pause message to prevent
  3683. them trying to start up again with saved pings in their queues.
  3684. - Updates to diakgcn kernel/
  3685. - Consolidate all screen updates to the watchdog thread and touch both windows
  3686. before refresh.
  3687. - Curses will be disabled in clean_up so don't do it early in kill_work, and
  3688. disable_adl so that GPU settings may be restored to normal in case shutting down
  3689. curses leads to instability on windows.
  3690. - Stop the mining threads before trying to kill them.
  3691. - Plain refresh() does not give reliably screen updates so get rid of all uses
  3692. of it.
  3693. - First release with working diakgcn kernel.
  3694. Version 2.2.6 - February 16, 2012
  3695. - Provide warning on each startup about sdk 2.6
  3696. - Fix unused warnings on win32.
  3697. - bitforce: Simplify BFopen WIN32 ifdef/else
  3698. - Fix initialization warning with jansson 1.3
  3699. - bitforce: Cleanup extraneous TODO that isn't needed
  3700. - Move tcsetattr (and new tcflush) into *nix BFopen to simplify things a bit
  3701. - Add message explaining 2nd thread disabling for dynamic mode and how to tune
  3702. it.
  3703. - Move logwindow down once number of devices is known.
  3704. - Automatically choose phatk kernel for bitalign non-gcn ATI cards, and then
  3705. only select poclbm if SDK2.6 is detected.
  3706. - Allow the refresh interval to be adjusted in dynamic intensity with a
  3707. --gpu-dyninterval parameter.
  3708. - Make curses display visible right from the beginning and fix the window sizes
  3709. so the initial messages don't get lost once the status window is drawn.
  3710. - The amount of work scanned can fluctuate when intensity changes and since we
  3711. do this one cycle behind, we increment the work more than enough to prevent
  3712. repeati
  3713. - bitforce: Set a 30 second timeout for serial port on Windows, since the
  3714. default is undefined
  3715. - Use PreVal4addT1 instead of PreVal4 in poclbm kernel.
  3716. - Import PreVal4 and PreVal0 into poclbm kernel.
  3717. - Import more prepared constants into poclbm kernel.
  3718. - Keep variables in one array but use Vals[] name for consistency with other
  3719. kernel designs.
  3720. - Replace constants that are mandatorily added in poclbm kernel with one value.
  3721. - Remove addition of final constant before testing for result in poclbm kernel.
  3722. - Hand optimise variable addition order.
  3723. - Hand optimise first variable declaration order in poclbm kernel.
  3724. - Radical reordering machine based first pass to change variables as late as
  3725. possible, bringing their usage close together.
  3726. - fix strcpy NULL pointer if env HOME unset.
  3727. - bitforce: Disable automatic scanning when at least one device is specified
  3728. manually
  3729. - Unroll all poclbm additions to enable further optimisations.
  3730. Version 2.2.5 - February 13, 2012
  3731. - Make output buffer write only as per Diapolo's suggestion.
  3732. - Constify nonce in poclbm.
  3733. - Use local and group id on poclbm kernel as well.
  3734. - Microoptimise phatk kernel on return code.
  3735. - Adjust engine speed up according to performance level engine setting, not the
  3736. current engine speed.
  3737. - Try to load a binary if we've defaulted to the poclbm kernel on SDK2.6
  3738. - Use the poclbm kernel on SDK2.6 with bitalign devices only if there is no
  3739. binary available.
  3740. - Further generic microoptimisations to poclbm kernel.
  3741. - The longstanding generation of a zero sized binary appears to be due to the
  3742. OpenCL library putting the binary in a RANDOM SLOT amongst 4 possible binary
  3743. locations. Iterate over each of them after building from source till the real
  3744. binary is found and use that.
  3745. - Fix harmless warnings with -Wsign-compare to allow cgminer to build with -W.
  3746. - Fix missing field initialisers warnings.
  3747. - Put win32 equivalents of nanosleep and sleep into compat.h fixing sleep() for
  3748. adl.c.
  3749. - Restore compatibility with Jansson 1.3 and 2.0 (api.c required 2.1)
  3750. - Modularized logging, support for priority based logging
  3751. - Move CPU chipset specific optimization into device-cpu
  3752. Version 2.2.4 - February 11, 2012
  3753. - Fix double definition of A0 B0 to zeroA zeroB.
  3754. - Retain cl program after successfully loading a binary image. May decrease
  3755. failures to build kernels at startup.
  3756. - Variable unused after this so remove setting it.
  3757. - BFI INT patching is not necessarily true on binary loading of files and not
  3758. true on ATI SDK2.6+. Report bitalign instead.
  3759. - Various string fixes for reject reason.
  3760. - Generalize --temp-cutoff and implement support for reading temperature from
  3761. BitFORCE FPGAs
  3762. - Change message from recovered to alive since it is used on startup as well as
  3763. when a pool has recovered.
  3764. - Start mining as soon as any pool is found active and rely on the watchpool
  3765. thread to bring up other pools.
  3766. - Delayed responses from testing pools that are down can hold up the watchdog
  3767. thread from getting to its device testing code, leading to false detection of
  3768. the GPU not checking in, and can substantially delay auto gpu/auto fan
  3769. management leading to overheating. Move pool watching to its own thread.
  3770. - Bugfix: BitFORCE index needs to be static to count correctly
  3771. - Space out retrieval of extra work according to the number of mining threads.
  3772. - Make shutdown more robust. Enable the input thread only after the other
  3773. threads exist. Don't kill off the workio thread and use it to exit main() only
  3774. if there is an unexpected problem. Use kill_work() for all anticipated shutdowns
  3775. where possible. Remove unused thread entry.
  3776. - Change poclbm version number.
  3777. - One array is faster than 2 separate arrays so change to that in poclbm kernel.
  3778. - Microoptimisations to poclbm kernel which increase throughput slightly.
  3779. - Import diablominer kernel. Currently disabled as not working.
  3780. - Import diapolo kernel. Currently disabled as not working.
  3781. - Conflicting entries of cl_kernel may have been causing problems, and
  3782. automatically chosen kernel type was not being passed on. Rename the enum to
  3783. cl_kernels and store the chosen kernel in each clState.
  3784. - Set cl_amd_media_ops with the BITALIGN flag and allow non-bitselect devices to
  3785. build.
  3786. - ALlow much longer filenames for kernels to load properly.
  3787. - Allow different kernels to be used by different devices and fix the logic fail
  3788. of overcorrecting on last commit with !strstr.
  3789. - Fix kernel selection process and build error.
  3790. - queue_phatk_kernel now uses CL_SET_VARG() for base-nonce(s), too
  3791. - added OpenCL >= 1.1 detection code, in preparation of OpenCL 1.1 global offset
  3792. parameter support
  3793. - Use K array explicitly to make it clear what is being added.
  3794. - Work items have a tendency to expire at exactly the same time and we don't
  3795. queue extra items when there are plenty in the queue, regardless of age. Allow
  3796. extra work items to be queued if adequate time has passed since we last
  3797. requested work even if over the limit.
  3798. - Discard work when failover-only is enabled and the work has come from a
  3799. different pool.
  3800. - Missing include to build on newer mingw32.
  3801. - Move from the thread safe localtime_r to regular localtime which is the only
  3802. one supported on newer pthread libraries on mingw32 to make it compile with the
  3803. newer ming. Thread safety is of no importance where localtime is used in this
  3804. code.
  3805. - Define in_addr_t in windows if required
  3806. - sys/wait.h not required in windows
  3807. - Allow API to restrict access by IP address
  3808. - Add pool switching to example miner.php
  3809. - Display X-Reject-Reason, when provided
  3810. - Remove the test for whether the device is on the highest profil level before
  3811. raising the GPU speed as it is ineffectual and may prevent raising the GPU
  3812. speed.
  3813. - Remove unnecessary check for opt_debug one every invocation of applog at
  3814. LOG_DEBUG level and place the check in applog().
  3815. Version 2.2.3 - February 6, 2012
  3816. - Revert "Rewrite the convoluted get_work() function to be much simpler and roll
  3817. work as much as possible with each new work item." This seems to cause a race on
  3818. work in free_work(). Presumably other threads are still accessing the structure.
  3819. Version 2.2.2 - February 6, 2012
  3820. - Provide support for the submitold extension on a per-pool basis based on the
  3821. value being detected in a longpoll.
  3822. - Don't send a ping to a dynamic device if it's not enabled as that will just
  3823. enable it for one pass and then disable it again.
  3824. - Rewrite the convoluted get_work() function to be much simpler and roll work as
  3825. much as possible with each new work item.
  3826. - Roll as much work as possible from the work returned from a longpoll.
  3827. - Rolling work on each loop through the mining thread serves no purpose.
  3828. - Allow to stage more than necessary work items if we're just rolling work.
  3829. - Replace divide_work with reuse_work function used twice.
  3830. - Give rolled work a new ID to make sure there is no confusion in the hashtable
  3831. lookups.
  3832. - Remove now-defunct hash_div variables.
  3833. - Remove unused get_dondata function.
  3834. - Silence ADL warnings.
  3835. - Silence unused parameter warnings.
  3836. - Stagger the restart of every next thread per device to keep devices busy ahead
  3837. of accessory threads per device.
  3838. - Deprecate the --donation feature. Needlessly complex, questionable usefulness,
  3839. depends on author's server and a central pool of some kind, and was not heavily
  3840. adopted.
  3841. - It's devices that report back now, not threads, update message.
  3842. - Continue auto-management of fan and engine speeds even if a device is disabled
  3843. for safety reasons.
  3844. - No need to check we're highest performance level when throttling GPU engine
  3845. speed.
  3846. - Abstract out tests for whether work has come from a block that has been seen
  3847. before and whether a string is from a previously seen block.
  3848. - Probe but don't set the timeout to 15 seconds as some networks take a long
  3849. time to timeout.
  3850. - Remove most compiler warnings from api.c
  3851. - Add last share's pool info in cgpu_info
  3852. - Allow the OpenCL platform ID to be chosen with --gpu-platform.
  3853. - Iterate over all platforms displaying their information and number of devices
  3854. when --ndevs is called.
  3855. - Deprecate main.c
  3856. - Some networks can take a long time to resolve so go back to 60 second timeouts
  3857. instead of 15.
  3858. - Only enable curses on failure if curses is desired.
  3859. - Fix warnings in bitforce.c
  3860. - Bugfix: Need to open BitForce tty for read-write
  3861. - Fix various build issues.
  3862. - Modularize code: main.c -> device-cpu + device-gpu
  3863. - Fix phatk kernel not working on non-bitalign capable devices (Nvidia, older
  3864. ATI).
  3865. - Update poclbm kernel for better performance on GCN and new SDKs with bitalign
  3866. support when not BFI INT patching. Update phatk kernel to work properly for non
  3867. BFI INT patched kernels, providing support for phatk to run on GCN and non-ATI
  3868. cards.
  3869. - Return last accepted share pool/time for devices
  3870. - Display accepted share pool/time for CPUs
  3871. - Bug intensity always shows GPU 0
  3872. - Update example web miner.php to use new API commands
  3873. Version 2.2.1 - January 30, 2012
  3874. NOTE - The GPU Device reordering in 2.2.0 by default was considered a bad idea
  3875. so the original GPU ordering is used by default again unless reordering is
  3876. explicitly requested.
  3877. - Fix bitforce failing to build into cgminer.
  3878. - Add missing options to write config function.
  3879. - Add a --gpu-reorder option to only reorder devices according to PCI Bus ID
  3880. when requested.
  3881. - Fix for midstate support being broken on pools that supported no-midstate
  3882. work by ensuring numbers are 32 bits in sha2.c
  3883. - Set virtual GPUs to work when ADL is disabled or all mining will occur on GPU
  3884. 0.
  3885. - Add information about paused threads in the menu status.
  3886. - Disable all but the first thread on GPUs in dynamic mode for better
  3887. interactivity.
  3888. - Set the latest network access time on share submission for --net-delay even if
  3889. we're not delaying that submission for further network access.
  3890. - Clear adl on exiting after probing values since it may attempt to overclock.
  3891. - As share submission is usually staggered, and delays can be costly, submit
  3892. shares without delay even when --net-delay is enabled.
  3893. - Display GPU number and device name when ADL is successfully enabled on it.
  3894. - Display GPU ordering remapping in verbose mode.
  3895. - Don't fail in the case the number of ADL and OpenCL devices do not match, and
  3896. do not attempt to reorder devices unless they match. Instead give a warning
  3897. about
  3898. - Display error codes should ADL not return ADL_OK in the more critical function
  3899. calls.
  3900. - Fix unused warning.
  3901. - Fix compile warnings in api.c
  3902. - Add extensive ADL based device info in debug mode.
  3903. - Make --ndevs display verbose opencl information as well to make debugging
  3904. version information easier.
  3905. - Display information about the opencl platform with verbose enabled.
  3906. - Explicitly check for nvidia in opencl platform strings as well.
  3907. Version 2.2.0 - January 29, 2012
  3908. NOTE: GPU Device order will change with this release with ATI GPUs as cgminer
  3909. now can enumerate them according to their Bus ID which means the values should
  3910. now correlate with their physical position on the motherboard.
  3911. - Default to poclbm kernel on Tahiti (7970) since phatk does not work, even
  3912. though performance is sub-standard so that at least it will mine successfully by
  3913. defau
  3914. - Retain cl program after every possible place we might build the program.
  3915. - Update ADL SDK URL.
  3916. - Fix potential overflow.
  3917. - Map GPU devices to virtual devices in their true physical order based on
  3918. BusNumber.
  3919. - Change the warning that comes with failure to init cl on a device to be more
  3920. generic and accurate.
  3921. - Advertise longpoll support in X-Mining-Extensions
  3922. - Detect dual GPU cards by iterating through all GPUs, finding ones without
  3923. fanspeed and matching twins with fanspeed one bus ID apart.
  3924. - Do not attempt to build the program that becomes the kernel twice. This could
  3925. have been leading to failures on initialising cl.
  3926. - Some opencl compilers have issues with no spaces after -D in the compiler
  3927. options.
  3928. - Allow intensity up to 14.
  3929. - Use calloced stack memory for CompilerOptions to ensure sprintf writes to the
  3930. beginning of the char.
  3931. - Whitelist 79x0 cards to prefer no vectors as they perform better without.
  3932. - Adjust fan speed gently while in the optimal range when temperature is
  3933. drifting to minimise overshoot in either direction.
  3934. - Detect dual GPU cards via the indirect information of - 1st card has a fan
  3935. controller. 2nd card does not have a fan controller, cards share the same device
  3936. name
  3937. - Instead of using the BFI_INT patching hack on any device reporting
  3938. cl_amd_media_ops, create a whitelist of devices that need it. This should enable
  3939. GCN architec
  3940. - Fixed API compiling issue on OS X
  3941. - Add more explanation of JSON format and the 'save' command
  3942. - Return an error if using ADL API commands when it's not available
  3943. - Read off lpThermalControllerInfo from each ADL device.
  3944. - Add ADL_Overdrive5_ThermalDevices_Enum interface.
  3945. - Add API commands: config, switchpool, gpu settings, save
  3946. - Implement socks4 proxy support.
  3947. - Fix send() for JSON strings
  3948. - Introduce a --net-delay option which guarantees at least 250ms between any
  3949. networking requests to not overload slow routers.
  3950. - Generalise locking init code.
  3951. - Allow invalid values to be in the configuration file, just skipping over them
  3952. provided the rest of the file is valid JSON. This will allow older configurat
  3953. - Allow CPU mining explicitly enable only if other mining support is built in.
  3954. - BitForce FPGA support
  3955. - Configure out building and support of all CPU mining code unless
  3956. --enable-cpumining is enabled.
  3957. - Allow parsed values to be zero which will allow 0 values in the config file to
  3958. work.
  3959. - Advertise that we can make our own midstate, so the pool can skip generating
  3960. it for us
  3961. - Refactor the CPU scanhash_* functions to use a common API. Fixes bugs.
  3962. - Don't consider a pool lagging if a request has only just been filed. This
  3963. should decrease the false positives for "pool not providing work fast enough".
  3964. - Invalidating work after longpoll made hash_pop return no work giving a false
  3965. positive for dead pool. Rework hash_pop to retry while finds no staged work u
  3966. - Remove TCP_NODELAY from curl options as many small packets may be contributing
  3967. to network overload, when --net-delay is enabled.
  3968. - Refactor miner_thread to be common code for any kind of device
  3969. - Simplify submit_nonce loop and avoid potentially missing FOUND - 1 entry.
  3970. Reported by Luke-Jr.
  3971. - Micro-optimisation in sha256_sse2 code courtesy of Guido Ascioti
  3972. guido.ascioti@gmail.com
  3973. - Refactor to abstract device-specific code
  3974. Version 2.1.2 - January 6, 2012
  3975. - If api-description is specified, save it when writing the config file
  3976. - Adjust utility width to be constant maximum as well.
  3977. - Add percent signs to reject ratio outputs
  3978. - Should the donation pool fail, don't make the fallover pool behave as though
  3979. the primary pool is lagging.
  3980. - Use an alternative pool should the donation getwork fail.
  3981. Version 2.1.1 - January 1, 2012
  3982. - Include API examples in distribution tarball.
  3983. - Don't attempt to pthread_join when cancelling threads as they're already
  3984. detached and doing so can lead to a segfault.
  3985. - Give more generic message if slow pool at startup is the donation pool.
  3986. - Continue to attempt restarting GPU threads if they're flagged dead at 1 min.
  3987. intervals.
  3988. - Don't attempt to restart sick flagged GPUs while they're still registering
  3989. activity.
  3990. - Make curl use fresh connections whenever there is any communication issue
  3991. in case there are dead persistent connections preventing further comms from
  3992. working.
  3993. - Display pool in summary if only 1 pool.
  3994. - Adjust column width of A/R/HW to be the maximum of any device and align them.
  3995. Version 2.1.0 - December 27, 2011
  3996. - Major infrastructure upgrade with RPC interface for controlling via sockets
  3997. encoded with/without JSON courtesy of Andrew Smith. Added documentation for
  3998. use of the API and sample code to use with it.
  3999. - Updated linux-usb-cgminer document.
  4000. - Rewrite of longpoll mechanism to choose the current pool wherever possible to
  4001. use for the longpoll, or any pool that supports longpoll if the current one
  4002. does not.
  4003. - Display information about longpoll when the chosen server has changed.
  4004. - Fix the bug where longpoll generated work may have been sent back to the
  4005. wrong pool, causing rejects.
  4006. - Fix a few race conditions on closing cgminer which caused some of the crashes
  4007. on exit.
  4008. - Only adjust gpu engine speed in autotune mode if the gpu is currently at the
  4009. performance level of that being adjusted.
  4010. - Various fixes for parsing/writing of configuration files.
  4011. - Do not add blank lines for threads of unused CPUs.
  4012. - Show which pool is unresponsive on startup.
  4013. - Only show GPU management menu item if GPUs are in use.
  4014. - Align most device columns in the curses display.
  4015. Version 2.0.8 - November 11, 2011
  4016. - Make longpoll do a mandatory flushing of all work even if the block hasn't
  4017. changed, thus supporting longpoll initiated work change of any sort and merged
  4018. mining.
  4019. - Byteswap computed hash in hashtest so it can be correctly checked. This fixes
  4020. the very rare possibility that a block solve on solo mining was missed.
  4021. - Add x86_64 w64 mingw32 target
  4022. - Allow a fixed speed difference between memory and GPU clock speed with
  4023. --gpu-memdiff that will change memory speed when GPU speed is changed in
  4024. autotune mode.
  4025. - Don't load the default config if a config file is specified on the command
  4026. line.
  4027. - Don't build VIA on apple since -a auto bombs instead of gracefully ignoring
  4028. VIA failing.
  4029. - Build fix for dlopen/dlclose errors in glibc.
  4030. Version 2.0.7 - October 17, 2011
  4031. - Support work without midstate or hash1, which are deprecated in bitcoind 0.5+
  4032. - Go to kernel build should we fail to clCreateProgramWithBinary instead of
  4033. failing on that device. This should fix the windows problems with devices not
  4034. initialising.
  4035. - Support new configuration file format courtesy of Chris Savery which can write
  4036. the config file from the menu and will load it on startup.
  4037. - Write unix configuration to .cgminer/cgminer.conf by default and prompt to
  4038. overwrite if given a filename from the menu that exists.
  4039. Version 2.0.6 - October 9, 2011
  4040. - Must initialise the donorpool mutex or it fails on windows.
  4041. - Don't make donation work interfere with block change detection allowing
  4042. donation to work regardless of the block chain we're mining on.
  4043. - Expire shares as stale with a separate timeout from the scantime, defaulting
  4044. to 120 seconds.
  4045. - Retry pools after a delay of 15 seconds if none can be contacted on startup
  4046. unless a key is pressed.
  4047. - Don't try to build adl features without having adl.
  4048. - Properly check shares against target difficulty - This will no longer show
  4049. shares when solo mining at all unless they're considered to be a block solve.
  4050. - Add altivec 4 way (cpu mining) support courtesy of Gilles Risch.
  4051. - Try to use SSL if the server supports it.
  4052. - Display the total solved blocks on exit (LOL if you're lucky).
  4053. - Use ADL activity report to tell us if a sick GPU is still busy suggesting it
  4054. is hard hung and do not attempt to restart it.
  4055. Version 2.0.5 - September 27, 2011
  4056. - Intensity can now be set to dynamic or static values per-device.
  4057. - New donation feature --donation sends a proportion of shares to author's
  4058. account of choice, but is disabled by default!
  4059. - The hash being displayed and block detection has been fixed.
  4060. - Devices not being mined on will not attempt to be ADL managed.
  4061. - Intensity is now displayed per GPU device.
  4062. - Make longpoll attempt to restart as often as opt_retries specifies.
  4063. - We weren't rolling work as often as we could.
  4064. - Correct some memory management issues.
  4065. - Build fixes.
  4066. - Don't mess with GPUs if we don't have them.
  4067. Version 2.0.4 - September 23, 2011
  4068. - Confused Longpoll messages should be finally fixed with cgminer knowing for
  4069. sure who found the new block and possibly avoiding a rare crash.
  4070. - Display now shows the actual hash and will say BLOCK! if a block is deemed
  4071. solved.
  4072. - Extra spaces, which would double space lines on small terminals, have been
  4073. removed.
  4074. - Fan speed change is now damped if it is already heading in the correct
  4075. direction to minimise overshoot.
  4076. - Building without opencl libraries is fixed.
  4077. - GPUs are autoselected if there is only one when in the GPU management menu.
  4078. - GPU menu is refreshed instead of returning to status after a GPU change.
  4079. Version 2.0.3 - September 17, 2011
  4080. - Various modes of failure to set fanspeeds and adl values have been addressed
  4081. and auto-fan should work now on most hardware, and possibly other values
  4082. which previously would not have worked.
  4083. - Fixed a crash that can occur on switching pools due to longpoll thread races.
  4084. - Use ATISTREAMSDKROOT if available at build time.
  4085. - Fanspeed management is returned to the driver default on exit instead of
  4086. whatever it was when cgminer was started.
  4087. - Logging of events deemed WARNING or ERR now will display even during
  4088. periods where menu input is being awaited on.
  4089. Version 2.0.2 - September 11, 2011
  4090. - Exit cleanly if we abort before various threads are set up or if they no
  4091. longer exist.
  4092. - Fix a rare crash in HASH_DEL due to using different mutexes to protect the
  4093. data.
  4094. - Flag devices that have never started and don't allow enabling of devices
  4095. without restarting them.
  4096. - Only force the adapter speed to high if we've flagged this device as being
  4097. managed.
  4098. - Flag any devices with autofan or autogpu as being managed.
  4099. - Use a re-entrant value to store what fanspeed we're trying to set in case the
  4100. card doesn't support small changes. Force it to a multiple of 10% if it
  4101. fails on trying to speed up the fan.
  4102. - Do not bother resetting values to old ones if changes to GPU parameters report
  4103. failure, instead returning a failure code only if the return value from get()
  4104. differs.
  4105. - Remove redundant check.
  4106. - Only display supported values from fanspeed on change settings.
  4107. - Missing bracket from output.
  4108. - Display fan percentage on devices that only support reporting percent and not
  4109. RPM.
  4110. - Properly substitute DLOPEN flags to build with ADL support when -ldl is needed
  4111. and not when opencl is not found.
  4112. Version 2.0.1 - September 9, 2011
  4113. - Fix building on 32bit glibc with dlopen with -lpthread and -ldl
  4114. - ByteReverse is not used and the bswap opcode breaks big endian builds. Remove
  4115. it.
  4116. - Ignore whether the display is active or not since only display enabled devices
  4117. work this way, and we skip over repeat entries anwyay.
  4118. - Only reset values on exiting if we've ever modified them.
  4119. - Flag adl as active if any card is successfully activated.
  4120. - Add a thermal cutoff option as well and set it to 95 degrees by default.
  4121. - Change the fan speed by only 5% if it's over the target temperature but less
  4122. than the hysteresis value to minimise overshoot down in temperature.
  4123. - Add a --no-adl option to disable ADL monitoring and GPU settings.
  4124. - Only show longpoll received delayed message at verbose level.
  4125. - Allow temperatures greater than 100 degrees.
  4126. - We should be passing a float for the remainder of the vddc values.
  4127. - Implement accepting a range of engine speeds as well to allow a lower limit to
  4128. be specified on the command line.
  4129. - Allow per-device fan ranges to be set and use them in auto-fan mode.
  4130. - Display which GPU has overheated in warning message.
  4131. - Allow temperature targets to be set on a per-card basis on the command line.
  4132. - Display fan range in autofan status.
  4133. - Setting the hysteresis is unlikely to be useful on the fly and doesn't belong
  4134. in the per-gpu submenu.
  4135. - With many cards, the GPU summaries can be quite long so use a terse output
  4136. line when showing them all.
  4137. - Use a terser device status line to show fan RPM as well when available.
  4138. - Define max gpudevices in one macro.
  4139. - Allow adapterid 0 cards to enumerate as a device as they will be non-AMD
  4140. cards, and enable ADL on any AMD card.
  4141. - Do away with the increasingly confusing and irrelevant total queued and
  4142. efficiency measures per device.
  4143. - Only display values in the log if they're supported and standardise device log
  4144. line printing.
  4145. Version 2.0.0 - September 6, 2011
  4146. Major feature upgrade - GPU monitoring, (over)clocking and fan control for ATI
  4147. GPUs.
  4148. New command line switches:
  4149. --auto-fan- Automatically adjust all GPU fan speeds to maintain a target
  4150. temperature
  4151. --auto-gpu- Automatically adjust all GPU engine clock speeds to maintain
  4152. a target temperature
  4153. --gpu-engine <arg> Set the GPU engine (over)clock in Mhz - one value for all or
  4154. separate by commas for per card.
  4155. --gpu-fan <arg> Set the GPU fan percentage - one value for all or separate
  4156. by commas for per card.
  4157. --gpu-memclock <arg> Set the GPU memory (over)clock in Mhz - one value for all
  4158. or separate by commas for per card.
  4159. --gpu-powertune <arg> Set the GPU powertune percentage - one value for all or
  4160. separate by commas for per card.
  4161. --gpu-vddc <arg> Set the GPU voltage in Volts - one value for all or separate
  4162. by commas for per card.
  4163. --temp-hysteresis <arg> Set how much the temperature can fluctuate outside
  4164. limits when automanaging speeds (default: 3)
  4165. --temp-overheat <arg> Set the overheat temperature when automatically managing
  4166. fan and GPU speeds (default: 85)
  4167. --temp-target <arg> Set the target temperature when automatically managing fan
  4168. and GPU speeds (default: 75)
  4169. - Implement ATI ADL support for GPU parameter monitoring now and setting later
  4170. (temp, fan, clocks etc.).
  4171. - Check for the presence of the ADL header files in ADL_SDK.
  4172. - Import adl_functions.h from amd overdrive ctrl.
  4173. - Implement a setup function that tries to detect GPUs that support the ADL and
  4174. link in the parameters into the gpus struct.
  4175. - Put a summary of monitoring information from the GPU menu.
  4176. - Implement changing memory speed and voltage on the fly.
  4177. - Implement fan speed setting.
  4178. - Minor corrections to set fan speed by percentage.
  4179. - Make sure to read off the value in RPM only.
  4180. - Implement auto fanspeed adjustment to maintain a target temperature and
  4181. fanspeed below 85%, with an overheat check that will speed the fan up to 100%.
  4182. - Add an --auto-fan command line option to allow all GPUs to have autofan
  4183. enabled from startup.
  4184. - Add a gpu autotune option which adjusts GPU speed to maintain a target
  4185. temperature within the bounds of the default GPU speed and any overclocking set.
  4186. - Avoid a dereference if the longpoll thread doesn't exist.
  4187. - Clean up by setting performance profiles and fan settings to startup levels on
  4188. exit.
  4189. - Add a small amount of hysteresis before lowering clock speed.
  4190. - Allow target, overheat and hysteresis temperatures to be set from command
  4191. line.
  4192. - Combine all stats collating into one function to avoid repeating function
  4193. calls on each variable.
  4194. - Add gpu statistics to debugging output via the watchdog thread.
  4195. - Implement menus to change temperature limits.
  4196. - Implement setting the GPU engine clock speed of all devices or each device as
  4197. a comma separated value.
  4198. - Implement setting the GPU memory clock speed of all devices or each device as
  4199. a comma separated value.
  4200. - Implement setting the GPU voltage of all devices or each device as a comma
  4201. separated value.
  4202. - Implement setting the GPU fan speed of all devices or each device as a comma
  4203. separated value.
  4204. - Add support for monitoring powertune setting.
  4205. - Implement changing of powertune value from the GPU change settings menu.
  4206. - Get the value of powertune in get_stats.
  4207. - Implement setting the GPU powertune value of all devices or each device as a
  4208. comma separated value.
  4209. - Remove the safety checks in speed setting since confirmation is done first in
  4210. the menu, then show the new current values after a short pause.
  4211. - Force the speed to high on startup and restore it to whatever the setting was
  4212. on exit.
  4213. - Add temperature to standard output where possible and use more compact output.
  4214. - Move and print at the same time in curses to avoid random trampling display
  4215. errors.
  4216. - Update the status window only from the watchdog thread, do not rewrite the top
  4217. status messages and only refresh once all the status window is complete,
  4218. clearing the window each time to avoid corruption.
  4219. - Set a safe starting fan speed if we're automanaging the speeds.
  4220. - Provide locking around all adl calls to prevent races.
  4221. - Lower profile settings cannot be higher than higher profile ones so link any
  4222. drops in settings.
  4223. - Add new needed text files to distribution.
  4224. - Queue requests ignoring the number of staged clones since they get discarded
  4225. very easily leading to false positives for pool not providing work fast enough.
  4226. - Include libgen.h in opt.c to fix win32 compilation warnings.
  4227. - Fix compilation warning on win32.
  4228. - Add the directory name from the arguments cgminer was called from as well to
  4229. allow it running from a relative pathname.
  4230. - Add a --disable-adl option to configure and only enable it if opencl support
  4231. exists.
  4232. - Retry before returning a failure to get upstream work as a failure to avoid
  4233. false positives for pool dead.
  4234. - Retry also if the decoding of work fails.
  4235. - Use the presence of X-Roll-Ntime in the header as a bool for exists unless N
  4236. is found in the response.
  4237. Version 1.6.2 - September 2, 2011
  4238. - Add --failover-only option to not leak work to backup pools when the primary
  4239. pool is lagging.
  4240. - Change recommendation to intensity 9 for dedicated miners.
  4241. - Fix the bouncing short term value by allowing it to change dynamically when
  4242. the latest value is very different from the rolling value, but damp the change
  4243. when it gets close.
  4244. - Use the curses_lock to protect the curses_active variable and test it under
  4245. lock.
  4246. - Go back to requesting work 2/3 of the way through the current scantime with
  4247. CPU mining as reports of mining threads running out of work have occurred with
  4248. only 5 seconds to retrieve work.
  4249. - Add start and stop time scheduling for regular time of day running or once off
  4250. start/stop options.
  4251. - Print summary on quit modes.
  4252. - Put some sanity checks on the times that can be input.
  4253. - Give a verbose message when no active pools are found and pause before
  4254. exiting.
  4255. - Add verbose message when a GPU fails to initialise, and disable the correct
  4256. GPU.
  4257. - Cryptopp asm32 was not correctly updated to the incremental nonce code so the
  4258. hash counter was bogus.
  4259. - Get rid of poorly executed curl check.
  4260. - If curl does not have sockopts, do not try to compile the
  4261. json_rpc_call_sockopt_cb function, making it possible to build against older
  4262. curl libraries.
  4263. - Most people expect /usr/local when an unspecified prefix is used so change to
  4264. that.
  4265. - Rename localgen occasions to getwork fail occasions since localgen is
  4266. unrelated now.
  4267. Version 1.6.1 - August 29, 2011
  4268. - Copy cgminer path, not cat it.
  4269. - Switching between redrawing windows does not fix the crash with old
  4270. libncurses, so redraw both windows, but only when the window size hasn't
  4271. changed.
  4272. - Reinstate minimum 1 extra in queue to make it extremely unlikely to ever have
  4273. 0 staged work items and any idle time.
  4274. - Return -1 if no input is detected from the menu to prevent it being
  4275. interpreted as a 0.
  4276. - Make pthread, libcurl and libcurses library checks mandatory or fail.
  4277. - Add a --disable-opencl configure option to make it possible to override
  4278. detection of opencl and build without GPU mining support.
  4279. - Confusion over the variable name for number of devices was passing a bogus
  4280. value which likely was causing the zero sized binary issue.
  4281. - cgminer no longer supports default url user and pass so remove them.
  4282. - Don't show value of intensity since it's dynamic by default.
  4283. - Add options to explicitly enable CPU mining or disable GPU mining.
  4284. - Convert the opt queue into a minimum number of work items to have queued
  4285. instead of an extra number to decrease risk of getting idle devices without
  4286. increasing risk of higher rejects.
  4287. - Statify tv_sort.
  4288. - Check for SSE2 before trying to build 32 bit SSE2 assembly version. Prevents
  4289. build failure when yasm is installed but -msse2 is not specified.
  4290. - Add some defines to configure.ac to enable exporting of values and packaging,
  4291. and clean up output.
  4292. - Give convenient summary at end of ./configure.
  4293. - Display version information and add --version command line option, and make
  4294. sure we flush stdout.
  4295. - Enable curses after the mining threads are set up so that failure messages
  4296. won't be lost in the curses interface.
  4297. - Disable curses after inputting a pool if we requested no curses interface.
  4298. - Add an option to break out after successfully mining a number of accepted
  4299. shares.
  4300. - Exit with a failed return code if we did not reach opt_shares.
  4301. - The cpu mining work data can get modified before we copy it if we submit it
  4302. async, and the sync submission is not truly sync anyway, so just submit it sync.
  4303. Version 1.6.0 - August 26, 2011
  4304. - Make restarting of GPUs optional for systems that hang on any attempt to
  4305. restart them. Fix DEAD status by comparing it to last live time rather than
  4306. last attempted restart time since that happens every minute.
  4307. - Move staged threads to hashes so we can sort them by time.
  4308. - Create a hash list of all the blocks created and search them to detect when a
  4309. new block has definitely appeared, using that information to detect stale work
  4310. and discard it.
  4311. - Update configure.ac for newer autoconf tools.
  4312. - Use the new hashes directly for counts instead of the fragile counters
  4313. currently in use.
  4314. - Update to latest sse2 code from cpuminer-ng.
  4315. - Allow LP to reset block detect and block detect lp flags to know who really
  4316. came first.
  4317. - Get start times just before mining begins to not have very slow rise in
  4318. average.
  4319. - Add message about needing one server.
  4320. - We can queue all the necessary work without hitting frequent stales now with
  4321. the time and string stale protection active all the time. This prevents a
  4322. pool being falsely labelled as not providing work fast enough.
  4323. - Include uthash.h in distro.
  4324. - Implement SSE2 32 bit assembly algorithm as well.
  4325. - Fail gracefully if unable to open the opencl files.
  4326. - Make cgminer look in the install directory for the .cl files making make
  4327. install work correctly.
  4328. - Allow a custom kernel path to be entered on the command line.
  4329. - Bump threshhold for lag up to maximum queued but no staged work.
  4330. - Remove fragile source patching for bitalign, vectors et. al and simply pass it
  4331. with the compiler options.
  4332. - Actually check the value returned for the x-roll-ntime extension to make sure
  4333. it isn't saying N.
  4334. - Prevent segfault on exit for when accessory threads don't exist.
  4335. - Disable curl debugging with opt protocol since it spews to stderr.
  4336. Version 1.5.8 - August 23, 2011
  4337. - Minimise how much more work can be given in cpu mining threads each interval.
  4338. - Make the fail-pause progressively longer each time it fails until the network
  4339. recovers.
  4340. - Only display the lagging message if we've requested the work earlier.
  4341. - Clean up the pool switching to not be dependent on whether the work can roll
  4342. or not by setting a lagging flag and then the idle flag.
  4343. - Only use one thread to determine if a GPU is sick or well, and make sure to
  4344. reset the sick restart attempt time.
  4345. - The worksize was unintentionally changed back to 4k by mistake, this caused a
  4346. slowdown.
  4347. Version 1.5.7 - August 22, 2011
  4348. - Fix a crash with --algo auto
  4349. - Test at appropriate target difficulty now.
  4350. - Add per-device statics log output with --per-device-stats
  4351. - Fix breakage that occurs when 1 or 4 vectors are chosen on new phatk.
  4352. - Make rolltime report debug level only now since we check it every work
  4353. item.
  4354. - Add the ability to enable/disable per-device stats on the fly and match
  4355. logging on/off.
  4356. - Explicitly tell the compiler to retain the program to minimise the chance of
  4357. the zero sized binary errors.
  4358. - Add one more instruction to avoid one branch point in the common path in the
  4359. cl return code. Although this adds more ALUs overall and more branch points, the
  4360. common path code has the same number of ALUs and one less jmp, jmps being more
  4361. expensive.
  4362. - Explicitly link in ws2_32 on the windows build and update README file on how
  4363. to compile successfully on windows.
  4364. - Release cl resources should the gpu mining thread abort.
  4365. - Attempt to restart a GPU once every minute while it's sick.
  4366. - Don't kill off the reinit thread if it fails to init a GPU but returns safely.
  4367. - Only declare a GPU dead if there's been no sign of activity from the reinit
  4368. thread for 10 mins.
  4369. - Never automatically disable any pools but just specify them as idle if they're
  4370. unresponsive at startup.
  4371. - Use any longpoll available, and don't disable it if switching to a server that
  4372. doesn't have it. This allows you to mine solo, yet use the longpoll from a pool
  4373. even if the pool is the backup server.
  4374. - Display which longpoll failed and don't free the ram for lp_url since it
  4375. belongs to the pool hdr path.
  4376. - Make the tcp setsockopts unique to linux in the hope it allows freebsd et. al
  4377. to compile.
  4378. Version 1.5.6 - August 17, 2011
  4379. - New phatk and poclbm kernels. Updated phatk to be in sync with latest 2.2
  4380. courtesy of phateus. Custom modified to work best with cgminer.
  4381. - Updated output buffer code to use a smaller buffer with the kernels.
  4382. - Clean up the longpoll management to ensure the right paths go to the right
  4383. pool and display whether we're connected to LP or not in the status line.
  4384. Version 1.5.5 - August 16, 2011
  4385. - Rework entirely the GPU restart code. Strike a balance between code that
  4386. re-initialises the GPU entirely so that soft hangs in the code are properly
  4387. managed, but if a GPU is completely hung, the thread restart code fails
  4388. gracefully, so that it does not take out any other code or devices. This will
  4389. allow cgminer to keep restarting GPUs that can be restarted, but continue
  4390. mining even if one or more GPUs hangs which would normally require a reboot.
  4391. - Add --submit-stale option which submits all shares, regardless of whether they
  4392. would normally be considered stale.
  4393. - Keep options in alphabetical order.
  4394. - Probe for slightly longer for when network conditions are lagging.
  4395. - Only display the CPU algo when we're CPU mining.
  4396. - As we have keepalives now, blaming network flakiness on timeouts appears to
  4397. have been wrong. Set a timeout for longpoll to 1 hour, and most other
  4398. network connectivity to 1 minute.
  4399. - Simplify output code and remove HW errors from CPU stats.
  4400. - Simplify code and tidy output.
  4401. - Only show cpu algo in summary if cpu mining.
  4402. - Log summary at the end as per any other output.
  4403. - Flush output.
  4404. - Add a linux-usb-cgminer guide courtesy of Kano.
  4405. Version 1.5.4 - August 14, 2011
  4406. - Add new option: --monitor <cmd> Option lets user specify a command <cmd> that
  4407. will get forked by cgminer on startup. cgminer's stderr output subsequently gets
  4408. piped directly to this command.
  4409. - Allocate work from one function to be able to initialise variables added
  4410. later.
  4411. - Add missing fflush(stdout) for --ndevs and conclusion summary.
  4412. - Preinitialise the devices only once on startup.
  4413. - Move the non cl_ variables into the cgpu info struct to allow creating a new
  4414. cl state on reinit, preserving known GPU variables.
  4415. - Create a new context from scratch in initCQ in case something was corrupted to
  4416. maximise our chance of succesfully creating a new worker thread. Hopefully this
  4417. makes thread restart on GPU failure more reliable, without hanging everything
  4418. in the case of a completely wedged GPU.
  4419. - Display last initialised time in gpu management info, to know if a GPU has
  4420. been re-initialised.
  4421. - When pinging a sick cpu, flush finish and then ping it in a separate thread in
  4422. the hope it recovers without needing a restart, but without blocking code
  4423. elsewhere.
  4424. - Only consider a pool lagging if we actually need the work and we have none
  4425. staged despite queue requests stacking up. This decreases significantly the
  4426. amount of work that leaks to the backup pools.
  4427. - The can_roll function fails inappropriately in stale_work.
  4428. - Only put the message that a pool is down if not pinging it every minute. This
  4429. prevents cgminer from saying pool down at 1 minute intervals unless in debug
  4430. mode.
  4431. - Free all work in one place allowing us to perform actions on it in the future.
  4432. - Remove the extra shift in the output code which was of dubious benefit. In
  4433. fact in cgminer's implementation, removing this caused a miniscule speedup.
  4434. - Test each work item to see if it can be rolled instead of per-pool and roll
  4435. whenever possible, adhering to the 60 second timeout. This makes the period
  4436. after a longpoll have smaller dips in throughput, as well as requiring less
  4437. getworks overall thus increasing efficiency.
  4438. - Stick to rolling only work from the current pool unless we're in load balance
  4439. mode or lagging to avoid aggressive rolling imitating load balancing.
  4440. - If a work item has had any mining done on it, don't consider it discarded
  4441. work.
  4442. Version 1.5.3 - July 30, 2011
  4443. - Significant work went into attempting to make the thread restart code robust
  4444. to identify sick threads, tag them SICK after 1 minute, then DEAD after 5
  4445. minutes of inactivity and try to restart them. Instead of re-initialising the
  4446. GPU completely, only a new cl context is created to avoid hanging the rest of
  4447. the GPUs should the dead GPU be hung irrevocably.
  4448. - Use correct application name in syslog.
  4449. - Get rid of extra line feeds.
  4450. - Use pkg-config to check for libcurl version
  4451. - Implement per-thread getwork count with proper accounting to not over-account
  4452. queued items when local work replaces it.
  4453. - Create a command queue from the program created from source which allows us
  4454. to flush the command queue in the hope it will not generate a zero sized binary
  4455. any more.
  4456. - Be more willing to get work from the backup pools if the work is simply being
  4457. queued faster than it is being retrieved.
  4458. Version 1.5.2 - July 28, 2011
  4459. - Restarting a hung GPU can hang the rest of the GPUs so just declare it dead
  4460. and provide the information in the status.
  4461. - The work length in the miner thread gets smaller but doesn't get bigger if
  4462. it's under 1 second. This could end up leading to CPU under-utilisation and
  4463. lower and lower hash rates. Fix it by increasing work length if it drops
  4464. under 1 second.
  4465. - Make the "quiet" mode still update the status and display errors, and add a
  4466. new --real-quiet option which disables all output and can be set once while
  4467. running.
  4468. - Update utility and efficiency figures when displaying them.
  4469. - Some Intel HD graphics support the opencl commands but return errors since
  4470. they don't support opencl. Don't fail with them, just provide a warning and
  4471. disable GPU mining.
  4472. - Add http:// if it's not explicitly set for URL entries.
  4473. - Log to the output file at any time with warnings and errors, instead of just
  4474. when verbose mode is on.
  4475. - Display the correct current hash as per blockexplorer, truncated to 16
  4476. characters, with just the time.
  4477. Version 1.5.1 - July 27, 2011
  4478. - Two redraws in a row cause a crash in old libncurses so just do one redraw
  4479. using the main window.
  4480. - Don't adjust hash_div only up for GPUs. Disable hash_div adjustment for GPUs.
  4481. - Only free the thread structures if the thread still exists.
  4482. - Update both windows separately, but not at the same time to prevent the double
  4483. refresh crash that old libncurses has. Do the window resize check only when
  4484. about to redraw the log window to minimise ncurses cpu usage.
  4485. - Abstract out the decay time function and use it to make hash_div a rolling
  4486. average so it doesn't change too abruptly and divide work in chunks large enough
  4487. to guarantee they won't overlap.
  4488. - Sanity check to prove locking.
  4489. - Don't take more than one lock at a time.
  4490. - Make threads report out when they're queueing a request and report if they've
  4491. failed.
  4492. - Make cpu mining work submission asynchronous as well.
  4493. - Properly detect stale work based on time from staging and discard instead of
  4494. handing on, but be more lax about how long work can be divided for up to the
  4495. scantime.
  4496. - Do away with queueing work separately at the start and let each thread grab
  4497. its own work as soon as it's ready.
  4498. - Don't put an extra work item in the queue as each new device thread will do so
  4499. itself.
  4500. - Make sure to decrease queued count if we discard the work.
  4501. - Attribute split work as local work generation.
  4502. - If work has been cloned it is already at the head of the list and when being
  4503. reinserted into the queue it should be placed back at the head of the list.
  4504. - Dividing work is like the work is never removed at all so treat it as such.
  4505. However the queued bool needs to be reset to ensure we *can* request more work
  4506. even if we didn't initially.
  4507. - Make the display options clearer.
  4508. - Add debugging output to tq_push calls.
  4509. - Add debugging output to all tq_pop calls.
  4510. Version 1.5.0 - July 26, 2011
  4511. - Increase efficiency of slow mining threads such as CPU miners dramatically. Do
  4512. this by detecting which threads cannot complete searching a work item within the
  4513. scantime and then divide up a work item into multiple smaller work items.
  4514. Detect the age of the work items and if they've been cloned before to prevent
  4515. doing the same work over. If the work is too old to be divided, then see if it
  4516. can be time rolled and do that to generate work. This dramatically decreases the
  4517. number of queued work items from a pool leading to higher overall efficiency
  4518. (but the same hashrate and share submission rate).
  4519. - Don't request work too early for CPUs as CPUs will scan for the full
  4520. opt_scantime anyway.
  4521. - Simplify gpu management enable/disable/restart code.
  4522. - Implement much more accurate rolling statistics per thread and per gpu and
  4523. improve accuracy of rolling displayed values.
  4524. - Make the rolling log-second average more accurate.
  4525. - Add a menu to manage GPUs on the fly allowing you to enable/disable GPUs or
  4526. try restarting them.
  4527. - Keep track of which GPUs are alive versus enabled.
  4528. - Start threads for devices that are even disabled, but don't allow them to
  4529. start working.
  4530. - The last pool is when we are low in total_pools, not active_pools.
  4531. - Make the thread restart do a pthread_join after disabling the device, only
  4532. re-enabling it if we succeed in restarting the thread. Do this from a separate
  4533. thread so as to not block any other code.This will allow cgminer to continue
  4534. even if one GPU hangs.
  4535. - Try to do every curses manipulation under the curses lock.
  4536. - Only use the sockoptfunction if the version of curl is recent enough.
  4537. Version 1.4.1 - July 24, 2011
  4538. - Do away with GET for dealing with longpoll forever. POST is the one that works
  4539. everywhere, not the other way around.
  4540. - Detect when the primary pool is lagging and start queueing requests on backup
  4541. pools if possible before needing to roll work.
  4542. - Load balancing puts more into the current pool if there are disabled pools.
  4543. Fix.
  4544. - Disable a GPU device should the thread fail to init.
  4545. - Out of order command queue may fail on osx. Try without if it fails.
  4546. - Fix possible dereference on blank inputs during input_pool.
  4547. - Defines missing would segfault on --help when no sse mining is built in.
  4548. - Revert "Free up resources/stale compilers." - didn't help.
  4549. - Only try to print the status of active devices or it would crash.
  4550. - Some hardware might benefit from the less OPS so there's no harm in leaving
  4551. kernel changes that do that apart from readability of the code.
  4552. Version 1.4.0 - July 23, 2011
  4553. - Feature upgrade: Add keyboard input during runtime to allow modification of
  4554. and viewing of numerous settings such as adding/removing pools, changing
  4555. multipool management strategy, switching pools, changing intensiy, verbosity,
  4556. etc. with a simple keypress menu system.
  4557. - Free up resources/stale compilers.
  4558. - Kernels are safely flushed in a way that allows out of order execution to
  4559. work.
  4560. - Sometimes the cl compiler generates zero sized binaries and only a reboot
  4561. seems to fix it.
  4562. - Don't try to stop/cancel threads that don't exist.
  4563. - Only set option to show devices and exit if built with opencl support.
  4564. - Enable curses earlier and exit with message in main for messages to not be
  4565. lost in curses windows.
  4566. - Make it possible to enter server credentials with curses input if none are
  4567. specified on the command line.
  4568. - Abstract out a curses input function and separate input pool function to allow
  4569. for live adding of pools later.
  4570. - Remove the nil arguments check to allow starting without parameters.
  4571. - Disable/enable echo & cbreak modes.
  4572. - Add a thread that takes keyboard input and allow for quit, silent, debug,
  4573. verbose, normal, rpc protocol debugging and clear screen options.
  4574. - Add pool option to input and display current pool status, pending code to
  4575. allow live changes.
  4576. - Add a bool for explicit enabling/disabling of pools.
  4577. - Make input pool capable of bringing up pools while running.
  4578. - Do one last check of the work before submitting it.
  4579. - Implement the ability to live add, enable, disable, and switch to pools.
  4580. - Only internally test for block changes when the work matches the current pool
  4581. to prevent interleaved block change timing on multipools.
  4582. - Display current pool management strategy to enable changing it on the fly.
  4583. - The longpoll blanking of the current_block data may not be happening before
  4584. the work is converted and appears to be a detected block change. Blank the
  4585. current block be
  4586. - Make --no-longpoll work again.
  4587. - Abstract out active pools count.
  4588. - Allow the pool strategy to be modified on the fly.
  4589. - Display pool information on the fly as well.
  4590. - Add a menu and separate out display options.
  4591. - Clean up the messy way the staging thread communicates with the longpoll
  4592. thread to determine who found the block first.
  4593. - Make the input windows update immediately instead of needing a refresh.
  4594. - Allow log interval to be set in the menu.
  4595. - Allow scan settings to be modified at runtime.
  4596. - Abstract out the longpoll start and explicitly restart it on pool change.
  4597. - Make it possible to enable/disable longpoll.
  4598. - Set priority correctly on multipools. Display priority and alive/dead
  4599. information in display_pools.
  4600. - Implement pool removal.
  4601. - Limit rolltime work generation to 10 iterations only.
  4602. - Decrease testing log to info level.
  4603. - Extra refresh not required.
  4604. - With huge variation in GPU performance, allow intensity to go from -10 to +10.
  4605. - Tell getwork how much of a work item we're likely to complete for future
  4606. splitting up of work.
  4607. - Remove the mandatory work requirement at startup by testing for invalid work
  4608. being passed which allows for work to be queued immediately. This also
  4609. removes the requirem
  4610. - Make sure intensity is carried over to thread count and is at least the
  4611. minimum necessary to work.
  4612. - Unlocking error on retry. Locking unnecessary anyway so remove it.
  4613. - Clear log window from consistent place. No need for locking since logging is
  4614. disabled during input.
  4615. - Cannot print the status of threads that don't exist so just queue enough work
  4616. for the number of mining threads to prevent crash with -Q N.
  4617. - Update phatk kernel to one with new parameters for slightly less overhead
  4618. again. Make the queue kernel parameters call a function pointer to select
  4619. phatk or poclbm.
  4620. - Make it possible to select the choice of kernel on the command line.
  4621. - Simplify the output part of the kernel. There's no demonstrable advantage from
  4622. more complexity.
  4623. - Merge pull request #18 from ycros/cgminer
  4624. - No need to make leaveok changes win32 only.
  4625. - Build support in for all SSE if possible and only set the default according to
  4626. machine capabilities.
  4627. - Win32 threading and longpoll keepalive fixes.
  4628. - Win32: Fix for mangled output on the terminal on exit.
  4629. Version 1.3.1 - July 20, 2011
  4630. - Feature upgrade; Multiple strategies for failover. Choose from default which
  4631. now falls back to a priority order from 1st to last, round robin which only
  4632. changes pools when one is idle, rotate which changes pools at user-defined
  4633. intervals, and load-balance which spreads the work evenly amongst all pools.
  4634. - Implement pool rotation strategy.
  4635. - Implement load balancing algorithm by rotating requests to each pool.
  4636. - Timeout on failed discarding of staged requests.
  4637. - Implement proper flagging of idle pools, test them with the watchdog thread,
  4638. and failover correctly.
  4639. - Move pool active test to own function.
  4640. - Allow multiple strategies to be set for multipool management.
  4641. - Track pool number.
  4642. - Don't waste the work items queued on testing the pools at startup.
  4643. - Reinstate the mining thread watchdog restart.
  4644. - Add a getpoll bool into the thread information and don't restart threads stuck
  4645. waiting on work.
  4646. - Rename the idlenet bool for the pool for later use.
  4647. - Allow the user/pass userpass urls to be input in any order.
  4648. - When json rpc errors occur they occur in spits and starts, so trying to limit
  4649. them with the comms error bool doesn't stop a flood of them appearing.
  4650. - Reset the queued count to allow more work to be queued for the new pool on
  4651. pool switch.
  4652. Version 1.3.0 - July 19, 2011
  4653. - Massive infrastructure update to support pool failover.
  4654. - Accept multiple parameters for url, user and pass and set up structures of
  4655. pool data accordingly.
  4656. - Probe each pool for what it supports.
  4657. - Implement per pool feature support according to rolltime support as
  4658. advertised by server.
  4659. - Do switching automatically based on a 300 second timeout of locally generated
  4660. work or 60 seconds of no response from a server that doesn't support rolltime.
  4661. - Implement longpoll server switching.
  4662. - Keep per-pool data and display accordingly.
  4663. - Make sure cgminer knows how long the pool has actually been out for before
  4664. deeming it a prolonged outage.
  4665. - Fix bug with ever increasing staged work in 1.2.8 that eventually caused
  4666. infinite rejects.
  4667. - Make warning about empty http requests not show by default since many
  4668. servers do this regularly.
  4669. Version 1.2.8 - July 18, 2011
  4670. - More OSX build fixes.
  4671. - Add an sse4 algorithm to CPU mining.
  4672. - Fix CPU mining with other algorithms not working.
  4673. - Rename the poclbm file to ensure a new binary is built since.
  4674. - We now are guaranteed to have one fresh work item after a block change and we
  4675. should only discard staged requests.
  4676. - Don't waste the work we retrieve from a longpoll.
  4677. - Provide a control lock around global bools to avoid racing on them.
  4678. - Iterating over 1026 nonces when confirming data from the GPU is old code
  4679. and unnecessary and can lead to repeats/stales.
  4680. - The poclbm kernel needs to be updated to work with the change to 4k sized
  4681. output buffers.
  4682. - longpoll seems to work either way with post or get but some servers prefer
  4683. get so change to httpget.
  4684. Version 1.2.7 - July 16, 2011
  4685. - Show last 8 characters of share submitted in log.
  4686. - Display URL connected to and user logged in as in status.
  4687. - Display current block and when it was started in the status line.
  4688. - Only pthread_join the mining threads if they exist as determined by
  4689. pthread_cancel and don't fail on pthread_cancel.
  4690. - Create a unique work queue for all getworks instead of binding it to thread 0
  4691. to avoid any conflict over thread 0's queue.
  4692. - Clean up the code to make it clear it's watchdog thread being messaged to
  4693. restart the threads.
  4694. - Check the current block description hasn't been blanked pending the real
  4695. new current block data.
  4696. - Re-enable signal handlers once the signal has been received to make it
  4697. possible to kill cgminer if it fails to shut down.
  4698. - Disable restarting of CPU mining threads pending further investigation.
  4699. - Update longpoll messages.
  4700. - Add new block data to status line.
  4701. - Fix opencl tests for osx.
  4702. - Only do local generation of work if the work item is not stale itself.
  4703. - Check for stale work within the mining threads and grab new work if
  4704. positive.
  4705. - Test for idle network conditions and prevent threads from being restarted
  4706. by the watchdog thread under those circumstances.
  4707. - Make sure that local work generation does not continue indefinitely by
  4708. stopping it after 10 minutes.
  4709. - Tweak the kernel to have a shorter path using a 4k buffer and a mask on the
  4710. nonce value instead of a compare and loop for a shorter code path.
  4711. - Allow queue of zero and make that default again now that we can track how
  4712. work is being queued versus staged. This can decrease reject rates.
  4713. - Queue precisely the number of mining threads as longpoll_staged after a
  4714. new block to not generate local work.
  4715. Version 1.2.6 - July 15, 2011
  4716. - Put a current system status line beneath the total work status line
  4717. - Fix a counting error that would prevent cgminer from correctly detecting
  4718. situations where getwork was failing - this would cause stalls sometimes
  4719. unrecoverably.
  4720. - Limit the maximum number of requests that can be put into the queue which
  4721. otherwise could get arbitrarily long during a network outage.
  4722. - Only count getworks that are real queue requests.
  4723. Version 1.2.5 - July 15, 2011
  4724. - Conflicting -n options corrected
  4725. - Setting an intensity with -I disables dynamic intensity setting
  4726. - Removed option to manually disable dynamic intensity
  4727. - Improve display output
  4728. - Implement signal handler and attempt to clean up properly on exit
  4729. - Only restart threads that are not stuck waiting on mandatory getworks
  4730. - Compatibility changes courtesy of Ycros to build on mingw32 and osx
  4731. - Explicitly grab first work item to prevent false positive hardware errors
  4732. due to working on uninitialised work structs
  4733. - Add option for non curses --text-only output
  4734. - Ensure we connect at least once successfully before continuing to retry to
  4735. connect in case url/login parameters were wrong
  4736. - Print an executive summary when cgminer is terminated
  4737. - Make sure to refresh the status window
  4738. Versions -> 1.2.4
  4739. - Con Kolivas - July 2011. New maintainership of code under cgminer name.
  4740. - Massive rewrite to incorporate GPU mining.
  4741. - Incorporate original oclminer c code.
  4742. - Rewrite gpu mining code to efficient work loops.
  4743. - Implement per-card detection and settings.
  4744. - Implement vector code.
  4745. - Implement bfi int patching.
  4746. - Import poclbm and phatk ocl kernels and use according to hardware type.
  4747. - Implement customised optimised versions of opencl kernels.
  4748. - Implement binary kernel generation and loading.
  4749. - Implement preemptive asynchronous threaded work gathering and pushing.
  4750. - Implement variable length extra work queues.
  4751. - Optimise workloads to be efficient miners instead of getting lots of extra
  4752. work.
  4753. - Implement total hash throughput counters, per-card accepted, rejected and
  4754. hw error count.
  4755. - Staging and watchdog threads to prevent fallover.
  4756. - Stale and reject share guarding.
  4757. - Autodetection of new blocks without longpoll.
  4758. - Dynamic setting of intensity to maintain desktop interactivity.
  4759. - Curses interface with generous statistics and information.
  4760. - Local generation of work (xroll ntime) when detecting poor network
  4761. connectivity.
  4762. Version 1.0.2
  4763. - Linux x86_64 optimisations - Con Kolivas
  4764. - Optimise for x86_64 by default by using sse2_64 algo
  4765. - Detects CPUs and sets number of threads accordingly
  4766. - Uses CPU affinity for each thread where appropriate
  4767. - Sets scheduling policy to lowest possible
  4768. - Minor performance tweaks
  4769. Version 1.0.1 - May 14, 2011
  4770. - OSX support
  4771. Version 1.0 - May 9, 2011
  4772. - jansson 2.0 compatibility
  4773. - correct off-by-one in date (month) display output
  4774. - fix platform detection
  4775. - improve yasm configure bits
  4776. - support full URL, in X-Long-Polling header
  4777. Version 0.8.1 - March 22, 2011
  4778. - Make --user, --pass actually work
  4779. - Add User-Agent HTTP header to requests, so that server operators may
  4780. more easily identify the miner client.
  4781. - Fix minor bug in example JSON config file
  4782. Version 0.8 - March 21, 2011
  4783. - Support long polling: http://deepbit.net/longpolling.php
  4784. - Adjust max workload based on scantime (default 5 seconds,
  4785. or 60 seconds for longpoll)
  4786. - Standardize program output, and support syslog on Unix platforms
  4787. - Suport --user/--pass options (and "user" and "pass" in config file),
  4788. as an alternative to the current --userpass
  4789. Version 0.7.2 - March 14, 2011
  4790. - Add port of ufasoft's sse2 assembly implementation (Linux only)
  4791. This is a substantial speed improvement on Intel CPUs.
  4792. - Move all JSON-RPC I/O to separate thread. This reduces the
  4793. number of HTTP connections from one-per-thread to one, reducing resource
  4794. usage on upstream bitcoind / pool server.
  4795. Version 0.7.1 - March 2, 2011
  4796. - Add support for JSON-format configuration file. See example
  4797. file example-cfg.json. Any long argument on the command line
  4798. may be stored in the config file.
  4799. - Timestamp each solution found
  4800. - Improve sha256_4way performance. NOTE: This optimization makes
  4801. the 'hash' debug-print output for sha256_way incorrect.
  4802. - Use __builtin_expect() intrinsic as compiler micro-optimization
  4803. - Build on Intel compiler
  4804. - HTTP library now follows HTTP redirects
  4805. Version 0.7 - February 12, 2011
  4806. - Re-use CURL object, thereby reuseing DNS cache and HTTP connections
  4807. - Use bswap_32, if compiler intrinsic is not available
  4808. - Disable full target validation (as opposed to simply H==0) for now
  4809. Version 0.6.1 - February 4, 2011
  4810. - Fully validate "hash < target", rather than simply stopping our scan
  4811. if the high 32 bits are 00000000.
  4812. - Add --retry-pause, to set length of pause time between failure retries
  4813. - Display proof-of-work hash and target, if -D (debug mode) enabled
  4814. - Fix max-nonce auto-adjustment to actually work. This means if your
  4815. scan takes longer than 5 seconds (--scantime), the miner will slowly
  4816. reduce the number of hashes you work on, before fetching a new work unit.
  4817. Version 0.6 - January 29, 2011
  4818. - Fetch new work unit, if scanhash takes longer than 5 seconds (--scantime)
  4819. - BeeCee1's sha256 4way optimizations
  4820. - lfm's byte swap optimization (improves via, cryptopp)
  4821. - Fix non-working short options -q, -r
  4822. Version 0.5 - December 28, 2010
  4823. - Exit program, when all threads have exited
  4824. - Improve JSON-RPC failure diagnostics and resilience
  4825. - Add --quiet option, to disable hashmeter output.
  4826. Version 0.3.3 - December 27, 2010
  4827. - Critical fix for sha256_cryptopp 'cryptopp_asm' algo
  4828. Version 0.3.2 - December 23, 2010
  4829. - Critical fix for sha256_via
  4830. Version 0.3.1 - December 19, 2010
  4831. - Critical fix for sha256_via
  4832. - Retry JSON-RPC failures (see --retry, under "minerd --help" output)
  4833. Version 0.3 - December 18, 2010
  4834. - Add crypto++ 32bit assembly implementation
  4835. - show version upon 'minerd --help'
  4836. - work around gcc 4.5.x bug that killed 4way performance
  4837. Version 0.2.2 - December 6, 2010
  4838. - VIA padlock implementation works now
  4839. - Minor build and runtime fixes
  4840. Version 0.2.1 - November 29, 2010
  4841. - avoid buffer overflow when submitting solutions
  4842. - add Crypto++ sha256 implementation (C only, ASM elided for now)
  4843. - minor internal optimizations and cleanups
  4844. Version 0.2 - November 27, 2010
  4845. - Add script for building a Windows installer
  4846. - improve hash performance (hashmeter) statistics
  4847. - add tcatm 4way sha256 implementation
  4848. - Add experimental VIA Padlock sha256 implementation
  4849. Version 0.1.2 - November 26, 2010
  4850. - many small cleanups and micro-optimizations
  4851. - build win32 exe using mingw
  4852. - RPC URL, username/password become command line arguments
  4853. - remove unused OpenSSL dependency
  4854. Version 0.1.1 - November 24, 2010
  4855. - Do not build sha256_generic module separately from cpuminer.
  4856. Version 0.1 - November 24, 2010
  4857. - Initial release.