NEWS 134 KB

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