How I helped fix sleep-wake hangs on Linux with AMD GPUs
(nyanpasu64.gitlab.io)
from tedu@inks.tedunangst.com to inks@inks.tedunangst.com on 03 Jan 09:52
https://inks.tedunangst.com/l/5145
from tedu@inks.tedunangst.com to inks@inks.tedunangst.com on 03 Jan 09:52
https://inks.tedunangst.com/l/5145
Through some digging, I found that when a desktop enters S3 sleep, the system cuts power to PCIe GPUs, causing their VRAM chips to lose data. To preserve this data, GPU drivers copy VRAM in use to system RAM before the system sleeps, then restore it after the system wakes. However the Linux amdgpu driver has a bug where, if there is not enough free RAM to store all VRAM in use, the system will run out of memory and crash, instead of moving RAM to disk-based swap.
#bugfix #investigation #linux #malloc #programming #systems
#bugfix #inks #investigation #linux #malloc #programming #systems
threaded - newest