From 3ef0db56586554c68d37b6c36228aaa79ebadbb4 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 2 Jul 2013 09:02:40 +1000 Subject: [PATCH] Reinstate more aggressive <2% HW error target for avalon-auto --- ASIC-README | 2 +- driver-avalon.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ASIC-README b/ASIC-README index 331790bd..c94805b9 100644 --- a/ASIC-README +++ b/ASIC-README @@ -94,7 +94,7 @@ Avalon commands: Avalon auto will enable dynamic overclocking gradually increasing and decreasing the frequency till the highest hashrate that keeps hardware errors -around 1% is achieved. This WILL run your avalon beyond its normal specification +under 2% is achieved. This WILL run your avalon beyond its normal specification so the usual warnings apply. When avalon-auto is enabled, the avalon-options for frequency and timeout are used as the starting point only. diff --git a/driver-avalon.c b/driver-avalon.c index 91eb9a85..227072dd 100644 --- a/driver-avalon.c +++ b/driver-avalon.c @@ -916,10 +916,10 @@ static void *avalon_send_tasks(void *userdata) info->auto_nonces <= (AVALON_AUTO_CYCLE * 21 / 20)) { int total = info->auto_nonces + info->auto_hw; - /* Try to keep hw errors ~1% */ - if (info->auto_hw * 200 < total) + /* Try to keep hw errors < 2% */ + if (info->auto_hw * 100 < total) avalon_inc_freq(info); - else if (info->auto_hw * 100 > total) + else if (info->auto_hw * 66 > total) avalon_dec_freq(info); } avalon_reset_auto(info);