1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Perform a mandatory reset if the avalon buffer signals it's full before it has queued its normal quota of work.

This commit is contained in:
Con Kolivas 2013-05-27 11:11:44 +10:00
parent b790153990
commit 589e08772e

View File

@ -770,7 +770,9 @@ static void *avalon_send_tasks(void *userdata)
applog(LOG_WARNING,
"AVA%i: Buffer full before all work queued",
avalon->device_id);
avalon->results -= avalon_get_work_count - j;
dev_error(avalon, REASON_DEV_COMMS_ERROR);
avalon_reset(avalon, fd);
avalon_idle(avalon, info, fd);
break;
}
@ -795,6 +797,7 @@ static void *avalon_send_tasks(void *userdata)
avalon_idle(avalon, info, fd);
}
}
avalon_rotate_array(avalon);
pthread_cond_signal(&info->qcond);
mutex_unlock(&info->qlock);