Paul Sheppard
68f2aaf930
fix bitforce_init return value
...
Also add filename as kernel name
13 years ago
Kano
4dee0d049c
FPGA - allow device detect override without an open failure
13 years ago
Paul Sheppard
4fd53c9eb1
thread init fix
13 years ago
Paul Sheppard
2ec612e0b4
Added startup delay to worker threads.
...
Prevents devices from making calls at the same time.
13 years ago
Paul Sheppard
1b63a75d2c
Simple auto sleep-time calibration.
...
Optimises the sleep time while waiting for the BFL work to finish.
Takes ~5 mins to settle to the correct time for each unit, then will continue to make adjustments.
13 years ago
Paul Sheppard
2384d0fbc6
Removed idle mode... again!?
...
Changed work_reset rate to every 100ms & use defines rather than numerics.
Change total sleep time to 4300ms after performance testing/measurement (now good to 916MH/s).
Changed timeout to 15s - Throttle time is 15s.
Added support for 'Busy' when submitting work.
Improved logging text to include device identifier.
Added a thread_enable api function, called when a thread is re-enabled.
... and removed useless re-init inside scanhash.
Use modminer introduced mutex.
13 years ago
Luke Dashjr
d3fa59d76f
Abstract generally useful FPGA code into fpgautils.c
13 years ago
Paul Sheppard
2dd7c4e1c0
Added checking of work_reset while waiting for BFL to return results
13 years ago
Paul Sheppard
820d662c9d
Removed idle mode.
...
Added watchdog thread BFL temperature monitoring.
13 years ago
Paul Sheppard
036a97c21a
Added bitforce init and shutdown.
...
bitforce_init closes/reopens the com port and re-initialises the unit.
13 years ago
Paul Sheppard
ec394533a2
Idle mode for bitforce
13 years ago
Paul Sheppard
ed06c97e2e
Added 30s BFL hashing timeout
13 years ago
Paul Sheppard
652326c2a1
Scanhash split into separate functions
...
Some adjustment of log reporting
13 years ago
Paul Sheppard
8d2936730b
Fix return values
13 years ago
Paul Sheppard
cebd647f50
Messing with BFL code
13 years ago
Paul Sheppard
4db47aa57a
Return error if BFL take longer then 10s
13 years ago
Luke Dashjr
06023e549e
Bugfix: Return failure, rather than quit, if BFwrite fails
13 years ago
Kano
20676694f3
Ensure everyone sees the same screen/api name as the previous version for Bitforce
13 years ago
Luke Dashjr
0f74ba059e
Implement and document "-S noauto" to inhibit autoscanning without specifying a serial device
13 years ago
Luke Dashjr
f05a319e01
CGPU API for device names
13 years ago
Luke Dashjr
303dbf4664
Abstract add_cgpu function, to handle device id numbering and devices array
13 years ago
Luke Dashjr
e131dfab31
Unify drivers as driver-*.c and add driver name to API
13 years ago
Luke Dashjr
8bafc8d22c
Allow specifying a specific driver for --scan-serial
...
For example: --scan-serial bitforce:/dev/ttyUSB0
13 years ago
Luke Dashjr
3ec89d731b
Bugfix: ZLX to read BitFORCE temp, not ZKX -.-
13 years ago
Luke Dashjr
ae99714241
Use libudev to autodetect BitFORCE GPUs, if available
13 years ago
Luke Dashjr
cc08d95587
Tolerate new-format temperature readings
13 years ago
Luke Dashjr
829dcf9d2b
Bugfix: Fix BitFORCE driver memory leak in debug logging
13 years ago
Xiangfu
07b0ed4a63
fix the bitforce.c code style follow 1TBS
13 years ago
Con Kolivas
d1cddf8bad
Update licensing to GPL V3.
13 years ago
Con Kolivas
02295c69c8
Allow devices that are disabled due to overheating to be flagged as recovering instead of disabling them and re-enable them if they're below ideal
...
temperatures and --no-restart has not been set.
13 years ago
Con Kolivas
be9db9ce63
Copyright updates.
13 years ago
Luke Dashjr
c31c06703f
bitforce: Simplify BFopen WIN32 ifdef/else
13 years ago
Luke Dashjr
c904b74b8c
bitforce: Cleanup extraneous TODO that isn't needed
13 years ago
Luke Dashjr
2f0a3dc2db
Move tcsetattr (and new tcflush) into *nix BFopen to simplify things a bit
13 years ago
Luke Dashjr
538b0ebf88
bitforce: Set a 30 second timeout for serial port on Windows, since the default is undefined
13 years ago
Luke Dashjr
75da96b51b
bitforce: Disable automatic scanning when at least one device is specified manually
13 years ago
Con Kolivas
56907db2d6
Fix harmless warnings with -Wsign-compare to allow cgminer to build with -W.
13 years ago
Con Kolivas
111238489f
Fix missing field initialisers warnings.
13 years ago
Luke Dashjr
543265d66a
Generalize --temp-cutoff and implement support for reading temperature from BitFORCE FPGAs
13 years ago
Luke Dashjr
5be4bf70fe
Bugfix: BitFORCE index needs to be static to count correctly
13 years ago
ckolivas
6eee0e3874
Fix warnings in bitforce.c
13 years ago
Luke Dashjr
2f903b5d77
Bugfix: Need to open BitForce tty for read-write
13 years ago
Con Kolivas
80650dd919
Define O_CLOEXEC for older headers that don't have it.
13 years ago
Con Kolivas
d485261e92
Fix broken non-win32 build with bitforce enabled.
13 years ago
Luke Dashjr
4ae7baf0e1
BitForce: Need to use CreateFile and low-level (descriptor-based) C APIs on Windows, since fopen doesn't work with serial ports
13 years ago
Con Kolivas
10378f878a
Fix windows build of bitforce blindly. Hopefully it works.
13 years ago
Luke Dashjr
5dfc8b694f
BitForce FPGA support
...
cgminer will scan for and mine BitForce FPGAs on USB ports by providing the
new --scan-serial <device> option, or autodetect them by searching
/dev/serial/by-id for *BitFORCE_SHA256*
13 years ago