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

43 Commits

Author SHA1 Message Date
James Z.M. Gao
c9ae715019 Compile CPU mining for win32 and win64 2013-04-04 22:59:10 +08:00
Con Kolivas
c45096d839 Merge pull request #381 from denis2342/hw_errors
several changes to avoid the display of hw errors
2013-03-04 12:56:12 -08:00
Kano
00489f4c14 ZTX bug set missing drv_id 2013-03-03 16:04:47 +11:00
Kano
bc5755233c call a separate get_devices() with locking, as required 2013-02-08 02:12:09 +11:00
Kano
983fe2b0c0 usbutils hotplug v0.1 2013-02-08 01:42:36 +11:00
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 2013-02-02 20:14:19 +11:00
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.
2013-01-01 22:52:46 +01:00
Denis Ahrens
8be5da3d69 driver-ztex: react to new work in 10ms and not 250ms 2013-01-01 22:52:46 +01:00
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.
2013-01-01 22:52:46 +01:00
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.
2013-01-01 22:52:46 +01:00
Con Kolivas
deb9aec0ed Remove the unused sha224 functions. 2012-12-24 12:54:09 +11:00
Denis Ahrens
abae6b983a driver-ztex: use the correct size for the swap array 2012-12-13 00:21:21 +01:00
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).
2012-12-11 23:47:26 +01:00
Denis Ahrens
26ef730c28 driver-ztex: support for broken fpga on a multifpga board 2012-12-09 11:37:02 +01:00
Con Kolivas
b53fa540b4 Merge pull request #347 from denis2342/ztex
Ztex: more whitespace and style fixes
2012-12-08 12:38:58 -08:00
Denis Ahrens
dba007287c ztex: more style and whitespace fixes 2012-12-08 19:29:36 +01:00
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. 2012-12-07 13:21:46 +11:00
Denis Ahrens
f7083c00af driver-ztex: libztex_setFreq() must be called before ztex_releaseFpga() 2012-12-06 16:52:06 +01:00
Denis Ahrens
e59f668191 driver-ztex: changed two pairs of malloc()/memset() to calloc() 2012-12-06 16:47:19 +01:00
Denis Ahrens
0e5c716cfc ztex: Correctly release mutex and reset FPGA if configuration fails 2012-11-26 04:15:27 +01:00
Denis Ahrens
4629553ad6 ztex: Display FPGA clock frequency with only one decimal 2012-11-26 04:15:27 +01:00
Con Kolivas
14e169b29f Add an extra slot in the max backlog for ztex to minimise dupes. 2012-11-24 12:41:35 +11:00
Con Kolivas
90d1d7b6ca Convert unreliable usleep calls to nmsleep calls in ztex driver. 2012-11-18 22:21:20 +11:00
ckolivas
5c7e03084a Modify te scanhash API to use an int64_t and return -1 on error, allowing zero to be a valid return value. 2012-07-11 22:59:58 +10:00
Luke Dashjr
d4af2d0535 Turn work_restart array into a bool in thr_info 2012-07-06 05:13:05 +00:00
Con Kolivas
ae400b4f09 Only show ztex board count if any exist. 2012-06-26 22:38:18 +10:00
Con Kolivas
5cf4b7c432 Make the devices array a dynamically allocated array of pointers to allow unlimited devices. 2012-06-25 16:59:29 +10:00
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
2012-05-04 08:33:13 -07:00
nelisky
ec336cdeb2 Removing extra debug 2012-05-04 01:10:35 -07:00
nelisky
0eda541560 ztex updateFreq was always reporting on fpga 0 2012-05-03 14:13:34 -07:00
nelisky
0080aea432 Trying harder to get 1.15y working 2012-05-03 13:24:59 -07:00
nelisky
4c4d3b51b0 fix typo 2012-05-03 10:28:29 -07:00
nelisky
7aaf1b6a07 Specifying threads on multi fpga boards extra cgpu 2012-05-03 09:35:59 -07:00
nelisky
5a58b3f5b3 Missing the add cgpu per extra fpga on 1.15y boards 2012-05-03 09:06:09 -07:00
nelisky
57a72d51fb Blind implementation of multi-fpga board 1.15y. 2012-05-02 07:26:52 -07:00
Con Kolivas
ab764da472 Merge pull request #178 from nelisky/ztex-120417
Firmware 15d4 support
2012-04-26 16:33:27 -07:00
nelisky
316ebc3b04 Code style cleanup 2012-04-25 04:54:51 -07:00
nelisky
b29edd111d Using less heap space as my TP-Link seems to not handle this much 2012-04-25 01:55:56 -07:00
Kano
cad0855ba8 Ensure everyone sees the same screen/api name as the previous version for ZTex 2012-04-23 18:10:21 +10:00
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.
2012-04-22 08:14:54 -07:00
Con Kolivas
78a32f2ebc Style police on driver-ztex.c 2012-04-22 10:54:26 +10:00
Luke Dashjr
730849c988 Make a union for cgpu device handles, and rename "device" to "device_ztex" since it's Ztex-specific 2012-04-21 03:01:42 -04:00
Luke Dashjr
657716e563 Merge branch 'master' into ztex 2012-04-21 02:56:20 -04:00