Browse Source

bitfury: Use other nonces for gen1 detection so one bad core can't break it

Luke Dashjr 11 years ago
parent
commit
119270b66b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      driver-bitfury.c

+ 5 - 1
driver-bitfury.c

@@ -590,8 +590,12 @@ void bitfury_do_io(struct thr_info * const master_thr)
 				{
 				{
 					switch (nonce & 0xe03fffff)
 					switch (nonce & 0xe03fffff)
 					{
 					{
+						case 0x40060f87:
 						case 0x600054e0:
 						case 0x600054e0:
-							if (++bitfury->chipgen_probe > 4)
+						case 0x80156423:
+						case 0x991abced:
+						case 0xa004b2a0:
+							if (++bitfury->chipgen_probe > 0x10)
 								bitfury->chipgen = 1;
 								bitfury->chipgen = 1;
 							break;
 							break;
 						case 0xe03081a3:
 						case 0xe03081a3: