NEWS 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457
  1. Version 2.3.1 - February 24, 2012
  2. - Revert input and output code on diakgcn and phatk kernels to old style which
  3. worked better for older hardware and SDKs.
  4. - Add a vector*worksize parameter passed to those kernels to avoid one op.
  5. - Increase the speed of hashrate adaptation.
  6. - Only send out extra longpoll requests if we want longpolls.
  7. - API implement addpool command
  8. - API return the untouched Total MH also (API now version 1.3)
  9. - Add enable/disablepool to miner.php example and reduce font size 1pt
  10. Version 2.3.0 - February 23, 2012
  11. - Consider extra longpoll work items as staged_extra so as to make sure we queue
  12. more work if queueing regular work items as longpolls.
  13. - Use diablo kernel on all future SDKs for Tahiti and set preferred vector width
  14. to 1 on poclbm kernel only.
  15. - Explicitly type the constants in diakgcn kernel as uint, to be in line with
  16. poclbm kernel.
  17. - Reset all hash counters at the same time as resetting start times to get
  18. accurate hashrates on exiting which is mandatory for benchmarking.
  19. - Report thread out before it starts to avoid being flagged as sick when waiting
  20. for the first work item.
  21. - Don't disable and re-enable devices as they may recover and in the meantime
  22. have their status set to OFF.
  23. - API new commands enablepool and disablepool (version already incremented)
  24. - Tolerate new-format temperature readings for bitforce
  25. - Modify cgminer.c pool control to allow API to call it
  26. - Bugfix: Fix BitFORCE driver memory leak in debug logging
  27. - Extra byte was being unused in poclbm leading to failure on some platforms.
  28. - Explicitly type the constants in poclbm kernel as uint.
  29. - Don't save 'include' when saving the configuration
  30. - Allow configuration file to include another recursively
  31. - Use the SDK and hardware information to choose good performing default
  32. kernels.
  33. - Move phatk kernel to offset vector based nonce bases as well.
  34. - Add a --benchmark feature which works on a fake item indefinitely to compare
  35. device performance without any server or networking influence.
  36. - Allow writing of multiple worksizes to the configuration file.
  37. - Allow writing of multiple vector sizes to the configuration file.
  38. - Allow writing of multiple kernels to the configuration file.
  39. - Allow multiple different kernels to be chosen per device.
  40. - Allow the worksize to be set per-device.
  41. - Allow different vectors to be set per device.
  42. - If we're well below the target temperature, increase gpu engine speed back to
  43. maximum in case we have gotten lost between profiles during an idle period.
  44. - We should be setting the value of fan_optimal, not its address.
  45. - As all kernels will be new versions it's an opportunity to change the .bin
  46. format and make it simpler. Specifying bitalign is redundant and long can be l.
  47. - Use any() in kernel output code.
  48. - Put the nonce for each vector offset in advance, avoiding one extra addition
  49. in the kernel.
  50. - Reset times after all mining threads are started to make estimating hashrates
  51. easier at startup.
  52. - Bugfix: allow no-exec (NX) stack
  53. - Fix minor warning.
  54. - fix the bitforce.c code style follow 1TBS
  55. - fix icarus.c compile warning
  56. - small changes to speedup no vec for AMD 898.1 OCL runtime
  57. - Update licensing to GPL V3.
  58. - Reset the longpoll flag after it's been used once to prevent it restarting
  59. work again.
  60. - Begin import of DiabloMiner kernel.
  61. - Modify API debug messages to say API instead of DBG
  62. - When API shuts down cgminer don't kill itself
  63. - Don't make rolled work from the longpoll be seen as other longpoll work items.
  64. - API add 'privileged' command so can verify access level
  65. - Set the lp_sent variable under lock since there will almost always be a race
  66. on setting this variable, potentially leading to multiple LPs being sent out.
  67. - API restrict access to all non display commands by default
  68. - Update API version to 1.2 for new 'Log Interval'
  69. - API add --log Interval to 'config' reply
  70. - --api-allow special case 0/0 means all
  71. Version 2.2.7 - February 20, 2012
  72. - Send out extra longpolls when we have switched pools and the longpoll thread
  73. is still bound to the old one. This is particularly useful with p2pool where
  74. longpolls do not correlate with main bitcoin block change and would have led to
  75. high reject rates on failover.
  76. - Store whether a work item is the result of a longpoll or not in struct work
  77. and use it to help determine block changes directly from the work longpoll bool.
  78. - Keep track of when a longpoll has been sent for a pool and if the current pool
  79. is requesting work but has not sent a longpoll request, convert one of the work
  80. items to a longpoll.
  81. - Store the longpoll url in the pool struct and update it from the pool_active
  82. test in case it changes. This is to allow further changes to longpoll management
  83. on switching pools.
  84. - Re-check for a longpoll supporting pool every 30 seconds if none is found
  85. initially.
  86. - Report threads as busy waiting on getwork on startup to avoid them being
  87. flagged sick on startup during slow networking.
  88. - Allow devices that are disabled due to overheating to be flagged as recovering
  89. instead of disabling them and re-enable them if they're below ideal temperatures
  90. - Tahiti prefers worksize 64 with poclbm.
  91. - No need to expressly retain the opencl program now that the zero binary issue
  92. is fixed. This actually fixes cgminer to work with the latest SDK included with
  93. the ATI catalyst driver 12.2.
  94. - Show error code on any opencl failure status.
  95. - Add detection for version 898.1 SDK as well but only give SDK 2.6 warning once
  96. on startup instead of with each device initialisation.
  97. - Always use a fresh connection for longpoll as prolonged persistent connections
  98. can fail for many reasons.
  99. - Keep track of intended engine clock speed and only adjust up if it's higher
  100. than the last intended speed. This avoids setting the clock speed to one
  101. relative to a lower profile one by mistake.
  102. - Use gpu-memdiff on startup if an engine clockspeed is set and a memdiff value
  103. is set.
  104. - Revert "Adjust engine speed up according to performance level engine setting,
  105. not the current engine speed." - ineffectual.
  106. - Freeze the queues on all threads that are sent the pause message to prevent
  107. them trying to start up again with saved pings in their queues.
  108. - Updates to diakgcn kernel/
  109. - Consolidate all screen updates to the watchdog thread and touch both windows
  110. before refresh.
  111. - Curses will be disabled in clean_up so don't do it early in kill_work, and
  112. disable_adl so that GPU settings may be restored to normal in case shutting down
  113. curses leads to instability on windows.
  114. - Stop the mining threads before trying to kill them.
  115. - Plain refresh() does not give reliably screen updates so get rid of all uses
  116. of it.
  117. - First release with working diakgcn kernel.
  118. Version 2.2.6 - February 16, 2012
  119. - Provide warning on each startup about sdk 2.6
  120. - Fix unused warnings on win32.
  121. - bitforce: Simplify BFopen WIN32 ifdef/else
  122. - Fix initialization warning with jansson 1.3
  123. - bitforce: Cleanup extraneous TODO that isn't needed
  124. - Move tcsetattr (and new tcflush) into *nix BFopen to simplify things a bit
  125. - Add message explaining 2nd thread disabling for dynamic mode and how to tune
  126. it.
  127. - Move logwindow down once number of devices is known.
  128. - Automatically choose phatk kernel for bitalign non-gcn ATI cards, and then
  129. only select poclbm if SDK2.6 is detected.
  130. - Allow the refresh interval to be adjusted in dynamic intensity with a
  131. --gpu-dyninterval parameter.
  132. - Make curses display visible right from the beginning and fix the window sizes
  133. so the initial messages don't get lost once the status window is drawn.
  134. - The amount of work scanned can fluctuate when intensity changes and since we
  135. do this one cycle behind, we increment the work more than enough to prevent
  136. repeati
  137. - bitforce: Set a 30 second timeout for serial port on Windows, since the
  138. default is undefined
  139. - Use PreVal4addT1 instead of PreVal4 in poclbm kernel.
  140. - Import PreVal4 and PreVal0 into poclbm kernel.
  141. - Import more prepared constants into poclbm kernel.
  142. - Keep variables in one array but use Vals[] name for consistency with other
  143. kernel designs.
  144. - Replace constants that are mandatorily added in poclbm kernel with one value.
  145. - Remove addition of final constant before testing for result in poclbm kernel.
  146. - Hand optimise variable addition order.
  147. - Hand optimise first variable declaration order in poclbm kernel.
  148. - Radical reordering machine based first pass to change variables as late as
  149. possible, bringing their usage close together.
  150. - fix strcpy NULL pointer if env HOME unset.
  151. - bitforce: Disable automatic scanning when at least one device is specified
  152. manually
  153. - Unroll all poclbm additions to enable further optimisations.
  154. Version 2.2.5 - February 13, 2012
  155. - Make output buffer write only as per Diapolo's suggestion.
  156. - Constify nonce in poclbm.
  157. - Use local and group id on poclbm kernel as well.
  158. - Microoptimise phatk kernel on return code.
  159. - Adjust engine speed up according to performance level engine setting, not the
  160. current engine speed.
  161. - Try to load a binary if we've defaulted to the poclbm kernel on SDK2.6
  162. - Use the poclbm kernel on SDK2.6 with bitalign devices only if there is no
  163. binary available.
  164. - Further generic microoptimisations to poclbm kernel.
  165. - The longstanding generation of a zero sized binary appears to be due to the
  166. OpenCL library putting the binary in a RANDOM SLOT amongst 4 possible binary
  167. locations. Iterate over each of them after building from source till the real
  168. binary is found and use that.
  169. - Fix harmless warnings with -Wsign-compare to allow cgminer to build with -W.
  170. - Fix missing field initialisers warnings.
  171. - Put win32 equivalents of nanosleep and sleep into compat.h fixing sleep() for
  172. adl.c.
  173. - Restore compatibility with Jansson 1.3 and 2.0 (api.c required 2.1)
  174. - Modularized logging, support for priority based logging
  175. - Move CPU chipset specific optimization into device-cpu
  176. Version 2.2.4 - February 11, 2012
  177. - Fix double definition of A0 B0 to zeroA zeroB.
  178. - Retain cl program after successfully loading a binary image. May decrease
  179. failures to build kernels at startup.
  180. - Variable unused after this so remove setting it.
  181. - BFI INT patching is not necessarily true on binary loading of files and not
  182. true on ATI SDK2.6+. Report bitalign instead.
  183. - Various string fixes for reject reason.
  184. - Generalize --temp-cutoff and implement support for reading temperature from
  185. BitFORCE FPGAs
  186. - Change message from recovered to alive since it is used on startup as well as
  187. when a pool has recovered.
  188. - Start mining as soon as any pool is found active and rely on the watchpool
  189. thread to bring up other pools.
  190. - Delayed responses from testing pools that are down can hold up the watchdog
  191. thread from getting to its device testing code, leading to false detection of
  192. the GPU not checking in, and can substantially delay auto gpu/auto fan
  193. management leading to overheating. Move pool watching to its own thread.
  194. - Bugfix: BitFORCE index needs to be static to count correctly
  195. - Space out retrieval of extra work according to the number of mining threads.
  196. - Make shutdown more robust. Enable the input thread only after the other
  197. threads exist. Don't kill off the workio thread and use it to exit main() only
  198. if there is an unexpected problem. Use kill_work() for all anticipated shutdowns
  199. where possible. Remove unused thread entry.
  200. - Change poclbm version number.
  201. - One array is faster than 2 separate arrays so change to that in poclbm kernel.
  202. - Microoptimisations to poclbm kernel which increase throughput slightly.
  203. - Import diablominer kernel. Currently disabled as not working.
  204. - Import diapolo kernel. Currently disabled as not working.
  205. - Conflicting entries of cl_kernel may have been causing problems, and
  206. automatically chosen kernel type was not being passed on. Rename the enum to
  207. cl_kernels and store the chosen kernel in each clState.
  208. - Set cl_amd_media_ops with the BITALIGN flag and allow non-bitselect devices to
  209. build.
  210. - ALlow much longer filenames for kernels to load properly.
  211. - Allow different kernels to be used by different devices and fix the logic fail
  212. of overcorrecting on last commit with !strstr.
  213. - Fix kernel selection process and build error.
  214. - queue_phatk_kernel now uses CL_SET_VARG() for base-nonce(s), too
  215. - added OpenCL >= 1.1 detection code, in preparation of OpenCL 1.1 global offset
  216. parameter support
  217. - Use K array explicitly to make it clear what is being added.
  218. - Work items have a tendency to expire at exactly the same time and we don't
  219. queue extra items when there are plenty in the queue, regardless of age. Allow
  220. extra work items to be queued if adequate time has passed since we last
  221. requested work even if over the limit.
  222. - Discard work when failover-only is enabled and the work has come from a
  223. different pool.
  224. - Missing include to build on newer mingw32.
  225. - Move from the thread safe localtime_r to regular localtime which is the only
  226. one supported on newer pthread libraries on mingw32 to make it compile with the
  227. newer ming. Thread safety is of no importance where localtime is used in this
  228. code.
  229. - Define in_addr_t in windows if required
  230. - sys/wait.h not required in windows
  231. - Allow API to restrict access by IP address
  232. - Add pool switching to example miner.php
  233. - Display X-Reject-Reason, when provided
  234. - Remove the test for whether the device is on the highest profil level before
  235. raising the GPU speed as it is ineffectual and may prevent raising the GPU
  236. speed.
  237. - Remove unnecessary check for opt_debug one every invocation of applog at
  238. LOG_DEBUG level and place the check in applog().
  239. Version 2.2.3 - February 6, 2012
  240. - Revert "Rewrite the convoluted get_work() function to be much simpler and roll
  241. work as much as possible with each new work item." This seems to cause a race on
  242. work in free_work(). Presumably other threads are still accessing the structure.
  243. Version 2.2.2 - February 6, 2012
  244. - Provide support for the submitold extension on a per-pool basis based on the
  245. value being detected in a longpoll.
  246. - Don't send a ping to a dynamic device if it's not enabled as that will just
  247. enable it for one pass and then disable it again.
  248. - Rewrite the convoluted get_work() function to be much simpler and roll work as
  249. much as possible with each new work item.
  250. - Roll as much work as possible from the work returned from a longpoll.
  251. - Rolling work on each loop through the mining thread serves no purpose.
  252. - Allow to stage more than necessary work items if we're just rolling work.
  253. - Replace divide_work with reuse_work function used twice.
  254. - Give rolled work a new ID to make sure there is no confusion in the hashtable
  255. lookups.
  256. - Remove now-defunct hash_div variables.
  257. - Remove unused get_dondata function.
  258. - Silence ADL warnings.
  259. - Silence unused parameter warnings.
  260. - Stagger the restart of every next thread per device to keep devices busy ahead
  261. of accessory threads per device.
  262. - Deprecate the --donation feature. Needlessly complex, questionable usefulness,
  263. depends on author's server and a central pool of some kind, and was not heavily
  264. adopted.
  265. - It's devices that report back now, not threads, update message.
  266. - Continue auto-management of fan and engine speeds even if a device is disabled
  267. for safety reasons.
  268. - No need to check we're highest performance level when throttling GPU engine
  269. speed.
  270. - Abstract out tests for whether work has come from a block that has been seen
  271. before and whether a string is from a previously seen block.
  272. - Probe but don't set the timeout to 15 seconds as some networks take a long
  273. time to timeout.
  274. - Remove most compiler warnings from api.c
  275. - Add last share's pool info in cgpu_info
  276. - Allow the OpenCL platform ID to be chosen with --gpu-platform.
  277. - Iterate over all platforms displaying their information and number of devices
  278. when --ndevs is called.
  279. - Deprecate main.c
  280. - Some networks can take a long time to resolve so go back to 60 second timeouts
  281. instead of 15.
  282. - Only enable curses on failure if curses is desired.
  283. - Fix warnings in bitforce.c
  284. - Bugfix: Need to open BitForce tty for read-write
  285. - Fix various build issues.
  286. - Modularize code: main.c -> device-cpu + device-gpu
  287. - Fix phatk kernel not working on non-bitalign capable devices (Nvidia, older
  288. ATI).
  289. - Update poclbm kernel for better performance on GCN and new SDKs with bitalign
  290. support when not BFI INT patching. Update phatk kernel to work properly for non
  291. BFI INT patched kernels, providing support for phatk to run on GCN and non-ATI
  292. cards.
  293. - Return last accepted share pool/time for devices
  294. - Display accepted share pool/time for CPUs
  295. - Bug intensity always shows GPU 0
  296. - Update example web miner.php to use new API commands
  297. Version 2.2.1 - January 30, 2012
  298. NOTE - The GPU Device reordering in 2.2.0 by default was considered a bad idea
  299. so the original GPU ordering is used by default again unless reordering is
  300. explicitly requested.
  301. - Fix bitforce failing to build into cgminer.
  302. - Add missing options to write config function.
  303. - Add a --gpu-reorder option to only reorder devices according to PCI Bus ID
  304. when requested.
  305. - Fix for midstate support being broken on pools that supported no-midstate
  306. work by ensuring numbers are 32 bits in sha2.c
  307. - Set virtual GPUs to work when ADL is disabled or all mining will occur on GPU
  308. 0.
  309. - Add information about paused threads in the menu status.
  310. - Disable all but the first thread on GPUs in dynamic mode for better
  311. interactivity.
  312. - Set the latest network access time on share submission for --net-delay even if
  313. we're not delaying that submission for further network access.
  314. - Clear adl on exiting after probing values since it may attempt to overclock.
  315. - As share submission is usually staggered, and delays can be costly, submit
  316. shares without delay even when --net-delay is enabled.
  317. - Display GPU number and device name when ADL is successfully enabled on it.
  318. - Display GPU ordering remapping in verbose mode.
  319. - Don't fail in the case the number of ADL and OpenCL devices do not match, and
  320. do not attempt to reorder devices unless they match. Instead give a warning
  321. about
  322. - Display error codes should ADL not return ADL_OK in the more critical function
  323. calls.
  324. - Fix unused warning.
  325. - Fix compile warnings in api.c
  326. - Add extensive ADL based device info in debug mode.
  327. - Make --ndevs display verbose opencl information as well to make debugging
  328. version information easier.
  329. - Display information about the opencl platform with verbose enabled.
  330. - Explicitly check for nvidia in opencl platform strings as well.
  331. Version 2.2.0 - January 29, 2012
  332. NOTE: GPU Device order will change with this release with ATI GPUs as cgminer
  333. now can enumerate them according to their Bus ID which means the values should
  334. now correlate with their physical position on the motherboard.
  335. - Default to poclbm kernel on Tahiti (7970) since phatk does not work, even
  336. though performance is sub-standard so that at least it will mine successfully by
  337. defau
  338. - Retain cl program after every possible place we might build the program.
  339. - Update ADL SDK URL.
  340. - Fix potential overflow.
  341. - Map GPU devices to virtual devices in their true physical order based on
  342. BusNumber.
  343. - Change the warning that comes with failure to init cl on a device to be more
  344. generic and accurate.
  345. - Advertise longpoll support in X-Mining-Extensions
  346. - Detect dual GPU cards by iterating through all GPUs, finding ones without
  347. fanspeed and matching twins with fanspeed one bus ID apart.
  348. - Do not attempt to build the program that becomes the kernel twice. This could
  349. have been leading to failures on initialising cl.
  350. - Some opencl compilers have issues with no spaces after -D in the compiler
  351. options.
  352. - Allow intensity up to 14.
  353. - Use calloced stack memory for CompilerOptions to ensure sprintf writes to the
  354. beginning of the char.
  355. - Whitelist 79x0 cards to prefer no vectors as they perform better without.
  356. - Adjust fan speed gently while in the optimal range when temperature is
  357. drifting to minimise overshoot in either direction.
  358. - Detect dual GPU cards via the indirect information of - 1st card has a fan
  359. controller. 2nd card does not have a fan controller, cards share the same device
  360. name
  361. - Instead of using the BFI_INT patching hack on any device reporting
  362. cl_amd_media_ops, create a whitelist of devices that need it. This should enable
  363. GCN architec
  364. - Fixed API compiling issue on OS X
  365. - Add more explanation of JSON format and the 'save' command
  366. - Return an error if using ADL API commands when it's not available
  367. - Read off lpThermalControllerInfo from each ADL device.
  368. - Add ADL_Overdrive5_ThermalDevices_Enum interface.
  369. - Add API commands: config, switchpool, gpu settings, save
  370. - Implement socks4 proxy support.
  371. - Fix send() for JSON strings
  372. - Introduce a --net-delay option which guarantees at least 250ms between any
  373. networking requests to not overload slow routers.
  374. - Generalise locking init code.
  375. - Allow invalid values to be in the configuration file, just skipping over them
  376. provided the rest of the file is valid JSON. This will allow older configurat
  377. - Allow CPU mining explicitly enable only if other mining support is built in.
  378. - BitForce FPGA support
  379. - Configure out building and support of all CPU mining code unless
  380. --enable-cpumining is enabled.
  381. - Allow parsed values to be zero which will allow 0 values in the config file to
  382. work.
  383. - Advertise that we can make our own midstate, so the pool can skip generating
  384. it for us
  385. - Refactor the CPU scanhash_* functions to use a common API. Fixes bugs.
  386. - Don't consider a pool lagging if a request has only just been filed. This
  387. should decrease the false positives for "pool not providing work fast enough".
  388. - Invalidating work after longpoll made hash_pop return no work giving a false
  389. positive for dead pool. Rework hash_pop to retry while finds no staged work u
  390. - Remove TCP_NODELAY from curl options as many small packets may be contributing
  391. to network overload, when --net-delay is enabled.
  392. - Refactor miner_thread to be common code for any kind of device
  393. - Simplify submit_nonce loop and avoid potentially missing FOUND - 1 entry.
  394. Reported by Luke-Jr.
  395. - Micro-optimisation in sha256_sse2 code courtesy of Guido Ascioti
  396. guido.ascioti@gmail.com
  397. - Refactor to abstract device-specific code
  398. Version 2.1.2 - January 6, 2012
  399. - If api-description is specified, save it when writing the config file
  400. - Adjust utility width to be constant maximum as well.
  401. - Add percent signs to reject ratio outputs
  402. - Should the donation pool fail, don't make the fallover pool behave as though
  403. the primary pool is lagging.
  404. - Use an alternative pool should the donation getwork fail.
  405. Version 2.1.1 - January 1, 2012
  406. - Include API examples in distribution tarball.
  407. - Don't attempt to pthread_join when cancelling threads as they're already
  408. detached and doing so can lead to a segfault.
  409. - Give more generic message if slow pool at startup is the donation pool.
  410. - Continue to attempt restarting GPU threads if they're flagged dead at 1 min.
  411. intervals.
  412. - Don't attempt to restart sick flagged GPUs while they're still registering
  413. activity.
  414. - Make curl use fresh connections whenever there is any communication issue
  415. in case there are dead persistent connections preventing further comms from
  416. working.
  417. - Display pool in summary if only 1 pool.
  418. - Adjust column width of A/R/HW to be the maximum of any device and align them.
  419. Version 2.1.0 - December 27, 2011
  420. - Major infrastructure upgrade with RPC interface for controlling via sockets
  421. encoded with/without JSON courtesy of Andrew Smith. Added documentation for
  422. use of the API and sample code to use with it.
  423. - Updated linux-usb-cgminer document.
  424. - Rewrite of longpoll mechanism to choose the current pool wherever possible to
  425. use for the longpoll, or any pool that supports longpoll if the current one
  426. does not.
  427. - Display information about longpoll when the chosen server has changed.
  428. - Fix the bug where longpoll generated work may have been sent back to the
  429. wrong pool, causing rejects.
  430. - Fix a few race conditions on closing cgminer which caused some of the crashes
  431. on exit.
  432. - Only adjust gpu engine speed in autotune mode if the gpu is currently at the
  433. performance level of that being adjusted.
  434. - Various fixes for parsing/writing of configuration files.
  435. - Do not add blank lines for threads of unused CPUs.
  436. - Show which pool is unresponsive on startup.
  437. - Only show GPU management menu item if GPUs are in use.
  438. - Align most device columns in the curses display.
  439. Version 2.0.8 - November 11, 2011
  440. - Make longpoll do a mandatory flushing of all work even if the block hasn't
  441. changed, thus supporting longpoll initiated work change of any sort and merged
  442. mining.
  443. - Byteswap computed hash in hashtest so it can be correctly checked. This fixes
  444. the very rare possibility that a block solve on solo mining was missed.
  445. - Add x86_64 w64 mingw32 target
  446. - Allow a fixed speed difference between memory and GPU clock speed with
  447. --gpu-memdiff that will change memory speed when GPU speed is changed in
  448. autotune mode.
  449. - Don't load the default config if a config file is specified on the command
  450. line.
  451. - Don't build VIA on apple since -a auto bombs instead of gracefully ignoring
  452. VIA failing.
  453. - Build fix for dlopen/dlclose errors in glibc.
  454. Version 2.0.7 - October 17, 2011
  455. - Support work without midstate or hash1, which are deprecated in bitcoind 0.5+
  456. - Go to kernel build should we fail to clCreateProgramWithBinary instead of
  457. failing on that device. This should fix the windows problems with devices not
  458. initialising.
  459. - Support new configuration file format courtesy of Chris Savery which can write
  460. the config file from the menu and will load it on startup.
  461. - Write unix configuration to .cgminer/cgminer.conf by default and prompt to
  462. overwrite if given a filename from the menu that exists.
  463. Version 2.0.6 - October 9, 2011
  464. - Must initialise the donorpool mutex or it fails on windows.
  465. - Don't make donation work interfere with block change detection allowing
  466. donation to work regardless of the block chain we're mining on.
  467. - Expire shares as stale with a separate timeout from the scantime, defaulting
  468. to 120 seconds.
  469. - Retry pools after a delay of 15 seconds if none can be contacted on startup
  470. unless a key is pressed.
  471. - Don't try to build adl features without having adl.
  472. - Properly check shares against target difficulty - This will no longer show
  473. shares when solo mining at all unless they're considered to be a block solve.
  474. - Add altivec 4 way (cpu mining) support courtesy of Gilles Risch.
  475. - Try to use SSL if the server supports it.
  476. - Display the total solved blocks on exit (LOL if you're lucky).
  477. - Use ADL activity report to tell us if a sick GPU is still busy suggesting it
  478. is hard hung and do not attempt to restart it.
  479. Version 2.0.5 - September 27, 2011
  480. - Intensity can now be set to dynamic or static values per-device.
  481. - New donation feature --donation sends a proportion of shares to author's
  482. account of choice, but is disabled by default!
  483. - The hash being displayed and block detection has been fixed.
  484. - Devices not being mined on will not attempt to be ADL managed.
  485. - Intensity is now displayed per GPU device.
  486. - Make longpoll attempt to restart as often as opt_retries specifies.
  487. - We weren't rolling work as often as we could.
  488. - Correct some memory management issues.
  489. - Build fixes.
  490. - Don't mess with GPUs if we don't have them.
  491. Version 2.0.4 - September 23, 2011
  492. - Confused Longpoll messages should be finally fixed with cgminer knowing for
  493. sure who found the new block and possibly avoiding a rare crash.
  494. - Display now shows the actual hash and will say BLOCK! if a block is deemed
  495. solved.
  496. - Extra spaces, which would double space lines on small terminals, have been
  497. removed.
  498. - Fan speed change is now damped if it is already heading in the correct
  499. direction to minimise overshoot.
  500. - Building without opencl libraries is fixed.
  501. - GPUs are autoselected if there is only one when in the GPU management menu.
  502. - GPU menu is refreshed instead of returning to status after a GPU change.
  503. Version 2.0.3 - September 17, 2011
  504. - Various modes of failure to set fanspeeds and adl values have been addressed
  505. and auto-fan should work now on most hardware, and possibly other values
  506. which previously would not have worked.
  507. - Fixed a crash that can occur on switching pools due to longpoll thread races.
  508. - Use ATISTREAMSDKROOT if available at build time.
  509. - Fanspeed management is returned to the driver default on exit instead of
  510. whatever it was when cgminer was started.
  511. - Logging of events deemed WARNING or ERR now will display even during
  512. periods where menu input is being awaited on.
  513. Version 2.0.2 - September 11, 2011
  514. - Exit cleanly if we abort before various threads are set up or if they no
  515. longer exist.
  516. - Fix a rare crash in HASH_DEL due to using different mutexes to protect the
  517. data.
  518. - Flag devices that have never started and don't allow enabling of devices
  519. without restarting them.
  520. - Only force the adapter speed to high if we've flagged this device as being
  521. managed.
  522. - Flag any devices with autofan or autogpu as being managed.
  523. - Use a re-entrant value to store what fanspeed we're trying to set in case the
  524. card doesn't support small changes. Force it to a multiple of 10% if it
  525. fails on trying to speed up the fan.
  526. - Do not bother resetting values to old ones if changes to GPU parameters report
  527. failure, instead returning a failure code only if the return value from get()
  528. differs.
  529. - Remove redundant check.
  530. - Only display supported values from fanspeed on change settings.
  531. - Missing bracket from output.
  532. - Display fan percentage on devices that only support reporting percent and not
  533. RPM.
  534. - Properly substitute DLOPEN flags to build with ADL support when -ldl is needed
  535. and not when opencl is not found.
  536. Version 2.0.1 - September 9, 2011
  537. - Fix building on 32bit glibc with dlopen with -lpthread and -ldl
  538. - ByteReverse is not used and the bswap opcode breaks big endian builds. Remove
  539. it.
  540. - Ignore whether the display is active or not since only display enabled devices
  541. work this way, and we skip over repeat entries anwyay.
  542. - Only reset values on exiting if we've ever modified them.
  543. - Flag adl as active if any card is successfully activated.
  544. - Add a thermal cutoff option as well and set it to 95 degrees by default.
  545. - Change the fan speed by only 5% if it's over the target temperature but less
  546. than the hysteresis value to minimise overshoot down in temperature.
  547. - Add a --no-adl option to disable ADL monitoring and GPU settings.
  548. - Only show longpoll received delayed message at verbose level.
  549. - Allow temperatures greater than 100 degrees.
  550. - We should be passing a float for the remainder of the vddc values.
  551. - Implement accepting a range of engine speeds as well to allow a lower limit to
  552. be specified on the command line.
  553. - Allow per-device fan ranges to be set and use them in auto-fan mode.
  554. - Display which GPU has overheated in warning message.
  555. - Allow temperature targets to be set on a per-card basis on the command line.
  556. - Display fan range in autofan status.
  557. - Setting the hysteresis is unlikely to be useful on the fly and doesn't belong
  558. in the per-gpu submenu.
  559. - With many cards, the GPU summaries can be quite long so use a terse output
  560. line when showing them all.
  561. - Use a terser device status line to show fan RPM as well when available.
  562. - Define max gpudevices in one macro.
  563. - Allow adapterid 0 cards to enumerate as a device as they will be non-AMD
  564. cards, and enable ADL on any AMD card.
  565. - Do away with the increasingly confusing and irrelevant total queued and
  566. efficiency measures per device.
  567. - Only display values in the log if they're supported and standardise device log
  568. line printing.
  569. Version 2.0.0 - September 6, 2011
  570. Major feature upgrade - GPU monitoring, (over)clocking and fan control for ATI
  571. GPUs.
  572. New command line switches:
  573. --auto-fan- Automatically adjust all GPU fan speeds to maintain a target
  574. temperature
  575. --auto-gpu- Automatically adjust all GPU engine clock speeds to maintain
  576. a target temperature
  577. --gpu-engine <arg> Set the GPU engine (over)clock in Mhz - one value for all or
  578. separate by commas for per card.
  579. --gpu-fan <arg> Set the GPU fan percentage - one value for all or separate
  580. by commas for per card.
  581. --gpu-memclock <arg> Set the GPU memory (over)clock in Mhz - one value for all
  582. or separate by commas for per card.
  583. --gpu-powertune <arg> Set the GPU powertune percentage - one value for all or
  584. separate by commas for per card.
  585. --gpu-vddc <arg> Set the GPU voltage in Volts - one value for all or separate
  586. by commas for per card.
  587. --temp-hysteresis <arg> Set how much the temperature can fluctuate outside
  588. limits when automanaging speeds (default: 3)
  589. --temp-overheat <arg> Set the overheat temperature when automatically managing
  590. fan and GPU speeds (default: 85)
  591. --temp-target <arg> Set the target temperature when automatically managing fan
  592. and GPU speeds (default: 75)
  593. - Implement ATI ADL support for GPU parameter monitoring now and setting later
  594. (temp, fan, clocks etc.).
  595. - Check for the presence of the ADL header files in ADL_SDK.
  596. - Import adl_functions.h from amd overdrive ctrl.
  597. - Implement a setup function that tries to detect GPUs that support the ADL and
  598. link in the parameters into the gpus struct.
  599. - Put a summary of monitoring information from the GPU menu.
  600. - Implement changing memory speed and voltage on the fly.
  601. - Implement fan speed setting.
  602. - Minor corrections to set fan speed by percentage.
  603. - Make sure to read off the value in RPM only.
  604. - Implement auto fanspeed adjustment to maintain a target temperature and
  605. fanspeed below 85%, with an overheat check that will speed the fan up to 100%.
  606. - Add an --auto-fan command line option to allow all GPUs to have autofan
  607. enabled from startup.
  608. - Add a gpu autotune option which adjusts GPU speed to maintain a target
  609. temperature within the bounds of the default GPU speed and any overclocking set.
  610. - Avoid a dereference if the longpoll thread doesn't exist.
  611. - Clean up by setting performance profiles and fan settings to startup levels on
  612. exit.
  613. - Add a small amount of hysteresis before lowering clock speed.
  614. - Allow target, overheat and hysteresis temperatures to be set from command
  615. line.
  616. - Combine all stats collating into one function to avoid repeating function
  617. calls on each variable.
  618. - Add gpu statistics to debugging output via the watchdog thread.
  619. - Implement menus to change temperature limits.
  620. - Implement setting the GPU engine clock speed of all devices or each device as
  621. a comma separated value.
  622. - Implement setting the GPU memory clock speed of all devices or each device as
  623. a comma separated value.
  624. - Implement setting the GPU voltage of all devices or each device as a comma
  625. separated value.
  626. - Implement setting the GPU fan speed of all devices or each device as a comma
  627. separated value.
  628. - Add support for monitoring powertune setting.
  629. - Implement changing of powertune value from the GPU change settings menu.
  630. - Get the value of powertune in get_stats.
  631. - Implement setting the GPU powertune value of all devices or each device as a
  632. comma separated value.
  633. - Remove the safety checks in speed setting since confirmation is done first in
  634. the menu, then show the new current values after a short pause.
  635. - Force the speed to high on startup and restore it to whatever the setting was
  636. on exit.
  637. - Add temperature to standard output where possible and use more compact output.
  638. - Move and print at the same time in curses to avoid random trampling display
  639. errors.
  640. - Update the status window only from the watchdog thread, do not rewrite the top
  641. status messages and only refresh once all the status window is complete,
  642. clearing the window each time to avoid corruption.
  643. - Set a safe starting fan speed if we're automanaging the speeds.
  644. - Provide locking around all adl calls to prevent races.
  645. - Lower profile settings cannot be higher than higher profile ones so link any
  646. drops in settings.
  647. - Add new needed text files to distribution.
  648. - Queue requests ignoring the number of staged clones since they get discarded
  649. very easily leading to false positives for pool not providing work fast enough.
  650. - Include libgen.h in opt.c to fix win32 compilation warnings.
  651. - Fix compilation warning on win32.
  652. - Add the directory name from the arguments cgminer was called from as well to
  653. allow it running from a relative pathname.
  654. - Add a --disable-adl option to configure and only enable it if opencl support
  655. exists.
  656. - Retry before returning a failure to get upstream work as a failure to avoid
  657. false positives for pool dead.
  658. - Retry also if the decoding of work fails.
  659. - Use the presence of X-Roll-Ntime in the header as a bool for exists unless N
  660. is found in the response.
  661. Version 1.6.2 - September 2, 2011
  662. - Add --failover-only option to not leak work to backup pools when the primary
  663. pool is lagging.
  664. - Change recommendation to intensity 9 for dedicated miners.
  665. - Fix the bouncing short term value by allowing it to change dynamically when
  666. the latest value is very different from the rolling value, but damp the change
  667. when it gets close.
  668. - Use the curses_lock to protect the curses_active variable and test it under
  669. lock.
  670. - Go back to requesting work 2/3 of the way through the current scantime with
  671. CPU mining as reports of mining threads running out of work have occurred with
  672. only 5 seconds to retrieve work.
  673. - Add start and stop time scheduling for regular time of day running or once off
  674. start/stop options.
  675. - Print summary on quit modes.
  676. - Put some sanity checks on the times that can be input.
  677. - Give a verbose message when no active pools are found and pause before
  678. exiting.
  679. - Add verbose message when a GPU fails to initialise, and disable the correct
  680. GPU.
  681. - Cryptopp asm32 was not correctly updated to the incremental nonce code so the
  682. hash counter was bogus.
  683. - Get rid of poorly executed curl check.
  684. - If curl does not have sockopts, do not try to compile the
  685. json_rpc_call_sockopt_cb function, making it possible to build against older
  686. curl libraries.
  687. - Most people expect /usr/local when an unspecified prefix is used so change to
  688. that.
  689. - Rename localgen occasions to getwork fail occasions since localgen is
  690. unrelated now.
  691. Version 1.6.1 - August 29, 2011
  692. - Copy cgminer path, not cat it.
  693. - Switching between redrawing windows does not fix the crash with old
  694. libncurses, so redraw both windows, but only when the window size hasn't
  695. changed.
  696. - Reinstate minimum 1 extra in queue to make it extremely unlikely to ever have
  697. 0 staged work items and any idle time.
  698. - Return -1 if no input is detected from the menu to prevent it being
  699. interpreted as a 0.
  700. - Make pthread, libcurl and libcurses library checks mandatory or fail.
  701. - Add a --disable-opencl configure option to make it possible to override
  702. detection of opencl and build without GPU mining support.
  703. - Confusion over the variable name for number of devices was passing a bogus
  704. value which likely was causing the zero sized binary issue.
  705. - cgminer no longer supports default url user and pass so remove them.
  706. - Don't show value of intensity since it's dynamic by default.
  707. - Add options to explicitly enable CPU mining or disable GPU mining.
  708. - Convert the opt queue into a minimum number of work items to have queued
  709. instead of an extra number to decrease risk of getting idle devices without
  710. increasing risk of higher rejects.
  711. - Statify tv_sort.
  712. - Check for SSE2 before trying to build 32 bit SSE2 assembly version. Prevents
  713. build failure when yasm is installed but -msse2 is not specified.
  714. - Add some defines to configure.ac to enable exporting of values and packaging,
  715. and clean up output.
  716. - Give convenient summary at end of ./configure.
  717. - Display version information and add --version command line option, and make
  718. sure we flush stdout.
  719. - Enable curses after the mining threads are set up so that failure messages
  720. won't be lost in the curses interface.
  721. - Disable curses after inputting a pool if we requested no curses interface.
  722. - Add an option to break out after successfully mining a number of accepted
  723. shares.
  724. - Exit with a failed return code if we did not reach opt_shares.
  725. - The cpu mining work data can get modified before we copy it if we submit it
  726. async, and the sync submission is not truly sync anyway, so just submit it sync.
  727. Version 1.6.0 - August 26, 2011
  728. - Make restarting of GPUs optional for systems that hang on any attempt to
  729. restart them. Fix DEAD status by comparing it to last live time rather than
  730. last attempted restart time since that happens every minute.
  731. - Move staged threads to hashes so we can sort them by time.
  732. - Create a hash list of all the blocks created and search them to detect when a
  733. new block has definitely appeared, using that information to detect stale work
  734. and discard it.
  735. - Update configure.ac for newer autoconf tools.
  736. - Use the new hashes directly for counts instead of the fragile counters
  737. currently in use.
  738. - Update to latest sse2 code from cpuminer-ng.
  739. - Allow LP to reset block detect and block detect lp flags to know who really
  740. came first.
  741. - Get start times just before mining begins to not have very slow rise in
  742. average.
  743. - Add message about needing one server.
  744. - We can queue all the necessary work without hitting frequent stales now with
  745. the time and string stale protection active all the time. This prevents a
  746. pool being falsely labelled as not providing work fast enough.
  747. - Include uthash.h in distro.
  748. - Implement SSE2 32 bit assembly algorithm as well.
  749. - Fail gracefully if unable to open the opencl files.
  750. - Make cgminer look in the install directory for the .cl files making make
  751. install work correctly.
  752. - Allow a custom kernel path to be entered on the command line.
  753. - Bump threshhold for lag up to maximum queued but no staged work.
  754. - Remove fragile source patching for bitalign, vectors et. al and simply pass it
  755. with the compiler options.
  756. - Actually check the value returned for the x-roll-ntime extension to make sure
  757. it isn't saying N.
  758. - Prevent segfault on exit for when accessory threads don't exist.
  759. - Disable curl debugging with opt protocol since it spews to stderr.
  760. Version 1.5.8 - August 23, 2011
  761. - Minimise how much more work can be given in cpu mining threads each interval.
  762. - Make the fail-pause progressively longer each time it fails until the network
  763. recovers.
  764. - Only display the lagging message if we've requested the work earlier.
  765. - Clean up the pool switching to not be dependent on whether the work can roll
  766. or not by setting a lagging flag and then the idle flag.
  767. - Only use one thread to determine if a GPU is sick or well, and make sure to
  768. reset the sick restart attempt time.
  769. - The worksize was unintentionally changed back to 4k by mistake, this caused a
  770. slowdown.
  771. Version 1.5.7 - August 22, 2011
  772. - Fix a crash with --algo auto
  773. - Test at appropriate target difficulty now.
  774. - Add per-device statics log output with --per-device-stats
  775. - Fix breakage that occurs when 1 or 4 vectors are chosen on new phatk.
  776. - Make rolltime report debug level only now since we check it every work
  777. item.
  778. - Add the ability to enable/disable per-device stats on the fly and match
  779. logging on/off.
  780. - Explicitly tell the compiler to retain the program to minimise the chance of
  781. the zero sized binary errors.
  782. - Add one more instruction to avoid one branch point in the common path in the
  783. cl return code. Although this adds more ALUs overall and more branch points, the
  784. common path code has the same number of ALUs and one less jmp, jmps being more
  785. expensive.
  786. - Explicitly link in ws2_32 on the windows build and update README file on how
  787. to compile successfully on windows.
  788. - Release cl resources should the gpu mining thread abort.
  789. - Attempt to restart a GPU once every minute while it's sick.
  790. - Don't kill off the reinit thread if it fails to init a GPU but returns safely.
  791. - Only declare a GPU dead if there's been no sign of activity from the reinit
  792. thread for 10 mins.
  793. - Never automatically disable any pools but just specify them as idle if they're
  794. unresponsive at startup.
  795. - Use any longpoll available, and don't disable it if switching to a server that
  796. doesn't have it. This allows you to mine solo, yet use the longpoll from a pool
  797. even if the pool is the backup server.
  798. - Display which longpoll failed and don't free the ram for lp_url since it
  799. belongs to the pool hdr path.
  800. - Make the tcp setsockopts unique to linux in the hope it allows freebsd et. al
  801. to compile.
  802. Version 1.5.6 - August 17, 2011
  803. - New phatk and poclbm kernels. Updated phatk to be in sync with latest 2.2
  804. courtesy of phateus. Custom modified to work best with cgminer.
  805. - Updated output buffer code to use a smaller buffer with the kernels.
  806. - Clean up the longpoll management to ensure the right paths go to the right
  807. pool and display whether we're connected to LP or not in the status line.
  808. Version 1.5.5 - August 16, 2011
  809. - Rework entirely the GPU restart code. Strike a balance between code that
  810. re-initialises the GPU entirely so that soft hangs in the code are properly
  811. managed, but if a GPU is completely hung, the thread restart code fails
  812. gracefully, so that it does not take out any other code or devices. This will
  813. allow cgminer to keep restarting GPUs that can be restarted, but continue
  814. mining even if one or more GPUs hangs which would normally require a reboot.
  815. - Add --submit-stale option which submits all shares, regardless of whether they
  816. would normally be considered stale.
  817. - Keep options in alphabetical order.
  818. - Probe for slightly longer for when network conditions are lagging.
  819. - Only display the CPU algo when we're CPU mining.
  820. - As we have keepalives now, blaming network flakiness on timeouts appears to
  821. have been wrong. Set a timeout for longpoll to 1 hour, and most other
  822. network connectivity to 1 minute.
  823. - Simplify output code and remove HW errors from CPU stats.
  824. - Simplify code and tidy output.
  825. - Only show cpu algo in summary if cpu mining.
  826. - Log summary at the end as per any other output.
  827. - Flush output.
  828. - Add a linux-usb-cgminer guide courtesy of Kano.
  829. Version 1.5.4 - August 14, 2011
  830. - Add new option: --monitor <cmd> Option lets user specify a command <cmd> that
  831. will get forked by cgminer on startup. cgminer's stderr output subsequently gets
  832. piped directly to this command.
  833. - Allocate work from one function to be able to initialise variables added
  834. later.
  835. - Add missing fflush(stdout) for --ndevs and conclusion summary.
  836. - Preinitialise the devices only once on startup.
  837. - Move the non cl_ variables into the cgpu info struct to allow creating a new
  838. cl state on reinit, preserving known GPU variables.
  839. - Create a new context from scratch in initCQ in case something was corrupted to
  840. maximise our chance of succesfully creating a new worker thread. Hopefully this
  841. makes thread restart on GPU failure more reliable, without hanging everything
  842. in the case of a completely wedged GPU.
  843. - Display last initialised time in gpu management info, to know if a GPU has
  844. been re-initialised.
  845. - When pinging a sick cpu, flush finish and then ping it in a separate thread in
  846. the hope it recovers without needing a restart, but without blocking code
  847. elsewhere.
  848. - Only consider a pool lagging if we actually need the work and we have none
  849. staged despite queue requests stacking up. This decreases significantly the
  850. amount of work that leaks to the backup pools.
  851. - The can_roll function fails inappropriately in stale_work.
  852. - Only put the message that a pool is down if not pinging it every minute. This
  853. prevents cgminer from saying pool down at 1 minute intervals unless in debug
  854. mode.
  855. - Free all work in one place allowing us to perform actions on it in the future.
  856. - Remove the extra shift in the output code which was of dubious benefit. In
  857. fact in cgminer's implementation, removing this caused a miniscule speedup.
  858. - Test each work item to see if it can be rolled instead of per-pool and roll
  859. whenever possible, adhering to the 60 second timeout. This makes the period
  860. after a longpoll have smaller dips in throughput, as well as requiring less
  861. getworks overall thus increasing efficiency.
  862. - Stick to rolling only work from the current pool unless we're in load balance
  863. mode or lagging to avoid aggressive rolling imitating load balancing.
  864. - If a work item has had any mining done on it, don't consider it discarded
  865. work.
  866. Version 1.5.3 - July 30, 2011
  867. - Significant work went into attempting to make the thread restart code robust
  868. to identify sick threads, tag them SICK after 1 minute, then DEAD after 5
  869. minutes of inactivity and try to restart them. Instead of re-initialising the
  870. GPU completely, only a new cl context is created to avoid hanging the rest of
  871. the GPUs should the dead GPU be hung irrevocably.
  872. - Use correct application name in syslog.
  873. - Get rid of extra line feeds.
  874. - Use pkg-config to check for libcurl version
  875. - Implement per-thread getwork count with proper accounting to not over-account
  876. queued items when local work replaces it.
  877. - Create a command queue from the program created from source which allows us
  878. to flush the command queue in the hope it will not generate a zero sized binary
  879. any more.
  880. - Be more willing to get work from the backup pools if the work is simply being
  881. queued faster than it is being retrieved.
  882. Version 1.5.2 - July 28, 2011
  883. - Restarting a hung GPU can hang the rest of the GPUs so just declare it dead
  884. and provide the information in the status.
  885. - The work length in the miner thread gets smaller but doesn't get bigger if
  886. it's under 1 second. This could end up leading to CPU under-utilisation and
  887. lower and lower hash rates. Fix it by increasing work length if it drops
  888. under 1 second.
  889. - Make the "quiet" mode still update the status and display errors, and add a
  890. new --real-quiet option which disables all output and can be set once while
  891. running.
  892. - Update utility and efficiency figures when displaying them.
  893. - Some Intel HD graphics support the opencl commands but return errors since
  894. they don't support opencl. Don't fail with them, just provide a warning and
  895. disable GPU mining.
  896. - Add http:// if it's not explicitly set for URL entries.
  897. - Log to the output file at any time with warnings and errors, instead of just
  898. when verbose mode is on.
  899. - Display the correct current hash as per blockexplorer, truncated to 16
  900. characters, with just the time.
  901. Version 1.5.1 - July 27, 2011
  902. - Two redraws in a row cause a crash in old libncurses so just do one redraw
  903. using the main window.
  904. - Don't adjust hash_div only up for GPUs. Disable hash_div adjustment for GPUs.
  905. - Only free the thread structures if the thread still exists.
  906. - Update both windows separately, but not at the same time to prevent the double
  907. refresh crash that old libncurses has. Do the window resize check only when
  908. about to redraw the log window to minimise ncurses cpu usage.
  909. - Abstract out the decay time function and use it to make hash_div a rolling
  910. average so it doesn't change too abruptly and divide work in chunks large enough
  911. to guarantee they won't overlap.
  912. - Sanity check to prove locking.
  913. - Don't take more than one lock at a time.
  914. - Make threads report out when they're queueing a request and report if they've
  915. failed.
  916. - Make cpu mining work submission asynchronous as well.
  917. - Properly detect stale work based on time from staging and discard instead of
  918. handing on, but be more lax about how long work can be divided for up to the
  919. scantime.
  920. - Do away with queueing work separately at the start and let each thread grab
  921. its own work as soon as it's ready.
  922. - Don't put an extra work item in the queue as each new device thread will do so
  923. itself.
  924. - Make sure to decrease queued count if we discard the work.
  925. - Attribute split work as local work generation.
  926. - If work has been cloned it is already at the head of the list and when being
  927. reinserted into the queue it should be placed back at the head of the list.
  928. - Dividing work is like the work is never removed at all so treat it as such.
  929. However the queued bool needs to be reset to ensure we *can* request more work
  930. even if we didn't initially.
  931. - Make the display options clearer.
  932. - Add debugging output to tq_push calls.
  933. - Add debugging output to all tq_pop calls.
  934. Version 1.5.0 - July 26, 2011
  935. - Increase efficiency of slow mining threads such as CPU miners dramatically. Do
  936. this by detecting which threads cannot complete searching a work item within the
  937. scantime and then divide up a work item into multiple smaller work items.
  938. Detect the age of the work items and if they've been cloned before to prevent
  939. doing the same work over. If the work is too old to be divided, then see if it
  940. can be time rolled and do that to generate work. This dramatically decreases the
  941. number of queued work items from a pool leading to higher overall efficiency
  942. (but the same hashrate and share submission rate).
  943. - Don't request work too early for CPUs as CPUs will scan for the full
  944. opt_scantime anyway.
  945. - Simplify gpu management enable/disable/restart code.
  946. - Implement much more accurate rolling statistics per thread and per gpu and
  947. improve accuracy of rolling displayed values.
  948. - Make the rolling log-second average more accurate.
  949. - Add a menu to manage GPUs on the fly allowing you to enable/disable GPUs or
  950. try restarting them.
  951. - Keep track of which GPUs are alive versus enabled.
  952. - Start threads for devices that are even disabled, but don't allow them to
  953. start working.
  954. - The last pool is when we are low in total_pools, not active_pools.
  955. - Make the thread restart do a pthread_join after disabling the device, only
  956. re-enabling it if we succeed in restarting the thread. Do this from a separate
  957. thread so as to not block any other code.This will allow cgminer to continue
  958. even if one GPU hangs.
  959. - Try to do every curses manipulation under the curses lock.
  960. - Only use the sockoptfunction if the version of curl is recent enough.
  961. Version 1.4.1 - July 24, 2011
  962. - Do away with GET for dealing with longpoll forever. POST is the one that works
  963. everywhere, not the other way around.
  964. - Detect when the primary pool is lagging and start queueing requests on backup
  965. pools if possible before needing to roll work.
  966. - Load balancing puts more into the current pool if there are disabled pools.
  967. Fix.
  968. - Disable a GPU device should the thread fail to init.
  969. - Out of order command queue may fail on osx. Try without if it fails.
  970. - Fix possible dereference on blank inputs during input_pool.
  971. - Defines missing would segfault on --help when no sse mining is built in.
  972. - Revert "Free up resources/stale compilers." - didn't help.
  973. - Only try to print the status of active devices or it would crash.
  974. - Some hardware might benefit from the less OPS so there's no harm in leaving
  975. kernel changes that do that apart from readability of the code.
  976. Version 1.4.0 - July 23, 2011
  977. - Feature upgrade: Add keyboard input during runtime to allow modification of
  978. and viewing of numerous settings such as adding/removing pools, changing
  979. multipool management strategy, switching pools, changing intensiy, verbosity,
  980. etc. with a simple keypress menu system.
  981. - Free up resources/stale compilers.
  982. - Kernels are safely flushed in a way that allows out of order execution to
  983. work.
  984. - Sometimes the cl compiler generates zero sized binaries and only a reboot
  985. seems to fix it.
  986. - Don't try to stop/cancel threads that don't exist.
  987. - Only set option to show devices and exit if built with opencl support.
  988. - Enable curses earlier and exit with message in main for messages to not be
  989. lost in curses windows.
  990. - Make it possible to enter server credentials with curses input if none are
  991. specified on the command line.
  992. - Abstract out a curses input function and separate input pool function to allow
  993. for live adding of pools later.
  994. - Remove the nil arguments check to allow starting without parameters.
  995. - Disable/enable echo & cbreak modes.
  996. - Add a thread that takes keyboard input and allow for quit, silent, debug,
  997. verbose, normal, rpc protocol debugging and clear screen options.
  998. - Add pool option to input and display current pool status, pending code to
  999. allow live changes.
  1000. - Add a bool for explicit enabling/disabling of pools.
  1001. - Make input pool capable of bringing up pools while running.
  1002. - Do one last check of the work before submitting it.
  1003. - Implement the ability to live add, enable, disable, and switch to pools.
  1004. - Only internally test for block changes when the work matches the current pool
  1005. to prevent interleaved block change timing on multipools.
  1006. - Display current pool management strategy to enable changing it on the fly.
  1007. - The longpoll blanking of the current_block data may not be happening before
  1008. the work is converted and appears to be a detected block change. Blank the
  1009. current block be
  1010. - Make --no-longpoll work again.
  1011. - Abstract out active pools count.
  1012. - Allow the pool strategy to be modified on the fly.
  1013. - Display pool information on the fly as well.
  1014. - Add a menu and separate out display options.
  1015. - Clean up the messy way the staging thread communicates with the longpoll
  1016. thread to determine who found the block first.
  1017. - Make the input windows update immediately instead of needing a refresh.
  1018. - Allow log interval to be set in the menu.
  1019. - Allow scan settings to be modified at runtime.
  1020. - Abstract out the longpoll start and explicitly restart it on pool change.
  1021. - Make it possible to enable/disable longpoll.
  1022. - Set priority correctly on multipools. Display priority and alive/dead
  1023. information in display_pools.
  1024. - Implement pool removal.
  1025. - Limit rolltime work generation to 10 iterations only.
  1026. - Decrease testing log to info level.
  1027. - Extra refresh not required.
  1028. - With huge variation in GPU performance, allow intensity to go from -10 to +10.
  1029. - Tell getwork how much of a work item we're likely to complete for future
  1030. splitting up of work.
  1031. - Remove the mandatory work requirement at startup by testing for invalid work
  1032. being passed which allows for work to be queued immediately. This also
  1033. removes the requirem
  1034. - Make sure intensity is carried over to thread count and is at least the
  1035. minimum necessary to work.
  1036. - Unlocking error on retry. Locking unnecessary anyway so remove it.
  1037. - Clear log window from consistent place. No need for locking since logging is
  1038. disabled during input.
  1039. - Cannot print the status of threads that don't exist so just queue enough work
  1040. for the number of mining threads to prevent crash with -Q N.
  1041. - Update phatk kernel to one with new parameters for slightly less overhead
  1042. again. Make the queue kernel parameters call a function pointer to select
  1043. phatk or poclbm.
  1044. - Make it possible to select the choice of kernel on the command line.
  1045. - Simplify the output part of the kernel. There's no demonstrable advantage from
  1046. more complexity.
  1047. - Merge pull request #18 from ycros/cgminer
  1048. - No need to make leaveok changes win32 only.
  1049. - Build support in for all SSE if possible and only set the default according to
  1050. machine capabilities.
  1051. - Win32 threading and longpoll keepalive fixes.
  1052. - Win32: Fix for mangled output on the terminal on exit.
  1053. Version 1.3.1 - July 20, 2011
  1054. - Feature upgrade; Multiple strategies for failover. Choose from default which
  1055. now falls back to a priority order from 1st to last, round robin which only
  1056. changes pools when one is idle, rotate which changes pools at user-defined
  1057. intervals, and load-balance which spreads the work evenly amongst all pools.
  1058. - Implement pool rotation strategy.
  1059. - Implement load balancing algorithm by rotating requests to each pool.
  1060. - Timeout on failed discarding of staged requests.
  1061. - Implement proper flagging of idle pools, test them with the watchdog thread,
  1062. and failover correctly.
  1063. - Move pool active test to own function.
  1064. - Allow multiple strategies to be set for multipool management.
  1065. - Track pool number.
  1066. - Don't waste the work items queued on testing the pools at startup.
  1067. - Reinstate the mining thread watchdog restart.
  1068. - Add a getpoll bool into the thread information and don't restart threads stuck
  1069. waiting on work.
  1070. - Rename the idlenet bool for the pool for later use.
  1071. - Allow the user/pass userpass urls to be input in any order.
  1072. - When json rpc errors occur they occur in spits and starts, so trying to limit
  1073. them with the comms error bool doesn't stop a flood of them appearing.
  1074. - Reset the queued count to allow more work to be queued for the new pool on
  1075. pool switch.
  1076. Version 1.3.0 - July 19, 2011
  1077. - Massive infrastructure update to support pool failover.
  1078. - Accept multiple parameters for url, user and pass and set up structures of
  1079. pool data accordingly.
  1080. - Probe each pool for what it supports.
  1081. - Implement per pool feature support according to rolltime support as
  1082. advertised by server.
  1083. - Do switching automatically based on a 300 second timeout of locally generated
  1084. work or 60 seconds of no response from a server that doesn't support rolltime.
  1085. - Implement longpoll server switching.
  1086. - Keep per-pool data and display accordingly.
  1087. - Make sure cgminer knows how long the pool has actually been out for before
  1088. deeming it a prolonged outage.
  1089. - Fix bug with ever increasing staged work in 1.2.8 that eventually caused
  1090. infinite rejects.
  1091. - Make warning about empty http requests not show by default since many
  1092. servers do this regularly.
  1093. Version 1.2.8 - July 18, 2011
  1094. - More OSX build fixes.
  1095. - Add an sse4 algorithm to CPU mining.
  1096. - Fix CPU mining with other algorithms not working.
  1097. - Rename the poclbm file to ensure a new binary is built since.
  1098. - We now are guaranteed to have one fresh work item after a block change and we
  1099. should only discard staged requests.
  1100. - Don't waste the work we retrieve from a longpoll.
  1101. - Provide a control lock around global bools to avoid racing on them.
  1102. - Iterating over 1026 nonces when confirming data from the GPU is old code
  1103. and unnecessary and can lead to repeats/stales.
  1104. - The poclbm kernel needs to be updated to work with the change to 4k sized
  1105. output buffers.
  1106. - longpoll seems to work either way with post or get but some servers prefer
  1107. get so change to httpget.
  1108. Version 1.2.7 - July 16, 2011
  1109. - Show last 8 characters of share submitted in log.
  1110. - Display URL connected to and user logged in as in status.
  1111. - Display current block and when it was started in the status line.
  1112. - Only pthread_join the mining threads if they exist as determined by
  1113. pthread_cancel and don't fail on pthread_cancel.
  1114. - Create a unique work queue for all getworks instead of binding it to thread 0
  1115. to avoid any conflict over thread 0's queue.
  1116. - Clean up the code to make it clear it's watchdog thread being messaged to
  1117. restart the threads.
  1118. - Check the current block description hasn't been blanked pending the real
  1119. new current block data.
  1120. - Re-enable signal handlers once the signal has been received to make it
  1121. possible to kill cgminer if it fails to shut down.
  1122. - Disable restarting of CPU mining threads pending further investigation.
  1123. - Update longpoll messages.
  1124. - Add new block data to status line.
  1125. - Fix opencl tests for osx.
  1126. - Only do local generation of work if the work item is not stale itself.
  1127. - Check for stale work within the mining threads and grab new work if
  1128. positive.
  1129. - Test for idle network conditions and prevent threads from being restarted
  1130. by the watchdog thread under those circumstances.
  1131. - Make sure that local work generation does not continue indefinitely by
  1132. stopping it after 10 minutes.
  1133. - Tweak the kernel to have a shorter path using a 4k buffer and a mask on the
  1134. nonce value instead of a compare and loop for a shorter code path.
  1135. - Allow queue of zero and make that default again now that we can track how
  1136. work is being queued versus staged. This can decrease reject rates.
  1137. - Queue precisely the number of mining threads as longpoll_staged after a
  1138. new block to not generate local work.
  1139. Version 1.2.6 - July 15, 2011
  1140. - Put a current system status line beneath the total work status line
  1141. - Fix a counting error that would prevent cgminer from correctly detecting
  1142. situations where getwork was failing - this would cause stalls sometimes
  1143. unrecoverably.
  1144. - Limit the maximum number of requests that can be put into the queue which
  1145. otherwise could get arbitrarily long during a network outage.
  1146. - Only count getworks that are real queue requests.
  1147. Version 1.2.5 - July 15, 2011
  1148. - Conflicting -n options corrected
  1149. - Setting an intensity with -I disables dynamic intensity setting
  1150. - Removed option to manually disable dynamic intensity
  1151. - Improve display output
  1152. - Implement signal handler and attempt to clean up properly on exit
  1153. - Only restart threads that are not stuck waiting on mandatory getworks
  1154. - Compatibility changes courtesy of Ycros to build on mingw32 and osx
  1155. - Explicitly grab first work item to prevent false positive hardware errors
  1156. due to working on uninitialised work structs
  1157. - Add option for non curses --text-only output
  1158. - Ensure we connect at least once successfully before continuing to retry to
  1159. connect in case url/login parameters were wrong
  1160. - Print an executive summary when cgminer is terminated
  1161. - Make sure to refresh the status window
  1162. Versions -> 1.2.4
  1163. - Con Kolivas - July 2011. New maintainership of code under cgminer name.
  1164. - Massive rewrite to incorporate GPU mining.
  1165. - Incorporate original oclminer c code.
  1166. - Rewrite gpu mining code to efficient work loops.
  1167. - Implement per-card detection and settings.
  1168. - Implement vector code.
  1169. - Implement bfi int patching.
  1170. - Import poclbm and phatk ocl kernels and use according to hardware type.
  1171. - Implement customised optimised versions of opencl kernels.
  1172. - Implement binary kernel generation and loading.
  1173. - Implement preemptive asynchronous threaded work gathering and pushing.
  1174. - Implement variable length extra work queues.
  1175. - Optimise workloads to be efficient miners instead of getting lots of extra
  1176. work.
  1177. - Implement total hash throughput counters, per-card accepted, rejected and
  1178. hw error count.
  1179. - Staging and watchdog threads to prevent fallover.
  1180. - Stale and reject share guarding.
  1181. - Autodetection of new blocks without longpoll.
  1182. - Dynamic setting of intensity to maintain desktop interactivity.
  1183. - Curses interface with generous statistics and information.
  1184. - Local generation of work (xroll ntime) when detecting poor network
  1185. connectivity.
  1186. Version 1.0.2
  1187. - Linux x86_64 optimisations - Con Kolivas
  1188. - Optimise for x86_64 by default by using sse2_64 algo
  1189. - Detects CPUs and sets number of threads accordingly
  1190. - Uses CPU affinity for each thread where appropriate
  1191. - Sets scheduling policy to lowest possible
  1192. - Minor performance tweaks
  1193. Version 1.0.1 - May 14, 2011
  1194. - OSX support
  1195. Version 1.0 - May 9, 2011
  1196. - jansson 2.0 compatibility
  1197. - correct off-by-one in date (month) display output
  1198. - fix platform detection
  1199. - improve yasm configure bits
  1200. - support full URL, in X-Long-Polling header
  1201. Version 0.8.1 - March 22, 2011
  1202. - Make --user, --pass actually work
  1203. - Add User-Agent HTTP header to requests, so that server operators may
  1204. more easily identify the miner client.
  1205. - Fix minor bug in example JSON config file
  1206. Version 0.8 - March 21, 2011
  1207. - Support long polling: http://deepbit.net/longpolling.php
  1208. - Adjust max workload based on scantime (default 5 seconds,
  1209. or 60 seconds for longpoll)
  1210. - Standardize program output, and support syslog on Unix platforms
  1211. - Suport --user/--pass options (and "user" and "pass" in config file),
  1212. as an alternative to the current --userpass
  1213. Version 0.7.2 - March 14, 2011
  1214. - Add port of ufasoft's sse2 assembly implementation (Linux only)
  1215. This is a substantial speed improvement on Intel CPUs.
  1216. - Move all JSON-RPC I/O to separate thread. This reduces the
  1217. number of HTTP connections from one-per-thread to one, reducing resource
  1218. usage on upstream bitcoind / pool server.
  1219. Version 0.7.1 - March 2, 2011
  1220. - Add support for JSON-format configuration file. See example
  1221. file example-cfg.json. Any long argument on the command line
  1222. may be stored in the config file.
  1223. - Timestamp each solution found
  1224. - Improve sha256_4way performance. NOTE: This optimization makes
  1225. the 'hash' debug-print output for sha256_way incorrect.
  1226. - Use __builtin_expect() intrinsic as compiler micro-optimization
  1227. - Build on Intel compiler
  1228. - HTTP library now follows HTTP redirects
  1229. Version 0.7 - February 12, 2011
  1230. - Re-use CURL object, thereby reuseing DNS cache and HTTP connections
  1231. - Use bswap_32, if compiler intrinsic is not available
  1232. - Disable full target validation (as opposed to simply H==0) for now
  1233. Version 0.6.1 - February 4, 2011
  1234. - Fully validate "hash < target", rather than simply stopping our scan
  1235. if the high 32 bits are 00000000.
  1236. - Add --retry-pause, to set length of pause time between failure retries
  1237. - Display proof-of-work hash and target, if -D (debug mode) enabled
  1238. - Fix max-nonce auto-adjustment to actually work. This means if your
  1239. scan takes longer than 5 seconds (--scantime), the miner will slowly
  1240. reduce the number of hashes you work on, before fetching a new work unit.
  1241. Version 0.6 - January 29, 2011
  1242. - Fetch new work unit, if scanhash takes longer than 5 seconds (--scantime)
  1243. - BeeCee1's sha256 4way optimizations
  1244. - lfm's byte swap optimization (improves via, cryptopp)
  1245. - Fix non-working short options -q, -r
  1246. Version 0.5 - December 28, 2010
  1247. - Exit program, when all threads have exited
  1248. - Improve JSON-RPC failure diagnostics and resilience
  1249. - Add --quiet option, to disable hashmeter output.
  1250. Version 0.3.3 - December 27, 2010
  1251. - Critical fix for sha256_cryptopp 'cryptopp_asm' algo
  1252. Version 0.3.2 - December 23, 2010
  1253. - Critical fix for sha256_via
  1254. Version 0.3.1 - December 19, 2010
  1255. - Critical fix for sha256_via
  1256. - Retry JSON-RPC failures (see --retry, under "minerd --help" output)
  1257. Version 0.3 - December 18, 2010
  1258. - Add crypto++ 32bit assembly implementation
  1259. - show version upon 'minerd --help'
  1260. - work around gcc 4.5.x bug that killed 4way performance
  1261. Version 0.2.2 - December 6, 2010
  1262. - VIA padlock implementation works now
  1263. - Minor build and runtime fixes
  1264. Version 0.2.1 - November 29, 2010
  1265. - avoid buffer overflow when submitting solutions
  1266. - add Crypto++ sha256 implementation (C only, ASM elided for now)
  1267. - minor internal optimizations and cleanups
  1268. Version 0.2 - November 27, 2010
  1269. - Add script for building a Windows installer
  1270. - improve hash performance (hashmeter) statistics
  1271. - add tcatm 4way sha256 implementation
  1272. - Add experimental VIA Padlock sha256 implementation
  1273. Version 0.1.2 - November 26, 2010
  1274. - many small cleanups and micro-optimizations
  1275. - build win32 exe using mingw
  1276. - RPC URL, username/password become command line arguments
  1277. - remove unused OpenSSL dependency
  1278. Version 0.1.1 - November 24, 2010
  1279. - Do not build sha256_generic module separately from cpuminer.
  1280. Version 0.1 - November 24, 2010
  1281. - Initial release.