Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

TL;DR:

During suspend, for graphics cards, GPU VRAM needs to be transferred to system RAM.

However, during high memory usage scenarios the VRAM + RAM usage could exceed system memory -- this would ordinarily involve system swap coming into play and handling the temporarily out of memory issue. However system swap was already deactivated when it came time to suspending the AMD card causing all sorts of problems.

The fix was asking the GPU to evict its VRAM to system RAM via the hook ("suspend prepare") before swap was deactivated in linux kernel.



<s>Technically it was the suspend notifier; even suspend prepare executes after swap is disabled.</s> See replies.


Isn’t the hook called PM_SUPEND_PREPARE as per https://nyanpasu64.gitlab.io/blog/amdgpu-sleep-wake-hang/#so...


Sorry I had forgotten my own article :( It is confusing that PM_SUSPEND_PREPARE and dpm_prepare share the same word.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: