1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-01 18:55:36 +00:00
Commit Graph

5068 Commits

Author SHA1 Message Date
Con Kolivas
0414bf0960 Quotient/remainder error in ms division. 2013-08-19 21:36:00 +10:00
Con Kolivas
fb66e8b7b7 Only grab a queued work item if we successfully grab the lock to submit work in bflsc_send_work 2013-08-19 21:13:23 +10:00
kanoi
39f4cf0557 Merge pull request #478 from kanoi/btb
BTB get version from Firmware
2013-08-19 03:39:58 -07:00
Kano
96c0c31775 BTB get version from Firmware 2013-08-19 20:34:37 +10:00
Con Kolivas
a76bc0e043 Carve out the unused portions of sha2 implementation. 2013-08-19 19:57:50 +10:00
Con Kolivas
78d78b1063 Import Aaron D. Gifford's fast sha256 implementation. 2013-08-19 19:10:41 +10:00
Con Kolivas
2a78cd36cc Increase the que_low watermarks on BFLSC for they are too low to keep the device busy on scanwork loops. 2013-08-19 18:08:17 +10:00
Con Kolivas
dddc2d1e60 Revert "Reuse times extracted from the clock in bflsc_get_results."
This reverts commit 1d8235334d.

Monotonic clock does not return the same times as gettimeofday.
2013-08-19 17:59:59 +10:00
Con Kolivas
1d8235334d Reuse times extracted from the clock in bflsc_get_results. 2013-08-19 17:55:32 +10:00
Con Kolivas
b238139cf9 Provide cgtimer_to_timeval helper functions. 2013-08-19 17:44:45 +10:00
Con Kolivas
09679e9f8b Provide a timeval_to_cgtime helper function to reuse values. 2013-08-19 17:38:20 +10:00
Con Kolivas
9743194547 Sleep for half a work period only in bflsc_get_results if no dev is suitable. 2013-08-19 16:36:01 +10:00
Con Kolivas
a61e41a070 Check for thr->work_restart in restart_wait. 2013-08-19 15:58:22 +10:00
Con Kolivas
89f571f527 We should be using que_low to decrease scan sleep time in bflsc. 2013-08-19 15:51:14 +10:00
Con Kolivas
09dbd616e2 Prepare sleep time on bflsc if no dev needs work yet to avoid busy waiting. 2013-08-19 13:57:36 +10:00
Con Kolivas
09e9091dd7 Simplify cgsleep code for windows by using a typedef for cgtimer_t that resolves to clock resolution, using that internally. 2013-08-19 13:54:56 +10:00
Con Kolivas
404cbdea84 On windows use the higher accuracy timegettime function to really get 1ms clock and timer accuracy. 2013-08-19 13:29:23 +10:00
Con Kolivas
e56c9a5d3b Use the cgsleep reentrant function to sleep for bflsc between read results to account for time taken to perform reads. 2013-08-18 16:49:15 +10:00
Con Kolivas
3c707202cf Use 100ms delay between checking for results on all bflsc devices as the buffering of results mean checking more frequently just wastes CPU and causes more lock contention for only marginally better latencies. 2013-08-18 16:46:27 +10:00
Con Kolivas
ffa12a138a Fix missed endtimeperiod in overrun timer on windows. 2013-08-18 14:39:26 +10:00
Con Kolivas
ad87db07d9 Make cgsleep_us_r take an int64_t for us. 2013-08-18 14:39:26 +10:00
Con Kolivas
703c7309c2 Make the cgsleep functions build on windows. 2013-08-18 14:39:26 +10:00
Con Kolivas
17447ec7e2 Use the cgsleep reentrant function in avalon_send_task. 2013-08-18 11:59:02 +10:00
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