bab - use 'bad' instead of 'dead' as per the screen B:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
diff --git a/driver-bab.c b/driver-bab.c
index 1f7cdae..c871eab 100644
--- a/driver-bab.c
+++ b/driver-bab.c
@@ -324,7 +324,7 @@ static double chip_speed_ranges[BAB_CHIP_SPEEDS - 1] =
{ 0.0, 0.8, 1.6, 2.2, 2.8 };
// Greater than the last one above means it's the last speed
static char *chip_speed_names[BAB_CHIP_SPEEDS] =
- { "Dead", "V.Slow", "Slow", "OK", "Good", "Fast" };
+ { "Bad", "V.Slow", "Slow", "OK", "Good", "Fast" };
/*
* This is required to do chip tuning
@@ -464,7 +464,7 @@ struct bab_info {
uint32_t work_count[BAB_MAXCHIPS];
struct timeval last_tune[BAB_MAXCHIPS];
uint8_t bad_fast[BAB_MAXCHIPS];
- bool dead_msg[BAB_MAXCHIPS];
+ bool bad_msg[BAB_MAXCHIPS];
#endif
uint64_t work_unrolled;
uint64_t work_rolled;
@@ -1797,7 +1797,7 @@ static void process_history(struct cgpu_info *babcgpu, int chip, struct timeval
chip_fast = babinfo->chip_fast[chip];
/*
- * If dead then step it down and remember the speed
+ * If bad then step it down and remember the speed
* TODO: does a speed change reset the chip? Or is there a reset?
*/
if (good_nonces == 0) {
@@ -1815,12 +1815,12 @@ static void process_history(struct cgpu_info *babcgpu, int chip, struct timeval
* Permanently DEAD since we're already at the minumum speed
* but only getting bad nonces
*/
- if (babinfo->dead_msg[chip] == false) {
- applog(LOG_WARNING, "%s%d: Chip %d DEAD - at min speed %d",
+ if (babinfo->bad_msg[chip] == false) {
+ applog(LOG_WARNING, "%s%d: Chip %d BAD - at min speed %d",
babcgpu->drv->name, babcgpu->device_id,
chip, (int)chip_fast);
- babinfo->dead_msg[chip] = true;
+ babinfo->bad_msg[chip] = true;
}
}
goto tune_over;
@@ -1829,12 +1829,12 @@ static void process_history(struct cgpu_info *babcgpu, int chip, struct timeval
/*
* It 'was' permanently DEAD but a good nonce came back!
*/
- if (babinfo->dead_msg[chip]) {
+ if (babinfo->bad_msg[chip]) {
applog(LOG_WARNING, "%s%d: Chip %d REVIVED - at speed %d",
babcgpu->drv->name, babcgpu->device_id,
chip, (int)chip_fast);
- babinfo->dead_msg[chip] = false;
+ babinfo->bad_msg[chip] = false;
}
/*
@@ -2415,7 +2415,7 @@ static struct api_data *bab_api_stats(struct cgpu_info *babcgpu)
char buf[32];
int spi_work, chip_work, sp, chip, bank, chip_off, board, last_board;
int i, to, j, k;
- bool dead;
+ bool bad;
struct timeval now;
double elapsed, ghs;
float ghs_sum, his_ghs_tot;
@@ -2800,7 +2800,7 @@ static struct api_data *bab_api_stats(struct cgpu_info *babcgpu)
chip = babinfo->bank_first_chip[bank];
to = babinfo->bank_last_chip[bank];
for (; chip <= to; chip += BAB_BOARDCHIPS) {
- dead = true;
+ bad = true;
for (k = chip; (k <= to) && (k < (chip+BAB_BOARDCHIPS)); k++) {
if (history_elapsed[k] > 0) {
double num = history_good[k];
@@ -2813,11 +2813,11 @@ static struct api_data *bab_api_stats(struct cgpu_info *babcgpu)
ghs = 0;
if (ghs > 0.0) {
- dead = false;
+ bad = false;
break;
}
}
- if (dead) {
+ if (bad) {
board = (int)((float)(chip - babinfo->bank_first_chip[bank]) /
BAB_BOARDCHIPS) + 1;
snprintf(buf, sizeof(buf),
@@ -2831,7 +2831,7 @@ static struct api_data *bab_api_stats(struct cgpu_info *babcgpu)
}
}
}
- root = api_add_string(root, "History Dead Boards", data[0] ? data : "None", true);
+ root = api_add_string(root, "History Bad Boards", data[0] ? data : "None", true);
data[0] = '\0';
for (bank = i; bank <= j; bank++) {
@@ -2839,7 +2839,7 @@ static struct api_data *bab_api_stats(struct cgpu_info *babcgpu)
to = babinfo->bank_first_chip[bank];
chip = babinfo->bank_last_chip[bank];
for (; chip >= to; chip--) {
- dead = true;
+ bad = true;
if (history_elapsed[chip] > 0) {
double num = history_good[chip];
// exclude the first nonce?
@@ -2855,15 +2855,15 @@ static struct api_data *bab_api_stats(struct cgpu_info *babcgpu)
}
/*
* The output here is: a/b+c/d
- * a/b is the SPI/board that starts the Dead Chain
+ * a/b is the SPI/board that starts the Bad Chain
* c is the number of boards after a
- * d is the total number of chips in the Dead Chain
- * A Dead Chain is a continous set of dead chips that
+ * d is the total number of chips in the Bad Chain
+ * A Bad Chain is a continous set of bad chips that
* finish at the end of an SPI chain of boards
* This might be caused by the first board, or the cables attached
- * to the first board, in the Dead Chain i.e. a/b
+ * to the first board, in the Bad Chain i.e. a/b
* If c is zero, it's just the last board, so it's the same as any
- * other board having dead chips
+ * other board having bad chips
*/
if (chip < babinfo->bank_last_chip[bank]) {
board = (int)((float)(chip - babinfo->bank_first_chip[bank]) /
@@ -2883,7 +2883,7 @@ static struct api_data *bab_api_stats(struct cgpu_info *babcgpu)
}
}
}
- root = api_add_string(root, "History Dead Chains", data[0] ? data : "None", true);
+ root = api_add_string(root, "History Bad Chains", data[0] ? data : "None", true);
root = api_add_int(root, "Disabled Chips", &(babinfo->total_disabled), true);