Con Kolivas
|
fb94dfa098
|
Cache as much of the gbt coinbase as possible to avoid doing unnecessary hex2bin conversion on every work generation with gbt.
|
2013-08-12 01:15:22 +10:00 |
|
Con Kolivas
|
a1052188fd
|
We should be using a cg_wlock initially in generating stratum and gbt work before downgrading the lock.
|
2013-08-12 00:27:22 +10:00 |
|
Con Kolivas
|
b423fe9de8
|
Cache the hex2bin of pool nonce1 in stratum, avoiding hex2bin on each work generation.
|
2013-08-11 14:06:17 +10:00 |
|
Con Kolivas
|
fef649dfef
|
Cache the binary generation of coinbase1 and 2 on stratum, avoiding a hex2bin of coinbase1 and 2 on each work generation.
|
2013-08-11 13:47:46 +10:00 |
|
Con Kolivas
|
580b77b757
|
Fix warning.
|
2013-08-09 21:52:54 +10:00 |
|
Con Kolivas
|
106e461f21
|
Recreate curses windows on windows when a device is hotplugged to allow window resizing without crashing.
|
2013-08-09 16:57:16 +10:00 |
|
Con Kolivas
|
2b171f7fae
|
Limit intensity range according to whether scrypt is in use or not.
|
2013-08-09 15:12:57 +10:00 |
|
Con Kolivas
|
cb6d62de08
|
Do not allow benchmark mode to be used with scrypt.
|
2013-08-09 06:48:59 +10:00 |
|
Con Kolivas
|
d71e9f91f4
|
Add a --bflsc-overheat command which allows you to set the throttling temperature for BFLSC devices or disable it.
|
2013-08-09 06:43:25 +10:00 |
|
Con Kolivas
|
812852cc36
|
Move bflsc defines to a header file.
|
2013-08-09 06:31:57 +10:00 |
|
kanoi
|
8dc0935639
|
Merge pull request #467 from someone42/master
Support for BitBurner boards
|
2013-08-05 01:18:51 -07:00 |
|
Olivier Langlois
|
c31ff57277
|
remove unnecessary memcpy
The next operation is flipping the merkleroot on the same
destination.
Signed-off-by: Olivier Langlois <olivier@olivierlanglois.net>
|
2013-07-29 23:53:20 -04:00 |
|
Chris Chua
|
dc4ca0de97
|
using more concise description
|
2013-07-30 00:15:45 +10:00 |
|
Chris Chua
|
b0f4d55be7
|
changes to Avalon driver for BitBurner boards
|
2013-07-29 21:39:29 +10:00 |
|
Kano
|
a8c974f5f1
|
set device_drv function noops when first add_cgpu
|
2013-07-18 08:51:08 +10:00 |
|
Kano
|
a9e10988ed
|
force type checking on curses
|
2013-07-06 22:08:17 +10:00 |
|
Kano
|
74d71cce2c
|
cgminer - size check all sprintf
|
2013-07-06 20:47:49 +10:00 |
|
Kano
|
ad1572f77f
|
size check get_datestamp/get_timestamp and remove unused cgpu->init
|
2013-07-06 20:17:17 +10:00 |
|
Kano
|
385a70bea7
|
make all statline overflow safe
|
2013-07-06 19:15:59 +10:00 |
|
Kano
|
df05174e1d
|
WU only needs +2 width
|
2013-07-05 18:26:18 +10:00 |
|
Con Kolivas
|
42d96ee7fe
|
Convert the decay_time function into one that truly creates an exponentially decaying average over opt_log_interval.
|
2013-07-02 20:41:44 +10:00 |
|
Con Kolivas
|
065b6a5e36
|
Provide an --avalon-freq command line to give a valid range of frequencies for avalon in auto mode.
|
2013-07-01 15:38:15 +10:00 |
|
Con Kolivas
|
f142a4de23
|
Allow the avalon fanspeed range to be passed as parameter on the command line, default to 20-100%
|
2013-07-01 10:41:22 +10:00 |
|
Con Kolivas
|
1b81ecf932
|
Just display A: and R: for difficulty accepted and rejected to preserve screen real estate and decrease decimal places for WU.
|
2013-06-30 15:51:46 +10:00 |
|
Kano
|
a94b7be3bc
|
correct device DR: and remove global U:
|
2013-06-29 08:41:22 +10:00 |
|
Kano
|
800dc24916
|
Update all screen A/R to instead use DA/DR and device U to WU
|
2013-06-29 01:43:18 +10:00 |
|
Con Kolivas
|
e811c4dc77
|
Add an avalon-auto option which enables dynamic overclocking based on hardware error rate for maximum effective hashrate.
|
2013-06-26 00:15:04 +10:00 |
|
Con Kolivas
|
9b45daba6b
|
Add an --avalon-cutoff feature which puts the avalon idle should it reach this temperature, defaulting to 60, re-enabling it when it gets to target temperature.
|
2013-06-25 19:39:42 +10:00 |
|
Con Kolivas
|
661a448ad8
|
Fix build warning.
|
2013-06-24 12:47:04 +10:00 |
|
Con Kolivas
|
1fca632f7c
|
Add an --avalon-temp option to allow a user specified target temperature.
|
2013-06-24 11:04:02 +10:00 |
|
Con Kolivas
|
2ab7dac243
|
Demote the invalid nonce warning to log info.
|
2013-06-23 17:03:59 +10:00 |
|
Con Kolivas
|
94e636a906
|
Only update hashmeter if we have done hashes or haven't updated longer than the log interval, fixing a us/ms error.
|
2013-06-21 17:02:13 +10:00 |
|
Con Kolivas
|
ccfa893577
|
Increase watchdog sick time to longer than it takes for a pool to be detected dead.
|
2013-06-19 13:20:25 +10:00 |
|
Kano
|
e300e50281
|
disable curses device resize that crashes on windows
|
2013-06-19 11:59:28 +10:00 |
|
Con Kolivas
|
e0c4d35b28
|
Multiplier fail for microseconds vs milliseconds when updating hashmeter in hash_queued_work.
|
2013-06-18 20:59:45 +10:00 |
|
Con Kolivas
|
6eb7f6226a
|
Only make threads report in/out across the actual driver code and update their status on reporting out as well as in.
|
2013-06-18 20:30:48 +10:00 |
|
Con Kolivas
|
7014bd6b8b
|
Difficulty should be unconditionally byteswapped, not swapped to big endian.
|
2013-06-17 21:20:36 +10:00 |
|
Kano
|
7eba963477
|
remove varargs from logging/quit/in general as much as possible
|
2013-06-15 22:03:56 +10:00 |
|
Con Kolivas
|
6789c96fd4
|
Off by one error in device count for display.
|
2013-06-15 01:37:00 +10:00 |
|
Con Kolivas
|
994c0245c0
|
Don't display devices beyond the most_devices count in the curses status.
|
2013-06-15 01:31:37 +10:00 |
|
Con Kolivas
|
cd9ff7f6b8
|
Only display as many device rows as the maximum live existed at any time.
|
2013-06-15 01:28:00 +10:00 |
|
Kano
|
7ad9132bbe
|
usb lock out use cg locks
|
2013-06-15 01:02:27 +10:00 |
|
Kano
|
ad30d41f79
|
usb lock out transfers during open/close
|
2013-06-14 23:48:03 +10:00 |
|
Con Kolivas
|
42891f07a7
|
Merge pull request #444 from zenwheel/master
Compile UNIX conditionals on Mac OS X
|
2013-06-13 16:59:06 -07:00 |
|
ckolivas
|
465ca14236
|
Only show efficiency in pool information for pools that don't support local work generation.
|
2013-06-14 09:57:05 +10:00 |
|
ckolivas
|
9aeed2f992
|
Create a pool_localgen bool function for testing when a pool can generate work locally.
|
2013-06-14 09:56:22 +10:00 |
|
Scott Jann
|
16587dd7c1
|
compile unix code on Mac OS X
fixes not finding the config file in $HOME
|
2013-06-13 18:50:50 -05:00 |
|
Kano
|
84ffcbc51b
|
Use mining start time for device MH/U calculations
|
2013-06-14 01:09:50 +10:00 |
|
Con Kolivas
|
24398bde03
|
cgsem_post after creating the thread info
|
2013-06-09 16:38:57 +10:00 |
|
ckolivas
|
9b2e517f30
|
Use cgsem structures instead of the flaky pings in the work queue to start mining threads and remove the unused thr_info_freeze function.
|
2013-06-09 12:20:04 +10:00 |
|
ckolivas
|
b59c33800b
|
Implement cgminer specific cgsem semaphores to imitate unnamed semaphore behaviour on osx which does not support them.
|
2013-06-06 13:08:00 +10:00 |
|
Con Kolivas
|
dd5788762f
|
Fix build for !curses
|
2013-06-04 21:49:28 +10:00 |
|
Con Kolivas
|
03305afbae
|
Remove start device limitation on log window size to allow it to get larger with hotplugged devices.
|
2013-06-03 16:49:15 +10:00 |
|
Con Kolivas
|
fc95c19165
|
Switch logsize after hotplugging a device.
|
2013-06-03 16:38:40 +10:00 |
|
Con Kolivas
|
cc9223f041
|
Change switch_compact function name to switch_logsize to be used for other changes.
|
2013-06-03 16:37:56 +10:00 |
|
Con Kolivas
|
514491bd0e
|
Only adjust cursor positions with curses locked.
|
2013-06-03 16:01:20 +10:00 |
|
Kano
|
12045aae55
|
devs display - fix GPU duplicate bug
|
2013-06-03 12:26:50 +10:00 |
|
Con Kolivas
|
5f2c4f13f9
|
Do not hotplug enable a device if devices have been specified and the hotplug device falls outside this range.
|
2013-06-03 11:28:18 +10:00 |
|
Con Kolivas
|
6e014b0f8e
|
Merge branch 'master' of github.com:ckolivas/cgminer
|
2013-06-03 11:10:10 +10:00 |
|
Con Kolivas
|
727184d6ef
|
Change the --device parameter parsing and configuration to use ranges and comma separated values.
|
2013-06-03 11:09:36 +10:00 |
|
Kano
|
9b756d7316
|
devs display - show ZOMBIEs after all others
|
2013-06-03 10:24:02 +10:00 |
|
Con Kolivas
|
c7ffa58b26
|
Check for pool_disabled in wait_lp_current
|
2013-06-02 20:36:49 +10:00 |
|
Con Kolivas
|
6fec07ab7e
|
Check for pool enabled in cnx_needed.
|
2013-05-31 23:10:46 +10:00 |
|
Con Kolivas
|
181ada4e5a
|
Merge branch 'usbdev'
Conflicts:
cgminer.c
|
2013-05-30 18:03:27 +10:00 |
|
Con Kolivas
|
6fa32c9246
|
Revert "Perform execv in a forked child process, waiting on the original to exit to allow resources to be released."
This reverts commit b0fa94d52a .
Loses control of the terminal.
|
2013-05-30 13:49:54 +10:00 |
|
Con Kolivas
|
78d6bee137
|
Inverted sem_init logic.
|
2013-05-30 12:03:16 +10:00 |
|
Con Kolivas
|
b0fa94d52a
|
Perform execv in a forked child process, waiting on the original to exit to allow resources to be released.
|
2013-05-30 12:00:17 +10:00 |
|
Con Kolivas
|
f4a9a8e60c
|
Do avalon driver detection last as it will try to claim any similar device and they are not reliably detected.
|
2013-05-30 11:43:25 +10:00 |
|
Con Kolivas
|
cc04d3abc7
|
Use a counting semaphore to signal the usb resource thread that it has work to do.
|
2013-05-30 11:01:29 +10:00 |
|
Con Kolivas
|
185cac3ee9
|
Set devices to disabled after they exit the hashing loops to prevent the watchdog thread from trying to act on them.
|
2013-05-29 23:30:27 +10:00 |
|
Con Kolivas
|
502c7bcb4e
|
Add avalon driver to hotplug.
|
2013-05-29 23:06:18 +10:00 |
|
ckolivas
|
99b117be47
|
Scanhash functions perform driver shutdown so don't repeat it.
|
2013-05-29 12:26:12 +10:00 |
|
ckolivas
|
5b9cf0f077
|
Send the shutdown message to threads and do the thread shutdown functions before more forcefully sending pthread_cancel to threads.
|
2013-05-29 12:06:06 +10:00 |
|
Con Kolivas
|
876e7e5893
|
Merge branch 'icarus-dev' into usbdev
Conflicts:
usbutils.h
|
2013-05-29 00:01:54 +10:00 |
|
Con Kolivas
|
6972ec62a7
|
Execute driver shutdown sequence during kill_work.
|
2013-05-28 23:33:32 +10:00 |
|
Kano
|
2f94ec8025
|
usb separate thread for resource locking and modified windows locking code
|
2013-05-27 23:30:18 +10:00 |
|
Con Kolivas
|
9650bfd6a3
|
Compile usbutils into avalon driver.
|
2013-05-27 14:58:08 +10:00 |
|
Con Kolivas
|
44736b3012
|
Make submit_nonce return a bool for whether it's a valid share or not.
|
2013-05-26 20:59:40 +10:00 |
|
Kano
|
1bb2cadfa6
|
thread shutdown is different on windows
|
2013-05-23 21:11:16 +10:00 |
|
Con Kolivas
|
000c01dcae
|
Create a logwin_update function which mandatorily updates the logwin and use it when input is expected to prevent display refresh delays.
|
2013-05-19 22:17:02 +10:00 |
|
Con Kolivas
|
a009f0422f
|
Must unlock curses as well in logwin_update.
|
2013-05-19 21:30:16 +10:00 |
|
Con Kolivas
|
01fca3e756
|
Create a logwin_update function which mandatorily updates the logwin and use it when input is expected to prevent display refresh delays.
|
2013-05-19 21:28:53 +10:00 |
|
Con Kolivas
|
bbb797067f
|
Check for *pth dereference on pthread_join
|
2013-05-19 19:34:12 +10:00 |
|
Con Kolivas
|
04d530f36a
|
Make mining threads report out during work submission.
|
2013-05-19 16:40:35 +10:00 |
|
Con Kolivas
|
bb3b227b9b
|
submit_work_async is no longer used directly by driver code.
|
2013-05-19 16:39:07 +10:00 |
|
Con Kolivas
|
ecd03cefb7
|
Properly pthread_join miner threads on shutdown.
|
2013-05-19 12:55:46 +10:00 |
|
Con Kolivas
|
894a3d64f0
|
Properly pthread_join miner threads on shutdown.
|
2013-05-19 12:55:20 +10:00 |
|
Con Kolivas
|
69f36358b1
|
Merge branch 'master' into icarus-dev
|
2013-05-19 11:36:18 +10:00 |
|
Con Kolivas
|
3a2008ac61
|
Use a persistent single separate thread for stratum share submission that uses workqueues since all stratum sends are serialised.
|
2013-05-19 11:25:45 +10:00 |
|
Con Kolivas
|
bd652a623e
|
Only allow the mining thread to be cancelled when it is not within driver code, making for cleaner shutdown and allowing us to pthread_join the miner threads on kill_work().
|
2013-05-18 16:57:13 +10:00 |
|
Con Kolivas
|
830f30ff2d
|
Only allow the mining thread to be cancelled when it is not within driver code, making for cleaner shutdown and allowing us to pthread_join the miner threads on kill_work().
|
2013-05-18 16:56:23 +10:00 |
|
Kano
|
fac3bf8722
|
add icarus to hotplug
|
2013-05-17 22:06:54 +10:00 |
|
Kano
|
9f4a3a798d
|
Update documentation for icarus switch to USB
|
2013-05-17 15:05:51 +10:00 |
|
Kano
|
6219f977f6
|
switch icarus configuration to usb
|
2013-05-17 14:10:58 +10:00 |
|
Con Kolivas
|
4efe9ca82e
|
Attribute whatever stats we can get on untracked stratum shares based on current pool diff.
|
2013-05-13 22:23:13 +10:00 |
|
Con Kolivas
|
3f24653f56
|
Provide a --lowmem option which does not cache shares on failed submission to prevent low memory hardware (eg Avalon) from crashing.
|
2013-05-13 22:10:01 +10:00 |
|
Con Kolivas
|
1a7a87c2a6
|
Use a discrete device target for scrypt that dynamically changes to ensure we still report a work utility even if no shares are submitted such as in solo mining.
|
2013-05-11 20:29:48 +10:00 |
|
Con Kolivas
|
2fb6637b5a
|
Make set_work_target a function to set a specified char as target for use elsewhere.
|
2013-05-11 19:51:43 +10:00 |
|
Con Kolivas
|
0b6ee62cc4
|
Further consolidate the hash regeneration between sha and scrypt doing it only once and always checking the share diff for both before submission.
|
2013-05-11 19:34:44 +10:00 |
|
Con Kolivas
|
9a76db8db9
|
Regenerate the hash before checking the share diff in hashtest().
|
2013-05-11 17:04:49 +10:00 |
|
Con Kolivas
|
79dd9dfe13
|
Use a scantime of 30 seconds for scrypt if none is specified.
|
2013-05-11 16:50:53 +10:00 |
|
Con Kolivas
|
a923b7d3f0
|
Update the write config to properly record device entries and remove disabled option.
|
2013-05-11 15:25:42 +10:00 |
|
Kano
|
6cef9f423d
|
cgminer correct applog typing
|
2013-05-02 23:32:42 +10:00 |
|
Kano
|
8f08a327ca
|
applog - force type checking
|
2013-05-02 22:50:25 +10:00 |
|
Con Kolivas
|
8b2118b143
|
Clean up summary slightly better on exit.
|
2013-04-28 22:00:39 +10:00 |
|
Con Kolivas
|
3d835fc3e9
|
Fix build and distdir.
|
2013-04-22 19:28:50 +10:00 |
|
Con Kolivas
|
f4b2790761
|
Remove all CPU mining code.
|
2013-04-22 14:35:43 +10:00 |
|
Con Kolivas
|
856aa49c9c
|
Use copy_time helper throughout cgminer.c
|
2013-04-22 10:59:55 +10:00 |
|
Con Kolivas
|
d2abaa8317
|
Provide wrappers for commonly used timer routines with API stats.
|
2013-04-22 10:49:10 +10:00 |
|
Con Kolivas
|
170a4aeb26
|
Avoid one cgtime call in sole_hash_work.
|
2013-04-22 10:00:34 +10:00 |
|
Con Kolivas
|
4597c0a17e
|
Provide endian_flipX functions to avoid special casing big endian in cgminer.c
|
2013-04-22 09:35:48 +10:00 |
|
Con Kolivas
|
8d81f1d207
|
Provide a flip128 helper to simplify big endian flipping.
|
2013-04-22 09:28:06 +10:00 |
|
Con Kolivas
|
c351f8d8d3
|
Use flip helpers to simplify code for calculation of midstate.
|
2013-04-22 09:23:13 +10:00 |
|
Con Kolivas
|
f50ae46850
|
Use flip32 function instead of open coding it in gen_stratum_work.
|
2013-04-22 09:08:51 +10:00 |
|
Con Kolivas
|
bb964b4b99
|
Replace gettimeofday usage in cgminer.c with cgtime
|
2013-04-21 19:08:30 +10:00 |
|
ckolivas
|
5315838d2d
|
Restart threads on the rare chance we found the block ourselves.
|
2013-04-19 09:19:05 +10:00 |
|
Con Kolivas
|
a3bbe0e116
|
Set last device valid work on adding device.
|
2013-04-18 18:19:35 +10:00 |
|
Con Kolivas
|
3fa4a9f55f
|
Increment last device valid work count in submit_nonce to cover scrypt.
|
2013-04-18 17:58:58 +10:00 |
|
Con Kolivas
|
c1ff90a7ab
|
Do testing for HW errors on submit nonce for both scrypt and sha.
|
2013-04-18 15:07:32 +10:00 |
|
Con Kolivas
|
6b714dd431
|
Increment hardware error count from the one site.
|
2013-04-18 14:47:46 +10:00 |
|
Con Kolivas
|
a6250fbb96
|
Rename scrypt regenhash function for consistency.
|
2013-04-18 12:26:32 +10:00 |
|
Con Kolivas
|
daea9c95a7
|
Add new best share info to verbose logging.
|
2013-04-18 12:11:41 +10:00 |
|
Con Kolivas
|
1a7fc4e9cc
|
Add notice for when network diff is changed.
|
2013-04-18 10:47:02 +10:00 |
|
Con Kolivas
|
b4bc5e2b13
|
Check for work restart after disable in the hash queued work loop since it may be a long time before we re-enable a device.
|
2013-04-16 22:57:55 +10:00 |
|
Con Kolivas
|
d41d210b03
|
Set device_diff for queued work or there will be no diff1 share count.
|
2013-04-15 23:01:08 +10:00 |
|
Con Kolivas
|
67ebf45c19
|
Avoid applog under cg_wlock.
|
2013-04-15 11:44:19 +10:00 |
|
Con Kolivas
|
8d22ca1ac1
|
Put spacing around locking code for clarity.
|
2013-04-15 11:42:16 +10:00 |
|
Con Kolivas
|
3209c113d1
|
Avoid applog under pool_lock.
|
2013-04-15 11:34:21 +10:00 |
|
Con Kolivas
|
51fbcfed6d
|
Avoid more recursive locks.
|
2013-04-15 11:25:48 +10:00 |
|
Con Kolivas
|
b948669a4f
|
Avoid applog while ch_lock is held.
|
2013-04-15 11:13:48 +10:00 |
|
Con Kolivas
|
29f0ac77da
|
Avoid recursive locks in fill_queue.
|
2013-04-15 10:30:12 +10:00 |
|
Con Kolivas
|
c17a175e17
|
Merge branches 'avalon-dev' and 'master' of github.com:ckolivas/cgminer
|
2013-04-10 18:39:50 +10:00 |
|
Con Kolivas
|
64ec06628f
|
Merge pull request #417 from kanoi/bflsc
cgminer.c -S help to only say Icarus + usbutils more stats for bflsc
|
2013-04-10 01:31:32 -07:00 |
|
ckolivas
|
7231f7f92d
|
Fix warning on 32bit.
|
2013-04-10 10:59:38 +10:00 |
|
Con Kolivas
|
220eb85818
|
Rationalise and simplify the share diff and block solve detection to a common site.
|
2013-04-08 21:52:00 +10:00 |
|
Con Kolivas
|
5c7a32fde8
|
Rationalise and simplify the share diff and block solve detection to a common site.
|
2013-04-08 21:26:10 +10:00 |
|
Con Kolivas
|
d86f7b7741
|
Fix warning with no curses built in.
|
2013-04-07 02:19:01 +11:00 |
|
Con Kolivas
|
e9b6ff8f6a
|
Fix warning with no curses built in.
|
2013-04-07 01:46:16 +11:00 |
|
Con Kolivas
|
7783ab5631
|
Only get extra work in fill_queue if we don't have any unqueued work in the list.
|
2013-04-06 16:38:00 +11:00 |
|
Con Kolivas
|
97bad1eef6
|
Only get extra work in fill_queue if we don't have any unqueued work in the list.
|
2013-04-06 13:01:42 +11:00 |
|
Kano
|
8959f8d0ae
|
cgminer.c -S help to only say Icarus
|
2013-04-05 20:06:03 +11:00 |
|
Con Kolivas
|
180230220f
|
Rneame avalon_api to avalon_drv.
|
2013-04-05 18:31:20 +11:00 |
|
Con Kolivas
|
71bae003bc
|
First draft of port of avalon driver to new cgminer queued infrastructure.
|
2013-04-05 14:52:07 +11:00 |
|
Con Kolivas
|
e9a65bba40
|
Only update hashrate calculation with the log interval.
|
2013-04-05 11:18:08 +11:00 |
|
Con Kolivas
|
97a9172370
|
Update the total_tv_end only when we show the log to prevent failure to update logs.
|
2013-04-05 11:01:20 +11:00 |
|
James Z.M. Gao
|
c9ae715019
|
Compile CPU mining for win32 and win64
|
2013-04-04 22:59:10 +08:00 |
|
Con Kolivas
|
5f567345ba
|
Merge branch 'master' of github.com:ckolivas/cgminer
|
2013-04-03 02:13:05 +11:00 |
|
Con Kolivas
|
b3e734e7e1
|
Show share hash as little endian as needed.
|
2013-04-03 02:12:00 +11:00 |
|
Con Kolivas
|
76712c15fd
|
Merge pull request #414 from kanoi/bflsc
work queues - remove new but unnecessary functions + generic work structure flags for BFLSC (and usable by other drivers if needed)
|
2013-04-01 15:53:43 -07:00 |
|
Kano
|
ea327f7ba2
|
work queues - remove new but unnecessary functions
|
2013-04-01 13:10:15 +11:00 |
|
Con Kolivas
|
ea4cf57d94
|
Merge pull request #413 from kanoi/bflsc
find_work() to find work in devices work queue + usbutils extra message requirements + functions for handling work queues
|
2013-03-31 15:25:46 -07:00 |
|
Con Kolivas
|
e95813c8f6
|
Make hashmeter frequency for hash_queued_work match sole_work.
|
2013-04-01 09:22:58 +11:00 |
|
Kano
|
131e20042a
|
functions for handling work queues
|
2013-04-01 00:35:50 +11:00 |
|
Kano
|
b3ae0f168e
|
find_work() to find work in devices work queue
|
2013-03-31 21:54:32 +11:00 |
|
Con Kolivas
|
6c418f45b1
|
Remove increasingly irrelevant discarded work from status lines.
|
2013-03-21 15:11:38 +11:00 |
|
Con Kolivas
|
886df16d01
|
Remove increasingly irrelevant queued and efficiency values from status and move WU to status line.
|
2013-03-21 15:06:14 +11:00 |
|
Con Kolivas
|
1a19729aaa
|
Allow cgminer to start if usb hotplug is enabled but no devices yet exist.
|
2013-03-21 14:56:44 +11:00 |
|
Con Kolivas
|
1ed86decf3
|
If the hashmeter is less than the log interval and being updated by the watchdog, don't update the hashrate.
|
2013-03-18 14:36:10 +11:00 |
|
Con Kolivas
|
072ffbba42
|
Update the hashmeter at most 5 times per second.
|
2013-03-17 16:29:51 +11:00 |
|
Con Kolivas
|
13e19de4d5
|
Calculate work utility for devices that support target diffs of greater than 1, and update scrypt code to use it.
|
2013-03-17 10:15:24 +11:00 |
|
Con Kolivas
|
d7d630b86c
|
Set default GPU threads to 1 for scrypt.
|
2013-03-16 08:56:37 +11:00 |
|
Con Kolivas
|
21a36f4840
|
Connect backup stratum pools if the primary pool cannot deliver work.
|
2013-03-16 00:04:30 +11:00 |
|
Con Kolivas
|
e10a7041d8
|
Merge pull request #406 from kanoi/bflsc
USB device list - convert some common error numbers to messages + nDevs required for -n with usb
|
2013-03-15 00:23:05 -07:00 |
|
Con Kolivas
|
8d27ecf987
|
Merge branch 'master' of github.com:ckolivas/cgminer
|
2013-03-15 17:57:36 +11:00 |
|
Con Kolivas
|
5a2c2a7a85
|
Update the hashmeter once per second but only display the extra logs every opt_log_inteval.
|
2013-03-15 17:56:55 +11:00 |
|
Kano
|
28f515e91d
|
nDevs required for -n with usb
|
2013-03-15 06:22:22 +11:00 |
|
Kano
|
b21747b978
|
USB modify -n and --usb-dump to only show known devices or use new --usb-list-all option to see all
|
2013-03-15 00:02:17 +11:00 |
|
Con Kolivas
|
e9a9a51547
|
Merge pull request #404 from kanoi/bflsc
cgminer -n to include a USB device list
|
2013-03-14 04:48:35 -07:00 |
|
Con Kolivas
|
b6e3d5b4fa
|
Make pool adding while running asynchronous, using the pool test thread functionality.
|
2013-03-14 22:34:53 +11:00 |
|
Kano
|
1c04d14067
|
cgminer -n to include a USB device list
|
2013-03-13 23:24:34 +11:00 |
|
Con Kolivas
|
ffc8681f91
|
Merge pull request #403 from kanoi/bflsc
USB add --usb options to limit USB device selection v0.1 + --usb-dump display brief dump if value = 0
|
2013-03-12 18:07:17 -07:00 |
|
Con Kolivas
|
b5b3ca4911
|
Convert gbt_lock to a cg_lock.
|
2013-03-12 22:44:41 +11:00 |
|
Con Kolivas
|
b8ed231f64
|
Add intermediate variants of cglocks that can be up or downgraded to read or write locks and use them for stratum work generation.
|
2013-03-12 22:40:23 +11:00 |
|
Con Kolivas
|
26ddd1fd20
|
Move the stratum and GBT data to be protected under a new cg_lock data_lock.
|
2013-03-12 22:31:45 +11:00 |
|
Con Kolivas
|
fd87825bf9
|
Convert the ch_lock to cg_lock.
|
2013-03-12 22:17:08 +11:00 |
|
Con Kolivas
|
0bbaaa9723
|
Convert the control_lock to a cg_lock.
|
2013-03-12 22:07:06 +11:00 |
|
Con Kolivas
|
74164a3ae6
|
Remove unused qd_lock.
|
2013-03-12 22:00:44 +11:00 |
|
Kano
|
6d629d6856
|
do usb_initialise() after the started message so we see it
|
2013-03-11 11:52:05 +11:00 |
|
Kano
|
3f50e878a2
|
USB add --usb options to limit USB device selection v0.1
|
2013-03-11 10:58:28 +11:00 |
|
Con Kolivas
|
5412323e26
|
Fix memory leak with share submission on GPU work structures as discovered by twobitcoins.
|
2013-03-09 15:12:41 +11:00 |
|
Kano
|
f24fab3fd4
|
Show pool number in switch message
|
2013-03-09 11:47:36 +11:00 |
|
Con Kolivas
|
e0196a3307
|
Don't start testing any pools with the watchpool thread if any of the test threads are still active.
|
2013-03-09 11:33:50 +11:00 |
|
Con Kolivas
|
81c02123f8
|
Set pool died on failed testing to allow idle flag and time to be set.
|
2013-03-09 09:56:36 +11:00 |
|
Con Kolivas
|
6c77e9a884
|
Perform pool_resus on all pools that are found alive with the test pool threads.
|
2013-03-09 09:39:19 +11:00 |
|
Con Kolivas
|
d932a36c46
|
Use pool_unworkable in select_balanced as well.
|
2013-03-09 09:34:01 +11:00 |
|
Con Kolivas
|
90a1114a46
|
Differentiate pool_unusable from pool_unworkable.
|
2013-03-09 09:31:40 +11:00 |
|
Con Kolivas
|
3b84131f10
|
Keep a connection open on higher priority stratum pools to fail back to them.
|
2013-03-09 09:07:20 +11:00 |
|
Con Kolivas
|
f3ce5777a2
|
Rename threads according to what pool they're associated with as well.
|
2013-03-09 08:51:51 +11:00 |
|
Con Kolivas
|
9b34d82154
|
Set the wrong bool in pool_active
|
2013-03-09 08:10:57 +11:00 |
|
Con Kolivas
|
de28944328
|
Revert "Rollback breakage to 81567e515707891837f52bc3aac7d5916dfff5a2"
This reverts commit a8863995de .
This should work now...
|
2013-03-08 20:52:54 +11:00 |
|
ckolivas
|
8c87807519
|
Start the stratum thread only if we successfully init and authorise it, otherwise unset the init flag.
|
2013-03-08 15:32:10 +11:00 |
|
ckolivas
|
e746ed6412
|
Make the initialisation of the stratum thread more robust allowing the watchpool thread safe access to it after the stratum thread is started.
|
2013-03-08 15:18:10 +11:00 |
|
Con Kolivas
|
d7c4be30ba
|
Only set stratum auth once to prevent multiple threads being started.
|
2013-03-07 21:41:01 +11:00 |
|
Con Kolivas
|
3db4d6f0eb
|
Display select return value on select fail in stratum thread.
|
2013-03-07 21:07:15 +11:00 |
|
Con Kolivas
|
a8863995de
|
Rollback breakage to 81567e5157
|
2013-03-07 19:00:47 +11:00 |
|
Con Kolivas
|
a5d35e822a
|
Only bypass unusable pools if they're not the selected ones.
|
2013-03-07 18:44:40 +11:00 |
|
Con Kolivas
|
1468feb0d3
|
Find the first usable pool in preference to the current pool in select_pool for work.
|
2013-03-07 18:13:25 +11:00 |
|
Con Kolivas
|
ade8c6c79c
|
Add a pool_unusable function which checks if a pool is stratum but not active to use within switch_pools.
|
2013-03-07 18:00:15 +11:00 |
|
Con Kolivas
|
81567e5157
|
Perform pool resus on pools that were not set as the initial pool at startup.
|
2013-03-07 17:00:23 +11:00 |
|
Con Kolivas
|
c7c21e6c37
|
Revert "Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools."
This reverts commit 370e8fc862 .
|
2013-03-07 16:56:03 +11:00 |
|
Con Kolivas
|
370e8fc862
|
Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools.
|
2013-03-07 16:49:16 +11:00 |
|
Con Kolivas
|
e501db143d
|
Allow pools to be resuscitated on first startup by the watchpool thread.
|
2013-03-07 16:45:25 +11:00 |
|
Con Kolivas
|
5221662557
|
Check all pools simultaneously at startup switching to the first alive one to speed up startup.
|
2013-03-07 16:39:49 +11:00 |
|
Con Kolivas
|
12553004c5
|
Do not continue work from a stratum pool where the connection has been interrupted.
|
2013-03-07 14:40:48 +11:00 |
|
Con Kolivas
|
bba99bd88c
|
Show mechanism of stratum interruption if select times out.
|
2013-03-07 13:39:00 +11:00 |
|
Con Kolivas
|
011ea64096
|
Make stratum connection interrupted message higher priority to be visible at normal logging levels.
|
2013-03-07 12:42:44 +11:00 |
|
Con Kolivas
|
96ae17a466
|
Merge pull request #398 from kanoi/bflsc
API use control_lock when switching pools + Setup BFLSC support + API add 'Network Difficulty' to 'coin'
|
2013-03-06 15:51:33 -08:00 |
|
Kano
|
0eafc8b9fe
|
API add 'Network Difficulty' to 'coin'
|
2013-03-07 07:40:05 +11:00 |
|
Kano
|
540f3e89bc
|
Setup BFLSC support
|
2013-03-07 00:00:31 +11:00 |
|
ckolivas
|
386ea2dffb
|
Instead of keeping track of when the last work item was generated to keep stratum connections open, keep them open if any shares have been submitted awaiting a response.
|
2013-03-06 14:34:17 +11:00 |
|
Con Kolivas
|
82fce46633
|
Merge pull request #395 from kanoi/bflsc
configure - set USE_USBUTILS when usbutils is required and use it in the code
|
2013-03-05 02:47:19 -08:00 |
|
Kano
|
2f6660e83f
|
configure - set USE_USBUTILS when usbutils is required and use it in the code
|
2013-03-05 18:33:43 +11:00 |
|
Con Kolivas
|
016f065f69
|
Clear last pool work on switching pools if the current pool supports local work generation or we are in failover only mode.
|
2013-03-05 11:16:20 +11:00 |
|
Kano
|
120e9a072d
|
make rw locks: mining_thr_lock and devices_lock
|
2013-03-04 22:46:34 +11:00 |
|
Kano
|
be8cadbc46
|
Hotplug - allow setting interval via --hotplug or API
|
2013-03-04 17:26:11 +11:00 |
|
Kano
|
97cb77d18a
|
curses - fix - put a dev_width inside #ifdef
|
2013-03-04 14:06:15 +11:00 |
|
Kano
|
e35e8ae135
|
Implement and use usb_cleanup() on shutdown or restart
|
2013-03-04 09:45:07 +11:00 |
|
Kano
|
c14f2ec642
|
API V1.25 - add 'Last Valid Work' time for each device
|
2013-03-03 19:33:20 +11:00 |
|
Kano
|
cc3869e5ce
|
api -> drv
|
2013-03-03 16:38:02 +11:00 |
|
Con Kolivas
|
357294a70e
|
Merge branch 'usb-dev'
|
2013-03-02 17:22:42 +11:00 |
|
Con Kolivas
|
2c3a946cf9
|
Update a pool's last work time when the work is popped as well as staged.
|
2013-03-02 16:01:37 +11:00 |
|
Con Kolivas
|
5c32a47b96
|
Merge pull request #375 from luke-jr/bugfix_cfgwrite_fnleak
Free filename entry for writing config file when done with it
|
2013-03-01 14:29:20 -08:00 |
|
Con Kolivas
|
52995e2811
|
Merge pull request #389 from kanoi/bflsc
BFL stop 1st init command if no device + Update diff stale: total and pools when stratum throws away shares
|
2013-03-01 14:28:02 -08:00 |
|
Kano
|
42a01e7b37
|
Update diff stale: total and pools when stratum throws away shares
|
2013-03-01 16:49:08 +11:00 |
|
Con Kolivas
|
b2b0d10a00
|
Merge branch 'master' into usb-dev
|
2013-02-28 23:37:06 +11:00 |
|
Con Kolivas
|
b4cac54a7e
|
Keep stratum connections open for 2 minutes after the last work item was staged to allow stray shares to be submitted on pool switching.
|
2013-02-28 23:35:31 +11:00 |
|
Con Kolivas
|
5abcf06bbe
|
Merge branch 'master' into usb-dev
|
2013-02-25 10:44:54 +11:00 |
|
Con Kolivas
|
d9d5a1a0b6
|
Speed up watchdog interval and therefore display updates to 2 seconds.
|
2013-02-25 10:43:47 +11:00 |
|
Con Kolivas
|
5a3b374962
|
Update copyright dates.
|
2013-02-25 08:59:11 +11:00 |
|
Con Kolivas
|
6bf79626b8
|
Merge branch 'master' into usb-dev
|
2013-02-23 13:59:37 +11:00 |
|
Con Kolivas
|
d16d4928f7
|
Fix --benchmark generating valid work for cgminer.
|
2013-02-22 21:41:47 +11:00 |
|
ckolivas
|
6a0882f05b
|
Use the sessionid as passed on stratum connect to attempt to resume a connection once and then clear it if it fails, to use a new connection.
|
2013-02-22 16:55:39 +11:00 |
|
ckolivas
|
68d691093c
|
Move to storing the nonce1 in the work struct instead of the sessionid for the now defunct first draft mining.resume protocol.
|
2013-02-22 12:55:01 +11:00 |
|
Con Kolivas
|
fce5434975
|
Add a get_queued function for devices to use to retrieve work items from the queued hashtable.
|
2013-02-18 14:14:10 +11:00 |
|
ckolivas
|
f910476daa
|
Merge branch 'usb-dev' into queued_work
|
2013-02-17 00:10:59 +11:00 |
|
ckolivas
|
22a50a5a0f
|
Merge branch 'usb-dev' of github.com:ckolivas/cgminer into usb-dev
|
2013-02-17 00:10:36 +11:00 |
|
Con Kolivas
|
4fdd45af6b
|
Merge pull request #387 from luke-jr/bugfix_20130215b
Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free
|
2013-02-16 03:51:33 -08:00 |
|
Luke Dashjr
|
0847d45867
|
Bugfix: Duplicate stratum sessionid when copying work, to avoid double-free
|
2013-02-16 06:46:00 +00:00 |
|
Con Kolivas
|
fda6d46e95
|
Add the choice of hash loop to the device driver, defaulting to hash_sole_work if none is specified.
|
2013-02-16 14:09:44 +11:00 |
|
Con Kolivas
|
254e25ac7f
|
Add comments.
|
2013-02-16 14:03:40 +11:00 |
|
Con Kolivas
|
c80c65eac0
|
Add a driver specific flush_work for queued devices that may have work items already queued to abort working on them on the device and discard them.
|
2013-02-16 12:38:53 +11:00 |
|
Con Kolivas
|
294cda2eb2
|
Flush queued work on a restart from the hash database and discard the work structs.
|
2013-02-16 12:35:16 +11:00 |
|
Con Kolivas
|
e8e88beff1
|
Create a central point for removal of work items completed by queued device drivers.
|
2013-02-16 12:28:50 +11:00 |
|
Con Kolivas
|
95b2020263
|
Create a fill_queue function that creates hashtables of as many work items as is required by the device driver till it flags the queue full.
|
2013-02-16 12:14:13 +11:00 |
|
Con Kolivas
|
5e3253a7cf
|
Create the hash queued work variant for use with devices that are fast enough to require a queue.
|
2013-02-16 11:54:05 +11:00 |
|
Con Kolivas
|
649f2939f7
|
Update copyright year.
|
2013-02-16 09:09:44 +11:00 |
|
Con Kolivas
|
0b83313161
|
Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle, not opt_log_interval.
|
2013-02-16 09:08:19 +11:00 |
|
Con Kolivas
|
e414cd055c
|
Fix tv_lastupdate being made into tv_end and update the hashmeter on cycle, not opt_log_interval.
|
2013-02-16 09:07:33 +11:00 |
|
Con Kolivas
|
ab0cc58cb4
|
Merge branch 'master' into usb-dev
|
2013-02-15 23:15:11 +11:00 |
|
Con Kolivas
|
0f7ab3670c
|
Only continue submitting shares with mining.resume support on stratum when the session id matches.
|
2013-02-15 23:11:13 +11:00 |
|