Commit 057a38eb1cce78654f6187a5b18e9d09f757f026

Con Kolivas 2012-06-22T13:37:32

When disabling fanspeed monitoring on adl failure, remove any twin GPU association. This could have been leading to hangs on machines with dual GPU cards when ADL failed.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/adl.c b/adl.c
index 473cba0..c7393f4 100644
--- a/adl.c
+++ b/adl.c
@@ -695,6 +695,11 @@ int gpu_fanpercent(int gpu)
 		applog(LOG_WARNING, "You will need to start cgminer from scratch to correct this");
 		applog(LOG_WARNING, "Disabling fanspeed monitoring on this device");
 		ga->has_fanspeed = false;
+		if (ga->twin) {
+			applog(LOG_WARNING, "Disabling fanspeed linking on GPU twins");
+			ga->twin->twin = NULL;;
+			ga->twin = NULL;
+		}
 	}
 	return ret;
 }