|
|
|
@ -679,6 +679,16 @@ int gpu_fanpercent(int gpu)
@@ -679,6 +679,16 @@ int gpu_fanpercent(int gpu)
|
|
|
|
|
lock_adl(); |
|
|
|
|
ret = __gpu_fanpercent(ga); |
|
|
|
|
unlock_adl(); |
|
|
|
|
if (unlikely(ga->has_fanspeed && ret == -1)) { |
|
|
|
|
applog(LOG_WARNING, "GPU %d stopped reporting fanspeed due to driver corruption", gpu); |
|
|
|
|
if (opt_restart) { |
|
|
|
|
applog(LOG_WARNING, "Restart enabled, will restart cgminer"); |
|
|
|
|
applog(LOG_WARNING, "You can disable this with the --no-restart option"); |
|
|
|
|
app_restart(); |
|
|
|
|
} |
|
|
|
|
applog(LOG_WARNING, "Disabling fanspeed monitoring on this device"); |
|
|
|
|
ga->has_fanspeed = false; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|