Bug 234130

Summary: Shutdown due to overheating after resuming from S3 on coreboot
Product: Base System Reporter: moe
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: 12.0-RELEASE   
Hardware: amd64   
OS: Any   

Description moe 2018-12-18 11:56:52 UTC
I run coreboot on my Thinkpad X230 and I noticed that FreeBSD shuts down automatically after I wake up the machine from sleep. Before shutting down it displays a message saying something along the lines of "Critical CPU temperature, shutting down now", after which it proceeds to sync buffers and halt. 

A quick fix for that problem would be to remove software overheating protection from the kernel source code, but that wouldn't be an optimal solution. However, if someone could send me a patch that accomplishes that (at least until the actual solution is found), it would be great.

In case you need logs and the exact message that is displays after I wake up the machine, I will be able to post them tonight.
Comment 1 moe 2018-12-18 12:03:33 UTC
I can't reproduce this bug on OpenBSD and FreeBSD
Comment 2 moe 2018-12-18 12:04:32 UTC
Sorry, I meant Linux and OpenBSD
Comment 3 Andriy Gapon freebsd_committer 2018-12-18 14:56:57 UTC
(In reply to moe from comment #0)
First thing I would check is whether there is a real overheat issue or if the temperature gets misreported.
Comment 4 moe 2018-12-18 16:47:32 UTC
(In reply to Andriy Gapon from comment #3)
I'm not sure how to do that. I've tried to run sysctl -a | grep temperature in a loop while trying to suspend and resume, and I got thrown out of X.org into the console which displayed a message "WARNING: current temperature [128°C] is unsafe" or something like that, after that my PC halted.
I'm pretty sure that if my CPU went up to 128°C it would either shut down automatically by BIOS, or I wouldn't be writing this right now.