Minion set some core defaults similar to final requirements
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
diff --git a/driver-minion.c b/driver-minion.c
index 22ba301..be4a38a 100644
--- a/driver-minion.c
+++ b/driver-minion.c
@@ -31,7 +31,7 @@ static void minion_detect(__maybe_unused bool hotplug)
#define MINION_SPI_BUFSIZ 1024
#define MINION_CHIPS 32
-#define MINION_CORES 64
+#define MINION_CORES 99
#define MINION_QUE_HIGH 4
#define MINION_QUE_LOW 2
@@ -1127,12 +1127,12 @@ static void enable_chip_cores(struct cgpu_info *minioncgpu, struct minion_info *
chip, READ_ADDR(MINION_CORE_ENA96_98),
rbuf, MINION_CORE_SIZ, data);
-/*
+
data[0] = 0xff;
data[1] = 0xff;
data[2] = 0xff;
data[3] = 0xff;
-*/
+
/*
* there really is no reason to do this except in testing
* since when mining with real data it will still mine at
@@ -1144,35 +1144,36 @@ static void enable_chip_cores(struct cgpu_info *minioncgpu, struct minion_info *
* of working cores isn't all of them? (and redoing if the number changes)
* See the idle_cnt register ...
*/
- data[0] = 0x02; // core 1
- data[1] = 0x00;
- data[2] = 0x00;
- data[3] = 0x00;
+// data[0] = 0x02; // core 1
+// data[1] = 0x00;
+// data[2] = 0x00;
+// data[3] = 0x00;
reply = build_cmd(minioncgpu, minioninfo,
chip, WRITE_ADDR(MINION_CORE_ENA0_31),
rbuf, 0, data);
- data[0] = 0x00;
- data[1] = 0x00;
+// data[0] = 0x00;
+// data[1] = 0x00;
// data[2] = 0x01; // core 48
- data[2] = 0x00;
- data[3] = 0x00;
+// data[2] = 0x00;
+// data[3] = 0x00;
reply = build_cmd(minioncgpu, minioninfo,
chip, WRITE_ADDR(MINION_CORE_ENA32_63),
rbuf, 0, data);
- data[0] = 0x00;
- data[1] = 0x00;
- data[2] = 0x00;
- data[3] = 0x00;
+// data[0] = 0x00;
+// data[1] = 0x00;
+// data[2] = 0x00;
+// data[3] = 0x00;
reply = build_cmd(minioncgpu, minioninfo,
chip, WRITE_ADDR(MINION_CORE_ENA64_95),
rbuf, 0, data);
- data[0] = 0x04; // core 98
+ data[0] = 0x07; // core 96,97,98
+// data[0] = 0x04; // core 98
data[1] = 0x00;
data[2] = 0x00;
data[3] = 0x00;
@@ -1181,6 +1182,7 @@ static void enable_chip_cores(struct cgpu_info *minioncgpu, struct minion_info *
chip, WRITE_ADDR(MINION_CORE_ENA96_98),
rbuf, 0, data);
+/* Use default
// 1/3 range for each of the 3 cores
// data[0] = 0x55;
// data[1] = 0x55;
@@ -1225,6 +1227,7 @@ static void enable_chip_cores(struct cgpu_info *minioncgpu, struct minion_info *
reply = build_cmd(minioncgpu, minioninfo,
chip, WRITE_ADDR(MINION_NONCE_START),
rbuf, 0, data);
+*/
}
// TODO: hard coded for now