driver-hashfast.c


Log

Author Commit Date CI Message
Con Kolivas 41226f18 2014-02-24T19:51:48 Add a --hfa-name command that allows one to specify the unique opname for a hashfast device.
Con Kolivas 2f454d86 2014-02-24T11:49:17 Set the clock rate with a work restart instead of an init when changing to old clocks for hfa
Con Kolivas ade4b0a6 2014-02-24T10:36:44 Set opname on hfa devices without a serial number to a hex value based on time to not overflow the field.
Con Kolivas 687c1705 2014-02-24T10:33:53 Add op name to hfa API stats output if it exists.
Con Kolivas a621e2b8 2014-02-24T09:54:23 Set the actual op_name in hfa devices if cgminer is choosing it itself due to it being invalid.
Con Kolivas 67041fbc 2014-02-24T09:00:53 Re-init an hfa device to its old data before setting up info structures as their sizes may change.
Con Kolivas c0e65369 2014-02-24T08:11:36 Remove the usb device whenever we do a running shutdown on hfa and do a shutdown as the imitated reinit to allow it to hotplug again.
Con Kolivas 6d33bf7e 2014-02-24T08:03:25 Reset opt hfa dfu boot after it's used.
Con Kolivas eb5ad60e 2014-02-24T08:02:25 Comment out windows only transfer on hfa startup.
Con Kolivas 2ab31317 2014-02-24T08:01:32 Clean up structures unused in case of all failures in hfa detect common
Con Kolivas fa7f84e6 2014-02-24T02:24:33 Clear all structures should we fail to hfa reset on adjusting clock on a hotplug.
Con Kolivas f832ce5b 2014-02-24T02:10:01 Set master and copy cgpu hash clock rate for hfa when dropping it on a restart.
Con Kolivas 8b0fb208 2014-02-24T02:00:44 Set the master hfa clock speed to lower when shutting down a copy.
Con Kolivas 9eaf90b2 2014-02-24T01:43:05 Do a clear readbuf on any hfa reset in case the device has not yet cleanly shut down.
Con Kolivas 33db33dd 2014-02-24T00:28:16 Increase hfa fanspeed slightly more when it's rising in the optimal range than falling.
Con Kolivas e0b857ce 2014-02-24T00:17:16 Always decrease hfa clock speed on a running shutdown and don't try sending an init frame since it will be dropped regardless.
Con Kolivas 66b18833 2014-02-23T23:58:02 Match hfa devices to old ones based on OP_NAME values before serial numbers if possible.
Con Kolivas 21fa38d5 2014-02-23T23:52:54 Read off the OP_NAME if it exists and is supported on hfa devices, setting it to the device serial number or a timestamp if it is invalid.
Con Kolivas 50fa5885 2014-02-23T22:56:14 Updated hf protocol
Con Kolivas d2f253cd 2014-02-23T22:42:15 Check for an amount along with no error in hfa clear readbuf
Con Kolivas f44831db 2014-02-23T22:39:17 Hfa clear readbuf can return a nonsense amount when there's a return error so ignore the amount.
Con Kolivas f1c6058c 2014-02-23T22:21:01 Running resets always cause a shutdown on hfa meaning the device will disappear with modern firmware so always kill off the threads to allow re-hotplugging.
Con Kolivas 7f74e21d 2014-02-23T22:09:28 Try a restart instead of a shutdown prior to trying to re-initialise a non-working hfa device.
Con Kolivas f3080422 2014-02-23T22:02:47 Reset the hfa hash clock rate to the old one if we find an old instance, only setting the device id in hfa_prepare
Con Kolivas 680a885a 2014-02-23T21:48:05 Keep the device_id on the original zombie thread for HFA in case of further resets.
Con Kolivas e022dc9f 2014-02-23T21:07:30 Local cinfo extra
Con Kolivas c22e080b 2014-02-23T20:56:40 Break out of hfa inherit if there is no device data.
Con Kolivas 94dcfce0 2014-02-23T20:52:42 Inherit the hfa zombie instance after the device id has been allocated.
Con Kolivas 19d0efd7 2014-02-23T20:31:04 The list_for_each_cgpu macro will dereference when there are no mining threads yet.
Con Kolivas db8c31c8 2014-02-23T20:21:36 Make hfa hotplug inherit some parameters from a previous instance if the serial number exists and is matching, avoiding dropping the clock on all devices.
Con Kolivas c76647f2 2014-02-23T16:45:04 Use the share_work_tdiff function in the driver watchdogs.
Con Kolivas 55cd36c1 2014-02-23T14:06:44 Limit the decrease of hfa clock rate on reset to the default clockrate.
Con Kolivas 0d32dc64 2014-02-23T14:04:34 Base the hfa failure time on the current expected hashrate instead of a static 15 seconds.
Con Kolivas 456e3dd0 2014-02-23T13:52:02 We shouldn't be trying to read from the hfa_send_shutdown function itself.
Con Kolivas cf27324d 2014-02-22T10:51:29 Take into account shed cores on hfa devices when determining how many jobs to send.
Con Kolivas c9197a75 2014-02-21T02:44:09 Give a nodev error if we have already set nodev in hfa clear readbuf to avoid further usb comms attempts.
Con Kolivas dab4a154 2014-02-20T20:30:36 Update the per die hash clock data on a running reset on hfa devices.
Con Kolivas 9aa6c6a2 2014-02-20T11:54:48 Set the per die clock on hfa to the known starting base clock instead of our requested clock rate.
Con Kolivas 3bbb8976 2014-02-20T11:35:02 Hfa device failure can be detected within 15 seconds so we should try restarting it sooner to avoid tripping the device's own watchdog.
Con Kolivas cca9b500 2014-02-20T11:29:43 Check return result of hfa clear readbuf to minimise error messages on device failure.
Con Kolivas f8571b60 2014-02-20T11:15:32 Send a work restart with every shutdown message to hfa devices to clear any work that might be stale on the next restart.
Con Kolivas 0f4ad7f4 2014-02-20T11:07:06 Store the hfa hash_clock rate and display it in the statline.
Con Kolivas 904491bf 2014-02-20T11:02:05 Store the maximum board temperature for hfa devices and take that into consideration when calculating the highest temperature as well as the dies.
Con Kolivas 7dbfe297 2014-02-18T22:23:28 Add hashfast fanspeed% to statline display.
Con Kolivas 257fe00a 2014-02-18T22:19:45 Move driver statline padding to cgminer.c, expanding width of maximum displayable statistics and window width to add more info.
Con Kolivas 71849e0d 2014-02-15T09:04:47 Check for hfa invalid hash clockrate after other error messages.
Con Kolivas 5cda70e7 2014-02-14T08:09:17 Update various copyright dates
Con Kolivas 107155c3 2014-02-13T20:50:27 Reuse the cgpu->temp entry for max temperature in hfa driver.
Con Kolivas 693f4a11 2014-02-08T11:14:55 Put the hashfast temperature into the cgpu structure so that it shows up in the devs API call.
Con Kolivas e8e65d54 2014-02-07T13:36:15 Increase hfa fanspeed by more if we're rising in temp above the target than if the temp is staying the same.
Con Kolivas bcae3a91 2014-02-07T09:35:27 Issue a shutdown prior to a reset command for hfa devices and lock access to reads awaiting the response if the device is already running.
Con Kolivas 7d64e807 2014-02-07T08:55:31 Do not register as successful a hfa init sequence that reports the clockrate as zero.
Con Kolivas 2b1685c0 2014-02-07T01:08:39 Show serial number as a hex value in hfa verbose startup.
Con Kolivas 1cc0ca31 2014-02-06T16:36:28 Show which hfa die is bringing down all the others when decreasing all the clock speeds.
Con Kolivas b568177b 2014-02-06T16:25:13 Increase the decrease when temp has increased more and we want to decrease it on hfa.
Con Kolivas f24e56bc 2014-02-06T16:04:40 Allow throttling of hfa dies more frequently and increasing of speeds less frequently.
Con Kolivas 62a8dfa3 2014-02-06T15:46:53 Fix dud revert.
Con Kolivas 5f4ee5b6 2014-02-06T15:46:05 Revert "Only adjust die speeds as well as fanspeeds on hfa if we've taken enough temperature samples." This reverts commit 0a0418d8a608de53ac84c7ad4cee32290b8c6882.
Con Kolivas e4297d97 2014-02-06T15:39:18 Wait after sending a hfa shutdown to allow the device to properly shut down before possibly sending it more commands.
Con Kolivas 485a093d 2014-02-06T15:34:18 Minimise the die clock differences in hfa to no more than 50Mhz.
Con Kolivas 0a0418d8 2014-02-06T14:32:14 Only adjust die speeds as well as fanspeeds on hfa if we've taken enough temperature samples.
Con Kolivas 1a0b1907 2014-02-06T09:51:44 Disable fan/die clock control in hfa if the firmware does not support it, with notification.
Con Kolivas 2405c8e0 2014-02-05T22:52:22 Revert "We should retry only 3 times to get an hfa header response to init since that is more than 1.5 second of waiting." This reverts commit efa9963f8625a628a94e29f006c90306b20d7bda. Conflicts: driver-hashfast.c
Con Kolivas 779c9df3 2014-02-05T21:58:31 Decrease hfa clock by 10 if a reset is attempted due to the device remaining idle.
Con Kolivas 9f627970 2014-02-05T21:28:38 Add no matching work to hfa API output.
Con Kolivas 0eaad2fc 2014-02-05T20:27:56 Change various logging message levels in the hfa driver.
ckolivas d385befb 2014-02-05T17:19:54 Only adjust clocks if there is no restart in hfa to avoid 2 restarts back to back.
ckolivas 42beb96f 2014-02-05T16:28:04 Ensure we iterate over all dies adjusting temperate for hfa by starting iterating after the last die modified.
ckolivas fbb7bf24 2014-02-05T11:38:34 Clamp initial hfa fanspeed to min/max if passed as parameters.
ckolivas 49482b1b 2014-02-05T11:37:11 Allow hfa fanspeed to be set via command line.
ckolivas ea3eccff 2014-02-05T11:03:06 Try one more time to get the hfa header on init since it can take 2 seconds for all 3 boards on a sierra.
Con Kolivas d56bb3df 2014-02-04T20:09:18 Wait for 5 temperature updates in hfa before adjusting fanspeed.
Con Kolivas b45ae688 2014-02-04T20:02:48 Have some leeway before starting to throttle hfa dies.
Con Kolivas 01b8a49a 2014-02-04T19:51:38 Use increments of 10 when increasing hfa clock since it may not have 5 MHz granularity internally.
Con Kolivas efa9963f 2014-02-04T19:43:03 We should retry only 3 times to get an hfa header response to init since that is more than 1.5 second of waiting.
Con Kolivas 173457fc 2014-02-04T19:13:48 Only perform a hfa fan speed update if we have new temps to work with.
Con Kolivas f66f4795 2014-02-04T19:05:52 Correctly measure the hfa max temp and smooth out the changes in its value.
Con Kolivas cb3158d2 2014-02-03T21:40:15 Add fanspeed to hfa api output and set initial fanspeed to 10%
Con Kolivas b88fc8b8 2014-02-03T21:18:22 Add hfa fanspeed control to try and maintain a target temperature.
Con Kolivas 68e514e6 2014-02-03T20:10:42 Add op commands necessary to control hfa fanspeeds.
Con Kolivas a3644590 2014-02-02T00:00:21 Send a ping to hfa devices if nothing is sent for over 5 seconds.
Con Kolivas 5b61abc7 2014-02-01T23:53:33 Add OP_PING to hfa commands
Con Kolivas 040dced2 2014-02-01T23:38:02 Display the hfa serial number as a hexadecimal value.
Con Kolivas b55db249 2014-02-01T23:08:00 Limit all hfa restarts for temperature control to no closer than 15 seconds apart.
Con Kolivas 2d0afaea 2014-02-01T23:03:22 Allow the hfa temp target to be disabled by setting it to zero.
Con Kolivas 8e05a7d0 2014-02-01T22:30:17 Add sanity check for silly overflows in hfa die temperature readings.
Con Kolivas dc93ca47 2014-02-01T22:08:46 Add per-die throttling control for hfa driver based on each die's temperature, issuing a suitable reset to maintain the temperature below a configurable target temperature.
Con Kolivas aa3f60ae 2014-02-01T09:29:39 Send a full allotment of jobs to the hfa device after a restart instead of reading the status.
ckolivas 843b7377 2014-01-28T10:25:25 Relax timeout in hf get header to 500ms to match the usb timeout.
Con Kolivas a0f9a7e9 2014-01-25T20:49:51 Support the variable HFA naming throughout the driver notices.
Con Kolivas a2846cba 2014-01-25T20:34:19 Set the global hfa hash clock rate to equal the lowest if we are lowering it for a device reset since it may be re-hotplugged after failing reset.
Con Kolivas 032c1565 2014-01-25T20:32:19 Decrease the hfa clock rate if it is overclocked and we have had to try resetting it.
Con Kolivas 675030ce 2014-01-25T20:20:56 Put a sanity check on the measured temperature in the hfa driver for obviously wrong values.
Con Kolivas fe64facc 2014-01-25T17:41:51 Avoid calling applog from within hfa statline before to avoid a deadlock.
Con Kolivas d3480c76 2014-01-25T17:32:49 Add throttling control to hfa driver, configurable at command line, nominally set to 85 degrees.
Con Kolivas e548cf4e 2014-01-25T17:12:53 Reset hfa device if no valid hashes are seen for 1 minute from the last work.
Con Kolivas 8155fe8c 2014-01-25T16:46:47 Count share based hashes in the hfa driver with the device diff to get more frequent updates.
Con Kolivas c7ce722e 2014-01-25T16:40:49 Only count 2/3 of the accumulated hashes on each pass through the hfa scan work loop to smooth out displayed hashrate.
Con Kolivas 89188b01 2014-01-25T14:57:44 Test valid nonces in the hashfast driver allowing us to check against the target when trying to submit them.
Con Kolivas ecaa9ee9 2014-01-25T14:50:36 No point casting a double to a uint64