|
@@ -322,8 +322,6 @@ modminer_reduce_clock(struct thr_info*thr, bool needlock)
|
|
|
if (needlock)
|
|
if (needlock)
|
|
|
mutex_unlock(&modminer->device_mutex);
|
|
mutex_unlock(&modminer->device_mutex);
|
|
|
|
|
|
|
|
- applog(LOG_WARNING, "%s %u.%u: Setting clock speed to %u", modminer->api->name, modminer->device_id, fpgaid, state->clock);
|
|
|
|
|
-
|
|
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -362,6 +360,7 @@ modminer_fpga_init(struct thr_info *thr)
|
|
|
|
|
|
|
|
state->clock = 212; // Will be reduced to 210 by modminer_reduce_clock
|
|
state->clock = 212; // Will be reduced to 210 by modminer_reduce_clock
|
|
|
modminer_reduce_clock(thr, false);
|
|
modminer_reduce_clock(thr, false);
|
|
|
|
|
+ applog(LOG_WARNING, "%s %u.%u: Setting clock speed to %u", modminer->api->name, modminer->device_id, fpgaid, state->clock);
|
|
|
|
|
|
|
|
mutex_unlock(&modminer->device_mutex);
|
|
mutex_unlock(&modminer->device_mutex);
|
|
|
|
|
|
|
@@ -504,6 +503,7 @@ modminer_process_results(struct thr_info*thr)
|
|
|
if (state->last_cutoff_reduced != now) {
|
|
if (state->last_cutoff_reduced != now) {
|
|
|
state->last_cutoff_reduced = now;
|
|
state->last_cutoff_reduced = now;
|
|
|
modminer_reduce_clock(thr, false);
|
|
modminer_reduce_clock(thr, false);
|
|
|
|
|
+ applog(LOG_WARNING, "%s %u.%u: Drop clock speed to %u (temp: %d)", modminer->api->name, modminer->device_id, fpgaid, state->clock, temperature);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -527,19 +527,26 @@ modminer_process_results(struct thr_info*thr)
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
if (unlikely((!state->good_share_counter) && nonce == 0xffffff00))
|
|
if (unlikely((!state->good_share_counter) && nonce == 0xffffff00))
|
|
|
|
|
+ {
|
|
|
// Firmware returns 0xffffff00 immediately if we set clockspeed too high; but it's not a hw error and shouldn't affect future downclocking
|
|
// Firmware returns 0xffffff00 immediately if we set clockspeed too high; but it's not a hw error and shouldn't affect future downclocking
|
|
|
modminer_reduce_clock(thr, true);
|
|
modminer_reduce_clock(thr, true);
|
|
|
|
|
+ applog(LOG_WARNING, "%s %u.%u: Drop clock speed to %u (init)", modminer->api->name, modminer->device_id, fpgaid, state->clock);
|
|
|
|
|
+ }
|
|
|
else {
|
|
else {
|
|
|
++hw_errors;
|
|
++hw_errors;
|
|
|
if (++modminer->hw_errors * 100 > 1000 + state->good_share_counter)
|
|
if (++modminer->hw_errors * 100 > 1000 + state->good_share_counter)
|
|
|
|
|
+ {
|
|
|
// Only reduce clocks if hardware errors are more than ~1% of results
|
|
// Only reduce clocks if hardware errors are more than ~1% of results
|
|
|
modminer_reduce_clock(thr, true);
|
|
modminer_reduce_clock(thr, true);
|
|
|
|
|
+ applog(LOG_WARNING, "%s %u.%u: Drop clock speed to %u (%d%% hw err)", modminer->api->name, modminer->device_id, fpgaid, state->clock, modminer->hw_errors * 100 / state->good_share_counter);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
if (++state->no_nonce_counter > 18000) {
|
|
if (++state->no_nonce_counter > 18000) {
|
|
|
state->no_nonce_counter = 0;
|
|
state->no_nonce_counter = 0;
|
|
|
modminer_reduce_clock(thr, true);
|
|
modminer_reduce_clock(thr, true);
|
|
|
|
|
+ applog(LOG_WARNING, "%s %u.%u: Drop clock speed to %u (no nonces)", modminer->api->name, modminer->device_id, fpgaid, state->clock);
|
|
|
}
|
|
}
|
|
|
if (work_restart(thr) || !--iter)
|
|
if (work_restart(thr) || !--iter)
|
|
|
break;
|
|
break;
|