ckolivas
6d7471237d
Use macro expansion to iterate over all device drivers without needing to explicitly code in support in all places. Pass a hotplug bool to the detect() function to prevent opencl trying to hogplug GPUs.
11 years ago
ckolivas
741b74309e
Forward declare all device drivers in miner.h avoiding the need to export them everywhere else.
11 years ago
ckolivas
8875197466
Create a macro list of drivers to enable easier addition of further drivers.
11 years ago
Con Kolivas
eeac9d81fc
Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements.
11 years ago
Con Kolivas
78d78b1063
Import Aaron D. Gifford's fast sha256 implementation.
11 years ago
Kano
ad1572f77f
size check get_datestamp/get_timestamp and remove unused cgpu->init
12 years ago
Kano
385a70bea7
make all statline overflow safe
12 years ago
Kano
9f4a3a798d
Update documentation for icarus switch to USB
12 years ago
Kano
d3955b8951
ztx correct applog typing
12 years ago
Con Kolivas
3cb24c2ca3
Use cgtime in driver-ztex.c
12 years ago
James Z.M. Gao
c9ae715019
Compile CPU mining for win32 and win64
12 years ago
Kano
00489f4c14
ZTX bug set missing drv_id
12 years ago
Kano
bc5755233c
call a separate get_devices() with locking, as required
12 years ago
Kano
983fe2b0c0
usbutils hotplug v0.1
12 years ago
Kano
a344deb6ac
rename device_api -> device_drv and all related api -> drv and add a device_drv->drv enum for identifying which driver each is
12 years ago
Denis Ahrens
f5306156f7
driver-ztex: only reset errors if there are some
...
Only check the errors and print the log message if
there actually were errros.
12 years ago
Denis Ahrens
8be5da3d69
driver-ztex: react to new work in 10ms and not 250ms
12 years ago
Denis Ahrens
f553c50b7b
ztex: if we had only errors in one round we do not count the errors
...
to detect a totally non working fpga we only do that if the last
round had some valid nonces.
if we would count the errors the automatic megahertz adaption
would drop and never recover.
12 years ago
Denis Ahrens
ccee686aee
ztex: precheck the secondary solutions to avoid hw errors
...
the ztex bitstreams gives back the latest checked nonce and
its hash7 value and two possible solutions.
every 250ms the latest nonce is checked and compared with hash7
to count hw errors and adapt the MHz value. one change is to
use the solutions even if the latest nonce is not correct. the
original java ztex code also does it this way.
since the second solution is often not correct we have alot
of hw errors. now we always check the second solution before
we submit it to the cgminer main code.
the java code also ignores all hw errors 500ms after a sendHash.
we now do the same. this can possibly yield in a higher MHz rate.
but the chance is so low nobody will ever notice in practice.
12 years ago
Con Kolivas
deb9aec0ed
Remove the unused sha224 functions.
12 years ago
Denis Ahrens
abae6b983a
driver-ztex: use the correct size for the swap array
12 years ago
Denis Ahrens
7c01f16593
driver-ztex: search the complete noncerange based on the actual speed
...
search the complete noncerange until the range to the end is more
work than at the last round. doing one more round would mean we
would have a overrun, which is a waste.
with actual ztex boards this means that a new getwork is needed
every 19 seconds in general and not every 10 seconds (without
rollntime).
12 years ago
Denis Ahrens
26ef730c28
driver-ztex: support for broken fpga on a multifpga board
12 years ago
Denis Ahrens
dba007287c
ztex: more style and whitespace fixes
12 years ago
Con Kolivas
c99636f21b
Begin tearing down the old workio command queues by removing submit commands from there and submit them asynchronously via their own threads.
12 years ago
Denis Ahrens
f7083c00af
driver-ztex: libztex_setFreq() must be called before ztex_releaseFpga()
12 years ago
Denis Ahrens
e59f668191
driver-ztex: changed two pairs of malloc()/memset() to calloc()
12 years ago
Denis Ahrens
0e5c716cfc
ztex: Correctly release mutex and reset FPGA if configuration fails
12 years ago
Denis Ahrens
4629553ad6
ztex: Display FPGA clock frequency with only one decimal
12 years ago
Con Kolivas
14e169b29f
Add an extra slot in the max backlog for ztex to minimise dupes.
12 years ago
Con Kolivas
90d1d7b6ca
Convert unreliable usleep calls to nmsleep calls in ztex driver.
12 years ago
ckolivas
5c7e03084a
Modify te scanhash API to use an int64_t and return -1 on error, allowing zero to be a valid return value.
13 years ago
Luke Dashjr
d4af2d0535
Turn work_restart array into a bool in thr_info
13 years ago
Con Kolivas
ae400b4f09
Only show ztex board count if any exist.
13 years ago
Con Kolivas
5cf4b7c432
Make the devices array a dynamically allocated array of pointers to allow unlimited devices.
13 years ago
Paul Sheppard
820d662c9d
Removed idle mode.
...
Added watchdog thread BFL temperature monitoring.
13 years ago
Paul Sheppard
ebeaf15f18
Added idle mode
...
Idle is only set by pgadisable, so GPU/CPU is unaffected.
For Icarus/Ztex, in scanhash the thread is immediately set disabled then returns.
13 years ago
nelisky
ed60e33a94
Some tweaks to reporting and logging.
...
- Adding fpga number to the ztex string representation
- Removing usb details from the ztex string representation
- First frequency set no longer reports a bogus old freq
13 years ago
nelisky
ec336cdeb2
Removing extra debug
13 years ago
nelisky
0eda541560
ztex updateFreq was always reporting on fpga 0
13 years ago
nelisky
0080aea432
Trying harder to get 1.15y working
13 years ago
nelisky
4c4d3b51b0
fix typo
13 years ago
nelisky
7aaf1b6a07
Specifying threads on multi fpga boards extra cgpu
13 years ago
nelisky
5a58b3f5b3
Missing the add cgpu per extra fpga on 1.15y boards
13 years ago
nelisky
57a72d51fb
Blind implementation of multi-fpga board 1.15y.
13 years ago
nelisky
316ebc3b04
Code style cleanup
13 years ago
nelisky
b29edd111d
Using less heap space as my TP-Link seems to not handle this much
13 years ago
Kano
cad0855ba8
Ensure everyone sees the same screen/api name as the previous version for ZTex
13 years ago
nelisky
5f5e1063f4
Firmware 15d4 support
...
Not yet using suspend and while we have fpga counting implemented it isn't being used yet, thus only the groundwork for quad board support is done, not actually working yet.
13 years ago
Con Kolivas
78a32f2ebc
Style police on driver-ztex.c
13 years ago