Bug 215707

Summary: Linux tends to hard freeze after idling
Product: Power Management Reporter: Shane Whitmire (dogunbound5)
Component: intel_idleAssignee: Len Brown (lenb)
Status: NEEDINFO ---    
Severity: normal CC: oscar.priegov, rui.zhang
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 5.16.15-zen1-1-zen Subsystem:
Regression: No Bisected commit-id:

Description Shane Whitmire 2022-03-21 06:12:08 UTC
I've found the reason to this issue and am currently not suffering from it due to a workaround I discovered. The Linux kernel tends to hard freeze after idling due to power saving modes. Once I disable c-state and some other setting in my bios (I forgot the other setting), the system becomes perfectly stable.


System:
Arch
i7-12700k
ddr4 3200mhz
GTX 1060 6gb
Comment 1 Artem S. Tashkinov 2022-03-21 12:34:31 UTC
This could also be the case of:

* CPU overclocking
* RAM overclocking
* Insufficient/bad PSU
* Bad BIOS

Please check if there are BIOS updates, apply them, reset BIOS defaults and try to check it again.
Comment 2 Shane Whitmire 2022-03-21 15:40:38 UTC
Can xmp mode cause this? I heard you needed xmp mode to get advertised memory speeds.
Comment 3 Zhang Rui 2022-06-27 03:10:41 UTC
does the problem still exist with latest upstream kernel?
and any thing difference with BIOS changes?
Comment 4 Oscar Priego 2022-08-19 08:46:33 UTC
this is a problem happening in the transitional of the core c-states and p-states in the silicon, after you hit a certain thermal threshold, the cpu will try to protect itself by sending come cores from c0 to c6 state, and some tasks will be hanged due to the kernel preemption, so yes, by disabling c states you will have all the cores active, and there will be more power consumption in your system and the cpu will consume more power, you can fix this either from the c state disabling, or by having kernel preemption disabled.

Cheers!
Oscar Priego