miner.h


Log

Author Commit Date CI Message
Paul Sheppard f2253929 2012-06-28T08:20:45 Add low hash threshold in sick/dead processing Add check for fd in comms procedures
Paul Sheppard 78d5a81d 2012-06-26T12:32:09 Merge branch 'master' of https://github.com/ckolivas/cgminer.git
ckolivas dffda238 2012-06-26T12:50:52 Increase GPU timing resolution to microsecond and add sanity check to ensure times are positive.
Paul Sheppard df9e76bd 2012-06-25T10:56:04 Merge branch 'master' of https://github.com/ckolivas/cgminer.git
Con Kolivas c027492f 2012-06-25T17:06:26 Make the pools array a dynamically allocated array to allow unlimited pools to be added.
Con Kolivas 5cf4b7c4 2012-06-25T16:59:29 Make the devices array a dynamically allocated array of pointers to allow unlimited devices.
Con Kolivas eaf15053 2012-06-25T13:31:52 Dynamic intensity for GPUs should be calculated on a per device basis. Clean up the code to only calculate it if required as well.
Con Kolivas f32ffb87 2012-06-24T13:20:17 Work out a rolling average getwork delay stored in pool_stats.
ckolivas 6a45cbbd 2012-06-23T23:45:08 Merge branch 'master' of https://github.com/ckolivas/cgminer
ckolivas c5a21fab 2012-06-23T23:43:22 Extend nrolltime to support the expiry= parameter. Do this by turning the rolltime bool into an integer set to the expiry time. If the pool supports rolltime but not expiry= then set the expiry time to the standard scantime.
Paul Sheppard e0370281 2012-06-19T10:40:00 Merge branch 'master' of https://github.com/ckolivas/cgminer.git Conflicts: driver-bitforce.c
Con Kolivas f70577b0 2012-06-19T04:38:49 Merge pull request #229 from luke-jr/modminer_primary modminer: Don't delay 2nd+ FPGAs during work restart
Luke Dashjr 1215da39 2012-06-18T05:51:09 modminer: Don't delay 2nd+ FPGAs during work restart Add primary_thread boolean to threads to identify a single one as the "primary" thread for shared-resource multithreading. This is needed since ModMiners use multiple threads to interface with independent hashing components.
Paul Sheppard fe4c0869 2012-06-17T09:44:42 Merge branch 'master' of git://github.com/ckolivas/cgminer.git Conflicts: cgminer.c
Paul Sheppard 7ae22e21 2012-06-16T20:24:40 Disable OpenCL code when not available.
Paul Sheppard bc4a259a 2012-06-14T08:13:07 Merge branch 'master' of git://github.com/ckolivas/cgminer.git
Con Kolivas 30bb3c62 2012-06-14T02:38:24 Merge pull request #224 from kanoi/master API add ModMinerQuad support
Paul Sheppard 2d1f9610 2012-06-14T00:05:31 Merge branch 'master' of git://github.com/ckolivas/cgminer.git
Con Kolivas dbe9056d 2012-06-14T15:42:43 Add mandatory and block fields to the work struct. Flag any shares that are detected as blocks as mandatory to submit, along with longpoll work from a previously rejecting pool.
Paul Sheppard b94e1996 2012-06-13T17:31:20 Merge branch 'master' of https://github.com/ckolivas/cgminer.git
Paul Sheppard eff2d04d 2012-06-13T12:31:33 Merge branch 'master' of https://github.com/ckolivas/cgminer.git Conflicts: cgminer.c
Paul Sheppard 1b63a75d 2012-06-13T12:26:03 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.
Luke Dashjr 4eb23c7e 2012-06-13T16:56:31 Bugfix: slay a variety of warnings
Kano 913221c3 2012-06-14T02:57:37 API add ModMinerQuad support
Paul Sheppard 2384d0fb 2012-06-12T18:20:18 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.
Luke Dashjr a78d616b 2012-06-12T16:31:17 modminer: Temperature sensor improvements Display the temperature of each of the (up to) 4 FPGAs
Paul Sheppard 861388f9 2012-06-12T09:04:42 Merge branch 'master' of https://github.com/ckolivas/cgminer.git
Luke Dashjr 76f96f47 2012-06-11T03:02:10 New driver: BTCFPGA ModMiner
Luke Dashjr d3fa59d7 2012-06-05T02:17:09 Abstract generally useful FPGA code into fpgautils.c
Paul Sheppard bf4d6c34 2012-06-11T13:36:35 Merge branch 'master' of https://github.com/ckolivas/cgminer.git
Paul Sheppard 4889d7ec 2012-06-11T13:09:27 Merge branch 'master' of git@github.com:pshep/cgminer.git Conflicts: driver-bitforce.c
Paul Sheppard 3347f806 2012-06-10T23:14:51 Merge branch 'master' of git://github.com/ckolivas/cgminer.git
Paul Sheppard 820d662c 2012-06-10T23:11:59 Removed idle mode. Added watchdog thread BFL temperature monitoring.
Paul Sheppard ebeaf15f 2012-06-09T19:30:32 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.
Kano fdcd72b9 2012-06-10T11:19:21 API add stats for pool getworks
Kano 3cb3f09a 2012-05-31T23:18:55 API save default config file if none specified
Con Kolivas 598476ca 2012-05-30T18:02:00 Merge pull request #204 from kanoi/icarus-timer Icarus: high accuracy timing and other bitstream speed support
Con Kolivas 85210ee7 2012-05-31T08:41:56 If shares are known stale, don't use them to decide to disable a pool for sequential rejects.
Paul Sheppard cebd647f 2012-05-22T08:10:00 Messing with BFL code
Kano b5ed958e 2012-05-16T22:25:21 Icarus: high accuracy timing and other bitstream speed support
Con Kolivas e195a31c 2012-05-06T20:49:06 Fix win32 build.
Con Kolivas 61696c07 2012-05-06T16:22:18 In the unlikely event of finding a block, display the block solved count with the pool it came from for auditing.
Con Kolivas 85c9e0c4 2012-05-05T06:38:30 Merge pull request #198 from kanoi/stats API add getwork stats to cgminer - accesable from API 'stats' - and devices can add stats also
Kano 00158c3a 2012-05-05T16:25:19 API 'stats' allow devices to add their own stats also for testing/debug
Kano 976e27c4 2012-05-05T15:04:15 API add getwork stats to cgminer - accesable from API 'stats'
Con Kolivas 46a679f3 2012-05-05T12:55:00 Revert "Provide simple macros for the repeated use of checking the first value of the input char with strncasecmp." This reverts commit 87708a6a0e151401aee6cebf624940467993707b. Broken.
Con Kolivas c8e1026d 2012-05-05T09:37:33 Get rid of unitialised variable warning when it's false.
Con Kolivas 87708a6a 2012-05-04T23:05:00 Provide simple macros for the repeated use of checking the first value of the input char with strncasecmp.
Con Kolivas 4987958e 2012-05-04T20:10:38 Add a temporarily disabled state for enabled pools called POOL_REJECTING and use the work from each longpoll to help determine when a rejecting pool has started working again. Switch pools based on the multipool strategy once a pool is re-enabled.
Kano 44fc6987 2012-05-04T00:13:42 API add last share time to each pool
Con Kolivas a4f1af17 2012-05-03T15:35:13 Detect pools that have issues represented by endless rejected shares and disable them, with a parameter to optionally disable this feature.
Con Kolivas 5081c182 2012-05-03T09:24:25 Limit the number of curls we recruit on communication failures and with delaynet enabled to 5 by maintaining a per-pool curl count, and using a pthread conditional that wakes up when one is returned to the ring buffer.
Con Kolivas d4405de7 2012-05-03T08:56:42 Generalise add_pool() functions since they're repeated in add_pool_details.
ckolivas 85008a78 2012-05-02T10:12:07 Reap curls that are unused for over a minute. This allows connections to be closed, thereby allowing the number of curl handles to always be the minimum necessary to not delay networking.
Con Kolivas 7d288eac 2012-05-01T19:59:37 Implement a scaleable networking framework designed to cope with any sized network requirements, yet minimise the number of connections being reoped. Do this by create a ring buffer linked list of curl handles to be used by getwork, recruiting extra handles when none is immediately available.
Con Kolivas 89053c78 2012-05-01T19:12:37 There is no need for the submit and getwork curls to be tied to the pool struct.
Con Kolivas 1ab318d0 2012-04-27T13:11:19 Start longpoll only after we have tried to extract the longpoll URL.
Con Kolivas eda38299 2012-04-27T11:58:47 Create one longpoll thread per pool, using backup pools for those pools that don't have longpoll. Use the work created from the longpoll return only if we don't have failover-enabled, and only flag the work as a longpoll if it is the current pool. This will work around the problem of trying to restart the single longpoll thread on pool changes that was leading to race conditions. It will also have less work restarts from the multiple longpolls received from different pools.
Con Kolivas 4cd97326 2012-04-26T23:29:21 Create discrete persistent submit and get work threads per pool, thus allowing all submitworks belonging to the same pool to reuse the same curl handle, and all getworks to reuse their own handle. Use separate handles for submission to not make getwork potentially delay share submission which is time critical. This will allow much more reusing of persistent connections instead of opening new ones which can flood routers. This mandated a rework of the extra longpoll support (for when pools are switched) and this is managed by restarting longpoll cleanly and waiting for a thread join.
Luke Dashjr 4648330c 2012-04-24T21:46:48 Support for share logging
Con Kolivas f5f089f5 2012-04-23T17:40:47 Add a --gpu-map option which will allow arbitrarily mapping ADL devices to OpenCL devices for instances where association by enumeration alone fails.
Luke Dashjr 730849c9 2012-04-21T03:01:42 Make a union for cgpu device handles, and rename "device" to "device_ztex" since it's Ztex-specific
Luke Dashjr 657716e5 2012-04-21T02:52:20 Merge branch 'master' into ztex
Luke Dashjr b8778839 2012-04-21T02:36:19 Merge branch 'master' into unify_drivers Conflicts: cgminer.c
Con Kolivas c7cc2e42 2012-04-21T14:03:41 Merge branch 'master' into ztex
Kano 2e1d2017 2012-04-21T03:15:41 API add removepool like the screen interface
nelisky c3bda2b7 2012-03-14T10:34:29 adding path to libusb include
nelisky 99a188f9 2012-03-11T00:49:25 initial commit with some support for ztex 1.15x board. This version is just a rough draft, but it does alredy mine. Conflicts: cgminer.c configure.ac
Con Kolivas dc70fe9c 2012-04-14T17:38:31 Do a complete cgminer restart if the ATI Display Library fails, as it does on windows after running for some time, when fanspeed reporting fails.
Kano 0be2b9e9 2012-03-30T21:58:15 Increase max devices to 64 (for FPGA support)
Kano 18a8b550 2012-03-23T03:17:20 API returns the simple device history with the 'notify' command
Kano eeec9809 2012-03-23T01:50:45 code changes for supporting a simple device history
Luke Dashjr eca99654 2012-03-18T21:39:20 CGPU API for device kernel name
Luke Dashjr f05a319e 2012-03-18T21:06:47 CGPU API for device names
Luke Dashjr 303dbf46 2012-03-18T20:09:03 Abstract add_cgpu function, to handle device id numbering and devices array
Luke Dashjr e131dfab 2012-03-13T12:18:23 Unify drivers as driver-*.c and add driver name to API
Con Kolivas f4df8c82 2012-02-22T21:56:48 Merge pull request #135 from kanoi/master API new commands enablepool and disablepool
Kano 60c5ac68 2012-02-23T16:10:17 API new commands enablepool and disablepool (version already incremented)
Kano 4458f3d5 2012-02-23T13:58:33 Modify cgminer.c pool control to allow API to call it
Con Kolivas 527e611b 2012-02-23T01:27:36 Fix !HAVE_OPENCL build.
ckolivas 93efb726 2012-02-22T19:38:01 Allow multiple different kernels to be chosen per device.
Con Kolivas deff55c6 2012-02-22T16:54:06 Allow different vectors to be set per device.
Con Kolivas 2ca8d38e 2012-02-21T02:49:25 Merge pull request #124 from kanoi/master API commits - IP 0/0 means all, add "Log Interval" to config, restrict access to modify commands
Kano e3281c26 2012-02-21T20:03:13 When API shuts down cgminer don't kill itself
Con Kolivas f4284a21 2012-02-21T09:20:31 Set the lp_sent variable under lock since there will almost always be a race on setting this variable, potentially leading to multiple LPs being sent out.
Con Kolivas 3cdac04f 2012-02-19T23:13:02 Flag the pool that is the longpoll thread to avoid sending multiple longpolls during the slight delays between requesting and setting the lp_sent flag.
Con Kolivas 79e95dd9 2012-02-19T22:15:55 Store whether a work item is the result of a longpoll or not in struct work and use it to help determine block changes directly from the work longpoll bool.
Con Kolivas 39906718 2012-02-19T22:07:31 Keep track of when a longpoll has been sent for a pool and if the current pool is requesting work but has not sent a longpoll request, convert one of the work items to a longpoll as we may have switched pools but still be using the longpoll from the previous pool.
Con Kolivas f85b85d2 2012-02-19T21:28:23 Re-check for a longpoll supporting pool every 30 seconds if none is found initially.
Con Kolivas 02295c69 2012-02-19T20:19:47 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.
Con Kolivas fa4ce8da 2012-02-18T22:29:12 Keep track of intended engine clock speed and only adjust up if it's higher than the last intended speed. This avoids setting the clock speed to one relative to a lower profile one by mistake.
Con Kolivas 06721957 2012-02-18T16:34:06 Freeze the queues on all threads that are sent the pause message to prevent them trying to start up again with saved pings in their queues.
Con Kolivas 83dde50f 2012-02-18T15:17:50 Updates to diakgcn kernel courtesy of Philip Kaufmann <phil.kaufmann@t-online.de>
ckolivas 29f0b271 2012-02-15T08:51:59 The amount of work scanned can fluctuate when intensity changes and since we do this one cycle behind, we increment the work more than enough to prevent repeating work.
Con Kolivas 07c2ee53 2012-02-12T17:00:44 Put win32 equivalents of nanosleep and sleep into compat.h fixing sleep() for adl.c.
zefir e0fec357 2012-02-11T19:31:34 modularized logging, support for priority based logging Functions related to logging are extracted into dedicated source files for better maintainability. The existing low-level logging API is extended with a generalized scheme providing log functions log_{error, warning, notice, info, debug} that log messages based on a global opt_log_level. opt_log_level for now is set to LOG_NOTICE and might be modified via command line options or config files in future releases.
zefir 713e8be6 2012-02-04T14:22:47 move CPU chipset specific optimization into device-cpu
Con Kolivas 52bb99c3 2012-02-11T21:42:02 Fix double definition of A0 B0 to zeroA zeroB.
Luke Dashjr 543265d6 2012-01-24T14:34:17 Generalize --temp-cutoff and implement support for reading temperature from BitFORCE FPGAs
Con Kolivas 8c609579 2012-02-10T19:07:53 Merge pull request #107 from kanoi/master Allow API to restrict access by IP address + other commits