1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00
Commit Graph

4744 Commits

Author SHA1 Message Date
Con Kolivas
c988587b45 Use the reentrant cgsleep functions within the avalon_send_tasks function. 2013-08-18 11:48:42 +10:00
Con Kolivas
8114473228 Set high resolution timing on windows within the cgsleep functions. 2013-08-18 11:39:09 +10:00
Con Kolivas
e784b23004 Use the reentrant cgsleep function to time sleeps on reading from avalon. 2013-08-18 11:02:05 +10:00
Con Kolivas
621eb00309 Provide reentrant versions of cgsleep functions to allow start time to be set separately from the beginning of the actual sleep, allowing scheduling delays to be counted in the sleep. 2013-08-18 10:49:52 +10:00
Con Kolivas
0b5edb24f9 Make the nmsleep and nusleep functions use the new cgsleep functions internally till functions are migrated to the new cgsleep API. 2013-08-18 10:36:25 +10:00
Con Kolivas
188210a3d2 Add a ms_to_timespec helper function, and create a cgsleep_ms function that uses absolute timers with clock_nanosleep to avoid overruns. 2013-08-18 10:28:28 +10:00
Con Kolivas
f3b75b0b12 Add rt lib linkage to enable use of clock_nanosleep functions with older glibc. 2013-08-18 01:39:35 +10:00
Con Kolivas
37ff9f8428 Add necessary time header include to avalon driver. 2013-08-18 01:33:50 +10:00
Con Kolivas
1864ed2634 Do a sleep of the full duration it would take to do all the work using clock_nanosleep in avalon_send_tasks to avoid sleep overruns before polling to see if it's ready. 2013-08-18 01:27:16 +10:00
Con Kolivas
fe7c8e8269 Merge branch 'master' of github.com:ckolivas/cgminer 2013-08-18 00:39:13 +10:00
Con Kolivas
3da121ba15 Merge pull request #477 from someone42/master
Changes to queueing strategy for BitBurner boards
2013-08-17 07:39:00 -07:00
Con Kolivas
99cbf09dd1 Add a timeraddspec helper function. 2013-08-18 00:38:29 +10:00
Con Kolivas
1bcd9a43b1 Provide a us_to_timespec helper function. 2013-08-18 00:34:01 +10:00
Con Kolivas
33bb8c7958 Use the us_to_timeval helper function in the avalon driver. 2013-08-18 00:28:30 +10:00
Con Kolivas
2278204ddd Provide a us_to_timeval helper function. 2013-08-18 00:27:33 +10:00
Con Kolivas
53beae814d Use timeval_to_spec helper in avalon driver. 2013-08-18 00:21:01 +10:00
Con Kolivas
a6b1c31742 Add helper functions to convert timespec to timeval and vice versa. 2013-08-18 00:19:47 +10:00
Chris Chua
26de6e64be simplifying buffer full check 2013-08-17 16:18:12 +10:00
Chris Chua
0b9474f3a2 forking bitburner write thread function 2013-08-17 15:36:47 +10:00
Chris Chua
be0d899b74 making sure original Avalon is unaffected by BitBurner changes 2013-08-16 17:00:56 +00:00
Chris Chua
2b932ccb81 changes to queueing strategy for BitBurner boards 2013-08-16 16:37:43 +00:00
Con Kolivas
1bb6dd406a Merge branch 'master' of github.com:ckolivas/cgminer 2013-08-16 13:57:54 +10:00
Con Kolivas
f3f939dd83 Do not poll in avalon_get_results without sleeping if we have finished parsing a full result. 2013-08-16 13:57:07 +10:00
kanoi
f3837916fd Merge pull request #476 from kanoi/master
avalon for timeout allow d='calculate it' and fix uninitialised
2013-08-15 17:14:16 -07:00
Con Kolivas
61cb05a963 Add c to ambient temperature display for avalon driver. 2013-08-16 09:55:45 +10:00
Kano
356fcb107a BTB allow up to 1400mV as per firmware limits 2013-08-15 12:00:04 +10:00
Kano
51aaf816ef avalon for timeout allow d='calculate it' and fix uninitialised 2013-08-15 10:57:02 +10:00
Con Kolivas
3fe8948629 Use cloned work when finding avalon results since another thread can discard the work item while it's in use. 2013-08-14 23:05:14 +10:00
Con Kolivas
98e338cc52 Provide a variant of find_work_bymidstate that returns a clone of the found work. 2013-08-14 23:05:13 +10:00
Con Kolivas
853f145eef Bump version number to 3.3.4 2013-08-14 10:49:40 +10:00
Con Kolivas
730d062636 Update NEWS. 2013-08-14 10:49:16 +10:00
kanoi
c9f58230a5 Merge pull request #475 from kanoi/master
API/miner.php add some % fields
2013-08-13 17:45:39 -07:00
Kano
6b62c402fa API/miner.php add some % fields 2013-08-14 10:42:52 +10:00
Con Kolivas
e95ad0479f Nonce2 stratum submission is not working with nonce2 lengths >4, revert the buggy __bin2hex function and use bin2hex. 2013-08-13 22:44:22 +10:00
Con Kolivas
dd9233f78b The write thread in avalon is only ever actually woken up by timeout so remove the write semaphore and use a simple sleep poll. 2013-08-13 17:24:01 +10:00
Con Kolivas
b2a3941ef1 Fix warning. 2013-08-13 15:36:52 +10:00
Con Kolivas
992a97a396 Interrupting reads on the avalon to start writes loses data so remove the cgsem_post in the read code. 2013-08-13 14:52:17 +10:00
Con Kolivas
1d614599a7 Add room for the null byte at the end of the nonce2 string on stratum share submission and zero the allocated ram. 2013-08-13 14:35:35 +10:00
Con Kolivas
07adb98b34 Bump version to 3.3.3 2013-08-13 06:21:14 +10:00
Con Kolivas
8876fc33d2 Update NEWS for upcoming version 3.3.3 2013-08-13 06:18:12 +10:00
Con Kolivas
c8aac74114 Only perform the bin2hex on nonce2 data if it's required for stratum submission, thereby removing the last conversion of that type from stratum work generation. 2013-08-13 06:09:42 +10:00
Con Kolivas
87ae66c7e6 Create a work data template when receiving stratum notification, allowing a simple memcpy of the merkle root avoiding more hex2bin conversions on each work generation. 2013-08-13 05:49:32 +10:00
Con Kolivas
34bc106d82 Export the workpadding char in miner.h 2013-08-13 04:57:04 +10:00
Con Kolivas
46b6b07afa Avoid a potential overflow should a pool specify a large nonce2 length with stratum. 2013-08-12 16:02:20 +10:00
Con Kolivas
0379123bc1 Avoid one more hex2bin in gen stratum work. 2013-08-12 15:32:45 +10:00
Con Kolivas
11bcf2b3fb Rename work gbt_coinbase to coinbase to be in line with pool variable name. 2013-08-12 11:40:17 +10:00
Con Kolivas
5237bf350d Perform merkle bin hex2bin on stratum notify to avoid doing it on each work generation. 2013-08-12 11:36:28 +10:00
Con Kolivas
8bc469e916 Reuse just the one pool coinbase variable in stratum, avoiding more string functions and storage in gen_stratum_work on each work generation. 2013-08-12 11:16:46 +10:00
Con Kolivas
8c8ef6ff9b Rename pool gbt_coinbase variable to coinbase to combine it with the stratum coinbase data. 2013-08-12 10:58:43 +10:00
Con Kolivas
c542e47aa3 Use a nonce2 offset variable for both gbt and stratum to consolidate requirements on work generation. 2013-08-12 10:49:38 +10:00